/* Apticove v2. Tokens live in tokens.css (loaded first). Mobile-first; breakpoints 600 / 900 / 1200.
   System (jack rules): type steps 13 / 15 / 17 / 19 / 22 / 30 / xl / h2 / h1 / price; radii 12 / 20 / 28 / 36 / 999 only. */
:root { --panel-radius: 28px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.no-motion { scroll-behavior: auto; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot-ink) var(--dot-radius), transparent 1.4px);
  background-size: var(--dot-pitch) var(--dot-pitch);
}
/* brand glows: orange lower-left, blue upper-right, fixed behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(243,156,47,.30), transparent 70%),
    radial-gradient(ellipse 55% 50% at 100% 0%, rgba(122,170,223,.38), transparent 70%);
}
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- type ---------- */
.h1, .h2, h3 { font-family: var(--font-heading); font-weight: 900; }
.h1 { font-size: clamp(56px, 9vw, 132px); letter-spacing: -.055em; line-height: .95; }
.h2 { font-size: clamp(40px, 6.2vw, 88px); letter-spacing: -.05em; line-height: 1; max-width: 14ch; }
h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.1; }
.serif { display: inline; font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.025em; }
.h1 .serif, .h2 .serif { font-size: 1em; }
.body-l, .lede { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); }
.caption, .small { font-size: 15px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 17px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary::after { content: "→"; color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: rgba(20,20,20,.18); color: var(--text); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light::after { content: "→"; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,244,242,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(20,20,20,.08); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 var(--font-heading); letter-spacing: -.05em; }
.logo img { border-radius: 12px; }
.nav-links { display: none; margin-left: auto; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav .btn { margin-left: 8px; } }
/* nav CTA has no orange arrow: the hero keeps the first viewport to 2 orange marks (eyebrow dot + hero CTA) */
.nav .btn::after { display: none; }
@media (max-width: 599px) { .nav .btn { font-size: 15px; padding: 0 14px; } }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
/* anchor jumps land below the sticky nav. A .sec's own top padding already clears the nav, so it needs no extra margin
   (scroll-margin can't go negative): headings land ~27px (phone) / ~71px (desktop) under the nav */
section[id] { scroll-margin-top: calc(var(--nav-h) + max(3vh, 24px)); }
.sec[id] { scroll-margin-top: 0; }
.sec-head { display: grid; gap: 22px; margin-bottom: 48px; }
.sec-foot { margin-top: 48px; text-align: center; }
.dark { background: var(--primary); color: #fff; }
.dark .body-l, .dark .caption { color: rgba(255,255,255,.72); }
.dark .serif { color: var(--secondary); }
@media (min-width: 900px) { .sec { padding: 104px 0; } }

/* ---------- 01 hero ---------- */
.hero { position: relative; padding-top: 24px; overflow: clip; text-align: center; }
.hero-copy { display: grid; justify-items: center; gap: 12px; }
.hero .h1 { max-width: none; line-height: .9; }
/* serif line -> subline: 24px clear of the "y" descender */
.hero .lede { margin: 18px auto 0; }
/* phones: "Your next 15 ads." holds one line at >90% of the screen width (spec bar rule 1); copy column widened to fit */
@media (max-width: 599px) { .hero-copy { padding: 0 12px; } .hero .h1 { font-size: 13vw; } }
.btns { align-items: center; }
/* one proof line under the CTAs: the free offer + who you deal with, in ink */
.trust { font-size: 15px; font-weight: 600; color: var(--text); text-wrap: balance; }
@media (min-width: 900px) { .trust { font-size: 17px; } }

/* arc: final pose is pure CSS (works with JS off). arc.js only adds --spin on scroll.
   Cards rotate around a pivot below the hero; .arc clips the lower sweep so nothing overlaps the brand row. */
.arc {
  --card-w: min(64vw, 260px); --step: 18.55deg; --pivot: calc(100% + 42vh); --spin: 0deg;
  position: relative; height: calc(var(--card-w) * 1.25 + 56px); margin-top: 12px; overflow: clip;
}
.arc-card {
  --k: 0; --a: calc(var(--k) * var(--step, 18.55deg));
  position: absolute; left: 50%; top: 8px; width: var(--card-w); aspect-ratio: 4 / 5; margin-left: calc(var(--card-w) / -2);
  border-radius: 20px; overflow: hidden; background: #fff;
  /* media floating over paper: one soft shadow + hairline (UI surfaces stay hairline only) */
  box-shadow: 0 0 0 1px rgba(20,20,20,.08), 0 30px 60px -20px rgba(20,20,20,.25);
  transform-origin: 50% var(--pivot); transform: rotate(calc(var(--a) + var(--spin)));
}
/* nearer the center = on top, so outer cards tuck behind their neighbours on both sides */
.arc-card[data-i="0"] { --k: -5; z-index: 1; } .arc-card[data-i="1"] { --k: -4; z-index: 2; } .arc-card[data-i="2"] { --k: -3; z-index: 3; }
.arc-card[data-i="3"] { --k: -2; z-index: 4; } .arc-card[data-i="4"] { --k: -1; z-index: 5; } .arc-card[data-i="5"] { --k: 0; z-index: 6; }
.arc-card[data-i="6"] { --k: 1; z-index: 5; } .arc-card[data-i="7"] { --k: 2; z-index: 4; } .arc-card[data-i="8"] { --k: 3; z-index: 3; }
.arc-card[data-i="9"] { --k: 4; z-index: 2; } .arc-card[data-i="10"] { --k: 5; z-index: 1; } 
.arc-card img, .arc-card video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.arc-card .play { width: 100%; height: 100%; }
.arc-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(20,20,20,.08); color: var(--text);
  font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none;
}
/* one flat 4:5 card for every type: listicles show the top of the page, no phone bezel (round 2 ruling) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) .arc-card { animation: arc-in 2s cubic-bezier(.2,.8,.2,1) calc((var(--k) + 5) * 40ms) backwards; }
}
@keyframes arc-in { from { transform: rotate(-96deg); } }
@media (min-width: 900px) {
  .hero { padding-top: 12px; }
  .hero-copy { gap: 8px; }
  .hero-copy .trust { margin-top: 2px; }
  .hero .lede { margin-top: 12px; }
  /* card scales with screen height so the centre card sits whole above the fold */
  /* air between the proof line and the top of the fan */
  .arc { --card-w: min(290px, 30vh); --pivot: calc(100% + var(--card-w) * 2); /* tied to card size, not vh, so zooming out keeps the shape */ height: calc(var(--card-w) * 1.25 + 40px); margin-top: 30px; }
  .arc-card { top: 2px; }
  .hero .lede { max-width: 60ch; text-wrap: balance; }
  /* outer cards fade into the paper instead of ending as cut-off corners */
  .arc { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
}
/* short desktop screens: keep headline + CTA + most of the center card in the first viewport (H1 stays >= 7x body) */
@media (min-width: 1200px) { .hero .h1 { font-size: clamp(120px, 14vh, 132px); } }

.brands { display: flex; border-top: 1px solid rgba(20,20,20,.08); flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; padding-top: 28px; padding-bottom: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; position: relative; z-index: 3; }
.brands-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* play button wrapping a video */
.play { position: relative; display: block; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.play video { width: 100%; height: 100%; object-fit: cover; }
.play::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23141414'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ---------- 02 chooser: 2x2 big quote cards ---------- */
.chooser .h2 { margin-bottom: 48px; }
.choices { display: grid; gap: 16px; }
.choice {
  position: relative; display: grid; align-content: end; min-height: 280px; padding: 28px; border-radius: var(--panel-radius);
  overflow: hidden; text-decoration: none; color: #fff; background: var(--primary); isolation: isolate;
}
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: -2; transition: transform .4s ease; }
.choice::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,20,20,.94) 22%, rgba(20,20,20,.55) 48%, rgba(20,20,20,0) 72%); }
.choice:hover img { transform: scale(1.04); }
.choice-q { font: 900 clamp(30px, 3.9vw, 56px)/1.02 var(--font-heading); letter-spacing: -.04em; max-width: 12ch; }
.choice-go { margin-top: 14px; font-weight: 700; font-size: 17px; }
.choice-go::after { content: " →"; color: var(--accent); }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } .choice { min-height: 360px; } }
@media (min-width: 1200px) { .choice { min-height: 420px; } }

/* ---------- 03 work ring: 3D spin gallery (spin.js) ---------- */
.spin { --w: clamp(150px, 15vw, 210px); --t: -9.5deg; position: relative; height: calc(var(--w) * 2.2); margin: 8px 0 calc(var(--w) * .4); /* bottom room = front card reflection, so the counter never sits on it */
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none;
  overflow: hidden; /* 3D ring cards escape body's overflow-x:clip and widened phones to 705px */ }
@media (max-width: 599px) { .spin { --w: 40vw; --t: -7deg; height: calc(var(--w) * 2.3); margin-top: 48px; } .spin-bar .spin-title { white-space: normal; } }
.spin.is-drag { cursor: grabbing; }
.spin::before { /* spotlight cone + floor shadow */
  content: ""; position: absolute; inset: -40px 0 0; pointer-events: none;
  background: radial-gradient(ellipse 34% 60% at 50% 0%, rgba(122,170,223,.28), transparent 70%),
              radial-gradient(ellipse 38% 9% at 50% 86%, rgba(20,20,20,.16), transparent 70%); }
.spin-stage { position: absolute; inset: 0; perspective: var(--p, 1100px); perspective-origin: 50% 20%; }
.spin-ring { position: absolute; left: 50%; top: 14%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--r, 500px) * -1)) rotateX(var(--t)) rotateY(var(--a, 0deg)); }
.spin-card { position: absolute; left: calc(var(--w) / -2); top: 0; width: var(--w); aspect-ratio: 4 / 5; margin: 0;
  transform-style: preserve-3d; transform: rotateY(var(--y)) translateZ(var(--r, 500px)) scale(var(--s, 1)); opacity: var(--o, 1); }
.spin-card button { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; height: 100%; cursor: inherit;
  border-radius: 14px; overflow: hidden; background: var(--panel); transform: scaleX(var(--fx, 1)); box-shadow: 0 18px 40px rgba(20,20,20,.22);
  -webkit-box-reflect: below 10px linear-gradient(transparent 64%, rgba(255,255,255,.22)); }
.spin-card button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.spin-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.spin-card button::after { /* shade + sheen, driven per frame */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,var(--sheen, 0)) 0%, transparent 42%), rgba(20,20,20,var(--shade, 0)); }
.spin-card .badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px; border-radius: 99px; background: rgba(20,20,20,.78); color: #fff; font: 700 12px/1 var(--font-body); }
.spin-card .badge::before { content: ""; width: 8px; height: 10px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.spin-card figcaption { display: none; }
.spin-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: 0 16px; text-align: left; }
.spin-count { flex: none; padding-right: .12em; font: 900 clamp(28px, 4vw, 44px)/1 var(--font-heading); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow: hidden; height: 1em; }
.spin-count b { display: inline-block; font-weight: 900; }
.spin-count b.roll { animation: roll .42s cubic-bezier(.2,.8,.2,1); }
.spin-count span { color: var(--muted); font-weight: 400; font-family: var(--font-accent); font-style: italic; }
@keyframes roll { from { transform: translateY(100%); opacity: 0; } }
.spin-info { flex: 1; min-width: 0; }
.spin-title { margin: 0; font: 900 18px/1.15 var(--font-heading); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spin-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.spin-nav { display: flex; gap: 8px; }
.spin-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(20,20,20,.18); background: rgba(255,255,255,.75);
  font: 700 18px/1 var(--font-body); color: var(--text); cursor: pointer; }
.spin-nav button:hover { background: #fff; }
.spin-open { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,20,calc(var(--p, 0) * .72)); }
.spin-open[hidden] { display: none; }
.spin-open img { position: fixed; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); object-fit: cover; }
.spin-open .player-close { position: fixed; top: 16px; right: 16px; opacity: var(--p, 0); }
.spin-card.is-page img, .spin-open.is-page img { object-position: top; }
.spin-card .badge.is-page::before { display: none; }
.spin-card .badge.is-page { padding-left: 10px; }
.statics .sec-head { justify-items: center; text-align: center; margin-bottom: 8px; }
.statics .sec-foot { display: grid; justify-items: center; gap: 18px; margin-top: 36px; }

/* ---------- 04 videos: paper, tabs, feature grid ---------- */
.videos-head { grid-template-columns: 1fr; }
@media (min-width: 900px) { .videos-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 56px; } }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(20,20,20,.18);
  background: rgba(255,255,255,.7); color: var(--text); font: 600 15px/1 var(--font-body); cursor: pointer;
}
.tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.vgrid { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.vid { flex: 0 0 84%; scroll-snap-align: start; }
.vid .play { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; }
.vid figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 15px; }
.vid figcaption span { color: var(--muted); white-space: nowrap; }
@media (min-width: 600px) { .vgrid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; overflow: visible; } }
@media (min-width: 900px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- 05 pages: phone frames in a side rail ---------- */
.phones {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 32px;
  scroll-padding: 0 16px; scrollbar-width: thin;
}
.phone { flex: none; width: 260px; scroll-snap-align: start; }
.phone-screen {
  --sh: 520px; height: var(--sh); overflow-y: auto; border-radius: 36px; border: 10px solid var(--primary); background: #fff;
  box-shadow: var(--tile-shadow); scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen img { width: 100%; height: auto; }
.phone figcaption { padding-top: 14px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.phone figcaption b { display: block; font: 900 22px/1.1 var(--font-heading); letter-spacing: -.03em; color: var(--text); }
@media (min-width: 1000px) { .phones { justify-content: center; overflow: visible; } .phone { width: 300px; } .phone-screen { --sh: 600px; } }
/* the listicle scrolls itself, slowly, there and back; phones out of phase. Calm/JS-off = user scrolls */
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) .phone .phone-screen { overflow: hidden; }
  html:not(.no-motion) .phone .phone-screen img { animation: page-scroll 90s ease-in-out infinite alternate; }
  html:not(.no-motion) .phone:nth-child(2) .phone-screen img { animation-delay: -30s; }
  html:not(.no-motion) .phone:nth-child(3) .phone-screen img { animation-delay: -60s; }
  .phone:hover .phone-screen img { animation-play-state: paused; }
}
@keyframes page-scroll { 0%, 5% { transform: translateY(0); } 95%, 100% { transform: translateY(calc(-100% + var(--sh) - 20px)); } }

/* ---------- 06 match: ad left, page right, connector ---------- */
.match-head { justify-items: center; text-align: center; }
.match-head .h2 { max-width: 16ch; }
/* three ad -> page cases: side-scroll on phones, three columns from 1000px */
.match-cases { display: flex; gap: 16px; margin: 0 -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.match-cases::-webkit-scrollbar { display: none; }
.mcase { flex: none; width: min(82vw, 340px); scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 20px 18px 22px; border-radius: 24px; background: rgba(255,255,255,.6); border: 1px solid rgba(20,20,20,.1); }
.mcase-tag { justify-self: start; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.match-ad, .match-page { width: 100%; margin: 0; }
.match-page { max-width: 240px; }
.match-ad img { border-radius: 16px; box-shadow: var(--tile-shadow); }
.match-page .phone-screen { --sh: 400px; }
.mcase figcaption { display: grid; gap: 2px; padding-top: 10px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.3; text-wrap: balance; }
.mcase figcaption span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 1000px) {
  .match-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .mcase { width: auto; }
}
.match-line { width: 40px; height: 80px; transform: rotate(90deg); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.match-line path { stroke-dasharray: 1; }
.match-line.draw path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) .2s; }
.match-line.draw.in path { stroke-dashoffset: 0; }
.match-points { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.match-points li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(20,20,20,.1); }
}

/* ---------- 07 process: numbered steps, text + artifact ---------- */
/* phones / calm: one hairline card per day, output under a hairline (no inner box), day strip on top */
.strip { display: flex; flex-wrap: wrap; align-items: center; margin: -8px 0 8px; font-size: 17px; font-weight: 700; }
.strip a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; }
/* the strip sits above Day 1, so Day 1 is the current day: ink underline, no extra orange */
.strip a:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.strip a + a::before { content: "›"; margin-right: 10px; color: var(--muted); font-weight: 400; }
.strip a + a { margin-left: 6px; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: grid; gap: 16px; padding: 20px; border-radius: 20px; background: #fff;
  border: 1px solid rgba(20,20,20,.10); counter-increment: step; scroll-margin-top: calc(var(--nav-h) + 16px);
}
/* numeral + title on one baseline, body under both */
.step-text { display: grid; grid-template-columns: 32px 1fr; align-items: baseline; column-gap: 10px; }
.step-text::before { content: "0" counter(step); font: 900 22px/1 var(--font-heading); letter-spacing: -.03em; color: var(--accent); }
.step-day { font: 900 22px/1.15 var(--font-heading); letter-spacing: -.03em; }
.step-body { grid-column: 1 / -1; margin-top: 6px; color: var(--muted); max-width: 30em; }
.step-art { padding-top: 16px; border-top: 1px solid rgba(20,20,20,.10); }
.step-art img { border-radius: 12px; width: 100%; }
.step[data-step="4"] .step-art img { max-height: 420px; width: auto; margin: 0 auto; }
.card-note { display: grid; gap: 0 20px; font-size: 17px; }
.note-title { display: block; grid-column: 1 / -1; font: 700 13px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
/* artifacts: quotes and notes in Instrument Serif italic, labels in Inter */
.quotes li, .script p:not(.note-title), .angles dd { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.35; }
.quotes li, .script p:not(.note-title) { padding: 8px 0; border-top: 1px solid rgba(20,20,20,.08); }
.quotes li:first-child, .script .note-title + p { border-top: 0; padding-top: 0; }
.angles { display: grid; gap: 10px; }
.angles div { display: grid; align-content: start; gap: 2px; padding-top: 10px; border-top: 1px solid rgba(20,20,20,.08); }
.angles div:first-child { border-top: 0; padding-top: 0; }
.angles dt { font-size: 15px; font-weight: 700; color: var(--muted); }
.card-note:has(.note-thumb) { grid-template-columns: 1fr 96px; align-items: start; }
.note-thumb img { border-radius: 12px; border: 1px solid rgba(20,20,20,.10); }
.note-thumb figcaption { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.process-foot { display: grid; gap: 10px; margin-top: 28px; max-width: 60ch; }
.deliver { font-size: 17px; color: var(--text); text-wrap: pretty; }
.deliver b { font-weight: 700; }
.tools { font-size: 15px; color: var(--muted); }
@media (min-width: 600px) { .card-note:has(.note-thumb) { grid-template-columns: 1fr 180px; } }
@media (min-width: 900px) {
  .step { grid-template-columns: 5fr 7fr; gap: 48px; padding: 40px; align-items: center; }
  .step-art { padding-top: 0; border-top: 0; }
}
/* Pinned case: only when data-active is set (>= 900px, motion allowed; inline script + process.js).
   Left column = heading, step list, deliverables. Right column = a white output panel, absolutely placed beside them
   (containing block .process-body), top-aligned with step 01 and sized to its content. */
:root { --nav-h: 69px; }
@media (min-width: 900px) {
  .process[data-active] { height: 600vh; padding: 0; }
  .process[data-active] > .wrap {
    /* container units let the panel size itself against the wrap from inside .process-body */
    container-type: inline-size; --gap: 56px; --left: calc((100cqw - var(--gap)) * 5 / 12);
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--nav-h) + 24px); padding-bottom: 24px;
  }
  .process[data-active] .strip { display: none; }
  .process[data-active] .process-head, .process[data-active] .steps, .process[data-active] .process-foot { width: var(--left); }
  .process[data-active] .process-head { margin-bottom: 24px; }
  .process[data-active] .h2 { font-size: clamp(30px, 3.9vw, 56px); max-width: none; }
  .process[data-active] .h2 .serif { display: block; }
  .process[data-active] .process-body { position: relative; }
  .process[data-active] .steps { gap: 0; }
  .process[data-active] .step { display: block; padding: 12px 0 12px 20px; border: 0; border-left: 2px solid rgba(20,20,20,.12); border-radius: 0; background: none; position: static; }
  /* inactive: #5F5F66 (~5.6:1 on paper). Only the active step opens its body row: all six don't fit at 1280x800 or 1440x900 */
  .process[data-active] .step-text { grid-template-rows: auto 0fr; row-gap: 0; transition: grid-template-rows .45s ease-in-out, row-gap .45s ease-in-out; }
  .process[data-active] .step-text::before { font-size: 17px; letter-spacing: 0; color: #5F5F66; transition: color .45s ease-in-out; }
  .process[data-active] .step-day { color: #5F5F66; font-weight: 600; transition: color .45s ease-in-out; }
  .process[data-active] .step-body { grid-column: 2; align-self: stretch; min-height: 0; margin: 0; overflow: hidden; color: #5F5F66; }
  .process[data-active] .step-art {
    position: absolute; top: 0; left: calc(var(--left) + var(--gap)); width: calc(100cqw - var(--left) - var(--gap));
    display: flex; flex-direction: column; padding: 40px;
    background: #fff; border: 1px solid rgba(20,20,20,.10); border-radius: 20px; /* UI surface: hairline only */
    opacity: 0; translate: 0 26px; pointer-events: none;
    transition: opacity .5s ease-in-out, translate .5s ease-in-out;
  }
  .process[data-active] .step-art.card-note { display: grid; }
  .process[data-active] .step-art img { width: auto; max-width: 100%; max-height: min(46vh, 440px); margin: 0 auto; object-fit: contain; border-radius: 12px; }
  .process[data-active] .card-note:has(.note-thumb) { grid-template-columns: 1fr 200px; }
  .process[data-active] .quotes li, .process[data-active] .script p:not(.note-title) { font-size: 30px; line-height: 1.25; padding: 12px 0; }
  .process[data-active] .quotes li:first-child, .process[data-active] .script .note-title + p { padding-top: 0; }
  /* active step: one rule per step keeps the CSS free of JS-written classes. Only the active numeral and bar are orange */
  .process[data-active="1"] .step:nth-child(1),
  .process[data-active="2"] .step:nth-child(2),
  .process[data-active="3"] .step:nth-child(3),
  .process[data-active="4"] .step:nth-child(4),
  .process[data-active="5"] .step:nth-child(5),
  .process[data-active="6"] .step:nth-child(6) {
    border-left-color: var(--accent);
    border-image: linear-gradient(var(--accent) calc(var(--t, 0) * 100%), rgba(20,20,20,.12) 0) 1;
  }
  .process[data-active="1"] .step:nth-child(1) > *,
  .process[data-active="2"] .step:nth-child(2) > *,
  .process[data-active="3"] .step:nth-child(3) > *,
  .process[data-active="4"] .step:nth-child(4) > *,
  .process[data-active="5"] .step:nth-child(5) > *,
  .process[data-active="6"] .step:nth-child(6) > * { opacity: 1; translate: 0 0; }
  .process[data-active="1"] .step:nth-child(1) .step-text,
  .process[data-active="2"] .step:nth-child(2) .step-text,
  .process[data-active="3"] .step:nth-child(3) .step-text,
  .process[data-active="4"] .step:nth-child(4) .step-text,
  .process[data-active="5"] .step:nth-child(5) .step-text,
  .process[data-active="6"] .step:nth-child(6) .step-text { grid-template-rows: auto 1fr; row-gap: 4px; }
  .process[data-active="1"] .step:nth-child(1) .step-day,
  .process[data-active="2"] .step:nth-child(2) .step-day,
  .process[data-active="3"] .step:nth-child(3) .step-day,
  .process[data-active="4"] .step:nth-child(4) .step-day,
  .process[data-active="5"] .step:nth-child(5) .step-day,
  .process[data-active="6"] .step:nth-child(6) .step-day, .process[data-active="1"] .step:nth-child(1) .step-body,
  .process[data-active="2"] .step:nth-child(2) .step-body,
  .process[data-active="3"] .step:nth-child(3) .step-body,
  .process[data-active="4"] .step:nth-child(4) .step-body,
  .process[data-active="5"] .step:nth-child(5) .step-body,
  .process[data-active="6"] .step:nth-child(6) .step-body { color: var(--text); }
  .process[data-active="1"] .step:nth-child(1) .step-day,
  .process[data-active="2"] .step:nth-child(2) .step-day,
  .process[data-active="3"] .step:nth-child(3) .step-day,
  .process[data-active="4"] .step:nth-child(4) .step-day,
  .process[data-active="5"] .step:nth-child(5) .step-day,
  .process[data-active="6"] .step:nth-child(6) .step-day { font-weight: 900; }
  .process[data-active="1"] .step:nth-child(1) .step-text::before,
  .process[data-active="2"] .step:nth-child(2) .step-text::before,
  .process[data-active="3"] .step:nth-child(3) .step-text::before,
  .process[data-active="4"] .step:nth-child(4) .step-text::before,
  .process[data-active="5"] .step:nth-child(5) .step-text::before,
  .process[data-active="6"] .step:nth-child(6) .step-text::before { color: var(--accent); }
}

/* ---------- 08 pricing: big sprint card + tier stack ---------- */
.pricing-head { grid-template-columns: 1fr; }
.anchor { font-size: 19px; color: var(--muted); max-width: 30em; }
.price-grid { display: grid; gap: 20px; }
.sprint { display: grid; gap: 18px; align-content: start; padding: 36px 28px; border-radius: 28px; }
.sprint-name { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.sprint-price { font: 900 clamp(96px, 14vw, 180px)/.85 var(--font-heading); letter-spacing: -.06em; padding-bottom: .1em; }
.pilot { display: inline-block; justify-self: start; padding: 8px 14px; border-radius: 999px; background: rgba(122,170,223,.18); color: #fff; font-weight: 700; font-size: 15px; }
.ticks { display: grid; gap: 12px; margin: 8px 0 12px; font-size: 19px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary); font-weight: 900; }
.sprint-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sprint-cta .guarantee { flex: 1 1 240px; max-width: 34ch; font-size: 17px; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.82); }
.after { display: grid; gap: 14px; align-content: start; }
.after-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tiers { display: grid; gap: 12px; }
.tier { position: relative; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid rgba(20,20,20,.1); }
.tier-price { margin-top: 6px; font-size: 19px; font-weight: 600; }
/* raised: wider than its siblings, thicker ink hairline (no drop shadow) */
.tier.is-picked { margin: 6px 0; padding: 28px 34px; border: 2px solid var(--primary); }
@media (min-width: 900px) { .tier.is-picked { margin: 6px -10px; } }
.tier.is-picked h3 { font-size: 30px; }
.tag { position: absolute; top: 18px; right: 18px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--primary); font-size: 13px; font-weight: 800; }
.addon { padding: 22px 24px; border-radius: 20px; background: var(--panel); border: 1px dashed rgba(20,20,20,.25); }
.addon p { margin-top: 6px; color: var(--muted); }
.addon-price { font-size: 22px; font-weight: 900; color: var(--text) !important; }
.addon-price span { font-size: 15px; font-weight: 600; color: var(--muted); }
/* scorecard closes the right column, so the section ends with the Sprint card instead of a stray line below it */
.scorecard { margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(20,20,20,.12); font-size: 17px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .pricing { padding-bottom: 72px; } }
@media (min-width: 900px) {
  .pricing-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; }
  .price-grid { grid-template-columns: 6fr 5fr; gap: 28px; }
  .sprint { padding: 52px 48px; }
}

/* ---------- 09 team: two big portrait cards ---------- */
.team .h2 { margin-bottom: 48px; max-width: 20ch; }
.founders { display: grid; gap: 24px; }
.founder { display: grid; gap: 22px; padding: 20px; border-radius: 28px; background: #fff; border: 1px solid rgba(20,20,20,.08); }
.founder > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--panel); }
.founder h3 { font-size: 30px; }
.role { margin-top: 4px; font-weight: 600; color: var(--muted); }
.proof-label { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.proof li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid rgba(20,20,20,.08); font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.proof .badge-top { color: #fff; background: var(--primary); border-color: var(--primary); }
.trust a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.founder blockquote { margin: 18px 0; font-family: var(--font-editorial); font-size: 19px; line-height: 1.35; }
.founder cite { display: block; margin-top: 10px; font: 400 15px/1.4 var(--font-body); font-style: normal; color: var(--muted); }
@media (min-width: 600px) { .founder { grid-template-columns: 200px 1fr; align-items: start; } }
@media (min-width: 900px) { .founders { grid-template-columns: 1fr 1fr; } .founder { grid-template-columns: 1fr; padding: 24px; } }
@media (min-width: 1200px) { .founder { grid-template-columns: 220px 1fr; } }

/* ---------- 10 faq: heading left, accordion right ---------- */
.faq-in { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid rgba(20,20,20,.15); }
.faq details { border-bottom: 1px solid rgba(20,20,20,.15); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0;
  font: 800 19px/1.25 var(--font-body); letter-spacing: -.02em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 30px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }

/* ---------- 11 spec: copy + form card ---------- */
.spec { position: relative; overflow: clip; }
.spec::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 0% 100%, rgba(243,156,47,.35), transparent 70%);
}
.spec-in { display: grid; gap: 40px; }
.spec-copy { display: grid; gap: 22px; align-content: start; }
.spec-card { padding: 28px 22px; border-radius: 28px; background: #fff; border: 1px solid rgba(20,20,20,.1); }
#spec-form { display: grid; gap: 18px; }
#spec-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
#spec-form input, #spec-form select, #spec-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(20,20,20,.18);
  background: var(--bg); font: 400 17px/1.4 var(--font-body); color: var(--text);
}
#spec-form textarea { min-height: 96px; resize: vertical; }
#spec-form input:focus, #spec-form select:focus, #spec-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 600; line-height: 1.45; background: var(--panel); border: 1px solid rgba(20,20,20,.14); }
.form-msg.is-ok { border-color: var(--secondary); background: color-mix(in srgb, var(--secondary) 12%, var(--panel)); }
.form-msg.is-err { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--panel)); }
.form-msg a { font-weight: 800; }
#spec-form button:disabled { opacity: .6; cursor: progress; transform: none; }
.alt-contact { margin-top: 16px; text-align: center; font-size: 15px; color: var(--muted); }
.alt-contact a { color: var(--text); font-weight: 700; }
@media (min-width: 900px) { .spec-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .spec-card { padding: 40px; } }

/* ---------- footer ---------- */
.foot { padding: 48px 0; border-top: 1px solid rgba(20,20,20,.1); font-size: 15px; }
.foot-in { display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; } /* thumb-sized tap target */
.foot-links a, .foot a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.copy { color: var(--muted); }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px; } .foot-links { justify-content: center; } }

/* ---------- breakpoints for nav ---------- */
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------- video modal ---------- */
.player { --ar: 16 / 9; width: min(92vw, calc(84vh * (var(--ar)))); max-width: none; padding: 0; border: 0; border-radius: 20px; background: #000; color: #fff; overflow: visible; }
.player::backdrop { background: rgba(10,10,10,.82); }
.player video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); border-radius: 20px; background: #000; object-fit: contain; }
.player-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #fff; color: var(--primary); font: 700 22px/1 var(--font-body); cursor: pointer; }
.player-error { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(20,20,20,.92); font-size: 17px; font-weight: 600; text-align: center; }
.player-credit { margin: 0; padding: 10px 4px 0; font-size: 14px; color: #fff; text-align: center; }
.player-credit[hidden] { display: none; }
.player-error[hidden] { display: none; }

/* ---------- work.html: library ---------- */
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.work-hero { padding: 56px 0 40px; }
.work-hero-in { display: grid; justify-items: start; gap: 24px; }
.library { padding-bottom: 72px; }
.lib-tabs { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: 32px; border-radius: 999px; background: #fff; border: 1px solid rgba(20,20,20,.12); }
.lib-tab { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 700 17px/1 var(--font-body); cursor: pointer; }
.lib-tab[aria-selected="true"] { background: var(--primary); color: #fff; }
@media (max-width: 400px) { .lib-tab { padding: 0 14px; font-size: 15px; } }
.lib-head { display: grid; gap: 10px; margin-bottom: 28px; padding: 22px 24px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(20,20,20,.1); }
.lib-title { font: 900 30px/1.05 var(--font-heading); letter-spacing: -.03em; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.chips-label { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(20,20,20,.18); background: rgba(255,255,255,.7); color: var(--text); font: 600 15px/1 var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.lib-grid { display: grid; gap: 20px; margin-top: 28px; }
.lib-grid.is-tall { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.lcard { min-width: 0; }
.lcard .play { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; }
.is-tall .lcard .play { aspect-ratio: 9 / 16; border-radius: 20px; }
.lcard figcaption { display: grid; gap: 2px; padding-top: 10px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.lcard figcaption span { font-size: 15px; color: var(--muted); }
.lcard .credit { font-size: 13px; }
.lib-foot { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
.work-cta { background: var(--panel); }
.work-cta-in { display: grid; justify-items: center; gap: 22px; text-align: center; }
@media (min-width: 600px) {
  .lib-grid.is-wide { grid-template-columns: 1fr 1fr; }
  .lib-grid.is-tall { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .chips-label { width: auto; margin-right: 8px; }
}
@media (min-width: 900px) {
  .work-hero { padding: 88px 0 56px; }
  .lib-grid.is-wide { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .lib-grid.is-tall { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) { .lib-grid.is-tall { grid-template-columns: repeat(5, 1fr); } }

/* ---------- 04b reference library (homepage) ---------- */
.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; }
.styles-head { justify-items: start; }
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(20,20,20,.12); }
.lib-q, .lib-set { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(20,20,20,.18); background: rgba(255,255,255,.8); color: var(--text); font: 400 15px/1 var(--font-body); }
.lib-q { flex: 1 1 220px; max-width: 320px; }
.lib-tools .lib-count { margin-left: auto; }
.lcard .play { box-shadow: 0 10px 28px rgba(20,20,20,.14); }
.vid .play { box-shadow: var(--tile-shadow); }
.ref-note { margin-top: 28px; max-width: 60em; }
@media (min-width: 900px) { .styles-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 56px; } .styles-head .eyebrow { grid-column: 1 / -1; } }
.ref-block { margin-top: 72px; padding-top: 56px; border-top: 1px solid rgba(20,20,20,.14); }
.brand-logo { height: 52px; width: auto; }
.brand-logo[src*="yours"] { height: 34px; }
@media (min-width: 900px) { .brands { gap: 14px 56px; } .brand-logo { height: 64px; } .brand-logo[src*="yours"] { height: 40px; } }
/* phones: reference library + its filters scroll sideways instead of 8 screens of grid */
@media (max-width: 599px) {
  .ref-block .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .ref-block .chips::-webkit-scrollbar, .ref-block .lib-grid::-webkit-scrollbar { display: none; }
  .ref-block .chip { flex: none; }
  .ref-block .lib-grid.is-tall { display: flex; gap: 12px; margin: 20px -16px 0; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .ref-block .lib-grid .lcard { flex: none; width: 46vw; scroll-snap-align: start; }
  .ref-block .lib-foot { margin-top: 20px; }
}
/* phones: videos stack top to bottom, 4 shown until "Show all" (JS off = all shown, button stays hidden) */
.vmore-wrap { display: none; }
@media (max-width: 599px) {
  .vgrid { display: grid; gap: 22px; margin: 0; padding: 0; overflow: visible; }
  .vid { flex: none; }
  .vgrid.is-capped:not(.is-open) .vid:nth-child(n+5) { display: none; }
  .vmore-wrap { display: flex; justify-content: center; margin-top: 24px; }
  .vgrid.is-open + .vmore-wrap { display: none; }
}
/* brand logos: left-to-right ticker at every width; static wrapped row under reduced motion */
.brands-track, .brands-row { display: contents; }
.brands-row[aria-hidden], .brand-logo.dup { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) .brands { display: block; text-align: center; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  html:not(.no-motion) .brands-label { display: block; margin-bottom: 16px; }
  html:not(.no-motion) .brands-track { display: flex; width: max-content; margin: 0 -16px; animation: brands-ltr 32s linear infinite; }
  html:not(.no-motion) .brands-row, html:not(.no-motion) .brands-row[aria-hidden] { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
  html:not(.no-motion) .brand-logo.dup { display: block; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) .brands-row, html:not(.no-motion) .brands-row[aria-hidden] { gap: 72px; padding-right: 72px; }
  html:not(.no-motion) .brands-track { animation-duration: 40s; }
}
@keyframes brands-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
