/* ==========================================================================
   Henry Houpert, concept "denney" (modeled on the daradenney.com system)
   TOKEN PLAN
   Colors (5): --blue (bands, header, footer), --citron (every primary ask),
               --cream (content bands, form), --paper (page), --ink (text + rules)
   Type: Instrument Serif (display, lowercase, italic first line)
         Hanken Grotesk 400/500/600 (UI, body, caps labels)
   Scale: 14 / 17 / 22 / 30 / 44 / 72 / clamp(48..132) hero
   Spacing: 8px base; band padding clamp(64px, 9vw, 120px)
   Radius: 0 on buttons and media, 12px on inputs, 999px on the pill
   Shadow: one hard offset 4px 4px 0 ink, buttons only
   Layout concept: the ruled page. A 1400px column framed by 1px ink rules
   runs the full height of the site, like a printed spread.
   ========================================================================== */

:root {
  --blue: #0d58a6;
  --blue-deep: #0a4785;
  --citron: #f6ea4c;
  --cream: #fcf6d8;
  --paper: #fffdf5;
  --ink: #15140f;
  --ink-soft: #4a473c;
  --on-blue: #fffdf5;
  --rule: 1px solid var(--ink);
  --frame: 1400px;
  --inset: clamp(20px, 6.5vw, 118px);
  --band: clamp(64px, 9vw, 120px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible { outline-color: var(--citron); }

.serif { font-family: var(--serif); font-weight: 400; }
.caps {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 15px;
}
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- The ruled frame ---------- */
.frame {
  width: min(100% - 2 * clamp(14px, 4vw, 40px), var(--frame));
  margin-inline: auto;
  border-left: var(--rule);
  border-right: var(--rule);
  position: relative;
}
.inner { padding-inline: var(--inset); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 26px;
  border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  cursor: pointer; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.btn--citron { background: var(--citron); }
.btn--cream { background: #f4f1e6; }
.btn--blue { background: var(--blue); color: var(--on-blue); }
.btn--ghost { box-shadow: none; background: transparent; }
.btn--ghost-citron { box-shadow: none; background: transparent; color: var(--citron); border-color: var(--citron); }
.btn--wide { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .btn--ghost:hover, .btn--ghost-citron:hover { transform: none; box-shadow: none; }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .btn--ghost-citron:hover { background: var(--citron); color: var(--ink); }
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue); color: var(--on-blue);
  border-bottom: 1px solid var(--ink);
}
.site-header .bar {
  width: min(100% - 2 * clamp(14px, 4vw, 40px), var(--frame)); margin-inline: auto;
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  min-height: 44px;
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--sans); font-weight: 400; font-size: 19px; letter-spacing: .16em; text-transform: uppercase;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="true"], .nav a:hover { border-bottom-color: currentColor; }
.header-cta { min-height: 42px; padding: 8px 16px; font-size: 14px; box-shadow: none; background: var(--citron); color: var(--ink); }
@media (hover: hover) { .header-cta:hover { box-shadow: 3px 3px 0 var(--ink); } }
.menu-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; cursor: pointer; color: var(--on-blue); }
.menu-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #dfe7ec url("assets/img/hero_backdrop.jpg") center 40% / cover no-repeat;
}
.hero::before {
  /* pale haze so the serif reads like Dara's sky, tuned to Venice light */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(214, 230, 244, .92) 0%, rgba(228, 237, 243, .8) 42%, rgba(246, 240, 224, .6) 100%);
}
.hero .frame { min-height: min(900px, calc(100svh - 76px)); display: grid; grid-template-rows: auto 1fr; }
.hero-h1 {
  position: relative; z-index: 2;
  font-family: var(--serif); font-size: clamp(46px, 8.6vw, 124px); line-height: .92;
  letter-spacing: -.02em; text-wrap: balance;
  padding: clamp(36px, 4.6vw, 64px) var(--inset) 0;
  text-align: center;
}
.hero-h1 em { font-style: italic; display: block; }
.hero-h1 span { display: block; }
.hero-body {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px;
  padding: clamp(28px, 3.4vw, 48px) var(--inset) 0;
}
.hero-left { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; }
.hero-hello { position: absolute; top: 0; right: 0; z-index: 2; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 31px); line-height: 1.2; text-align: right; }
.hero-right { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 44px; }
.hero-intro { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 31px); line-height: 1.22; }
.hero-intro p + p { margin-top: 1.05em; }
.hero-intro .hello-m { display: none; }
.hero-intro .hello-m + p { margin-top: .2em; }
.hero-ctas { display: grid; gap: 16px; margin-top: 34px; max-width: 420px; }
.hero-portrait {
  position: relative; z-index: 1; display: block;
  width: min(100%, 380px); height: auto; margin-top: 8px;
  margin-left: calc(-1 * var(--inset) + clamp(0px, 3vw, 48px));
  filter: saturate(.96); pointer-events: none;
}
.hero-meta {
  position: relative; z-index: 2; margin-top: 26px;
  font-size: 14px; color: var(--ink-soft); max-width: 420px;
}

/* ---------- Blue statement band ---------- */
.band-blue { background: var(--blue); color: var(--on-blue); }
.band-blue .frame { padding-block: var(--band); text-align: center; }
.kicker { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 1.3vw, 19px); }
.statement { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; max-width: 19ch; margin: 10px auto 0; text-wrap: balance; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin: clamp(40px, 5vw, 64px) auto 0; }
.trio figure { margin: 0; }
.trio img, .trio video { width: 100%; aspect-ratio: 1.06 / 1; object-fit: cover; background: var(--blue-deep); }
.trio figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .02em; text-align: left; opacity: .85; }
.band-blue .lede { max-width: 600px; margin: clamp(32px, 4vw, 48px) auto 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }
.band-blue .btn--ghost-citron { margin-top: 36px; }

/* ---------- Expect band ---------- */
.band-cream { background: var(--cream); }
.expect { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
.expect h2 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.expect h2 + p { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin-top: 1.1em; color: var(--ink-soft); }
.expect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; font-size: clamp(17px, 1.4vw, 21px); }
.expect li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
.expect li b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.3em; color: var(--blue); }

/* ---------- Section titles ---------- */
.sec-title { text-align: center; font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.015em; }
.sec-title em { font-style: italic; }
.sec-sub { text-align: center; max-width: 620px; margin: 18px auto 0; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-soft); }

/* ---------- Previous work (case studies) ---------- */
.work-head { padding-block: var(--band) clamp(40px, 5vw, 64px); }
.case { border-top: var(--rule); padding-block: clamp(48px, 6vw, 88px); }
.case:nth-of-type(even) { background: var(--cream); }
.case-top { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: baseline; }
.case-num { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--blue); }
.case-name { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; text-wrap: balance; }
.case-meta { grid-column: 2; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(32px, 4vw, 52px); align-items: start; }
.case-copy h3 { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.case-copy p, .case-copy li { font-size: 17px; line-height: 1.6; max-width: 62ch; }
.case-copy ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.case-copy section + section { margin-top: 26px; }
.result {
  margin-top: 30px; padding: 22px 0 0; border-top: var(--rule);
}
.case-copy .result-line { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; text-wrap: balance; }
.result-line mark { background: linear-gradient(transparent 58%, var(--citron) 58%); color: inherit; padding: 0 .05em; }
.case-copy .result-cond { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.src { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 8px; }
.case-copy .caveat { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--ink-soft); max-width: 46ch; }

/* charts */
.chart { --chart-bg: var(--paper); margin: 0; background: var(--chart-bg); border: var(--rule); padding: clamp(18px, 2.2vw, 30px); }
.case:nth-of-type(even) .chart { --chart-bg: #fffdf2; }
.chart-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.chart-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.chart svg { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.chart figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(21, 20, 15, .35); font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.chart text { font-family: var(--sans); fill: var(--ink); }
.chart .lbl { font-size: 13px; }
.chart .val { font-family: var(--serif); font-size: 22px; }
.chart .val-sm { font-family: var(--serif); font-size: 18px; }
.chart .axis { stroke: var(--ink); stroke-width: 1; }
.chart .grid { stroke: rgba(21, 20, 15, .16); stroke-width: 1; }
.chart .tick { font-size: 12px; fill: var(--ink-soft); }
.chart .bar { fill: var(--blue); }
.chart .bar--hi { fill: var(--citron); stroke: var(--ink); stroke-width: 1; }
.chart .bar--base { fill: rgba(21, 20, 15, .18); }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .ref { stroke: var(--ink); stroke-dasharray: 5 5; stroke-width: 1.2; }
.chart .dot { fill: var(--paper); stroke: var(--blue); stroke-width: 2.5; }
.chart .dot--hi { fill: var(--citron); stroke: var(--ink); }
.chart .svg-narrow, .legend-narrow { display: none; }
.legend-narrow { font-size: 13px; margin-top: 8px; align-items: center; gap: 8px; }
.legend-narrow i { width: 26px; border-top: 1.4px dashed var(--ink); }
.chart .svg-narrow .lbl { font-size: 14px; }
.chart .svg-narrow .tick { font-size: 13px; }
.chart .svg-narrow .val { font-size: 25px; }
.chart .svg-narrow .val-sm { font-size: 21px; }

/* HTML bar charts: widths are the real ratios, so they stay to scale at every width */
.hchart { margin-top: 20px; display: grid; gap: 14px; }
.hrow { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 12px; }
.hlab { font-size: 13.5px; text-align: right; line-height: 1.2; }
.htrack {
  position: relative; height: 24px;
  background-image: repeating-linear-gradient(90deg, rgba(21,20,15,.14) 0 1px, transparent 1px var(--grid, 100%));
  background-size: calc(100% - 1px) 100%; background-repeat: no-repeat;
  border-right: 1px solid rgba(21,20,15,.14);
}
.hchart:not(.hchart--pair) .htrack::after {
  content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--ref); border-left: 1.4px dashed var(--ink);
}
.hbar, .hbar--hi, .hbar--base { position: absolute; left: 0; top: 2px; bottom: 2px; display: block; }
.hbar { background: var(--blue); }
.hbar--range { background: rgba(13, 88, 166, .32); }
.hbar--hi { background: var(--citron); outline: 1px solid var(--ink); outline-offset: -1px; }
.hbar--base { background: rgba(21, 20, 15, .22); }
.hval { z-index: 2; background: var(--chart-bg); padding: 2px 4px; position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1; }
.hval--out { left: calc(var(--at) + 4px); }
.hval--in { right: calc(100% - var(--at) + 4px); border: 1px solid var(--ink); }
.hrow--axis { margin-top: -4px; }
.htrack--axis { height: 16px; background: none; border: 0; }
.htrack--axis::after { display: none; }
.htrack--axis span { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; color: var(--ink-soft); }
.hgroup + .hgroup { margin-top: 22px; }
.hgroup-h { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid rgba(21,20,15,.2); font-size: 13.5px; }
.hgroup-h span { color: var(--ink-soft); font-size: 12.5px; text-align: right; }
.hchart--pair { margin-top: 10px; gap: 8px; }
.hchart--pair .hrow { grid-template-columns: 54px 1fr; }
.hchart--pair .htrack { background: none; border-right: 0; border-left: 1px solid var(--ink); }


/* creative row */
.made { margin-top: clamp(36px, 4.5vw, 60px); }
.made-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: var(--rule); padding-bottom: 10px; margin-bottom: 20px; }
.made-head { flex-wrap: wrap; }
.made-head h3 { text-wrap: balance; line-height: 1.1; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); }
.made-head p { font-size: 13px; color: var(--ink-soft); }
.ads { display: grid; align-items: start; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.ads figure { margin: 0; }
.ads img { width: 100%; height: auto; border: var(--rule); background: #e9e6da; }
.ads figcaption { font-size: 13px; margin-top: 8px; line-height: 1.4; }

/* funnel diagram */
.funnel { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; counter-reset: step; }
.funnel li { list-style: none; position: relative; padding: 18px 16px 18px 0; border-top: 2px solid var(--ink); }
.funnel li::before { counter-increment: step; content: counter(step, lower-roman) "."; display: block; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--blue); }
.funnel li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.funnel li.is-key::after { background: var(--citron); }
.funnel strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; margin-top: 4px; }
.funnel span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }
.funnel { padding: 0; margin: 0; }


/* ---------- Ad tiles (own ad videos) ---------- */
.adrow { display: grid; gap: clamp(14px, 2vw, 28px); align-items: start; }
.adrow--3 { grid-template-columns: repeat(3, 1fr); }
.adrow--4 { grid-template-columns: repeat(4, 1fr); }
.adrow--vitru { grid-template-columns: 1fr 1.778fr 1fr; }
.adrow--top { margin-top: clamp(28px, 3.4vw, 44px); }
.adtile { margin: 0; }
.adtile-media { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--ink); background: #111; overflow: hidden; cursor: pointer; }
div.adtile-media { cursor: default; }
.adtile-media img, .adtile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adtile-media .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 60px; height: 60px; border-radius: 50%; background: var(--citron); border: 1px solid var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s var(--ease); z-index: 2; }
.adtile-media .play svg { width: 20px; height: 20px; margin-left: 3px; }
@media (hover: hover) { button.adtile-media:hover .play { transform: scale(1.06); } }
.adtile-media .snd { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(21,20,15,.82); color: var(--paper); font-size: 12px; letter-spacing: .03em; padding: 3px 7px; }
.adtile-media.is-playing .snd, .adtile-media.is-playing .play { display: none; }
.adtile-media.is-playing video { object-fit: contain; background: #000; }
.adtile figcaption { margin-top: 10px; }
.adtile figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--ink); padding: 2px 7px; line-height: 1.5; }

/* ---------- VITRU catalog: ruled product grid ---------- */
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--rule); border-left: var(--rule); background: #fff; }
.catalog figure { margin: 0; border-right: var(--rule); border-bottom: var(--rule); padding: 10px 10px 12px; }
.catalog img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.catalog figcaption { font-family: var(--serif); font-size: 19px; line-height: 1.1; margin-top: 2px; }

/* ---------- Revenue split ---------- */
.split { margin-top: 22px; }
.split-bar { display: flex; height: 64px; border: 1px solid var(--ink); }
.split-bar i { display: flex; align-items: flex-end; padding: 8px 10px; font-style: normal; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.split-a { background: var(--citron); border-right: 1px solid var(--ink); }
.split-b { background: var(--blue); color: var(--paper); }
.split-legend { display: grid; grid-template-columns: 2fr 1fr; margin-top: 14px; gap: 12px; }
.split-legend p { font-size: 14px; color: var(--ink-soft); }
.split-legend b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; color: var(--ink); }

/* ---------- Landing page frames ---------- */
.case-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.frames { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.frames figure { margin: 0; }
.frames figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.browser { border: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.browser-bar { height: 30px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--cream); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); }
.browser figcaption { padding: 0 12px 12px; }
.scroller { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #fff; }
.scroller img { width: 100%; height: auto; display: block; }
.browser .scroller { height: clamp(360px, 42vw, 560px); }
.phone .scroller { height: 520px; border: 10px solid var(--ink); border-radius: 34px; }


/* ---------- v2: hero proof line ---------- */
.proof-line { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 18px; font-size: 13.5px; letter-spacing: .01em; }
.proof-line span { white-space: nowrap; }
.proof-line span + span::before { content: "\00b7"; margin: 0 8px; color: var(--ink-soft); }

/* ---------- v2: work strip in the blue band ---------- */
.svc-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 22px 0 0; padding: 0; font-size: 15px; }
.svc-row b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 20px; margin-right: 6px; color: var(--citron); }
.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-top: clamp(32px, 4vw, 48px); text-align: left; }
.strip-tile { display: block; text-decoration: none; color: inherit; }
.strip-media { position: relative; display: block; aspect-ratio: 9 / 16; border: 1px solid var(--ink); background: var(--blue-deep); overflow: hidden; }
.strip-media img, .strip-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip-cap { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.3; opacity: .92; }
.strip-cap b { display: block; font-weight: 600; }
@media (hover: hover) { .strip-tile:hover .strip-media { outline: 2px solid var(--citron); outline-offset: 2px; } }

/* ---------- v2: case 01 process ---------- */
.case-intro { max-width: 760px; margin-top: clamp(28px, 3.4vw, 44px); }
.process { list-style: none; counter-reset: pstep; margin: clamp(28px, 3.4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.process li { counter-increment: pstep; padding: 16px 18px 0 0; }
.process li + li { padding-left: 18px; border-left: 1px solid rgba(21,20,15,.25); }
.process li::before { content: counter(pstep, lower-roman) "."; display: block; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--blue); line-height: 1; }
.process b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; margin-top: 6px; }
.process span { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.adrow--5 { grid-template-columns: repeat(5, 1fr); }
.adrow--cert { grid-template-columns: 1fr 1fr 2fr; }
.adrow--5 .adtile figcaption b { font-size: 19px; }
.case-grid--result { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- v2: work with me (citron) ---------- */
.band-citron .quiet { margin-top: 18px; font-size: 15px; }
.band-citron .quiet a { color: var(--ink); text-underline-offset: 3px; }
.paths-mini { display: grid; gap: 22px; }
.paths-mini h3 { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.paths-mini p { margin-top: 6px; font-size: 17px; max-width: 48ch; }


/* ---------- v3 ---------- */
@media (max-width: 1380px) { .proof-line { flex-direction: column; gap: 3px; } .proof-line span + span::before { content: none; } }
.hero-face { display: none; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.adtile--static .adtile-media { background: #fff; cursor: default; }
.adtile--static .adtile-media img { object-fit: contain; }
.tag-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px auto 0; padding: 0; max-width: 820px; }
.tag-row li { border: 1px solid rgba(255,253,245,.7); padding: 5px 12px; font-size: 14px; letter-spacing: .02em; }
.browser--static img { display: block; width: 100%; height: auto; }
.browser--static { margin-bottom: clamp(20px, 2.6vw, 32px); }
.case-intro .result-line { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; }
.case-intro .result-line mark { background: linear-gradient(transparent 58%, var(--citron) 58%); color: inherit; }
.channel .kicker { text-align: center; }


/* ---------- v4: visual results ---------- */
.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 20px; }
.hero-stats p { display: grid; }
.hero-stats b { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.hero-stats span { font-size: 13.5px; letter-spacing: .02em; color: var(--ink-soft); margin-top: 4px; }

.story { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: clamp(22px, 2.6vw, 34px); font-family: var(--serif); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.2; }
.story i { font-style: normal; color: var(--blue); }
.story .story-end { background: linear-gradient(transparent 58%, var(--citron) 58%); }
.story--plain { display: block; }
.tags--role { margin-top: 16px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 24px); margin-top: clamp(24px, 3vw, 36px); }
.tiles--one { grid-template-columns: minmax(0, 360px); }
.tile { border: var(--rule); background: var(--paper); padding: 18px 20px 16px; }
.case:nth-of-type(even) .tile { background: #fffdf2; }
.tile-num { font-family: var(--serif); font-size: clamp(42px, 4.4vw, 64px); line-height: .95; letter-spacing: -.01em; }
.tile-lab { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
.mini { display: grid; gap: 5px; margin-top: 16px; }
.mini-row { display: block; height: 10px; }
.mini-row i { display: block; height: 100%; }
.mini-b { background: rgba(21,20,15,.25); }
.mini-a { background: var(--blue); }
.tile-ba { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.tile-ba span:last-child { color: var(--ink); font-weight: 600; }
.tile-note { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }

.chart--case { margin-top: clamp(24px, 3vw, 36px); }
.chart .mark { font-size: 13px; font-weight: 600; fill: var(--ink); }

.ladder { margin: clamp(24px, 3vw, 36px) 0 0; border: var(--rule); background: var(--paper); padding: 18px 20px; }
.ladder-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; }
.ladder-row + .ladder-row { margin-top: 10px; }
.ladder-lab { font-size: 14px; }
.ladder-track { display: block; height: 28px; }
.ladder-track i { display: block; height: 100%; min-width: 3px; }
.ladder-hi { background: rgba(21,20,15,.2); }
.ladder-a { background: var(--blue); }
.ladder-row b { font-family: var(--serif); font-weight: 400; font-size: 26px; text-align: right; }
.ladder figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; }

.ba { margin-top: clamp(24px, 3vw, 36px); border: var(--rule); background: var(--paper); }
.ba-head, .ba-row { display: grid; grid-template-columns: 1.3fr 1fr 40px 1fr; align-items: center; }
.ba-head { border-bottom: var(--rule); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ba-head span { padding: 10px 20px; }
.ba-head span:first-child { grid-column: 2; color: #a3412f; }
.ba-head span:last-child { grid-column: 4; color: #2f7a45; }
.ba-row { padding: 14px 20px; }
.ba-row + .ba-row { border-top: 1px solid rgba(21,20,15,.15); }
.ba-lab { font-size: 15px; }
.ba-before, .ba-after { font-family: var(--serif); font-size: clamp(36px, 3.8vw, 56px); line-height: 1; padding-left: 0; }
.ba-before { color: #a3412f; }
.ba-after { color: #2f7a45; }
.ba-arrow { color: var(--ink-soft); font-size: 22px; text-align: center; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; counter-reset: fl; }
.flow li { font-size: 14px; border: 1px solid var(--ink); padding: 4px 10px; }
.flow li + li::before { content: "\2192"; margin-right: 8px; color: var(--blue); }

.brands { border-top: var(--rule); border-bottom: var(--rule); padding: clamp(28px, 3.4vw, 44px) 0; overflow: hidden; background: var(--paper); }
.brands-h { text-align: center; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.marquee { display: flex; margin-top: clamp(24px, 3vw, 36px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); margin: 0; padding: 0 clamp(24px, 3vw, 44px); flex: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { width: auto; display: block; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 24px; width: 100%; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Channel (Henry Hoops) ---------- */
.channel .frame { padding-block: var(--band); }
.channel .sec-title { color: var(--on-blue); }
.channel .sec-sub { color: rgba(255, 253, 245, .86); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(36px, 4vw, 56px) var(--inset) 0; border-top: 1px solid rgba(255, 253, 245, .5); border-bottom: 1px solid rgba(255, 253, 245, .5); }
.stats div { padding: 22px 12px; text-align: center; }
.stats div + div { border-left: 1px solid rgba(255, 253, 245, .5); }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.stats span { display: block; margin-top: 6px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.stats-src { text-align: center; font-size: 12.5px; margin-top: 10px; opacity: .8; }
.reel { max-width: 980px; margin: clamp(36px, 4vw, 56px) auto 0; width: calc(100% - 2 * var(--inset)); position: relative; border: 1px solid var(--ink); background: #0b0b0b; }
.reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reel-tag { position: absolute; left: 12px; bottom: 12px; background: var(--citron); color: var(--ink); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--ink); }
.reel-toggle { position: absolute; right: 12px; bottom: 12px; min-height: 44px; min-width: 44px; padding: 6px 12px; background: rgba(255, 253, 245, .92); border: 1px solid var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; color: var(--ink); }

.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: clamp(48px, 6vw, 80px) var(--inset) 22px; border-bottom: 1px solid rgba(255, 253, 245, .55); padding-bottom: 12px; text-align: left; }
.sub-head h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.sub-head p { font-size: 14px; opacity: .85; max-width: 46ch; text-align: right; }

.vids { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 32px); margin-inline: var(--inset); text-align: left; }
.vid h4 { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; margin-top: 12px; }
.vid p { font-size: 13.5px; opacity: .85; margin-top: 4px; }

.lite {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--ink);
  background: #000 center / cover no-repeat; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden;
}
.lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; background: var(--citron); border: 1px solid var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.lite .play svg { width: 22px; height: 22px; margin-left: 4px; }
@media (hover: hover) { .lite:hover img { transform: scale(1.03); } .lite:hover .play { transform: scale(1.06); } }
.lite--short { aspect-ratio: 9 / 16; }
.lite .hover-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease); }
.lite.is-previewing .hover-loop { opacity: 1; }
.lite .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(21,20,15,.85); color: var(--paper); font-size: 12px; padding: 2px 6px; letter-spacing: .02em; }
.vids--4 { grid-template-columns: repeat(4, 1fr); }
.vids--4 .vid h4 { font-size: 18px; }
.lite--short video, .lite--short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.shorts { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 18px); margin-inline: var(--inset); text-align: left; }
.shorts .vid h4 { font-size: 17px; }

.sponsors { margin: clamp(40px, 5vw, 64px) var(--inset) 0; display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; border-top: 1px solid rgba(255, 253, 245, .55); padding-top: 26px; text-align: left; }
.sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.sponsors li { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1; }

.coc { background: var(--blue-deep); }
.coc-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--inset) 26px; text-align: left; gap: 0; }
.coc-facts div { padding: 6px 16px 6px 0; }
.coc-facts div + div { padding-left: 16px; border-left: 1px solid rgba(255, 253, 245, .4); }
.coc-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.coc-facts span { font-size: 13.5px; opacity: .88; }

/* ---------- Work with me ---------- */
.wwm-head { padding-block: var(--band) clamp(36px, 4vw, 56px); }
.wwm-head h2 { font-family: var(--serif); font-size: clamp(48px, 6.4vw, 92px); line-height: .95; }
.wwm-head .wwm-line { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; margin-top: 18px; max-width: 26ch; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 4vw, 56px); }
.paths h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.35; }
.paths p { margin-top: 10px; max-width: 46ch; }
.form-wrap { border-top: var(--rule); padding-block: clamp(48px, 6vw, 88px); background: var(--paper); }
.form-box { background: var(--cream); border: var(--rule); border-radius: 18px; padding: clamp(24px, 4vw, 52px); max-width: 980px; margin-inline: auto; }
.form-box h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.form-box > p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 500; }
.field label small, .field legend small { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(21, 20, 15, .55); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2315140f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.field .err { font-size: 13.5px; color: #a3261a; min-height: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.submit { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); min-height: 50px; padding: 10px 24px; font-size: 16px; font-weight: 500; cursor: pointer; border-radius: 0; }
@media (hover: hover) { .submit:hover { background: var(--blue); } }
.form-micro { font-size: 13.5px; color: var(--ink-soft); max-width: 52ch; }
.route { margin-top: 26px; border: var(--rule); background: var(--paper); padding: 22px 24px; }
.route[hidden] { display: none; }
.route h4 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.route p { margin-top: 8px; max-width: 60ch; }
.route .route-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* ---------- Citron band ---------- */
.band-citron { background: var(--citron); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.citron-grid { width: min(100% - 2 * clamp(14px, 4vw, 40px), var(--frame)); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(56px, 6vw, 84px) 0; }
.citron-grid h2 { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); line-height: 1.04; max-width: 13ch; }
.citron-cta { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.citron-cta .glyph { font-size: 26px; line-height: 1; }
.citron-grid p { font-size: clamp(17px, 1.4vw, 19px); max-width: 48ch; }
.citron-grid p + p { margin-top: 1em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); color: var(--on-blue); position: relative; }
.about-wrap { background: var(--cream); }
.about-wrap .frame { border-right: 0; }
.about-copy { padding: clamp(110px, 12vw, 150px) var(--inset) clamp(56px, 7vw, 96px); position: relative; }
.pill {
  position: absolute; top: clamp(36px, 5vw, 60px); left: calc(-1 * clamp(14px, 4vw, 40px) - 1px);
  background: var(--paper); color: var(--ink); border: var(--rule); border-left: 0;
  border-radius: 0 999px 999px 0; padding: 18px clamp(28px, 4vw, 64px) 18px calc(clamp(14px, 4vw, 40px) + var(--inset));
  font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1; white-space: nowrap;
}
.pill em { font-style: italic; }
.about-copy .kicker { margin-top: 12px; }
.about-copy p.body { margin-top: 14px; font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }
.about-copy .btn { margin-top: 34px; }
.about-more { margin-top: 26px; max-width: 48ch; font-size: 16.5px; }
.about-more[hidden] { display: none; }
.about-more p + p { margin-top: .9em; }
.about-photo { margin: 0; position: relative; min-height: 520px; border-left: 1px solid var(--ink); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Useful band ---------- */
.useful { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding-block: clamp(56px, 7vw, 96px); }
.useful h2 { font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); line-height: 1.05; }
.useful .btn { margin-top: 30px; }
.useful dl { margin: 0; display: grid; gap: 16px; }
.useful dt { font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.useful dd { margin: 2px 0 0; font-size: 17px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--on-blue); border-top: 1px solid var(--ink); }
.site-footer .wrap { width: min(100% - 2 * clamp(14px, 4vw, 40px), var(--frame)); margin-inline: auto; padding: clamp(56px, 6vw, 84px) 0 clamp(48px, 6vw, 80px); }
.foot-top { display: flex; justify-content: space-between; gap: 30px; }
.foot-line { font-size: clamp(17px, 1.5vw, 21px); text-transform: uppercase; letter-spacing: .01em; line-height: 1.4; }
.foot-mark { width: 64px; height: 64px; flex: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 28px; margin-top: 34px; font-size: 14px; }
.foot-cols h4 { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--citron); text-underline-offset: 3px; }
.foot-cta { margin-top: 48px; }
.foot-cta p { font-size: 18px; margin-bottom: 16px; }
.foot-cta .btn { width: 100%; box-shadow: none; }
.foot-fine { margin-top: 34px; font-size: 12.5px; opacity: .78; max-width: 80ch; }

/* ---------- Motion setup (only when JS + motion allowed) ---------- */
.js.motion .hero-h1 em, .js.motion .hero-h1 span { will-change: transform; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .shorts { grid-template-columns: repeat(3, 1fr); }
  .shorts .vid:nth-child(n+4) { display: none; }
  .ads { grid-template-columns: repeat(2, 1fr); }
  .adrow--4 { grid-template-columns: repeat(2, 1fr); }
  .adrow--5 { grid-template-columns: repeat(3, 1fr); }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
  .catalog { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; background: var(--blue); border-top: 1px solid rgba(255, 253, 245, .35); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav ul { list-style: none; margin: 0 auto; padding: 8px 0 20px; width: min(100% - 28px, var(--frame)); }
  .mobile-nav a { display: block; padding: 14px 4px; font-family: var(--serif); font-size: 30px; text-decoration: none; border-bottom: 1px solid rgba(255, 253, 245, .25); }
  .mobile-nav .btn { margin-top: 18px; width: 100%; font-family: var(--sans); font-size: 16px; border-bottom: 1px solid var(--ink); }

  .hero .frame { min-height: 0; display: block; }
  .hero-h1 { text-align: left; font-size: clamp(42px, 11.5vw, 72px); padding-top: 36px; }
  .hero-body { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .hero-left { display: none; }
  .hero-face { display: block; order: -2; width: 60%; max-width: 260px; height: auto; margin: 0 auto 18px; }
  .hero-hello { display: none; }
  .hero-intro .hello-m { display: block; }
  .hero-ctas { order: -1; margin: 0 0 28px; max-width: none; }
  .hero-right { display: flex; flex-direction: column; padding-bottom: 40px; }
  .hero-portrait { width: min(82%, 400px); margin: 30px auto 0; }
  .hero-meta { max-width: none; }

  .trio { grid-template-columns: 1fr; max-width: 460px; }
  .expect, .case-grid, .paths, .citron-grid, .useful { grid-template-columns: 1fr; }
  .case-top { grid-template-columns: 1fr; }
  .case-meta { grid-column: 1; }
  .funnel { grid-auto-flow: row; }
  .funnel li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 22px 26px; }
  .funnel li::after { top: 4px; left: -7px; }
  .funnel li::before { display: inline; margin-right: 8px; font-size: 20px; }
  .funnel strong { display: inline; }
  .vids { grid-template-columns: 1fr; }
  .adrow--3, .adrow--4, .adrow--5, .adrow--cert { grid-template-columns: repeat(2, 1fr); }
  .adrow--cert .adtile:nth-child(3) { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:nth-child(3) { grid-column: 1 / -1; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--inset)); padding-inline: var(--inset); padding-bottom: 6px; }
  .strip-tile { flex: 0 0 38%; scroll-snap-align: start; }
  .adrow--3:not(.adrow--brow) .adtile:nth-child(3) { grid-column: 1 / -1; max-width: 50%; }
  .frames { grid-template-columns: 1fr; }
  .phone { max-width: 260px; margin-inline: auto; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .split-legend { grid-template-columns: 1fr 1fr; }
  .vids--4 { grid-template-columns: 1fr 1fr; }
  .vids--4 .vid h4 { font-size: 16px; }
  .shorts { grid-template-columns: repeat(2, 1fr); }
  .shorts .vid:nth-child(n+4) { display: block; }
  .shorts .vid:nth-child(n+5) { display: none; }
  .stats { margin-inline: 0; }
  .sponsors { grid-template-columns: 1fr; }
  .coc-facts { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .coc-facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .sub-head { flex-direction: column; align-items: flex-start; }
  .made-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sub-head p { text-align: left; }
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 4 / 4.4; border-left: 0; border-top: 1px solid var(--ink); }
  .about-wrap .frame { border-right: var(--rule); }
  .foot-top { flex-direction: column-reverse; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .tiles { grid-template-columns: 1fr; }
  .story { display: block; }
  .story i { display: none; }
  .story span { display: block; }
  .story i + span::before { content: "\2192\00a0"; color: var(--blue); }
  .story .story-end { display: inline; }
  .chart .svg-narrow .tick { font-size: 15px; }
  .chart .svg-narrow .mark { font-size: 15px; }
  .ladder-row { grid-template-columns: 1fr 64px; }
  .ladder-track { grid-column: 1 / -1; order: 3; height: 20px; }
  .ba-head, .ba-row { grid-template-columns: 1fr 28px 1fr; }
  .ba-row { padding: 12px 14px; }
  .ba-head span { padding: 10px 14px; }
  .ba-lab { grid-column: 1 / -1; margin-bottom: 6px; }
  .ba-head span:first-child { grid-column: 1; }
  .ba-head span:last-child { grid-column: 3; }
  .ba-before, .ba-after { font-size: 34px; }
  .hero-stats b { font-size: 34px; }
  .adtile figcaption b { font-size: 18px; }
  .adrow--vitru { grid-template-columns: 1fr 1fr; }
  .adrow--vitru .adtile:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding-left: 0; border-left: 0; }
  .proof-line { flex-direction: column; gap: 4px; font-size: 14px; }
  .proof-line span + span::before { content: none; }
  .adtile-media .play { width: 50px; height: 50px; }
  .split-legend b { font-size: 26px; }
  .adrow--3:not(.adrow--brow) .adtile:nth-child(3) { max-width: calc(50% - 7px); }
  .chart .svg-wide { display: none; }
  .chart .svg-narrow { display: block; }
  .legend-narrow { display: flex; }
  .hchart:not(.hchart--pair) .hrow { grid-template-columns: 1fr; gap: 4px; }
  .hchart:not(.hchart--pair) .hlab { text-align: left; }
  .hrow--axis .hlab { display: none; }
  .hchart:not(.hchart--pair) .htrack::after { top: -1px; bottom: -1px; }
  .hval { font-size: 18px; }
  .fields { grid-template-columns: 1fr; }
  .stats b { font-size: 36px; }
  .stats span { font-size: 12px; letter-spacing: .02em; }
  .stats div { padding: 16px 4px; }
  .ads { gap: 10px; }
  .wordmark { font-size: 16px; letter-spacing: .12em; }
  .pill { font-size: 28px; }
  .reel-tag { font-size: 12px; }
  .hide-sm { display: none; }
  .chart .val { font-size: 20px; }
}

/* short store captures: frame hugs the image instead of leaving white space */
.browser .scroller.scroller--short { height: auto; max-height: clamp(360px, 42vw, 560px); }

/* hero order (2026-10-23): headline, photo, subtext, buttons, stats on every width */
.hero-right .hero-intro + .hero-ctas { margin-top: 26px; }
.hero-right .hero-ctas + .hero-stats { margin-top: 22px; }
@media (max-width: 900px) {
  .hero .hero-right .hero-face { order: 0; margin: 0 auto 18px; }
  .hero .hero-right .hero-intro, .hero .hero-right .hero-ctas, .hero .hero-right .hero-stats, .hero .hero-right .text-link { order: 0; }
  .hero .hero-right .hero-ctas { margin: 22px 0 0; }
  .hero .hero-right .hero-stats { margin-top: 22px; }
}

/* ---------- v6 (2026-10-23) ---------- */
.adrow--adu { grid-template-columns: repeat(3, 1fr); }
.frames { grid-template-columns: minmax(0, 640px) 260px; justify-content: center; align-items: center; }
@media (max-width: 900px) { .frames { grid-template-columns: 1fr; justify-items: center; } .frames .browser { width: 100%; } .phone { margin-inline: auto; } }
.coc-case { padding: 8px var(--inset); text-align: left; }
.coc-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,253,245,.5); padding-bottom: 12px; }
.coc-name { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.coc-role { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.coc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(24px, 3vw, 36px); align-items: start; }
.yt-card { margin: 0; background: #fff; color: #0f0f0f; border-radius: 12px; padding: 18px 20px 14px; font-family: Roboto, Arial, var(--sans); }
.yt-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #e5e5e5; padding-bottom: 10px; }
.yt-tab { font-size: 14px; font-weight: 500; border-bottom: 2px solid #0f0f0f; padding-bottom: 9px; margin-bottom: -11px; }
.yt-sub { font-size: 13px; color: #606060; }
.yt-total { font-size: 40px; font-weight: 500; margin-top: 12px; line-height: 1; }
.yt-card svg { width: 100%; height: auto; margin-top: 8px; display: block; }
.yt-axis { stroke: #ccc; stroke-width: 1; }
.yt-fill { fill: rgba(62,166,255,.12); }
.yt-line { fill: none; stroke: #3ea6ff; stroke-width: 3; stroke-linecap: round; }
.yt-dot { fill: #fff; stroke: #3ea6ff; stroke-width: 3; }
.yt-lab { font-size: 18px; font-weight: 600; fill: #0f0f0f; font-family: Roboto, Arial, sans-serif; }
.yt-card figcaption { font-size: 12.5px; color: #606060; margin-top: 6px; }
.coc-tiles { margin-top: 0; grid-template-columns: 1fr; }
.coc-tiles .tile { background: var(--paper); color: var(--ink); }
.coc-tiles .tile-lab { text-transform: none; letter-spacing: 0; font-size: 16px; }
.coc-views { margin-top: 14px; font-size: 14px; opacity: .9; }
.coc .sub-head { margin-inline: 0; }
.coc .vids { margin-inline: 0; }
.tags--light { margin-top: 8px; }
.tags--light li { border-color: rgba(255,253,245,.7); }
@media (max-width: 900px) { .coc-grid { grid-template-columns: 1fr; } }

/* centered hero (hh-denney v6) */
.hero--center .frame { min-height: 0; display: block; text-align: center; }
.hero--center .hero-h1 { text-align: center; }
.hero-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 18px var(--inset) clamp(40px, 5vw, 64px); }
.hero-face-c { width: min(62%, 300px); height: auto; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.hero-intro-c { font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.25; max-width: 34ch; margin-top: 14px; text-wrap: balance; }
.hero-ctas--c { display: grid; gap: 14px; width: min(100%, 420px); margin: 26px auto 0; }
.hero--center .hero-stats { justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.hero--center .hero-stats p { text-align: center; }
@media (max-width: 900px) { .hero--center .hero-h1 { text-align: center; } }
@media (max-width: 1380px) { .hero--center .hero-stats { flex-direction: row; gap: 22px; } }
@media (max-width: 560px) { .hero--center .hero-stats { gap: 16px; } .hero--center .hero-stats b { font-size: 28px; } .hero--center .hero-stats span { font-size: 12px; } }

.hero--center .hero-ctas { order: 0; margin: 26px auto 0; max-width: none; }
.hero--center .hero-h1 { font-size: clamp(42px, 7.4vw, 108px); }
.hero-face-c { width: min(62%, 260px); }

/* ---------- CoC funnel walkthrough (2026-10-23) ---------- */
.funnel-walk { margin-top: clamp(30px, 3.6vw, 48px); }
.funnel-walk .made-head { border-bottom-color: rgba(255,253,245,.5); }
.fsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.fstep { position: relative; }
.fstep-n { position: absolute; top: -10px; left: -6px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: var(--citron); color: var(--ink); border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.fphone { position: relative; aspect-ratio: 9 / 19; border: 6px solid #111; border-radius: 22px; overflow: hidden; background: #fff; color: #0f0f0f; }
.fphone > img, .fphone .lite, .fphone .lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; }
.fphone .lite { aspect-ratio: auto; }
.fphone .lite .play { width: 48px; height: 48px; }
.fstep-cap { margin-top: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.ui-comment { position: absolute; inset: 0; padding: 14px 10px; font-family: Roboto, Arial, sans-serif; background: #fff; }
.ui-pin { font-size: 10.5px; color: #606060; margin-bottom: 6px; }
.ui-row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.ui-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #3ea6ff, #0d58a6); }
.ui-name { font-size: 11px; font-weight: 600; }
.ui-text { font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ui-link { font-size: 12px; color: #065fd4; margin-top: 2px; word-break: break-all; }
.ui-meta { font-size: 10.5px; color: #606060; margin-top: 6px; }
.ui-ghost { height: 10px; border-radius: 5px; background: #eee; margin: 18px 0 0 30px; }
.ui-ghost--s { width: 55%; margin-top: 8px; }
.ui-end { position: absolute; inset: 0; padding: 18px 12px; background: var(--cream); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.ui-end-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ui-end-h { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin-top: 8px; }
.ui-end-p { font-size: 13px; line-height: 1.35; margin-top: 8px; }
.ui-ladder { list-style: none; padding: 0; margin: 14px 0 0; display: flex; justify-content: center; gap: 8px; align-items: flex-end; }
.ui-ladder li { border: 1px solid var(--ink); background: var(--citron); padding: 4px 8px; font-size: 13px; font-weight: 600; }
.ui-ladder li:nth-child(2) { background: none; border: 0; }
@media (max-width: 900px) {
  .fsteps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 6px 8px; margin-inline: -6px; }
  .fstep { flex: 0 0 46%; scroll-snap-align: start; }
}
@media (max-width: 560px) { .fstep { flex-basis: 58%; } }
.funnel-walk .made-head p { color: rgba(255,253,245,.85); }
@media (max-width: 900px) { .fsteps { padding: 14px 4px 8px 10px; margin-inline: 0; } }

.hero-intro-c--2 { margin-top: 8px; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); }
.ui-pin, .ui-meta, .ui-name, .ui-end-k { font-size: 12px; }

/* ---------- v7 (2026-10-23) ---------- */
.adrow--reads { margin-inline: var(--inset); text-align: left; }
.channel .adtile figcaption b { color: var(--on-blue); }
.channel .tags li { border-color: rgba(255,253,245,.7); color: var(--on-blue); }
@media (max-width: 900px) { .adrow--reads { margin-inline: 0; grid-template-columns: repeat(2, 1fr); } }

.hero-h1--inline em, .hero-h1--inline span { display: inline; }
.hero-h1--inline { text-wrap: balance; max-width: 15ch; margin-inline: auto; }
.statement--mme { font-size: clamp(36px, 4.4vw, 64px); max-width: none; }
.svc-grid { list-style: none; margin: clamp(28px, 3.4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1vw, 14px); }
.svc { aspect-ratio: 1; border: 1px solid rgba(255,253,245,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 10px; text-align: center; }
.svc svg { width: 34px; height: 34px; fill: none; stroke: var(--citron); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc span { font-size: 14px; line-height: 1.25; }
.admarq { display: flex; overflow: hidden; margin-top: clamp(32px, 4vw, 52px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.admarq-track { list-style: none; margin: 0; padding: 0 7px; display: flex; gap: 14px; flex: none; animation: marquee 90s linear infinite; }
.admarq:hover .admarq-track { animation-play-state: paused; }
.marq-tile { display: block; width: 150px; text-decoration: none; color: inherit; text-align: left; }
.marq-media { position: relative; display: block; aspect-ratio: 9 / 16; border: 1px solid var(--ink); background: var(--blue-deep); overflow: hidden; }
.marq-media img, .marq-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.marq-cap { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.3; }
@media (hover: hover) { .marq-tile:hover .marq-media { outline: 2px solid var(--citron); outline-offset: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .admarq { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .admarq-track { animation: none; }
  .admarq-track[aria-hidden="true"] { display: none; }
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } .marq-tile { width: 124px; } }
@media (max-width: 560px) { .svc span { font-size: 12.5px; } .svc svg { width: 28px; height: 28px; } .hero-h1--inline { max-width: 12ch; } }
.hero-h1--inline { max-width: 19ch; font-size: clamp(40px, 6.6vw, 96px); }
@media (max-width: 560px) { .hero-h1--inline { max-width: 13ch; } }
.svc svg { width: 40px; height: 40px; }
.svc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc { padding: 8px 6px; gap: 8px; } .svc svg { width: 30px; height: 30px; } .svc span { font-size: 12px; overflow-wrap: anywhere; } }
@media (min-width: 561px) { .hero-h1--inline { max-width: 25ch; } }

/* ---------- v8 ---------- */
.yt-tag { fill: #fff; stroke: #e5e5e5; }
.coc-sq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sq { aspect-ratio: 1; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px; }
.sq-num { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.sq-lab { margin-top: 8px; font-size: 14px; line-height: 1.3; }
.coc-grid { align-items: center; }
.fphone .scroller { position: absolute; inset: 0; height: auto; overflow-y: auto; }
.fphone .scroller img { position: static; width: 100%; height: auto; }
.fstep-sub { font-size: 13px; opacity: .8; margin-top: 2px; }
@media (max-width: 560px) { .coc-sq { gap: 8px; } .sq { padding: 8px; } .sq-num { font-size: 26px; } .sq-lab { font-size: 12px; } }

/* Dropping In row: 4-up desktop, 2x2 phones */
.vids--pod { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .vids--pod { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- v9 hero: underline animation + above the fold ---------- */
.mp { position: relative; display: inline-block; white-space: nowrap; }
.mp svg { position: absolute; left: 0; bottom: -0.06em; width: 100%; height: 0.2em; overflow: visible; pointer-events: none; }
.mp path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mp-sq path { stroke: #E0322B; stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 100; animation: mp-draw .6s ease-out .4s forwards; }
.mp-sq { animation: mp-fade .35s ease-out 1.5s forwards; }
.mp-ok path { stroke: #2E9E5B; stroke-width: 2.2; stroke-dasharray: 100; stroke-dashoffset: 100; animation: mp-draw .5s ease-out 1.6s forwards; }
@keyframes mp-draw { to { stroke-dashoffset: 0; } }
@keyframes mp-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mp-sq { display: none; }
  .mp-ok path { animation: none; stroke-dashoffset: 0; }
}
.hero--center .hero-h1.hero-h1--inline { font-size: clamp(34px, 4.7vw, 70px); line-height: 1.02; max-width: 21ch; padding-top: clamp(18px, 2.4vh, 34px); }
.hero-center { padding-top: clamp(10px, 1.6vh, 18px); padding-bottom: clamp(24px, 4vh, 44px); }
.hero-face-c { width: auto; height: clamp(130px, 22vh, 210px); }
.hero-intro-c { font-size: clamp(17px, 1.55vw, 22px); margin-top: 10px; max-width: 40ch; }
.hero-intro-c--2 { margin-top: 4px; font-size: clamp(15px, 1.3vw, 18px); }
.hero-ctas--c { grid-template-columns: 1fr 1fr; width: min(100%, 440px); margin-top: 18px; gap: 12px; }
.hero-ctas--c .btn { min-height: 48px; padding: 10px 12px; font-size: 15px; white-space: nowrap; }
.hero--center .hero-stats { margin-top: 18px; }
.hero--center .hero-stats b { font-size: clamp(26px, 2.4vw, 36px); }
@media (max-width: 560px) {
  .hero--center .hero-h1.hero-h1--inline { font-size: 34px; max-width: 11ch; }
  .hero-face-c { height: 150px; }
  .hero-intro-c { font-size: 17px; }
  .hero-intro-c--2 { font-size: 15px; }
  .hero-ctas--c { margin-top: 14px; }
}

/* ---------- v9 phone fixes ---------- */
.adtile-media .snd { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.snd-i { width: 14px; height: 14px; flex: none; }
.snd-s { display: none; }
@media (max-width: 900px) {
  .adrow--adu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adrow--3.adrow--adu .adtile:nth-child(3) { grid-column: auto; max-width: none; }
}
@media (max-width: 560px) {
  .snd-l { display: none; }
  .snd-s { display: inline; }
  .adrow--3.adrow--adu .adtile:nth-child(3) { max-width: none; }
}
.hero--center .hero-h1.hero-h1--inline { max-width: 26ch; }
@media (max-width: 560px) { .hero--center .hero-h1.hero-h1--inline { max-width: none; font-size: 35px; padding-inline: 4px; } }
@media (max-width: 560px) { .hero-face-c { height: 190px; } }
@media (max-width: 560px) { .hero--center .hero-stats { flex-wrap: nowrap; gap: 14px; } .hero--center .hero-stats b { font-size: 24px; } .hero--center .hero-stats span { font-size: 12px; } }

/* ---------- v10: case 01 account view ---------- */
.acc-card { margin: 0; background: #fff; border: 1px solid #dadce0; border-radius: 8px; box-shadow: 0 1px 2px rgba(60,64,67,.15); font-family: Roboto, Arial, sans-serif; color: #202124; overflow: hidden; }
.acc-tabs { display: flex; gap: 8px; padding: 14px 16px 0; }
.acc-tab { border: 1px solid #dadce0; background: #fff; color: #3c4043; border-radius: 999px; padding: 8px 18px; min-height: 40px; font: 500 14px/1 Roboto, Arial, sans-serif; cursor: pointer; }
.acc-tab.is-on { background: #e8f0fe; border-color: #d2e3fc; color: #1967d2; }
.acc-tab:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.acc-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding: 12px 16px; background: #f1f3f4; border-top: 1px solid #dadce0; border-bottom: 1px solid #dadce0; font-size: 14px; }
.acc-bar b { font-weight: 500; font-size: 16px; }
.acc-bar span { color: #5f6368; }
.acc-scroll { overflow: hidden; }
.acc-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.acc-table th { text-align: left; font-weight: 500; color: #5f6368; font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid #dadce0; }
.acc-table td { padding: 9px 16px; border-bottom: 1px solid #ebebeb; vertical-align: middle; }
.acc-table .num { text-align: right; width: 22%; font-variant-numeric: tabular-nums; }
.acc-table th.num { width: 22%; }
.acc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acc-name small { display: block; color: #5f6368; font-size: 12px; margin-top: 2px; }
.acc-table--after .acc-name span { white-space: normal; }
.acc-dot { width: 8px; height: 8px; border-radius: 50%; background: #bdc1c6; flex: none; display: inline-block; }
.acc-dot--red { background: #d93025; }
.acc-dot--green { background: #1e8e3e; }
.acc-table tr.is-flag td.num:last-child { color: #d93025; font-weight: 500; }
.acc-key { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; font-size: 12.5px; color: #5f6368; }
.acc-more { display: none; width: 100%; border: 0; border-bottom: 1px solid #ebebeb; background: #fff; color: #1a73e8; font: 500 14px Roboto, Arial, sans-serif; padding: 12px 16px; min-height: 44px; text-align: left; cursor: pointer; }
.acc-card figcaption { padding: 12px 16px; border-top: 1px solid #dadce0; font-size: 13px; color: #5f6368; background: #fafafa; }
.fix-head h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); margin-top: clamp(24px, 3vw, 36px); }
.fixes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.fix { border: var(--rule); background: var(--paper); padding: 18px 18px 20px; position: relative; }
.fix-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--citron); border: 1px solid var(--ink); font-family: var(--serif); font-size: 17px; }
.fix h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin-top: 10px; }
.fix p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 900px) { .fixes { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .acc-table td, .acc-table th { padding-inline: 10px; }
  .acc-table .num, .acc-table th.num { width: 24%; }
  .acc-panel:not(.is-expanded) tr.acc-extra { display: none; }
  .acc-more { display: block; }
}
.acc-card { max-width: 920px; margin-inline: auto; } .acc-block .fix-head, .acc-block .fixes { max-width: 920px; margin-inline: auto; }
.acc-tab { min-height: 44px; min-width: 88px; }
.meta-s { display: none; }
@media (max-width: 560px) { .meta-l { display: none; } .meta-s { display: inline; } }

/* ---------- v12: account dashboard videos ---------- */
.acc-vids { display: grid; gap: clamp(22px, 3vw, 36px); max-width: 960px; margin-inline: auto; }
.acc-vid { margin: 0; }
.acc-vid-label { font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; }
.acc-vid-frame { position: relative; border: 1px solid var(--ink); background: #ececea; overflow: hidden; }
.acc-vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.acc-vid-frame--wide { aspect-ratio: 16 / 9; }
.acc-vid-frame--tall { aspect-ratio: 4 / 5; display: none; }
.acc-vids-cap { max-width: 960px; margin: 12px auto 0; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .acc-vid-frame--wide { display: none; }
  .acc-vid-frame--tall { display: block; }
}

#case-brow .tiles .tile { display: flex; flex-direction: column; justify-content: center; }

/* ---------- v15: stat tiles with direction badges ---------- */
.tile--stat { display: flex; flex-direction: column; justify-content: center; }
.tile-top { display: flex; align-items: center; gap: 12px; }
.dir { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e3f4ea; border: 1px solid #2e9e5b; flex: none; }
.dir svg { width: 14px; height: 14px; fill: none; stroke: #1f7a44; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-small { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.tile--stat .tile-lab { margin-top: 8px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles--4 .tile:nth-child(3) { grid-column: auto; } }
@media (max-width: 560px) {
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles--4 .tile { padding: 14px; }
  .tiles--4 .tile-num { font-size: 34px; }
  .tiles--4 .dir { width: 24px; height: 24px; }
  .tiles--4 .tile-lab { font-size: 12px; }
}

/* ---------- v15: flip-in service tiles ---------- */
.svc-grid { perspective: 900px; }
.svc { padding: 0; border: 0; aspect-ratio: 1; display: block; }
.svc-inner { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.23,1,.32,1); }
.svc-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 10px; text-align: center; border: 1px solid rgba(255,253,245,.55); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.svc-front span { font-size: 14px; line-height: 1.25; }
.svc-back { transform: rotateY(180deg); background: var(--citron); color: var(--ink); border-color: var(--ink); }
.svc-back span { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.15; }
.svc.is-flipped .svc-inner { transform: rotateY(180deg); }
@media (hover: hover) { .svc:hover .svc-inner { transform: rotateY(180deg); } }
.svc-inner:focus-visible { outline: 2px solid var(--citron); outline-offset: 3px; }
.svc-grid.is-armed .svc { opacity: 0; transform: rotateX(90deg); transform-origin: 50% 0; }
.svc-grid.is-armed.is-in .svc { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.23,1,.32,1), opacity .3s ease-out; transition-delay: calc(var(--i) * 70ms); }
@media (max-width: 560px) { .svc-back span { font-size: 15px; } .svc-front span { font-size: 12px; } .svc-face { padding: 8px 6px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .svc-inner, .svc.is-flipped .svc-inner, .svc:hover .svc-inner { transform: none; transition: none; }
  .svc-face { backface-visibility: visible; transition: opacity .2s; }
  .svc-back { transform: none; opacity: 0; }
  .svc.is-flipped .svc-back, .svc:hover .svc-back, .svc-inner:focus .svc-back { opacity: 1; }
  .svc.is-flipped .svc-front, .svc:hover .svc-front, .svc-inner:focus .svc-front { opacity: 0; }
  .svc-grid.is-armed .svc { transform: none; }
  .svc-grid.is-armed.is-in .svc { transition: opacity .4s ease-out; transition-delay: 0s; }
}
.tiles--4 { grid-auto-rows: 1fr; }

/* v15 fix: keep the button (tap target) untransformed; animate inner layers */
.svc-inner { transform: none !important; transition: none; perspective: 900px; }
.svc-in, .svc-rot { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.svc-rot { transition: transform .45s cubic-bezier(.23,1,.32,1); }
.svc.is-flipped .svc-rot { transform: rotateY(180deg); }
@media (hover: hover) { .svc:hover .svc-rot { transform: rotateY(180deg); } }
.svc-grid.is-armed .svc { opacity: 1; transform: none; }
.svc-grid.is-armed .svc-in { opacity: 0; transform: rotateX(90deg); transform-origin: 50% 0; }
.svc-grid.is-armed.is-in .svc { transition: none; }
.svc-grid.is-armed.is-in .svc-in { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.23,1,.32,1), opacity .3s ease-out; transition-delay: calc(var(--i) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .svc-rot, .svc.is-flipped .svc-rot, .svc:hover .svc-rot { transform: none; transition: none; }
  .svc-grid.is-armed .svc-in { transform: none; }
  .svc-grid.is-armed.is-in .svc-in { transition: opacity .4s ease-out; transition-delay: 0s; }
}
