.af-commercial {
  --af-commercial-panel: #fafafa;
  --af-commercial-edge: #f7f7f7;
  --af-commercial-shadow: 0 2px 4px #6c718014, 0 7px 7px #6c718012, 0 17px 10px #6c71800a, 0 29px 12px #6c718003;
  --af-commercial-dark: #121212;
  --af-commercial-dark-panel: #282828;
  background: var(--af-paper, #f0f0f0);
  color: var(--af-ink);
}

.af-commercial :is(h1, h2, h3, p, figure, dl, dd, ul, ol) {
  margin: 0;
}

.af-commercial :is(h1, h2, h3) {
  color: inherit;
  font-weight: 600;
}

.af-commercial p {
  color: var(--af-muted);
  line-height: 1.5;
}

.af-commercial-hero {
  padding-block: 76px 64px;
}

.af-commercial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.af-commercial-hero--quote .af-commercial-hero-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.96fr);
  gap: 16px;
  align-items: stretch;
  width: min(1128px, calc(100% - 2 * var(--gutter)));
}

.af-commercial-hero--quote .af-commercial-hero-copy {
  grid-area: 1 / 2;
  align-content: center;
}

.af-commercial-hero--index {
  padding-block: 76px 40px;
}

.af-commercial-hero--index .af-commercial-hero-grid {
  display: block;
}

.af-commercial-hero--index .af-commercial-hero-copy {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.af-commercial-hero-copy {
  display: grid;
  gap: 24px;
}

.af-commercial-hero-copy > .af-commercial-kicker {
  width: fit-content;
  gap: 8px;
  color: #000;
  line-height: 1;
}

.af-commercial-kicker > img {
  flex: none;
}

.af-commercial-hero h1 {
  overflow-wrap: anywhere;
}

.af-commercial-hero-copy > p:not(.af-commercial-kicker) {
  font-size: 20px;
  max-width: 46ch;
  line-height: 1.42;
  letter-spacing: -.04em;
}

.af-commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}

.af-commercial-actions > .af-button {
  min-height: 56px;
}

.af-commercial .af-commercial-secondary {
  background: #fff;
  border: 4px solid var(--af-edge, #f8f8f8);
  box-shadow: var(--af-lift, 0 6px 9px #0001, 0 15px 22px #00000008);
  color: #000;
}

.af-commercial .af-commercial-secondary:hover {
  border-color: #ececec;
  color: #000;
}

.af-commercial :is(.af-commercial-board, .af-commercial-storyboard, .af-commercial-chart, .af-commercial-card, .af-commercial-record, .af-commercial-review-checklist :where(label), .af-commercial-mobile-data :where(li)) {
  border: 6px solid var(--af-commercial-edge);
  border-radius: var(--af-radius, 16px);
  background: var(--af-commercial-panel);
  box-shadow: var(--af-commercial-shadow);
}

.af-commercial :is(.af-commercial-board, .af-commercial-storyboard, .af-commercial-chart) {
  min-width: 0;
  padding: 18px;
}

.af-commercial-hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 340px;
  padding: clamp(20px, 3.2vw, 48px);
}

.af-commercial-hero-stage::before {
  position: absolute;
  inset: -16% -2% -16% -6%;
  z-index: -1;
  background: url("/assets/hero.webp") center / cover no-repeat;
  mask-image: radial-gradient(ellipse closest-side at 54% 52%, #000 35%, transparent 100%);
  opacity: .38;
  pointer-events: none;
  content: "";
}

.af-commercial-hero-stage > :is(.af-commercial-board, .af-commercial-storyboard, .af-commercial-chart),
.af-commercial-steps > .af-commercial-card {
  border-color: var(--af-edge, #f8f8f8);
  background: var(--af-surface, #fff);
  box-shadow: var(--af-shadow, 0 4px 6px #00000009, 0 13px 20px #0000000b);
}

.af-commercial :is(.af-commercial-board, .af-commercial-storyboard, .af-commercial-chart) > figcaption {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.af-commercial-board > figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--af-line);
}

.af-commercial-board > figcaption > small {
  color: var(--af-muted);
  font-size: .75rem;
  font-weight: 500;
}

.af-commercial-board dl > div,
.af-commercial-record > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--af-line);
}

.af-commercial-board dl > div:last-child,
.af-commercial-record > div:last-child {
  border-bottom: 0;
}

.af-commercial dt {
  color: var(--af-muted);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.4;
}

.af-commercial dd {
  font-size: .93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.af-commercial-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.af-commercial-frame {
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(8px, 1.2vw, 16px);
  border-radius: 10px;
  background: #f1f1f1;
  border: 1px solid var(--af-line);
}

.af-commercial-frame:nth-child(2) {
  background: #e9e9e9;
}

.af-commercial-frame:nth-child(3) {
  background: #171717;
  color: #fff;
}

.af-commercial-frame small {
  color: #595959;
  font: 400 .66rem/1.35 "Fragment Mono", monospace;
}

.af-commercial-frame:nth-child(3) small {
  color: #d1d1d1;
}

.af-commercial-frame span {
  font-weight: 650;
  font-size: clamp(.7rem, 1.4vw, 1rem);
  line-height: 1.35;
}

.af-commercial-chart svg {
  display: block;
  width: 100%;
  max-height: 250px;
}

.af-commercial-chart svg path {
  fill: none;
  stroke-width: 2.5;
}

.af-commercial-chart-grid { stroke: var(--af-line); }
.af-commercial-chart-plan { stroke: var(--af-muted); stroke-dasharray: 5 4; }
.af-commercial-chart-actual { stroke: var(--af-ink); }
.af-commercial-chart-dot { fill: var(--af-ink); }

.af-commercial .af-commercial-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  list-style: none;
  color: var(--af-muted);
  font-size: .8rem;
}

.af-commercial-legend li::before {
  display: inline-block;
  width: .75em;
  height: .75em;
  margin-right: .38em;
  border: 1px solid var(--af-muted);
  border-radius: 50%;
  content: "";
}

.af-commercial-legend li:nth-child(2)::before {
  background: var(--af-ink);
  border-color: var(--af-ink);
}

.af-commercial-legend li:nth-child(3)::before {
  border-color: var(--af-ink);
  border-width: 2px;
}

.af-commercial-section {
  padding-block: 64px;
  scroll-margin-top: 90px;
}

.af-commercial-section-grid {
  display: grid;
  gap: 38px;
}

.af-commercial-section--split .af-commercial-section-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}

.af-commercial-section-copy {
  display: grid;
  gap: 14px;
  max-width: 650px;
}

.af-commercial-section:not(.af-commercial-section--split) .af-commercial-section-copy {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.af-commercial :is(.af-commercial-section h2, .af-commercial-closing h2) {
  font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.12;
  letter-spacing: -.071em;
  text-wrap: balance;
}

.af-commercial-section-copy > p {
  font-size: 17px;
  letter-spacing: -.025em;
}

.af-commercial-china-platforms { margin-top: 32px; }
.af-commercial-china-platforms > .section-pill { margin-bottom: 16px; color: var(--af-ink); }

.af-commercial-component {
  display: grid;
  min-width: 0;
  gap: 14px;
  justify-items: start;
}

.af-commercial-component > :not(a) {
  width: 100%;
}

.af-commercial :is(.af-commercial-cards, .af-commercial-steps, .af-commercial-checks, .af-commercial-scope-options) {
  display: grid;
  grid-template-columns: repeat(var(--af-commercial-columns, 2), minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.af-commercial-card {
  display: grid;
  gap: 9px;
  align-content: start;
  height: 100%;
  padding: 18px;
  overflow-wrap: anywhere;
}

.af-commercial .af-commercial-card h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.045em;
}

.af-commercial .af-commercial-steps h3 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.065em;
}

.af-commercial-card p {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.af-commercial-card--link {
  color: inherit;
  text-decoration: none;
  transition: transform .24s;
}

.af-commercial-card--link:hover {
  transform: translateY(-4px);
}

.af-commercial-card-action {
  color: var(--af-ink);
  font-size: .83rem;
  font-weight: 600;
}

.af-commercial-steps {
  counter-reset: af-step;
}

.af-commercial-steps > li::before,
.af-commercial-checks > li::before {
  color: var(--af-ink);
  font: 400 .8rem/1.3 "Fragment Mono", monospace;
}

.af-commercial-steps > li::before {
  counter-increment: af-step;
  content: counter(af-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  border-radius: 8px;
  background: #050505;
  color: #fff;
}

.af-commercial-checks > li::before {
  content: "CHECK";
  letter-spacing: .06em;
}

.af-commercial-review-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.af-commercial-review-checklist label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  height: 100%;
  padding: 12px;
  cursor: pointer;
}

.af-commercial-review-checklist input {
  flex: none;
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--af-ink);
}

.af-commercial-scope-options .af-button {
  justify-self: start;
  min-height: 44px;
  margin-top: 4px;
}

.af-commercial-data {
  min-width: 0;
}

.af-commercial-table {
  width: 100%;
  border: 6px solid var(--af-commercial-edge);
  border-radius: var(--af-radius, 16px);
  border-spacing: 0;
  table-layout: fixed;
  overflow-wrap: anywhere;
  background: var(--af-commercial-panel);
  box-shadow: var(--af-commercial-shadow);
}

.af-commercial :is(.af-commercial-table caption, .af-commercial-table-label) {
  padding: 0 0 9px;
  color: var(--af-muted);
  text-align: left;
  font-size: .84rem;
  font-weight: 650;
}

.af-commercial-table :is(th, td) {
  padding: 12px;
  border-bottom: 1px solid var(--af-line);
  text-align: left;
  vertical-align: top;
  font-size: .9rem;
  line-height: 1.45;
}

.af-commercial-table th {
  color: var(--af-ink);
  font-weight: 600;
}

.af-commercial-table th:not(:last-child),
.af-commercial-table td:not(:last-child) {
  border-right: 1px solid var(--af-line);
}

.af-commercial-table tbody tr:last-child td {
  border-bottom: 0;
}

.af-commercial-mobile-data {
  display: none;
}

.af-commercial-mobile-data ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.af-commercial-mobile-data li {
  padding: 12px;
}

.af-commercial-mobile-data dl {
  display: grid;
  gap: 8px;
}

.af-commercial-note,
.af-commercial-intake-cue {
  color: var(--af-muted);
  font-size: .9rem;
}

.af-commercial .af-commercial-text-link {
  color: var(--af-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.af-commercial-related {
  padding-block: 40px;
}

.af-commercial-related h2 {
  font-size: 24px;
  letter-spacing: -.05em;
  margin-bottom: 16px;
}

.af-commercial-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  list-style: none;
}

.af-commercial-related a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.af-commercial-closing {
  padding-block: 48px 80px;
}

.af-commercial-hero--quote .af-commercial-hero-grid,
.af-commercial-closing > .af-wrap {
  padding: 10px;
  border: 6px solid var(--af-commercial-edge);
  border-radius: 24px;
  background: var(--af-commercial-dark);
  color: #fff;
  box-shadow: var(--af-commercial-shadow);
}

.af-commercial-closing > .af-wrap {
  max-width: 1128px;
}

.af-commercial-hero--quote .af-commercial-hero-copy,
.af-commercial-closing-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 16px;
  background: var(--af-commercial-dark-panel);
}

.af-commercial-closing-panel {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.af-commercial-hero--quote .af-commercial-hero-copy > p:not(.af-commercial-kicker),
.af-commercial-closing-panel p {
  color: #b8b8b8;
  max-width: 62ch;
}

.af-commercial :is(.af-commercial-hero--quote, .af-commercial-closing) .af-button--light {
  background: #fafafa;
  border-color: #fafafa;
  color: #111;
}

.af-commercial :is(.af-commercial-hero--quote, .af-commercial-closing) .af-button--light:hover {
  background: #e9e9e9;
  border-color: #e9e9e9;
  color: #111;
}

.af-commercial :is(.af-commercial-hero--quote, .af-commercial-closing) .af-commercial-secondary {
  background: transparent;
  border: 1px solid #777;
  color: #fafafa;
  box-shadow: none;
}

.af-commercial :is(.af-commercial-hero--quote, .af-commercial-closing) .af-commercial-secondary:hover {
  border-color: #fafafa;
}

.af-commercial-hero--quote .af-commercial-hero-stage {
  grid-area: 1 / 1;
  align-items: end;
  min-height: 410px;
  padding: clamp(12px, 2.5vw, 32px);
  overflow: hidden;
  border-radius: 16px;
  background: #141414 url("/assets/creative-01.webp") center bottom / auto 165% no-repeat;
}

.af-commercial-hero--quote .af-commercial-hero-stage::before {
  inset: 0;
  background: linear-gradient(180deg, #14141400 4%, #141414 100%);
  mask-image: none;
  opacity: 1;
}

.af-commercial-hero--quote .af-commercial-hero-stage > .af-commercial-board {
  border-color: #333;
  background: #282828;
  color: #fafafa;
  box-shadow: none;
}

.af-commercial-hero--quote .af-commercial-board :is(dt, figcaption small) {
  color: #b8b8b8;
}

.af-commercial-hero--quote .af-commercial-board :is(figcaption, dl > div) {
  border-color: #494949;
}

@media (min-width: 1001px) {
  .af-commercial {
    --af-display: clamp(48px, 5vw, 72px);
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .af-commercial {
    --af-display: clamp(40px, 5.3vw, 54px);
  }

  .af-commercial-hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: 28px;
  }

}

@media (max-width: 700px) {
  .af-commercial-hero,
  .af-commercial-hero--index {
    padding-block: 34px 40px;
  }

  .af-commercial-hero-grid,
  .af-commercial-hero--quote .af-commercial-hero-grid,
  .af-commercial-section--split .af-commercial-section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }

  .af-commercial-hero--quote .af-commercial-hero-grid {
    width: calc(100% - 40px);
    gap: 10px;
  }

  .af-commercial-hero--quote :is(.af-commercial-hero-copy, .af-commercial-hero-stage) {
    grid-area: auto;
  }

  .af-commercial-hero-stage {
    min-height: 0;
    padding: 16px 6px;
  }

  .af-commercial-hero-stage::before {
    inset: -5% -2%;
  }

  .af-commercial-hero--quote .af-commercial-hero-stage {
    min-height: 385px;
  }

  .af-commercial-hero--index .af-commercial-hero-copy {
    text-align: left;
    justify-items: start;
  }

  .af-commercial-hero-copy {
    gap: 17px;
  }

  .af-commercial-hero-copy > p:not(.af-commercial-kicker) {
    font-size: 17px;
  }

  .af-commercial-actions {
    display: grid;
    justify-items: start;
    gap: 8px;
  }

  .af-commercial-actions > .af-button {
    min-height: 48px;
  }

  .af-commercial-section {
    padding-block: 43px;
  }

  .af-commercial-section-grid {
    gap: 24px;
  }

  .af-commercial :is(.af-commercial-section h2, .af-commercial-closing h2) {
    font-size: clamp(31px, 8vw, 42px);
    letter-spacing: -.062em;
  }

  .af-commercial :is(.af-commercial-cards, .af-commercial-steps, .af-commercial-checks, .af-commercial-scope-options, .af-commercial-review-checklist),
  .af-commercial-component .af-commercial-frames {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .af-commercial-component .af-commercial-frame {
    aspect-ratio: auto;
    min-height: 84px;
    gap: 8px;
  }

  .af-commercial-table {
    display: none;
  }

  .af-commercial-mobile-data {
    display: block;
  }

  .af-commercial :is(.af-commercial-board, .af-commercial-storyboard, .af-commercial-chart) {
    padding: 13px;
  }

  .af-commercial-closing {
    padding-block: 38px 54px;
  }

  .af-commercial-related {
    padding-block: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-commercial-card--link {
    transition: none;
  }
}
