/* Building an Ad Studio — case layout (scoped under .ad-studio-root; portfolio globals stay in styles.css). */

main.ad-studio-main {
  padding-top: 0;
  box-sizing: border-box;
  width: 100%;
}

body.page-ad-studio {
  background: #ffffff;
}

body.page-ad-studio .ad-studio-root figure img,
body.page-ad-studio .ad-studio-root figure svg {
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.ad-studio-root {
  /* Aliases — match ad-creation / IA case pages (styles.css + ad-creation.css tokens). */
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --card: var(--surface);
  --good: #1f7a3a;
  --good-bg: #eaf3ec;
  --bad: #b3261e;
  --bad-bg: #fbeceb;
  --warn: #a36a00;
  --warn-bg: #fbf3e1;
  /* Spacing — mirror body.case-ad-creation --ad-space-* / section rhythm where useful */
  --as-sm: 1rem;
  --as-tight: 0.625rem;
  --as-md: 1.5rem;
  --as-lg: 2rem;
  --as-xl: 2.5rem;
  --as-section-end: 3rem;
  /* Spacing tokens used by shared `.ad-*` blocks from ad-creation.css (same scale as body.case-ad-creation). */
  --ad-stack: var(--case-stack);
  --ad-space-2xs: 0.25rem;
  --ad-space-xs: 0.5rem;
  --ad-space-tight: 0.625rem;
  --ad-space-sm: 1rem;
  --ad-space-md: 1.5rem;
  --ad-space-comfort: 1.75rem;
  --ad-space-lg: 2rem;
  --ad-space-xl: 2.5rem;
  --ad-space-2xl: 3rem;
  --ad-space-sub: 0.75rem;
  --ad-space-compact: 0.875rem;
  --ad-space-lede: 1.125rem;
  /* Concept paragraph → Strengths / Tradeoffs (matches IA concept rows). */
  --ad-space-explore-concept-gap: 24px;
  --ad-band-pad: 1.25rem;
  --ad-rule-gap: 1.25rem;
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ad-studio-root *,
.ad-studio-root *::before,
.ad-studio-root *::after {
  box-sizing: border-box;
}

/* Same node as `<div class="ad-studio-root page">` — compound selector (not `.ad-studio-root .page`). */
.ad-studio-root.page {
  box-sizing: border-box;
  --as-column-max: 1100px;
  --as-prose-max: 900px;
  width: 100%;
  max-width: var(--as-column-max);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) 1rem calc(var(--case-section-y) * 2);
}

/* No hero band above the title: `styles.css` gives `#overview h1` a large `margin-bottom` for NYT pages with a strip hero — here it shoves “01 Overview” far below a multi-line title. Split like Offer Retention, with a tighter step. */
body.page-ad-studio.case-study section.intro-section#overview > h1 {
  margin: 0;
  max-width: min(100%, 1160px);
}

body.page-ad-studio.case-study .ad-studio-root #overview.intro-section > .ad-section-header {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--ad-space-md);
}

/* Overview — no horizontal rules between hero, title, goal, columns, and meta (spacing only). */
body.page-ad-studio .ad-studio-root #overview.intro-section.section {
  border-top: none;
}

body.page-ad-studio .ad-studio-root #overview.intro-section .intro-columns {
  border-top: none;
}

body.page-ad-studio .ad-studio-root #overview.intro-section .meta-row {
  border-top: none;
}

/* #overview.intro-section uses shared case-study pattern from styles.css; neutralize .ad-studio-root p defaults inside it. */
.ad-studio-root #overview.intro-section .intro-columns p {
  margin: 0;
  max-width: none;
  color: #333;
}

.ad-studio-root #overview.intro-section .intro-columns p + p {
  margin-top: 0.875rem;
}

.ad-studio-root #overview.intro-section .meta-row p {
  margin: 0;
  max-width: none;
  color: #0f0f0f;
}

.ad-studio-root section {
  margin: 0 0 var(--as-section-end);
  padding-top: 0;
  scroll-margin-top: 96px;
}

.ad-studio-root section + section {
  padding-top: var(--case-section-y-sm);
  margin-top: 0;
}

.ad-studio-root section:last-of-type {
  margin-bottom: var(--as-xl);
}

.ad-studio-root h2 {
  font-family: var(--sans);
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-lh);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  border: none;
  padding: 0;
  text-wrap: balance;
}

.ad-studio-root h3 {
  font-family: var(--sans);
  font-size: var(--type-prose-subhead);
  line-height: var(--type-prose-subhead-lh);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--case-stack) 0 var(--as-tight);
  color: var(--ink);
  text-transform: none;
}

.ad-studio-root h4 {
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: var(--as-lg) 0 var(--as-tight);
}

.ad-studio-root p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  max-width: min(var(--as-prose-max), 100%);
  text-wrap: pretty;
}

.ad-studio-root p strong {
  color: var(--ink);
  font-weight: 600;
}

.ad-studio-root p code,
.ad-studio-root li code,
.ad-studio-root td code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--rule-soft);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
  white-space: nowrap;
}

.ad-studio-root .process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--as-sm);
  margin: var(--as-tight) 0 var(--case-stack);
}

/* IA section: two process cards (same chrome as §02 The process). */
.ad-studio-root .process.process--ia-duo {
  grid-template-columns: 1fr 1fr;
  margin-top: var(--as-md);
  margin-bottom: 0;
}

.ad-studio-root .process-card {
  padding: var(--as-md);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
}

.ad-studio-root .process-num {
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--as-sm);
  display: flex;
  align-items: center;
  gap: var(--as-sm);
}

.ad-studio-root .process-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.ad-studio-root .process-card h5 {
  font-family: var(--sans);
  font-size: var(--type-prose-subhead);
  line-height: var(--type-prose-subhead-lh);
  font-weight: 600;
  margin: 0 0 var(--as-tight);
  letter-spacing: -0.01em;
}

.ad-studio-root .process-card p {
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  margin: 0;
  color: var(--ink-soft);
}

.ad-studio-root ul.principles {
  list-style: none;
  padding: 0;
  margin: var(--as-sm) 0 var(--case-stack);
  counter-reset: p;
}

.ad-studio-root ul.principles li {
  counter-increment: p;
  padding: var(--as-md) 0 var(--as-md) 3.75rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  max-width: min(var(--as-prose-max), 100%);
}

.ad-studio-root ul.principles li:last-child {
  border-bottom: none;
}

.ad-studio-root ul.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(var(--as-md) + 2px);
  font-family: var(--mono);
  font-size: var(--type-section-num);
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.ad-studio-root ul.principles li h3 {
  margin: 0 0 var(--as-tight);
  font-family: var(--sans);
  font-size: var(--type-prose-subhead);
  line-height: var(--type-prose-subhead-lh);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

/* Outcome closing — same global h3 all-caps override (if used later) */
.ad-studio-root #outcome > h3 {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: -0.01em;
}

.ad-studio-root ul.principles li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
}

.ad-studio-root ul.clean {
  list-style: none;
  padding: 0;
  margin: var(--as-sm) 0 var(--case-stack);
}

.ad-studio-root ul.clean li {
  padding: var(--as-sm) 0 var(--as-sm) 1.75rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  color: var(--ink-soft);
  max-width: min(var(--as-prose-max), 100%);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
}

.ad-studio-root ul.clean li:last-child {
  border-bottom: none;
}

.ad-studio-root ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.ad-studio-root ul.clean li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Click-to-enlarge: image-lightbox.js — affordance (modal opens on img click inside main) */
body.page-ad-studio .ad-studio-root figure img:not([data-no-lightbox]),
body.page-ad-studio .ad-studio-root .ad-exp-img img:not([data-no-lightbox]),
body.page-ad-studio .ad-studio-root #direction .ad-ff-crop--strip img:not([data-no-lightbox]) {
  cursor: zoom-in;
}

/* §07 Direction — same structure as Ad Creation “Final Designs”: flow video + strip (styles mirror #final-designs; scoped here because #direction is outside main.ad-case). */
.ad-studio-root #direction figure.ad-ffd-flowvideo {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0 0 calc(var(--ad-space-2xl) + var(--ad-space-2xs));
  padding: 0;
  max-width: min(100%, 52rem);
  border: none;
  background: transparent;
}

.ad-studio-root #direction figure.ad-ffd-flowvideo .ad-ffd-flowvideo__el {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #141414;
  box-shadow:
    0 28px 56px rgba(15, 15, 15, 0.14),
    0 10px 22px rgba(15, 15, 15, 0.1),
    0 2px 6px rgba(15, 15, 15, 0.06);
}

.ad-studio-root #direction figure.ad-ffd-flowvideo .ad-ffd-flowvideo__el--still {
  background: #fff;
}

.ad-studio-root #direction .ad-ff-strip-outer {
  overflow: visible;
  width: 100%;
  max-width: 100%;
  position: relative;
  left: auto;
  transform: none;
  margin: 0 0 0.4rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  cursor: default;
  box-sizing: border-box;
}

.ad-studio-root #direction .ad-ff-strip-outer:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ad-studio-root #direction .ad-ff-strip--flow {
  gap: 2.15rem;
}

.ad-studio-root #direction .ad-ff-strip-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  min-height: 1.35rem;
  margin: 0.2rem auto 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ad-terracotta) 0.4) 0%,
    color-mix(in srgb, var(--ad-terracotta) 0.12) 60%,
    color-mix(in srgb, var(--ad-terracotta) 0.04) 100%
  );
  border-radius: 1px;
  opacity: 0.9;
  pointer-events: none;
}

.ad-studio-root #direction .ad-ff-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  justify-items: center;
  gap: 2.5rem;
  overflow: visible;
  padding: 1.75rem 1.25rem 2rem;
  transition: padding 0.4s ease;
  background: transparent;
}

.ad-studio-root #direction .ad-ff-strip-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0.1rem;
  scroll-margin-top: 1.25rem;
}

/* Strip row: single column (e.g. step 2 Assets). */
.ad-studio-root #direction .ad-ff-strip-item:not(.ad-ff-strip-item--annot-rail) .ad-ff-strip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, auto);
  column-gap: 0;
  row-gap: 0.75rem;
  align-items: start;
  width: 100%;
}

.ad-studio-root #direction .ad-ff-strip-item:not(.ad-ff-strip-item--annot-rail) .ad-ff-strip-row > .ad-ff-annot--strip,
.ad-studio-root #direction .ad-ff-strip-item:not(.ad-ff-strip-item--annot-rail) .ad-ff-strip-row > .ad-ff-annot {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  min-width: 0;
}

/* FIG 07: art left, annotation copy right (Final Designs–style rail). */
.ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: auto minmax(0, auto);
  column-gap: clamp(1rem, 3vw, 2.25rem);
  row-gap: 0.75rem;
  align-items: start;
  width: 100%;
}

.ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-kicker {
  grid-column: 1 / -1;
  grid-row: 1;
}

.ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-row > .ad-ff-annot--strip,
.ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-row > .ad-ff-annot {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  min-width: 0;
}

.ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-rail {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 5.25rem;
  padding: 0.25rem 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Final-designs pattern: one callout visible; copy lives in the rail (not floating popovers). */
.ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-pop {
  display: none;
}

.ad-studio-root #direction .ad-ff-rail .ad-ff-rail-item:not(.is-active) {
  display: none;
}

.ad-studio-root #direction .ad-ff-rail .ad-ff-rail-item.is-active {
  display: flex;
}

.ad-studio-root #direction .ad-ff-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ad-studio-root #direction .ad-ff-rail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem 0.75rem;
  margin: 0;
  padding: 0.35rem 0.15rem 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ad-studio-root #direction .ad-ff-rail-item:hover,
.ad-studio-root #direction .ad-ff-rail-item:focus-visible {
  outline: none;
}

.ad-studio-root #direction .ad-ff-rail-n {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--numeral-ink);
  border-radius: 50%;
  line-height: 1;
  margin-top: 0.1rem;
  box-shadow: none;
}

.ad-studio-root #direction .ad-ff-rail-txt {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: #0f0f0f;
}

.ad-studio-root #direction .ad-ff-rail-txt :is(strong) {
  font-weight: 600;
  color: var(--ad-terracotta);
}

@media (max-width: 900px) {
  .ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 1rem;
  }

  .ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-kicker {
    grid-column: 1;
    grid-row: 1;
  }

  .ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-row > .ad-ff-annot--strip,
  .ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-strip-row > .ad-ff-annot {
    grid-column: 1;
    grid-row: 2;
  }

  .ad-studio-root #direction .ad-ff-strip-item--annot-rail .ad-ff-rail {
    grid-column: 1;
    grid-row: 3;
    position: static;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.ad-studio-root #direction .ad-ff-strip-item:not(.ad-ff-strip-item--annot-rail) .ad-ff-strip-kicker {
  grid-column: 1;
  grid-row: 1;
}

.ad-studio-root #direction .ad-ff-strip-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.3;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.ad-studio-root #direction .ad-ff-step-n {
  display: inline-block;
  min-width: 0.6em;
  color: var(--ad-terracotta);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.ad-studio-root #direction .ad-ff-annot--strip {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
}

.ad-studio-root #direction .ad-ff-crop--strip {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  border-width: 0;
  border-style: none;
}

.ad-studio-root #direction .ad-ff-visual--strip {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: none;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.ad-studio-root #direction .ad-ff-visual--strip:has(.annotated-img),
.ad-studio-root #direction .ad-ff-crop--strip:has(.annotated-img) {
  overflow: visible;
}

.ad-studio-root #direction .ad-ff-crop--strip img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  vertical-align: bottom;
  border: 0;
  outline: none;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow:
    0 28px 56px rgba(15, 15, 15, 0.14),
    0 10px 22px rgba(15, 15, 15, 0.1),
    0 2px 6px rgba(15, 15, 15, 0.06);
}

.ad-studio-root #direction .ad-ffd-strip-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  margin: 0.85rem 0 0;
  max-width: min(52rem, 100%);
  font-family: var(--sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--ink-soft);
}

.ad-studio-root #direction .ad-ffd-strip-fig {
  font-family: var(--mono);
  font-size: var(--type-section-num);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.ad-studio-root #direction .ad-ffd-strip-note-body {
  flex: 1 1 12rem;
  min-width: 0;
}

.ad-studio-root #direction .ad-ffd-strip-note-body strong {
  color: var(--ink);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .ad-studio-root #direction .ad-ff-crop--strip,
  .ad-studio-root #direction .ad-ff-visual--strip,
  .ad-studio-root #direction .ad-ff-strip,
  .ad-studio-root #direction .ad-ff-strip-outer {
    transition: none !important;
  }
}

body.page-ad-studio .ad-studio-root article.ad-explore.ad-explore--no-media {
  grid-template-columns: 36px minmax(0, 1fr);
}

@media (max-width: 960px) {
  body.page-ad-studio .ad-studio-root article.ad-explore.ad-explore--no-media {
    grid-template-columns: 1fr;
  }
}

.ad-studio-root figure {
  margin: var(--case-stack) 0 var(--as-sm);
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.ad-studio-root figure .fig-canvas,
.ad-studio-root figure .fig-canvas--video {
  background: transparent;
  padding: 0;
  display: block;
}

.ad-studio-root figure img,
.ad-studio-root figure svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* FIG 08 — JTBD framework matrix: same card shadow as #direction annotated strip images. */
body.page-ad-studio .ad-studio-root #ai figure .fig-canvas img[src*="JTBD"] {
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow:
    0 28px 56px rgba(15, 15, 15, 0.14),
    0 10px 22px rgba(15, 15, 15, 0.1),
    0 2px 6px rgba(15, 15, 15, 0.06);
}

.ad-studio-root figure video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.ad-studio-root figure figcaption {
  padding: var(--as-sm) 0 0;
  border: none;
  font-family: var(--mono);
  font-size: var(--type-section-num);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: var(--type-body-lh);
  display: flex;
  gap: var(--as-sm);
  flex-wrap: wrap;
  align-items: baseline;
}

.ad-studio-root figure figcaption .fig-num {
  color: var(--accent);
  flex-shrink: 0;
}

.ad-studio-root figure figcaption .fig-title {
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body-size);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.ad-studio-root figure figcaption .fig-desc {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: var(--type-body-size);
  letter-spacing: 0;
  text-transform: none;
  flex: 1 1 200px;
}

.ad-studio-root .ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--as-sm);
  text-align: center;
  padding: var(--as-xl);
  border-radius: 6px;
  position: relative;
}

.ad-studio-root .ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  pointer-events: none;
}

.ad-studio-root .ph .ph-tag {
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--as-sm);
}

.ad-studio-root .ph .ph-tag::before,
.ad-studio-root .ph .ph-tag::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--ink-muted);
}

.ad-studio-root .ph .ph-title {
  font-family: var(--sans);
  font-size: var(--type-prose-subhead);
  line-height: var(--type-prose-subhead-lh);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 36ch;
  margin: 0;
}

.ad-studio-root .ph .ph-desc {
  font-family: var(--sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
}

.ad-studio-root .compare {
  margin: var(--case-stack) 0 var(--as-lg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}

.ad-studio-root .compare.cols-3 .compare-head,
.ad-studio-root .compare.cols-3 .compare-row {
  grid-template-columns: 180px repeat(3, 1fr);
}

.ad-studio-root .compare.cols-2 .compare-head,
.ad-studio-root .compare.cols-2 .compare-row {
  grid-template-columns: 1fr 1fr;
}

.ad-studio-root .compare-head,
.ad-studio-root .compare-row {
  display: grid;
}

.ad-studio-root .compare-head {
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ad-studio-root .compare-head > div,
.ad-studio-root .compare-row > div {
  padding: var(--as-sm) var(--as-md);
  border-right: 1px solid var(--rule-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
}

.ad-studio-root .compare-head > div:last-child,
.ad-studio-root .compare-row > div:last-child {
  border-right: none;
}

.ad-studio-root .compare-row {
  border-bottom: 1px solid var(--rule-soft);
}

.ad-studio-root .compare-row:last-child {
  border-bottom: none;
}

.ad-studio-root .compare-row .lbl {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--type-section-num);
  background: #ffffff;
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-studio-root .compare-row.row-pro .lbl {
  color: var(--good);
}

.ad-studio-root .compare-row.row-con .lbl {
  color: var(--bad);
}

.ad-studio-root .compare-head .opt-num {
  display: block;
  font-family: var(--sans);
  font-size: var(--type-body-size);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
  margin-top: var(--as-tight);
}

.ad-studio-root .verdict {
  display: inline-flex;
  align-items: center;
  gap: var(--as-tight);
  padding: var(--as-tight) var(--as-sm);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-studio-root .verdict.good {
  background: var(--good-bg);
  color: var(--good);
}

.ad-studio-root .verdict.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.ad-studio-root .verdict.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.ad-studio-root .verdict::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

body.page-ad-studio .ad-studio-root .ad-exp-img video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  vertical-align: bottom;
  background: #0f1419;
}

body.page-ad-studio .ad-studio-root .ad-exp-img:has(video) {
  cursor: default;
}

body.page-ad-studio .ad-studio-root .ad-exp-img:has(video):hover {
  transform: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

body.page-ad-studio .ad-studio-root .ad-exp-img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top left;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  vertical-align: bottom;
}

/* Align `.ad-*` (ad-creation.css) with this page: same `--font-sans` + `--type-*` scale as the rest of Ad Studio. */
body.page-ad-studio .ad-studio-root h2.ad-section-title {
  border: none;
  padding-top: 0;
  font-family: var(--font-sans);
}

body.page-ad-studio .ad-studio-root .ad-section-num {
  font-family: var(--font-sans);
}

body.page-ad-studio .ad-studio-root .ad-section-header {
  margin-bottom: var(--ad-rule-gap);
  padding-bottom: var(--ad-space-tight);
  border-bottom: 1.5px solid var(--ink);
}

/* Line lives on `.ad-section-header` (below title); hide `<hr>` so we do not double the rule. */
body.page-ad-studio .ad-studio-root hr.ad-section-rule {
  border: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

body.page-ad-studio .ad-studio-root .ad-prose p {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: #0f0f0f;
}

body.page-ad-studio .ad-studio-root .ad-exp-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.page-ad-studio .ad-studio-root h3.ad-exp-title {
  font-family: var(--font-sans);
  font-size: var(--type-prose-subhead);
  line-height: var(--type-prose-subhead-lh);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 var(--ad-space-lede);
  border: none;
  padding: 0;
}

body.page-ad-studio .ad-studio-root .ad-exp-concept {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: #0f0f0f;
}

body.page-ad-studio .ad-studio-root .ad-list-label {
  font-family: var(--font-sans);
  font-size: var(--type-kicker);
}

body.page-ad-studio .ad-studio-root .ad-list li {
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: #0f0f0f;
}

body.page-ad-studio .ad-studio-root .ad-list.tradeoffs li::before {
  color: #0f0f0f;
}

body.page-ad-studio .ad-studio-root .ad-list-label.tradeoffs {
  color: #0f0f0f;
}

body.page-ad-studio .ad-studio-root p.ad-closer {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  max-width: min(var(--as-prose-max), 100%);
  color: #0f0f0f;
}

body.page-ad-studio .ad-studio-root .ad-bignum {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--numeral-ink);
}

/* §10 Creation surface: hide numerals + beside-image copy; full-width mockups read larger */
body.page-ad-studio .ad-studio-root #ai-surface .ad-explore {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ad-space-lg);
}

body.page-ad-studio .ad-studio-root #ai-surface .ad-explore .ad-bignum,
body.page-ad-studio .ad-studio-root #ai-surface .ad-explore .ad-exp-copy {
  display: none;
}

body.page-ad-studio .ad-studio-root #ai-surface .ad-exp-img {
  width: 100%;
  max-width: 100%;
}

body.page-ad-studio .ad-studio-root #ai-surface .ad-exp-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.page-ad-studio .ad-studio-root .annotated-img .ad-ff-pop {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
}

body.page-ad-studio .ad-studio-root .annotated-img .ad-ff-lbl {
  font-family: var(--font-sans);
}

body.page-ad-studio .ad-studio-root .annotated-img .ad-ff-pop-title {
  font-family: var(--font-sans);
}

.ad-studio-root #explorations > .ad-prose p:last-of-type,
.ad-studio-root #ai-discovery > .ad-prose p:last-of-type,
.ad-studio-root #ai-surface > .ad-prose p:last-of-type {
  margin-bottom: var(--case-stack);
}

.ad-studio-root .callout {
  margin: var(--case-stack) 0;
  padding: var(--as-md) var(--as-lg);
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--ink);
  max-width: min(var(--as-prose-max), 100%);
}

.ad-studio-root .callout strong {
  color: var(--ink);
}

.ad-studio-root .callout-eyebrow {
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--as-tight);
}

/* Interactive pins on Creation Driven Final — uses ad-creation.css `.ad-ff-pin` / pulse / pop (same as IA + final designs). */
.ad-studio-root figure:has(.annotated-img),
.ad-studio-root #direction .ad-ff-visual--strip:has(.annotated-img),
.ad-studio-root #direction .ad-ff-crop--strip:has(.annotated-img) {
  overflow: visible;
}

.ad-studio-root .annotated-img.ad-ff-annot {
  position: relative;
  display: block;
  width: 100%;
  --ad-terracotta: var(--accent);
  --ad-terracotta-deep: color-mix(in srgb, var(--accent) 80%, #000000);
  --ffd-pin: var(--accent);
}

.ad-studio-root .annotated-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.25s ease;
}

.ad-studio-root .annotated-img .ad-ff-pin {
  z-index: 3;
}

.ad-studio-root .annotated-img .ad-ff-pin.is-open {
  z-index: 5;
}

/* #direction annotated strips: keep artwork at full brightness when pins are open.
   Shared ad-creation.css dims .ad-ff-crop--strip img on :has(.ad-ff-pin.is-open); the rail script
   also opens the default pin on load, so that read as a permanent "overlay" here. Match #final-designs. */
.ad-studio-root #direction .ad-ff-annot.ad-ff-annot--strip:has(.ad-ff-pin.is-open) .ad-ff-crop--strip img,
.ad-studio-root #direction .annotated-img.ad-ff-annot:has(.ad-ff-pin.is-open) img {
  filter: none;
}

.ad-studio-root .annotated-img .ad-ff-lbl {
  color: #fffcf7;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--ad-terracotta-deep) 55%, transparent);
}

.ad-studio-root .annotated-img .ad-ff-pin:hover .ad-ff-lbl,
.ad-studio-root .annotated-img .ad-ff-pin:focus-visible .ad-ff-lbl,
.ad-studio-root .annotated-img .ad-ff-pin.is-open .ad-ff-lbl {
  color: #fff;
}

.ad-studio-root .annotated-img .ad-ff-pop-title {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ffd-pin);
  margin: 0 0 0.4rem;
}

.ad-studio-root .annotated-img .ad-ff-pop-body {
  display: block;
  margin: 0;
  font-weight: 400;
  color: var(--ink-soft);
}

.ad-studio-root .annotated-img .ad-ff-pin--below .ad-ff-pop {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px) scale(0.97);
}

.ad-studio-root .annotated-img .ad-ff-pin--below.is-open .ad-ff-pop,
.ad-studio-root .annotated-img .ad-ff-pin--below:hover .ad-ff-pop,
.ad-studio-root .annotated-img .ad-ff-pin--below:focus-visible .ad-ff-pop {
  transform: translateX(-50%) translateY(0) scale(1);
}

.ad-studio-root .annotated-img .ad-ff-pin--below .ad-ff-pop::after {
  top: -8px;
  bottom: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 0;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

@media (hover: none) {
  .ad-studio-root .annotated-img .ad-ff-pin:hover .ad-ff-pop {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px) scale(0.97);
    pointer-events: none;
  }

  .ad-studio-root .annotated-img .ad-ff-pin--below:hover .ad-ff-pop {
    transform: translateX(-50%) translateY(-4px) scale(0.97);
  }

  .ad-studio-root .annotated-img .ad-ff-pin.is-open .ad-ff-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ad-studio-root .annotated-img .ad-ff-pin--below.is-open .ad-ff-pop {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .ad-studio-root .annotated-img .ad-ff-pin:not(.ad-ff-pin--below).is-open .ad-ff-pop {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.ad-studio-root .decision {
  margin: var(--as-lg) 0 var(--as-sm);
  padding: var(--as-lg) var(--as-xl);
  background: var(--ink);
  color: var(--bg-warm);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--as-md);
  align-items: center;
}

.ad-studio-root .decision-label {
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-right: var(--as-md);
  border-right: 1px solid #3a3633;
}

.ad-studio-root .decision-body {
  font-size: var(--type-lede);
  line-height: var(--type-lede-lh);
  color: var(--bg-warm);
  font-weight: 400;
}

.ad-studio-root .decision-body strong {
  color: white;
  font-weight: 600;
}

.ad-studio-root .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--as-xl);
  margin: var(--case-stack) 0 var(--as-lg);
}

.ad-studio-root .two-col h4 {
  margin-top: 0;
}

.ad-studio-root .two-col p {
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
}

.ad-studio-root .jtbd {
  margin: var(--case-stack) 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.ad-studio-root .jtbd-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule-soft);
}

.ad-studio-root .jtbd-row:last-child {
  border-bottom: none;
}

.ad-studio-root .jtbd-key {
  padding: var(--as-md);
  background: #ffffff;
  border-right: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ad-studio-root .jtbd-val {
  padding: var(--as-md) var(--as-lg);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--ink);
}

.ad-studio-root .jtbd-val strong {
  font-weight: 600;
}

.ad-studio-root .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--as-sm);
  margin: var(--case-stack) 0 var(--as-lg);
}

.ad-studio-root .stat-card {
  padding: var(--as-md) var(--as-lg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
}

.ad-studio-root .stat-card .stat-eyebrow {
  font-family: var(--sans);
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--as-sm);
}

.ad-studio-root .stat-card .stat-num {
  font-family: var(--sans);
  font-size: var(--type-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--as-sm);
}

.ad-studio-root .stat-card .stat-num span.unit {
  font-size: 0.5em;
  color: var(--ink-muted);
  margin-left: var(--as-tight);
}

.ad-studio-root .stat-card .stat-desc {
  font-size: var(--type-body-size);
  color: var(--ink-soft);
  line-height: var(--type-body-lh);
  margin: 0;
}

@media (max-width: 880px) {
  .ad-studio-root .process {
    grid-template-columns: 1fr 1fr;
  }

  .ad-studio-root .compare.cols-3 .compare-head,
  .ad-studio-root .compare.cols-3 .compare-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ad-studio-root .two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ad-studio-root .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ad-studio-root .decision {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ad-studio-root .decision-label {
    border-right: none;
    border-bottom: 1px solid #3a3633;
    padding-right: 0;
    padding-bottom: 8px;
  }

  .ad-studio-root .jtbd-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ad-studio-root .process {
    grid-template-columns: 1fr;
  }
}

/* ── Hero: IA-style full-bleed strip above title (Information Architecture refresh pattern). ── */
body.page-ad-studio .as-hero-fullbleed {
  width: 100%;
  box-sizing: border-box;
  padding-top: clamp(var(--ad-space-md, 1.5rem), 3.5vw, var(--ad-space-xl, 2.5rem));
  background: var(--hero-strip-bg, #000000);
  overflow-x: visible;
  overflow-y: visible;
}

body.page-ad-studio .as-hero-fullbleed .hero-strip {
  margin: 0 0 clamp(2rem, 3.5vw, 2.75rem);
  padding-top: max(0px, env(safe-area-inset-top));
  padding-bottom: clamp(2rem, 3.5vw, 2.75rem);
  padding-left: max(1.35rem, env(safe-area-inset-left));
  padding-right: max(1.35rem, env(safe-area-inset-right));
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--hero-strip-bg, #000000);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  border-radius: 0;
}

body.page-ad-studio .as-hero-fullbleed .hero-strip-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 2vw, 2rem);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

body.page-ad-studio .as-hero-fullbleed .hero-strip img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: min(424px, 29.7vw);
  height: clamp(276px, 29.7vw, 445px);
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  border: none;
  scroll-snap-align: center;
}

/* ── Hero carousel: editorial “stage” — flat motion (no 3D / filters on focus), soft vignette, pill rail. ── */
body.page-ad-studio .as-hero-fullbleed .hero-strip.hero-strip--carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  overflow-x: visible;
  overflow-y: visible;
  scroll-snap-type: none;
  margin: 0 0 clamp(2rem, 3.5vw, 2.75rem);
  padding-top: calc(max(0px, env(safe-area-inset-top)) + clamp(1rem, 2.5vw, 1.65rem));
  padding-bottom: calc(clamp(2rem, 3.8vw, 3rem) + clamp(0.5rem, 1.5vw, 1rem));
  padding-left: max(1.35rem, env(safe-area-inset-left));
  padding-right: max(1.35rem, env(safe-area-inset-right));
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background-color: var(--hero-strip-bg, #000000);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 22%, transparent 48%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  border-radius: 0;
}

body.page-ad-studio .hero-strip-carousel-view {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-block: 0.25rem 0.1rem;
  padding-inline: 0;
  overflow-x: clip;
  overflow-y: visible;
  /* Reserve vertical space so the row never reads as “empty” while assets load. */
  min-height: clamp(200px, min(28.2vw, 52vh), 432px);
}

body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-inner {
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.75rem, 2.1vw, 1.6rem);
  overflow: visible;
  transition: transform 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 901px) {
  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-inner {
    width: max-content;
    max-width: none;
  }
}

body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide,
body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel img.hero-strip-slide {
  display: block;
  flex: 0 0 auto;
  position: relative;
  width: auto;
  max-width: min(392px, min(28.5vw, calc(100vw - 10rem)));
  height: clamp(200px, min(28.2vw, 52vh), 432px);
  object-fit: contain;
  object-position: center top;
  box-sizing: border-box;
  border-radius: 14px;
  background: #ffffff;
  transform-origin: center center;
  transition:
    opacity 0.4s ease-out,
    transform 0.48s cubic-bezier(0.22, 1, 0.32, 1),
    box-shadow 0.48s ease-out;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.32);
  filter: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide:not(.is-active) {
  opacity: 0.58;
  transform: scale(0.94);
  z-index: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide:not(.is-active):hover {
  opacity: 0.66;
  transform: scale(0.952);
  filter: none;
}

body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide.is-active:hover,
body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide.is-active:focus-visible {
  transform: scale(1);
  filter: none;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 48px -12px rgba(100, 160, 255, 0.12);
}

body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide.is-active,
body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel img.hero-strip-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  max-width: min(452px, min(34vw, calc(100vw - 8rem)));
  height: clamp(220px, min(30.5vw, 55vh), 468px);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 48px -12px rgba(100, 160, 255, 0.12);
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}

/* Pair mode: two consecutive “center” frames — each card slightly narrower so both read clearly. */
body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel.hero-strip--pair-center .hero-strip-slide.is-active,
body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel.hero-strip--pair-center img.hero-strip-slide.is-active {
  max-width: min(400px, min(26vw, calc((100vw - 9.5rem) / 2 - 0.55rem)));
  height: clamp(210px, min(29vw, 54vh), 452px);
}

body.page-ad-studio .hero-strip-carousel-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.page-ad-studio .hero-strip-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  box-sizing: border-box;
  opacity: 1;
  transition:
    width 0.38s cubic-bezier(0.22, 1, 0.32, 1),
    min-width 0.38s cubic-bezier(0.22, 1, 0.32, 1),
    border-radius 0.28s ease,
    background 0.32s ease,
    box-shadow 0.32s ease;
}

body.page-ad-studio .hero-strip-dot.is-active {
  width: 26px;
  min-width: 26px;
  border-radius: 99px;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

body.page-ad-studio .hero-strip-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body.page-ad-studio .as-hero-fullbleed .hero-strip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(1.35rem, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip.hero-strip--carousel {
    overflow-x: auto;
    overflow-y: visible;
    align-items: stretch;
    gap: 1rem;
    padding-top: calc(max(0px, env(safe-area-inset-top)) + clamp(0.75rem, 2vw, 1.2rem));
    padding-bottom: calc(clamp(1.5rem, 3.2vw, 2.25rem) + clamp(0.45rem, 1.4vw, 0.85rem));
  }

  body.page-ad-studio .hero-strip-carousel-view {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: visible;
    overflow-y: visible;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide,
  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel img.hero-strip-slide {
    object-fit: contain;
    object-position: center top;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-inner {
    justify-content: flex-start;
    gap: 0.85rem;
    transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide:not(.is-active) {
    transform: scale(0.96);
    opacity: 0.58;
    flex: 0 0 min(70vw, 288px);
    width: min(70vw, 288px);
    max-width: min(76vw, 320px);
    height: clamp(200px, 48vw, 340px);
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide.is-active {
    transform: scale(1);
    flex: 0 0 min(84vw, 392px);
    width: min(84vw, 392px);
    max-width: min(90vw, 420px);
    height: clamp(236px, 54vw, 400px);
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel.hero-strip--pair-center .hero-strip-slide.is-active {
    flex: 0 0 min(40vw, 176px);
    width: min(40vw, 176px);
    max-width: min(44vw, 188px);
    height: clamp(200px, 44vw, 320px);
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip img {
    flex: 0 0 min(90.1vw, 382px);
    width: min(90.1vw, 382px);
    max-width: min(97.5vw, 466px);
    height: clamp(233px, 55.1vw, 403px);
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel {
    scroll-snap-type: none;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide {
    scroll-snap-align: unset;
  }

  body.page-ad-studio .hero-strip-carousel-dots {
    align-self: center;
    margin-inline: auto;
  }
}

body.page-ad-studio .ad-studio-root .ad-hero.ad-section {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

body.page-ad-studio .ad-studio-root .ad-hero.ad-section:first-child {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

body.page-ad-studio .ad-studio-root .ad-hero .ad-eyebrow,
body.page-ad-studio .ad-studio-root .ad-hero .ad-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--ad-space-md);
}

body.page-ad-studio .ad-studio-root .ad-hero .ad-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0;
}

body.page-ad-studio .ad-studio-root .ad-hero.ad-section + #overview.section {
  border-top: none;
  padding-top: var(--case-title-overview-gap);
}

@media (max-width: 900px) {
  body.page-ad-studio .ad-studio-root .ad-hero .ad-eyebrow,
  body.page-ad-studio .ad-studio-root .ad-hero .ad-title {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-ad-studio .as-hero-fullbleed .hero-strip img {
    transition: none;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-inner {
    transition: none;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide {
    transition: none;
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide:not(.is-active) {
    transform: scale(0.94);
  }

  body.page-ad-studio .as-hero-fullbleed .hero-strip--carousel .hero-strip-slide.is-active {
    transform: scale(1);
  }

  body.page-ad-studio .hero-strip-dot {
    transition: none;
  }
}

/* In-page TOC — Ad Studio: drop duplicate 01–12 counters (they match section headers), tighter list. */
body.page-ad-studio .floating-sidebar--ad-studio li::before {
  content: none;
  margin: 0;
}

body.page-ad-studio .floating-sidebar--ad-studio li {
  margin-bottom: 0.32rem;
  line-height: 1.35;
}

body.page-ad-studio .floating-sidebar--ad-studio .rail-label {
  margin-bottom: 0.55rem;
}

body.page-ad-studio .floating-sidebar--ad-studio a {
  padding: 4px 8px 4px 0;
}
