/* Irreplicable — redesign preview
   One stylesheet. Tokens → base → components → sections → responsive. */

:root {
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --gray-2: #86868b;
  --tile: #f5f5f7;
  --hair: #d2d2d7;
  --line: #e8e8ed;
  --white: #ffffff;
  --red: #87301f;
  --red-bright: #a33d28;

  --container: 980px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 12vw, 150px);
  --radius-lg: 26px;
  --radius-md: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 48px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section-gray { background: var(--tile); }
.accent { color: var(--red); }
.center-row { display: flex; justify-content: center; }

.skip-link {
  position: fixed; top: -80px; left: 8px; z-index: 300;
  padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--white);
}
.skip-link:focus { top: 8px; }

/* ---------- Type ---------- */
.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-weight: 600;
  font-size: 20px; line-height: 1; letter-spacing: 0;
}
.eyebrow { font-size: 13px; font-weight: 600; color: var(--gray); letter-spacing: 0; }
h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.042em;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.035em;
}
h3 { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.lede { margin-top: 10px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.4; color: var(--gray); letter-spacing: -0.015em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 22px;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.btn-small { min-height: 34px; padding: 0 16px; font-size: 13px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 500; color: var(--red);
}
.link-arrow::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-row.center { justify-content: center; }

.views {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.views::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.stat, .shot, .node, .tile, .plan, .promise { corner-shape: squircle; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 0 rgb(0 0 0 / 0.07); }
.nav-inner {
  height: 100%;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav .wordmark { font-size: 19px; }
.nav-links { display: flex; gap: 30px; font-size: 12px; color: rgb(29 29 31 / 0.78); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  font-size: 12px; font-weight: 500;
  padding: 5px 13px; border-radius: 999px;
  background: var(--ink); color: var(--white);
}
.nav-cta, .btn { transition: background 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.nav-cta:hover, .btn:hover { background: var(--red); transform: scale(1.04); box-shadow: 0 6px 18px rgb(135 48 31 / 0.28); }
.nav-cta:active, .btn:active { transform: scale(0.98); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 860px);
  padding: calc(var(--nav-h) + 48px) 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero .eyebrow { margin-bottom: 14px; }
.hero-sub { margin: 18px 0 28px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.02em; }
.hero-body { margin: 8px 0 28px; max-width: 400px; color: var(--gray); font-size: 15px; }

.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.hero-disc {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fbfbfd, #ececf0 70%);
}
.hero-phone {
  position: absolute; left: 50%; top: 50%;
  width: 68%;
  translate: -50% -50%;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.14));
}

.stat {
  position: absolute; z-index: 2;
  padding: 12px 16px 13px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.62);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: grid;
  will-change: translate;
}
.stat span { font-size: 11px; font-weight: 600; color: var(--gray); }
.stat strong { margin-top: 2px; font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stat-a { top: 14%; left: -2%; animation: hero-bob 6s ease-in-out infinite; }
.stat-b { top: 44%; right: -4%; animation: hero-bob 7s ease-in-out -2s infinite; }
.stat-c { bottom: 9%; left: 8%; animation: hero-bob 6.5s ease-in-out -4s infinite; }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hero entrance */
.hero-copy > *, .hero-stage { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.hero-stage { animation-delay: 0.2s; animation-duration: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; }

/* ---------- Work: scattered fan ---------- */
.work { position: relative; padding: var(--section) 0; overflow: hidden; }
.work-bg { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 0; pointer-events: none; }
.bg-thumb.bg-mid { box-shadow: 0 16px 30px rgb(0 0 0 / 0.12); }
.bg-thumb {
  position: absolute;
  aspect-ratio: 1; border-radius: 28%;
  background: #ddd center / cover no-repeat;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.08);
  will-change: translate;
}
.work .container, .work .scatter, .work .dots, .work .center-row { position: relative; z-index: 1; }
.shot { will-change: transform, translate; }
.scatter {
  display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 26px);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: 30px 0 56px;
}
.shot {
  position: relative; flex: none;
  width: clamp(140px, 15.5vw, 172px);
  aspect-ratio: 1;
  border-radius: 28%;
  overflow: hidden;
  background: #ddd;
  transform: translateY(var(--y, 0)) rotate(var(--r, 0));
  transition: transform 0.45s var(--ease), opacity 0.6s var(--ease);
  will-change: transform;
}
.shot::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05);
}
.scatter .shot { box-shadow: 0 10px 22px rgb(0 0 0 / 0.1); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); -webkit-user-drag: none; }
.shot::after {
  content: ""; position: absolute; inset: 55% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.55));
  pointer-events: none;
}
.shot .views {
  position: absolute; z-index: 1; left: 15px; bottom: 13px; color: var(--white);
  font-size: 19px; letter-spacing: -0.02em; gap: 5px;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.35);
}
.shot .views::before { width: 18px; height: 18px; }
.shot:hover { transform: translateY(calc(var(--y, 0px) - 10px)) rotate(0deg) scale(1.05); }
.shot:hover img { transform: scale(1.04); }

/* "All work" tile: only in carousel mode */
.shot-more {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--white);
}
.shot-more::after { display: none; }
.more-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 0.12); transition: transform 0.45s var(--ease), background 0.3s; }
.more-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot-more:hover .more-arrow { transform: translateX(4px); background: rgb(255 255 255 / 0.2); }
.more-label { font-size: 14px; font-weight: 600; }

/* Apple-style page dots, shared by the carousels */
.dots { display: none; justify-content: center; gap: 10px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  background: rgb(0 0 0 / 0.22); cursor: pointer;
  transition: background 0.3s;
}
.dots button:hover { background: rgb(0 0 0 / 0.4); }
.dots button.on { background: rgb(0 0 0 / 0.8); }

/* Generic paged carousel (JS adds .is-carousel) */
.is-carousel {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.is-carousel::-webkit-scrollbar { display: none; }
.is-carousel + .dots { display: flex; }
.is-carousel.dragging { scroll-snap-type: none; cursor: grabbing; }
.is-carousel.dragging > * { pointer-events: none; }

/* Work carousel: exactly two per page, each page centred and nothing cut off */
.work { container-type: inline-size; }
.scatter.is-carousel {
  --g: 18px;
  --w: min(calc((100cqw - 2 * var(--gutter) - var(--g)) / 2), 230px);
  --m: calc((100cqw - 2 * var(--w) - var(--g)) / 2);
  justify-content: flex-start; gap: 0;
  width: 100%;
  padding: 44px 0 48px;
  scroll-padding-inline: var(--m);
}
.scatter.is-carousel .shot { width: var(--w); }
.scatter.is-carousel .shot:nth-child(odd) { margin-left: var(--m); margin-right: calc(var(--g) / 2); scroll-snap-align: start; scroll-snap-stop: always; }
.scatter.is-carousel .shot:nth-child(even) { margin-left: calc(var(--g) / 2); margin-right: var(--m); }
.scatter.is-carousel .shot .views { font-size: 21px; }
.scatter.is-carousel .shot:hover { transform: translateY(calc(var(--y, 0px) - 3px)) rotate(var(--r, 0)) scale(1.01); }
.scatter.is-carousel .shot:hover img { transform: none; }
.scatter.is-carousel .shot-more { display: flex; }
.scatter.is-carousel + .dots { margin: -12px 0 8px; }

/* Entrance: stacked in the middle, then fan out once */
.scatter.pre .shot { transform: translateX(var(--sx, 0)) translateY(30px) rotate(0deg) scale(0.92); opacity: 0; }
.scatter.fanning .shot { transition-duration: 0.55s; transition-delay: calc(var(--i, 0) * 30ms); }
.crop-top { object-position: center top; }

/* ---------- Before / after slider ---------- */
.ba { padding: var(--section) 0; }
.ba-slider {
  position: relative;
  max-width: 640px; margin-inline: auto;
  border-radius: var(--radius-lg); corner-shape: squircle;
  overflow: hidden;
  background: var(--tile);
  user-select: none;
  cursor: ew-resize;
  --pos: 50%;
}
.ba-layer { padding: 26px 26px 28px; background: var(--tile); }
.ba-after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.ba-slider.animating .ba-after { transition: clip-path 0.9s var(--ease); }
.ba-slider.animating .ba-handle, .ba-slider.animating .ba-tag { transition: left 0.9s var(--ease), opacity 0.3s; }

.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pc-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pc-id { flex: 1; min-width: 0; display: grid; }
.pc-id strong { font-size: 14px; font-weight: 600; }
.pc-stats { display: grid; grid-template-columns: 44px 56px 40px; column-gap: 10px; font-size: 11px; color: var(--gray); text-align: center; }
.pc-stats b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.pc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pc-tile {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 14px; corner-shape: squircle;
  background: var(--white);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.06);
}
.pc-empty {
  display: grid; place-items: center;
  background: rgb(255 255 255 / 0.4);
  border: 0;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.06), inset 0 0 0 1px rgb(255 255 255 / 0.85);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.ba-before { position: relative; isolation: isolate; }
.ba-after { isolation: isolate; }
.ba-before::before, .ba-after::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 50% at 22% 70%, rgb(163 61 40 / 0.14), transparent 70%),
    radial-gradient(40% 50% at 70% 60%, rgb(29 29 31 / 0.08), transparent 70%),
    radial-gradient(35% 45% at 50% 30%, rgb(242 160 120 / 0.16), transparent 70%);
}
.pc-empty svg { width: 22px; height: 22px; fill: none; stroke: #aeaeb2; stroke-width: 1.6; stroke-linejoin: round; }
.pc-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pc-tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); }
.pc-empty::after { display: none; }
.pc-tile .views { position: absolute; z-index: 1; left: 9px; bottom: 9px; color: var(--white); font-size: 15px; gap: 4px; letter-spacing: -0.02em; }
.pc-tile .views::before { width: 15px; height: 15px; }
.pc-tile.pc-empty .views { color: var(--gray); text-shadow: none; }

.ba-tag {
  position: absolute; top: calc(50% + 30px); z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.3s;
}
.ba-tag-before { left: var(--pos); translate: calc(-100% - 12px) 0; color: var(--gray); }
.ba-tag-after { left: var(--pos); translate: 12px 0; color: var(--red); }
.ba-slider.hide-before-tag .ba-tag-before, .ba-slider.hide-after-tag .ba-tag-after { opacity: 0; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 2px; margin-left: -1px;
  background: var(--white);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 0 12px rgb(0 0 0 / 0.12);
  pointer-events: none;
}
.ba-knob {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.16);
  transition: transform 0.3s var(--ease);
  pointer-events: auto; touch-action: none; cursor: grab;
}
.ba-knob::before, .ba-knob::after {
  content: ""; position: absolute; top: 50%;
  width: 6px; height: 6px;
  border-top: 1.8px solid var(--ink); border-left: 1.8px solid var(--ink);
}
.ba-knob::before { left: 12px; transform: translateY(-50%) rotate(-45deg); }
.ba-knob::after { right: 12px; transform: translateY(-50%) rotate(135deg); }
.ba-slider:hover .ba-knob, .ba-slider.dragging .ba-knob { transform: scale(1.1); }
.ba-note { margin-top: 16px; display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 13px; color: var(--gray-2); }
.ba-note .link-arrow { font-size: 13px; }

/* ---------- About ---------- */
.about { padding: var(--section) 0; }
.center-text { text-align: center; }
.about-statement {
  max-width: 820px; margin: 14px auto 0; text-align: center;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.035em;
  color: var(--gray-2);
}
.about-statement .ink { color: var(--ink); }
.team-title { margin: clamp(64px, 8vw, 96px) 0 28px; text-align: center; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.person {
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg); corner-shape: squircle;
  background: var(--white);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgb(0 0 0 / 0.06); }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; }
.person h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.person-role { margin-top: 12px; font-size: 12px; font-weight: 400; color: var(--gray-2); }
.person h3 + p { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--gray); }

/* ---------- Walkthroughs ---------- */
.walk { padding: var(--section) 0 0; }
.walk-grid { display: grid; gap: 20px; max-width: 820px; margin-inline: auto; }
.walk-grid:has(> :nth-child(2)) { grid-template-columns: repeat(2, 1fr); max-width: none; }
.video { margin: 0; }
.video-poster, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; overflow: hidden;
  border-radius: var(--radius-lg); corner-shape: squircle;
  background: var(--ink);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.12);
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.video-poster:hover img { transform: scale(1.03); filter: brightness(0.9); }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.2);
  transition: transform 0.4s var(--ease);
}
.play svg { display: block; width: 28px; height: 28px; fill: var(--ink); }
.video-poster:hover .play { transform: scale(1.08); }
.video figcaption { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--gray); }
.video figcaption strong { color: var(--ink); font-weight: 600; }
.video figcaption .walkthrough-case-link { flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; }
.video figcaption .walkthrough-case-link strong { color: inherit; }

/* ---------- How it works: three glass cards orbiting in 3D ---------- */
.how { position: relative; padding: var(--section) 0; }
.stack {
  position: relative;
  height: 300px; max-width: 900px; margin-inline: auto;
  perspective: 1100px;
  --off: min(300px, 33vw);
}
.stack-space { position: absolute; inset: -60px -8%; z-index: 0; pointer-events: none; }
.space-orb { position: absolute; border-radius: 50%; filter: blur(36px); animation: drift var(--d, 14s) ease-in-out var(--dl, 0s) infinite alternate; }
.space-thumb { display: none;

  position: absolute; aspect-ratio: 1; border-radius: 28%;
  background: #ddd center / cover no-repeat;
  animation: drift var(--d, 14s) ease-in-out var(--dl, 0s) infinite alternate;
}
@keyframes drift { from { translate: 0 0; } to { translate: var(--dx, 12px) var(--dy, -16px); } }

.stack .node {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: min(260px, 29vw); min-height: 196px;
  align-content: center;
  cursor: pointer;
  background: rgb(255 255 255 / 0.42);
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.8), inset 0 -1px 0 rgb(255 255 255 / 0.3);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: transform 1s var(--ease), background 0.7s var(--ease), color 0.7s var(--ease), border-color 0.7s, box-shadow 0.7s;
  animation: bob 6s ease-in-out infinite;
}
.stack .node:nth-of-type(2) { animation-delay: -2s; }
.stack .node:nth-of-type(3) { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
.stack .node.pos-front { z-index: 3; transform: translate(-50%, -50%) scale(1.04); cursor: default; }
.stack .node.pos-left  { z-index: 2; transform: translate(calc(-50% - var(--off)), -50%) rotateY(24deg) scale(0.92); }
.stack .node.pos-right { z-index: 2; transform: translate(calc(-50% + var(--off)), -50%) rotateY(-24deg) scale(0.92); }
.stack .node.pos-front {
  background: rgb(29 29 31 / 0.55);
  border-color: rgb(255 255 255 / 0.18);
  box-shadow: 0 28px 60px rgb(0 0 0 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.18);
  color: var(--white);
}
.stack-arrow {
  position: absolute; top: 50%; z-index: 4;
  display: grid; place-items: center;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgb(255 255 255 / 0.7);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stack-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--gray); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stack-arrow { animation: bob 6s ease-in-out -1s infinite; }
.sa2 { animation-delay: -3s; }
.sa1 { left: calc(50% - (var(--off) + 18px) / 2); }
.sa2 { left: calc(50% + (var(--off) + 18px) / 2); }
.stack .node .tag { align-self: center; justify-self: center; line-height: 1.4; }
.stack .node.pos-front .tag { background: rgb(255 255 255 / 0.14); color: #e5e5ea; }
.stack .node.pos-front p { color: #d2d2d7; }
.stack .node .tag, .stack .node p { transition: background 0.7s, color 0.7s; }

.repeat {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: max-content; margin: 44px auto 0;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--tile);
  font-size: 13px; font-weight: 600; color: var(--gray);
}
.repeat svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.repeat-sep { width: 1px; height: 14px; background: var(--hair); }
.repeat-week { color: var(--ink); font-variant-numeric: tabular-nums; }
.week-roll { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: bottom; min-width: 2.2ch; }
.week-track { display: flex; flex-direction: column; transform: translateY(calc(var(--wk, 0) * -1.3em)); }
.week-track.go { transition: transform 0.55s var(--ease); }
.week-track b { display: block; height: 1.3em; line-height: 1.3em; font-weight: 700; }

.glass {
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.75);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-dark {
  background: rgb(29 29 31 / 0.72);
  border-color: rgb(255 255 255 / 0.12);
  box-shadow: 0 20px 44px rgb(0 0 0 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.1);
  color: var(--white);
}
.node {
  padding: 26px 22px 28px;
  border-radius: 24px; corner-shape: squircle;
  text-align: center;
  display: grid; justify-items: center;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.node .tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; line-height: 1.4;
  background: rgb(255 255 255 / 0.7); font-size: 11px; font-weight: 600; color: var(--gray);
}
.node h3 { margin-top: 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.node p { margin-top: 6px; font-size: 13px; color: var(--gray); line-height: 1.4; }
.glass-dark .tag { background: rgb(255 255 255 / 0.12); color: #d2d2d7; }
.glass-dark p { color: #a1a1a6; }

/* ---------- Timeline ---------- */
.timeline { padding: var(--section) 0; }
.tl-card { max-width: 900px; margin-inline: auto; }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); }
.tl-step { position: relative; text-align: center; }

.tl-rail { position: relative; display: flex; justify-content: center; margin-bottom: 20px; }
.tl-node {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; color: var(--gray-2);
  box-shadow: inset 0 0 0 2px var(--gray-2);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.4s var(--ease), box-shadow 0.35s var(--ease);
}
.tl-node:hover { transform: scale(1.08); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.tl-end .tl-node:hover { color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.tl-node { -webkit-tap-highlight-color: transparent; }
.tl-node:focus:not(:focus-visible) { outline: none; }
.tl-node[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px rgb(29 29 31 / 0.08); animation: ripple 0.7s var(--ease); }
@keyframes ripple { 0% { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 0 rgb(29 29 31 / 0.25); } 100% { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px rgb(29 29 31 / 0.08); } }
.tl-end .tl-node { background: transparent; color: #d19a8e; box-shadow: inset 0 0 0 2px #e2b7ad; }
.tl-end .tl-node[aria-pressed="true"] { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 2px var(--red), 0 0 0 5px rgb(135 48 31 / 0.14); }
.tl-seg { position: absolute; top: 50%; left: calc(50% + 29px); width: calc(100% - 58px); height: 2px; margin-top: -1px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tl-seg::after { content: ""; position: absolute; inset: 0; background: var(--hair); transform: scaleX(0); transform-origin: left; transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1); transition-delay: var(--seg-delay, 0s); }
.tl-step.passed .tl-seg::after { transform: scaleX(1); }
.tl-step.passed .tl-node { background: var(--gray-2); color: var(--white); box-shadow: none; }
.tl-when { margin-top: 2px; font-size: 12px; font-weight: 600; color: #aeaeb2; transition: color 0.3s; }
.tl-step.active .tl-when { color: var(--gray); }
.tl-step h3 { margin-top: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; transition: color 0.3s; }
.tl-step:not(.active) h3 { color: var(--gray-2); }
.tl-step.tl-end h3 { color: #d19a8e; }
.tl-end .tl-when { color: #e2b7ad; }
.tl-step.tl-end.active h3 { color: var(--red); }
.tl-end.active .tl-when { color: #b26a5a; }

.tl-panel {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px;
  padding: 22px 28px;
  min-height: 92px;
  border-radius: 24px; corner-shape: squircle;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 12px 32px rgb(0 0 0 / 0.04);
}
.tl-notch {
  position: absolute; top: -11px; left: calc(var(--notch, 0px) - 16px);
  width: 32px; height: 12px;
  fill: var(--white);
  transition: left 0.5s var(--ease);
}
.tl-panel-text { position: relative; font-size: 15px; line-height: 1.5; color: var(--gray); }
.tl-icon.pop { animation: pop 0.5s var(--ease); }
@keyframes pop { 40% { transform: scale(0.86) rotate(-6deg); } }
.tl-panel-body { position: relative; flex: 1; min-width: 0; }
.tl-panel-head { display: none; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
.tl-panel-head small { display: block; font-size: 12px; font-weight: 600; color: var(--gray); }
.tl-panel-head.accent, .tl-panel-head.accent small { color: var(--red); }
.tl-panel-text b { color: var(--ink); font-weight: 600; }
.tl-ghost { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; animation: tl-out 0.3s var(--ease) forwards; }
.tl-panel-text.swap { animation: tl-in 0.45s var(--ease) both; }
@keyframes tl-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes tl-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px) {
  .stack { height: auto; perspective: none; display: grid; gap: 14px; max-width: 380px; }
  .stack .node, .stack .node.pos-front, .stack .node.pos-left, .stack .node.pos-right {
    position: relative; left: auto; top: auto; width: 100%; min-height: 0; transform: none;
  }
  .stack .node { padding: 22px 18px 24px; }
  .stack { gap: 8px; }
  .stack-arrow { position: relative; left: auto; top: auto; margin: 0 auto; }
  .stack-arrow svg { rotate: 90deg; }
  .stack-space { inset: -30px -20px; }
}

@media (max-width: 760px) {
  /* Small screens: just the numbered rail; the panel names the step */
  .tl-card { padding: 0; }

  .tl-rail { margin-bottom: 0; }
  .tl-seg { left: calc(50% + 24px); width: calc(100% - 48px); }
  .tl-step .tl-when, .tl-step h3 { display: none; }
  .tl-panel { margin-top: 20px; padding: 16px 18px; }
  .tl-panel-head { display: block; }
  .tl-panel-text { font-size: 14px; }
}

/* ---------- Deliverables bento ---------- */
.deliverables { padding: var(--section) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.bento-wrap { position: relative; }
.bento-glow {
  position: absolute; z-index: 0; pointer-events: none;
  top: -80px; bottom: -80px; left: 50%; width: 100vw; translate: -50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  background:
    radial-gradient(380px 280px at 22% 30%, rgb(214 120 96 / 0.16), transparent 70%),
    radial-gradient(420px 300px at 50% 62%, rgb(180 180 190 / 0.16), transparent 70%),
    radial-gradient(380px 280px at 78% 28%, rgb(248 186 156 / 0.22), transparent 70%),
    radial-gradient(360px 260px at 72% 88%, rgb(214 120 96 / 0.12), transparent 70%),
    radial-gradient(340px 250px at 28% 90%, rgb(200 200 208 / 0.16), transparent 70%);
  filter: blur(24px);
}
.bento { position: relative; z-index: 1; }
.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md); corner-shape: squircle;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgb(0 0 0 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.7); }
.tile-dark:hover { box-shadow: 0 26px 50px rgb(0 0 0 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.1); }
.tile-wide { grid-column: span 2; aspect-ratio: auto; }
.tile-n { display: none; position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; color: var(--gray-2); font-variant-numeric: tabular-nums; }
.tile h3 { margin-top: auto; padding-top: 20px; }
.tile p { margin-top: 6px; font-size: 13px; color: var(--gray); line-height: 1.4; }
.tile-wide h3 { font-size: 24px; letter-spacing: -0.03em; }
.tile-dark p { color: #a1a1a6; }
.tile-dark .tile-n { color: #86868b; }
.tile-accent { background: rgb(255 244 240 / 0.55); }

/* Collage becomes a carousel below the full-width layout */
.bento.is-carousel {
  display: flex; gap: 12px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 6px var(--gutter) 30px;
  scroll-padding-inline: var(--gutter);
}
.bento.is-carousel::after { content: ""; flex: 0 0 calc(var(--gutter) - 12px); }
.bento.is-carousel .tile { flex: 0 0 min(250px, 68vw); aspect-ratio: 1; scroll-snap-align: start; }
.bento.is-carousel .tile:hover { transform: none; box-shadow: none; }
.bento.is-carousel {
  padding-top: 26px;
  padding-bottom: 80px;
  margin-top: -20px;
  margin-bottom: -50px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 42px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 42px), transparent);
}
.bento-wrap + .dots { position: relative; z-index: 2; }
.bento.is-carousel .tile-dark, .bento.is-carousel .tile-accent {
  background: rgb(255 255 255 / 0.55); color: var(--ink);
  border-color: rgb(255 255 255 / 0.75);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.7);
}
.bento.is-carousel .tile-dark p { color: var(--gray); }
.bento-wrap:has(.is-carousel) + .dots { display: flex; margin-top: 4px; }
.bento.is-carousel .tile-wide h3 { font-size: 17px; letter-spacing: -0.02em; }

/* ---------- Engagements ---------- */
.engagements { padding: var(--section) 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 30px 26px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgb(0 0 0 / 0.07); }
.plan-name { font-size: 13px; font-weight: 600; color: var(--gray); }
.plan-views { margin-top: 10px; font-size: clamp(44px, 4.6vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.055em; }
.plan-term { margin: 6px 0 20px; font-size: 14px; }
.checks { margin-top: 24px; width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
.checks li { position: relative; padding: 7px 0 7px 24px; font-size: 13px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 9px; height: 5px;
  border-left: 1.6px solid var(--red); border-bottom: 1.6px solid var(--red);
  transform: rotate(-45deg);
}
.checks b { font-weight: 600; }

/* Guarantee squircle */
.promise {
  position: relative; overflow: hidden;
  margin-top: 14px;
  border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white);
  --gx: 80%; --gy: 0%;
  interpolate-size: allow-keywords;
}
.promise::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgb(255 255 255 / 0.07), transparent 65%);
}
.promise summary {
  position: relative;
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 28px 32px;
}
.promise summary::-webkit-details-marker { display: none; }
.promise-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.promise .dim { color: #86868b; }
.caret {
  flex: none; width: 11px; height: 11px; margin-right: 6px;
  border-right: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.5s var(--ease);
}
.promise summary:hover .caret { transform: translateY(-1px) rotate(45deg); }
.promise[open] .caret { transform: translateY(3px) rotate(225deg); }
.promise::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete;
}
.promise[open]::details-content { block-size: auto; }
.promise.js-height::details-content { transition: none; }
.promise-body {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding: 0 32px 30px;
}
.promise-body div { border-top: 1px solid #3a3a3c; padding-top: 16px; }
.promise-body h3 { font-size: 14px; }
.promise-body p { margin-top: 4px; font-size: 14px; color: #a1a1a6; }

/* ---------- Closing & footer ---------- */
.closing { padding: calc(var(--section) * 1.2) 0 calc(var(--section) * 1.35); text-align: center; }
.closing h2 { font-size: clamp(34px, 4.6vw, 54px); }
.closing .lede { margin: 16px 0 36px; }

.footer { background: var(--tile); padding: 24px 0 28px; font-size: 11px; color: var(--gray); }
.fineprint { line-height: 1.6; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer .wordmark { font-size: 18px; color: var(--ink); }
.footer a:hover { color: var(--ink); }

/* ---------- Work page ---------- */
.work-page-head { padding: calc(var(--nav-h) + clamp(64px, 9vw, 100px)) 0 clamp(40px, 5vw, 60px); text-align: center; }
.work-page-head .eyebrow { margin-bottom: 12px; }
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px;
  padding-bottom: var(--section);
}
.work-grid .shot { width: auto; margin: 0; transform: rotate(var(--r, 0)); box-shadow: 0 10px 22px rgb(0 0 0 / 0.1); }
.work-grid .shot:hover { transform: translateY(-8px) rotate(0) scale(1.03); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .team { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .promise { max-width: 440px; margin-inline: auto; }
  .promise-body { grid-template-columns: 1fr; gap: 16px; padding: 0 28px 28px; }
  .promise summary { padding: 28px; }
  .nav-links { gap: 22px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: calc(var(--nav-h) + 40px); }
  .hero-body { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-stage { max-width: 380px; }



  .ba-layer { padding: 18px 16px 20px; }
  .pc-stats { column-gap: 8px; }
  .pc-id small { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .stat strong { font-size: 22px; }
  .stat { padding: 9px 12px 10px; border-radius: 14px; }
  .promise summary { padding: 24px; gap: 16px; }
  .promise-body { padding: 0 24px 24px; }
  .footer-row { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.ba-slider:focus-visible { outline: 2px solid #0071e3; outline-offset: 4px; }

/* Line glyphs with a soft, dimensional finish */
.glyph {
  fill: none; stroke: url(#ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.14));
  overflow: visible;
}
.glyph .acc { stroke: url(#rust); }
.tile .glyph { width: 32px; height: 32px; transition: transform 0.5s var(--ease); }
.tile:hover .glyph { transform: translateY(-2px) scale(1.06); }
.tile-dark .glyph { stroke: #f5f5f7; }
.tile-dark .glyph .acc { stroke: #f3a08e; }
.bento.is-carousel .tile-dark .glyph { stroke: url(#ink); }
.bento.is-carousel .tile-dark .glyph .acc { stroke: url(#rust); }
.tl-icon.glyph { flex: none; width: 34px; height: 34px; }

.tile { will-change: translate; }

/* ---------- Case studies page ---------- */
.cases-head { padding: calc(var(--nav-h) + clamp(64px, 9vw, 110px)) 0 clamp(48px, 6vw, 72px); text-align: center; }
.cases-totals { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.stat-glass {
  display: grid; min-width: 180px; padding: 16px 22px 18px; text-align: left;
  border-radius: 20px; corner-shape: squircle;
  animation: bob-soft 9s ease-in-out infinite;
}
.stat-glass:nth-child(2) { animation-delay: -3s; }
.stat-glass:nth-child(3) { animation-delay: -6s; }
@keyframes bob-soft { 50% { translate: 0 -3px; } }
.stat-glass strong { font-size: 36px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-glass span { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--gray); }
.cases-list { display: grid; gap: 18px; padding-bottom: var(--section); }
.case {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg); corner-shape: squircle;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 18px 44px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.5s var(--ease), transform 0.6s var(--ease), opacity 0.9s var(--ease);
}
.case:hover { box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 26px 56px rgb(0 0 0 / 0.08); }
.case h2 { font-size: clamp(30px, 3.4vw, 40px); }
.case-note { margin-top: 6px; font-size: 15px; color: var(--gray); }
.case-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 14px; }
.case-stats div {
  display: grid; min-width: 96px; padding: 12px 16px 13px;
  border-radius: 16px; corner-shape: squircle;
  background: var(--tile);
}
.case-stats strong { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.case-stats span { margin-top: 3px; font-size: 12px; color: var(--gray); }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.case-tags span { padding: 4px 10px; border-radius: 999px; background: var(--tile); font-size: 12px; font-weight: 500; color: var(--gray); }
.case-cta { font-size: 15px; }
.case-vids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.case-vid {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 14px; corner-shape: squircle;
  background: #ddd;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.07);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case-vid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.case-vid::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); }
.case-vid .views { position: absolute; z-index: 1; left: 9px; bottom: 9px; color: var(--white); font-size: 15px; gap: 4px; letter-spacing: -0.02em; }
.case-vid .views::before { width: 15px; height: 15px; }
.case-vid:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgb(0 0 0 / 0.12); }
.case-vid:hover img { transform: scale(1.05); }
@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; }
  .case-stats div { min-width: 0; flex: 1; padding: 10px 12px 11px; }
}
@media (max-width: 480px) {
  .cases-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-glass { min-width: 0; padding: 12px 12px 13px; border-radius: 16px; }
  .stat-glass strong { font-size: 22px; }
  .stat-glass span { font-size: 10px; line-height: 1.3; }
  .case-vids { gap: 5px; }
  .case-vid { border-radius: 12px; }
  .case-vid .views { font-size: 12px; left: 6px; bottom: 6px; }
  .case-vid .views::before { width: 12px; height: 12px; }
}

/* Work page: a soft, slowly drifting backdrop so the glass reads */
.cases-page main { position: relative; z-index: 1; }
.cases-page .footer { position: relative; z-index: 1; }
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 18s ease-in-out infinite alternate; }
.ambient span:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: 8vh; background: rgb(163 61 40 / 0.12); --dx: 6vw; --dy: 4vh; }
.ambient span:nth-child(2) { width: 46vw; height: 46vw; right: -10vw; top: 20vh; background: rgb(242 160 120 / 0.18); --dx: -5vw; --dy: 6vh; animation-duration: 22s; }
.ambient span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 55vh; background: rgb(29 29 31 / 0.06); --dx: 4vw; --dy: -6vh; animation-duration: 26s; }
.ambient span:nth-child(4) { width: 30vw; height: 30vw; left: 6vw; top: 70vh; background: rgb(242 160 120 / 0.12); --dx: 5vw; --dy: -4vh; animation-duration: 20s; }
.ambient span:nth-child(5) { width: 34vw; height: 34vw; right: 4vw; top: 76vh; background: rgb(163 61 40 / 0.08); --dx: -4vw; --dy: -5vh; animation-duration: 24s; }
.cases-head { position: relative; }
.head-thumb { display: none;
  position: absolute; aspect-ratio: 1; border-radius: 28%;
  background: #ddd center / cover no-repeat;
  box-shadow: 0 12px 26px rgb(0 0 0 / 0.1);
  animation: drift var(--d, 12s) ease-in-out var(--dl, 0s) infinite alternate;
  pointer-events: none;
}
@media (max-width: 720px) { .head-thumb { display: none; } }

/* Very small phones: compact profile header for the before/after */
@media (max-width: 420px) {
  .ba-layer { padding: 16px 12px 16px; }
  .pc-head { gap: 8px; margin-bottom: 12px; }
  .pc-avatar { width: 34px; height: 34px; }
  .pc-id strong { font-size: 12px; }
  .pc-stats { grid-template-columns: 30px 44px 28px; column-gap: 4px; font-size: 10px; }
  .pc-stats b { font-size: 13px; }
  .pc-grid { gap: 4px; }
  .pc-tile { border-radius: 10px; }
  .pc-tile .views { font-size: 11px; left: 5px; bottom: 6px; gap: 2px; }
  .pc-tile .views::before { width: 10px; height: 10px; }
  .pc-empty svg { width: 16px; height: 16px; }
  .ba-tag { font-size: 10px; padding: 3px 8px; }
  .ba-knob { width: 34px; height: 34px; }
  .ba-note { flex-direction: column; gap: 6px; }
}
@media (max-width: 350px) {
  .pc-id { display: none; }
}

/* ---------- Case study detail pages ---------- */
.cs-hero { position: relative; padding: calc(var(--nav-h) + clamp(64px, 9vw, 110px)) 0 clamp(56px, 7vw, 88px); text-align: center; }
.cs-hero .eyebrow { margin-bottom: 14px; }
.cs-hero h1 { font-size: clamp(48px, 7vw, 84px); }
.cs-hero-lede { margin-top: 10px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.025em; }
.cs-desc { max-width: 640px; margin: 36px auto 0; font-size: 16px; line-height: 1.55; color: var(--gray); }
.cs-desc a, .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.cs-desc a:hover, .prose a:hover { text-decoration-color: var(--ink); }
.cs-note { max-width: 560px; margin: 12px auto 28px; font-size: 12px; color: var(--gray-2); }
.cs-video { max-width: 860px; padding-bottom: clamp(80px, 10vw, 130px); }
.cs-answer { max-width: 760px; text-align: center; padding-bottom: clamp(80px, 10vw, 130px); }
.cs-answer h2 { margin-top: 10px; font-size: clamp(34px, 5vw, 60px); }
.cs-answer h2 .accent { font-variant-numeric: tabular-nums; }
.cs-answer .lede { margin-top: 18px; }
.cs-answer .lede b { color: var(--ink); font-weight: 600; }

/* reels row */
.cs-reels { padding-bottom: clamp(80px, 10vw, 130px); }
.cs-reels .section-head { margin-bottom: 8px; }
.cs-reels .eyebrow, .cs-timeline .eyebrow, .cs-principles .eyebrow, .cs-faq .eyebrow, .cs-takeaways .eyebrow { margin-bottom: 10px; }
.reel-track {
  display: flex; gap: 14px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 26px max(var(--gutter), calc((100% - var(--container)) / 2)) 30px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track::after { content: ""; flex: 0 0 1px; }
.reel-track.is-carousel { scroll-snap-type: x mandatory; }
.reel {
  position: relative; flex: none; width: clamp(150px, 16vw, 186px); aspect-ratio: 9 / 16;
  border-radius: 20px; corner-shape: squircle; overflow: hidden;
  background: #ddd; scroll-snap-align: start;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.09);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); -webkit-user-drag: none; }
.reel::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 0.6)); }
.reel .views { position: absolute; z-index: 1; left: 12px; bottom: 30px; color: var(--white); font-size: 18px; gap: 5px; letter-spacing: -0.02em; }
.reel .views::before { width: 16px; height: 16px; }
.reel-plat { position: absolute; z-index: 1; left: 12px; bottom: 12px; font-size: 11px; font-weight: 500; color: rgb(255 255 255 / 0.75); }
.reel:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgb(0 0 0 / 0.16); }
.reel:hover img { transform: scale(1.04); }
.reel-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-track.dragging .reel { pointer-events: none; }
.reel-track + .dots { display: none; }
.reel-track.is-carousel + .dots { display: flex; }

/* prose */
.prose { max-width: 700px; display: grid; gap: clamp(56px, 7vw, 84px); padding-bottom: clamp(72px, 9vw, 110px); }
.prose h2 { margin: 8px 0 18px; font-size: clamp(28px, 3.4vw, 38px); }
.prose p { font-size: 17px; line-height: 1.6; color: #424245; }
.prose p + p { margin-top: 14px; }
.callout { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); corner-shape: squircle; }
.callout-result { color: var(--ink) !important; font-weight: 600; }
.cs-source { margin-top: -50px; font-size: 12px; color: var(--gray-2); }

/* strategy steps */
.cs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: clamp(90px, 11vw, 140px); }
.cs-steps .tile { aspect-ratio: auto; min-height: 250px; padding: 26px 24px 28px; }
.cs-steps .tile h3 { padding-top: 26px; font-size: 19px; }
.cs-steps .tile p { font-size: 14px; }

/* chart */
.cs-timeline { padding-bottom: clamp(90px, 11vw, 140px); }
.chart { margin: 0 auto; max-width: 920px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); corner-shape: squircle; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.chart-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray); }
.chart-readout { display: block; margin-top: 2px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.chart-hint { font-size: 12px; color: var(--gray-2); }
.chart-plot { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #e8e8ed; stroke-width: 1; }
.chart-line { fill: none; stroke: url(#chart-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chart-area); }
.chart-dot { fill: var(--white); stroke: var(--red); stroke-width: 2.5; transition: r 0.25s var(--ease); }
.chart-hit { fill: transparent; cursor: pointer; }
.chart-pt:hover .chart-dot, .chart-pt:focus-visible .chart-dot, .chart-pt.on .chart-dot { r: 8; fill: var(--red); }
.chart-pt:focus { outline: none; }
.chart-axis { fill: var(--gray-2); font-size: 12px; font-family: inherit; }
.chart-guide { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity 0.2s; }
.chart-plot.hovering .chart-guide { opacity: 1; }
.chart:not(.drawn) .chart-area, .chart:not(.drawn) .chart-pt { opacity: 0; }
.chart.drawn .chart-line { animation: draw 1.8s var(--ease) forwards; }
.chart.drawn .chart-area { animation: fade-in 1.2s 0.5s var(--ease) both; }
.chart.drawn .chart-pt { animation: fade-in 0.4s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.chart-tip {
  position: absolute; z-index: 2; width: 132px; padding: 8px 8px 10px;
  border-radius: 16px; corner-shape: squircle;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.14);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  translate: -50% calc(-100% - 16px);
  opacity: 0; scale: 0.94; pointer-events: none;
  transition: opacity 0.2s var(--ease), scale 0.25s var(--ease), left 0.25s var(--ease), top 0.25s var(--ease);
}
.chart-tip.show { opacity: 1; scale: 1; }
.chart-tip img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; border-radius: 10px; }
.chart-tip strong { display: block; margin-top: 7px; font-size: 13px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chart-tip span { display: block; font-size: 11px; color: var(--gray); }
.chart-tip.flip-left { translate: calc(-100% + 24px) calc(-100% - 16px); }
.chart-tip.flip-right { translate: -24px calc(-100% - 16px); }
.chart figcaption { margin-top: 12px; font-size: 12px; color: var(--gray-2); }

/* platform bars */
.platforms { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-lg); corner-shape: squircle; margin-top: -40px; }
.prose .platform, .platform { text-decoration: none; color: var(--ink); }
.platform { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 16px; padding: 12px 8px; border-radius: 14px; transition: background 0.3s; }
.platform:hover { background: rgb(255 255 255 / 0.6); }
.platform-name { font-size: 14px; font-weight: 600; }
.platform-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.platform-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #c4553c, var(--red)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.platforms.in .platform-bar i { transform: scaleX(1); }
.platforms.in .platform:nth-child(2) .platform-bar i { transition-delay: 0.12s; }
.platforms.in .platform:nth-child(3) .platform-bar i { transition-delay: 0.24s; }
.platforms.in .platform:nth-child(4) .platform-bar i { transition-delay: 0.36s; }
.platform-num { display: grid; justify-items: end; min-width: 92px; }
.platform-num strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.platform-num small { font-size: 11px; color: var(--gray); }

/* principles */
.cs-principles { padding-bottom: clamp(90px, 11vw, 140px); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-width: 920px; margin: 0 auto; }
.principles li { display: flex; gap: 16px; padding: 22px 22px 24px; border-radius: var(--radius-md); corner-shape: squircle; }
.principle-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; }
.principles strong { display: block; font-size: 16px; letter-spacing: -0.015em; }
.principles p { margin-top: 4px; font-size: 14px; color: var(--gray); line-height: 1.45; }

/* faq */
.cs-faq { padding-bottom: clamp(40px, 6vw, 60px); }
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item { border-radius: 20px; corner-shape: squircle; interpolate-size: allow-keywords; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .caret { border-color: var(--ink); width: 9px; height: 9px; }
.faq-item[open] .caret { transform: translateY(3px) rotate(225deg); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { padding: 0 24px 22px; font-size: 15px; line-height: 1.55; color: var(--gray); }

/* EZ4X4 takeaways */
.cs-takeaways { padding-bottom: clamp(40px, 6vw, 60px); }
.takeaways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.takeaway { overflow: hidden; border-radius: var(--radius-lg); corner-shape: squircle; }
.takeaway img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.takeaway div { padding: 22px 24px 26px; }
.takeaway h3 { margin-top: 14px; font-size: 19px; }
.takeaway p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--gray); }

@media (max-width: 860px) {
  .cs-steps, .takeaways { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .cs-steps .tile { min-height: 0; }
  .platform { grid-template-columns: 76px 1fr auto; gap: 10px; }
}
@media (max-width: 480px) {
  .reel { width: 42vw; }
  .chart-hint { display: none; }
  .chart-tip { width: 104px; }
  .chart-axis { font-size: 26px; }
  .platform-num { min-width: 76px; }
}

/* Small screens: stats always fit, case thumbnails get big enough to see */
@media (max-width: 600px) {
  .cases-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-glass { min-width: 0; padding: 12px 10px 13px; border-radius: 16px; }
  .stat-glass strong { font-size: clamp(18px, 6.2vw, 26px); }
  .stat-glass span { font-size: 10px; line-height: 1.3; }
  .case-stats { flex-wrap: nowrap; gap: 6px; }
  .case-stats div { flex: 1 1 0; min-width: 0; padding: 10px 10px 11px; }
  .case-stats strong { font-size: clamp(17px, 5.6vw, 24px); }
  .case-stats span { font-size: 11px; }
  .case-vids { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .case-vid { border-radius: 16px; }
  .case-vid .views { font-size: 16px; left: 10px; bottom: 10px; }
  .case-vid .views::before { width: 15px; height: 15px; }
}

.scatter.is-carousel + .dots + .center-row { margin-top: 18px; }
.cs-hero .cs-note-top { margin: 14px auto 0; }
.cs-note-bottom { max-width: 560px; margin: 28px auto 0; text-align: center; font-size: 12px; color: var(--gray-2); }
.scatter .shot {
  border-radius: 0;
  -webkit-mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
  mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
}
.reveal.reveal { transition: opacity .65s ease-out, transform .7s cubic-bezier(.22,.61,.36,1), box-shadow .5s var(--ease), background .5s var(--ease); }
.tl-panel-text.swap { animation: timeline-fade .3s ease-out both; }
.tl-ghost { animation: timeline-out .15s ease-out forwards; }
@keyframes timeline-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes timeline-out { to { opacity: 0; } }
.mobile-profile-head { display: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal { transition: none; }
}
@media (max-width: 760px) {
  .ba.container { display: none; }
  .nav-inner { gap: 12px; }
  .nav-links { display: flex; margin-left: auto; }
  .nav-links a { display: none; }
  .nav-links a:first-child { display: inline-flex; white-space: nowrap; font-size: 12px; }
  .nav .wordmark { font-size: 18px; }
  .nav-cta { white-space: nowrap; }
  .scatter .shot { border-radius: 0; }
  .ba-slider { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); border-radius: 0; background: transparent; }
  .ba-layer { padding: 8px 12px 24px; }
  .ba-layer .pc-head { display: none; }
  .mobile-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 18px; padding: 0 4px; }
  .mobile-profile-head .pc-avatar { width: 64px; height: 64px; }
  .mobile-profile-head .pc-id strong { font-size: 20px; }
  .mobile-profile-head .pc-stats { flex: 0 0 100%; display: flex; justify-content: space-around; margin-top: 8px; font-size: 13px; }
  .mobile-profile-head .pc-stats b { font-size: 21px; }
  .pc-head { flex-wrap: wrap; gap: 10px; }
  .pc-stats { flex: 0 0 100%; display: flex; justify-content: space-around; }
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pc-tile { aspect-ratio: 9 / 16; border-radius: 8px; corner-shape: round; }
  .pc-tile .views { font-size: 16px; left: 10px; bottom: 10px; }
  .pc-tile .views::before { width: 14px; height: 14px; }
}
.cs-desc + .cta-row { margin-top: 28px; }

/* Case study list: open layout, no boxes. Whitespace does the separating. */
.cases-list { gap: clamp(96px, 12vw, 150px); padding-top: clamp(24px, 4vw, 48px); }
.cases-list .case {
  background: none; box-shadow: none; border: 0; padding: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px);
}
.cases-list .case:hover { box-shadow: none; }
.cases-list .case:nth-child(even) .case-info { order: 2; }
.case h2 { font-size: clamp(36px, 4.4vw, 52px); }
.case-note { margin-top: 10px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; color: var(--gray); letter-spacing: -0.015em; max-width: 380px; }
.cases-list .case-stats { display: flex; flex-wrap: nowrap; gap: clamp(28px, 4vw, 48px); margin: clamp(28px, 3.4vw, 40px) 0; padding: 0; border: 0; }
.cases-list .case-stats div { display: grid; min-width: 0; flex: none; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
.cases-list .case-stats strong { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.cases-list .case-stats span { margin-top: 6px; font-size: 13px; color: var(--gray); }
.case-cta { font-size: 17px; }
.case-meta { margin-top: 14px; font-size: 13px; color: var(--gray-2); }
.cases-list .case-vids { gap: 10px; }
.cases-list .case-vid { border-radius: 18px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 28px rgb(0 0 0 / 0.07); }
@media (max-width: 820px) {
  .cases-list .case { grid-template-columns: 1fr; gap: 28px; }
  .cases-list .case:nth-child(even) .case-info { order: 0; }
}
@media (max-width: 600px) {
  .cases-list { gap: 84px; }
  .cases-list .case-stats { gap: 24px; margin: 24px 0; }
  .cases-list .case-stats strong { font-size: clamp(24px, 7.4vw, 32px); }
  .cases-list .case-stats span { font-size: 12px; }
}

/* Lightweight parallax for phones: compositor-only translate/transform, no per-frame JS */
.work-bg.lite .bg-thumb {
  translate: 0 0;
  animation: lite-float var(--fd, 10s) ease-in-out var(--fdl, 0s) infinite alternate;
  will-change: translate, transform;
}
@keyframes lite-float { from { transform: translateY(0); } to { transform: translateY(calc(var(--fa, 6px) * -1)); } }

/* ---------- Case studies as albums ---------- */
.cases-totals.plain { display: flex; justify-content: center; gap: clamp(32px, 6vw, 72px); margin-top: 40px; }
.total { display: grid; justify-items: center; }
.total strong { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.total span { margin-top: 8px; font-size: 13px; color: var(--gray); }

.cases-list { display: grid; gap: clamp(72px, 9vw, 112px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: var(--section); }
.album { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.album-head { display: grid; grid-template-columns: 148px 1fr; gap: 24px; align-items: start; }
.album-art {
  width: 148px; aspect-ratio: 1; object-fit: cover;
  border-radius: 14px; corner-shape: squircle;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 14px 30px rgb(0 0 0 / 0.12);
}
.album-meta h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; }
.album-sub { margin-top: 4px; font-size: 14px; color: var(--red); font-weight: 500; }
.album-note { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--gray); }
.album-stats { display: flex; gap: 22px; margin: 18px 0 16px; }
.album-stats div { display: grid; }
.album-stats strong { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.album-stats span { font-size: 12px; color: var(--gray); }
.album-cta { font-size: 15px; }

.tracks-label { padding: 0 12px 8px; font-size: 12px; font-weight: 600; color: var(--gray); }
.tracks { display: grid; }
.track {
  position: relative;
  display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto 20px; align-items: center; gap: 14px;
  padding: 9px 12px; border-radius: 12px;
  transition: background 0.25s var(--ease);
}
.tracks li + li .track::before {
  content: ""; position: absolute; top: 0; left: 82px; right: 12px; height: 1px; background: rgb(0 0 0 / 0.06);
}
.track:hover { background: rgb(0 0 0 / 0.035); }
.track:hover::before, .tracks li:hover + li .track::before { opacity: 0; }
.track-n { font-size: 14px; color: var(--gray-2); text-align: right; font-variant-numeric: tabular-nums; }
.track-art { width: 34px; height: 48px; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.track-title { display: grid; min-width: 0; }
.track-title strong { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-title small { font-size: 12px; color: var(--gray); }
.track-views { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.track-go { display: grid; place-items: center; opacity: 0; transform: translate(-3px, 3px); transition: opacity 0.25s, transform 0.3s var(--ease); }
.track-go svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.track:hover .track-go, .track:focus-visible .track-go { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .album { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .cases-totals.plain { gap: 22px; }
  .total strong { font-size: clamp(26px, 8.4vw, 34px); }
  .total span { font-size: 11px; text-align: center; }
  .album-head { grid-template-columns: 104px 1fr; gap: 16px; }
  .album-art { width: 104px; border-radius: 12px; }
  .album-stats { gap: 16px; }
  .album-stats strong { font-size: 18px; }
  .track { grid-template-columns: 16px 34px minmax(0, 1fr) auto; gap: 12px; padding: 9px 6px; }
  .track-go { display: none; }
  .tracks li + li .track::before { left: 68px; right: 6px; }
  .tracks-label { padding: 0 6px 6px; }
}

/* Albums v2: no cover; the videos are the visual, big enough to see */
.album { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: center; }
.album-head { display: block; }
.vids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vid { display: block; }
.vid img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 14px; corner-shape: squircle;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 10px 24px rgb(0 0 0 / 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.vid:hover img { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 18px 34px rgb(0 0 0 / 0.14); }
.vid-cap { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; margin-top: 10px; padding-left: 2px; }
.vid-n { grid-row: span 2; font-size: 13px; color: var(--gray-2); font-variant-numeric: tabular-nums; }
.vid-cap strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.vid-cap small { font-size: 12px; color: var(--gray); }
@media (max-width: 860px) { .album { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) {
  .vids { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .vid-cap strong { font-size: 16px; }
}

/* Albums v3: one soft container per case, views on the thumbnails */
.cases-list { gap: 20px; }
.album {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg); corner-shape: squircle;
  background: rgb(255 255 255 / 0.62);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 14px 36px rgb(0 0 0 / 0.05);
}
.album-stats { margin-top: 20px; }
.vid { position: relative; border-radius: 14px; overflow: hidden; }
.vid::after { content: ""; position: absolute; inset: 55% 0 0; border-radius: 0 0 14px 14px; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); pointer-events: none; }
.vid .views { position: absolute; z-index: 1; left: 10px; bottom: 10px; color: var(--white); font-size: 15px; gap: 4px; letter-spacing: -0.02em; text-shadow: 0 1px 6px rgb(0 0 0 / 0.3); }
.vid .views::before { width: 15px; height: 15px; }
.vid:hover img { transform: scale(1.04); box-shadow: none; }
.vid img { box-shadow: none; border-radius: 0; }
.vid { box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 10px 22px rgb(0 0 0 / 0.08); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.vid:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 18px 32px rgb(0 0 0 / 0.14); }
@media (max-width: 600px) { .vid .views { font-size: 16px; } }

/* ---------- Before / after v2: day-by-day growth, driven by scroll ---------- */
.grow { position: relative; height: 320vh; }
.grow-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.grow-inner { display: grid; gap: clamp(18px, 3vh, 28px); }
.grow-head { text-align: center; }
.grow-head .lede { margin-top: 8px; }
.grow-board { max-width: 900px; width: 100%; margin: 0 auto; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius-lg); corner-shape: squircle; }
.grow-readout { display: flex; justify-content: space-between; align-items: flex-end; }
.grow-readout div { display: grid; }
.grow-day { text-align: right; }
.grow-label { font-size: 12px; font-weight: 600; color: var(--gray); }
.grow-readout strong { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.grow-readout [data-grow-total] { color: var(--red); }
.grow-chart svg { display: block; width: 100%; height: auto; max-height: 30vh; overflow: visible; }
.grow-chart .g-grid { stroke: #e8e8ed; stroke-width: 1; }
.grow-chart .g-line { fill: none; stroke: url(#g-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.grow-chart .g-area { fill: url(#g-area); }
.grow-chart .g-dot { fill: var(--white); stroke: var(--red); stroke-width: 2.5; opacity: 0; transition: opacity 0.25s, r 0.3s var(--ease); }
.grow-chart .g-dot.on { opacity: 1; }
.grow-chart .g-dot.now { r: 7; fill: var(--red); }
.grow-slots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 14px; }
.slot {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 10px; corner-shape: squircle;
  background: rgb(255 255 255 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.85), 0 6px 14px rgb(0 0 0 / 0.05);
  pointer-events: none;
}
.slot img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.slot-day { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 10px; font-weight: 600; color: var(--gray-2); transition: color 0.3s; }
.slot.on { pointer-events: auto; }
.slot.on img { opacity: 1; transform: none; }
.slot.on::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 0.5)); }
.slot.on .slot-day { z-index: 1; color: var(--white); }
.slot.now { box-shadow: 0 0 0 2px var(--red), 0 8px 18px rgb(135 48 31 / 0.25); }
.grow-foot { text-align: center; font-size: 14px; color: var(--gray); }
.grow-foot [data-grow-count] { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .grow { height: 300vh; }
  .grow-slots { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .grow-chart svg { max-height: 22vh; }
  .slot-day { font-size: 9px; }
  .grow-head .lede { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .grow { height: auto; }
  .grow-sticky { position: static; height: auto; padding: var(--section) 0; }
}

.slot-day.views { justify-content: center; gap: 3px; font-size: 11px; display: flex; }
.slot-day.views::before { width: 11px; height: 11px; }
.slot:not(.on) .slot-day.views { opacity: 0; }
@media (max-width: 760px) { .slot-day.views { font-size: 10px; } .slot-day.views::before { width: 10px; height: 10px; } }

/* Before / after v2: plays on its own, no pinned scroll */
.grow { height: auto; padding: var(--section) 0; }
.grow-sticky { position: static; height: auto; display: block; overflow: visible; }
.grow-chart svg { max-height: 260px; }
.slot-day.views { font-size: 14px; gap: 4px; bottom: 7px; letter-spacing: -0.02em; }
.slot-day.views::before { width: 13px; height: 13px; }
.grow-replay { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--gray); opacity: 0.35; pointer-events: none; transition: opacity 0.3s, color 0.2s; }
.grow-replay.show { opacity: 1; pointer-events: auto; }
.grow-replay:hover { color: var(--ink); }
.grow-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .grow-chart svg { max-height: 180px; }
  .slot-day.views { font-size: 12px; gap: 3px; bottom: 6px; }
  .slot-day.views::before { width: 11px; height: 11px; }
  .grow-foot { font-size: 13px; line-height: 1.8; }
}
.total span { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--gray); }

/* Before / after v2: glass board over a soft glow, one scrolling row of big squircle reels */
.grow-stage { position: relative; max-width: 900px; width: 100%; margin: 0 auto; }
.grow-glow {
  position: absolute; inset: -60px -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(340px 220px at 18% 30%, rgb(214 120 96 / 0.16), transparent 70%),
    radial-gradient(380px 240px at 55% 70%, rgb(180 180 190 / 0.16), transparent 70%),
    radial-gradient(340px 220px at 86% 35%, rgb(248 186 156 / 0.22), transparent 70%);
  filter: blur(24px);
}
.grow-board {
  position: relative; z-index: 1;
  background: rgb(255 255 255 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.8);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  overflow: hidden;
}
.grow-slots {
  display: flex; gap: 10px; margin: 16px calc(-1 * clamp(18px, 2.6vw, 28px)) calc(-1 * clamp(18px, 2.6vw, 28px));
  padding: 4px clamp(18px, 2.6vw, 28px) clamp(18px, 2.6vw, 28px);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.grow-slots::-webkit-scrollbar { display: none; }
.slot {
  flex: none; width: 116px; aspect-ratio: 9 / 16;
  border-radius: 0; box-shadow: none;
  -webkit-mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
          mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
  background: rgb(255 255 255 / 0.55);
  scroll-snap-align: center;
}
.slot.now { box-shadow: none; }
.slot.now img { filter: none; }
.slot-day.views { font-size: 15px; gap: 4px; bottom: 9px; }
.slot-day.views::before { width: 14px; height: 14px; }
.grow-chart { position: relative; }
.g-dot.hover { r: 7; fill: var(--red); }
.g-tip {
  position: absolute; z-index: 3; width: 92px; padding: 6px;
  border-radius: 16px; corner-shape: squircle;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.14);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  translate: -50% calc(-100% - 14px);
  opacity: 0; scale: 0.94; pointer-events: none;
  transition: opacity 0.2s var(--ease), scale 0.25s var(--ease), left 0.2s var(--ease), top 0.2s var(--ease);
}
.g-tip.show { opacity: 1; scale: 1; }
.g-tip.flip-r { translate: -14px calc(-100% - 14px); }
.g-tip.flip-l { translate: calc(-100% + 14px) calc(-100% - 14px); }
.g-tip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 11px; }
.g-tip .views { position: absolute; left: 13px; bottom: 13px; color: var(--white); font-size: 13px; gap: 3px; text-shadow: 0 1px 6px rgb(0 0 0 / 0.4); }
.g-tip .views::before { width: 12px; height: 12px; }
.grow-foot { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; line-height: 1.4; }
.grow-replay { line-height: 1.4; vertical-align: baseline; padding: 0; }
.grow-replay svg { display: block; }
@media (max-width: 760px) {
  .slot { width: 92px; }
  .slot-day.views { font-size: 14px; bottom: 8px; }
  .slot-day.views::before { width: 13px; height: 13px; }
  .grow-glow { inset: -40px -20px; }
}
/* fix: the squircle mask is square, so use native squircle corners on tall slots; keep the row from widening the board */
.slot { -webkit-mask: none; mask: none; border-radius: 24px; corner-shape: squircle; overflow: hidden; }
.grow-inner > *, .grow-stage, .grow-board { min-width: 0; }
.grow-slots { margin-bottom: calc(-1 * clamp(18px, 2.6vw, 28px)); }
@media (max-width: 760px) { .slot { border-radius: 20px; } }
.grow-foot { gap: 6px 18px; }

/* Reel row v3: 1:1 squircles like the work section, visible placeholders, soft edge fades */
.slot {
  width: 112px; aspect-ratio: 1; border-radius: 0; corner-shape: initial;
  -webkit-mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
          mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
  background: rgb(29 29 31 / 0.06);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.slot-day.views { bottom: 10px; }
.slot.now { transform: none; }
.grow.dim .slot.on:not(.hl) { opacity: 0.45; }
.slot.hl { transform: translateY(-4px) scale(1.04); }
.grow-slots { padding-top: 8px; }
.grow-slots.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
.grow-slots.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px); mask-image: linear-gradient(90deg, transparent, #000 72px); }
.grow-slots.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.g-tip { border: 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: 84px; }
.g-tip img { aspect-ratio: 1; border-radius: 0;
  -webkit-mask: url("assets/squircle.svg") center / 100% 100% no-repeat; mask: url("assets/squircle.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.18)); }
.g-tip .views { left: 9px; bottom: 9px; }
@media (max-width: 760px) { .slot { width: 92px; border-radius: 0; } .slot-day.views { bottom: 8px; } }

/* Row edge fades: overlays that fade in and out, so a lifted reel never gets cut off abruptly */
.grow-slots.fade-l, .grow-slots.fade-r { -webkit-mask-image: none; mask-image: none; }
.grow-row { position: relative; }
.row-fade {
  position: absolute; top: 0; bottom: calc(-1 * clamp(18px, 2.6vw, 28px)); z-index: 2; width: 72px; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.row-fade-l { left: calc(-1 * clamp(18px, 2.6vw, 28px)); background: linear-gradient(90deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0)); }
.row-fade-r { right: calc(-1 * clamp(18px, 2.6vw, 28px)); background: linear-gradient(270deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0)); }
.grow-row.fade-l .row-fade-l, .grow-row.fade-r .row-fade-r { opacity: 1; }
.grow-chart svg { cursor: default; }

/* Hover states: only the hovered point is filled; thumbnails are hoverable and clickable once the animation is done */
.grow.hovering .g-dot.now:not(.hover) { r: 5; fill: var(--white); }
.grow .slot { pointer-events: none; cursor: default; }
.grow.done .slot.on { pointer-events: auto; }
.grow-chart .g-line { vector-effect: non-scaling-stroke; }
.grow-chart .g-dot { vector-effect: non-scaling-stroke; }
.grow-chart .g-grid { vector-effect: non-scaling-stroke; }
@media (max-width: 760px) {
  /* the chart is drawn smaller on phones, so thicken the line and grow the points to match the type and thumbnails */
  .grow-chart .g-line { stroke-width: 3.5; }
  .grow-chart .g-dot { r: 6; stroke-width: 2.5; }
  .grow-chart .g-dot.now, .grow-chart .g-dot.hover { r: 9; }
  .grow.hovering .g-dot.now:not(.hover) { r: 6; }
}

/* Grow, touch screens: chart is display-only, the centred reel is raised */
@media (hover: none), (pointer: coarse) {
  .grow-chart svg { pointer-events: none; }
  .grow .slot, .grow.done .slot.on { pointer-events: none; }
}

/* Grow: the row is locked while the animation plays (it still scrolls itself); free once done */
.grow:not(.done) .grow-slots { overflow-x: hidden; }
/* Grow, desktop: scale the glow with the board so the whole tile reads as tinted glass, as on phones */
@media (min-width: 761px) {
  .grow-glow {
    inset: -60px -40px;
    background:
      radial-gradient(85% 58% at 18% 30%, rgb(214 120 96 / 0.16), transparent 70%),
      radial-gradient(95% 62% at 55% 70%, rgb(180 180 190 / 0.16), transparent 70%),
      radial-gradient(85% 58% at 86% 35%, rgb(248 186 156 / 0.22), transparent 70%);
    filter: blur(40px);
  }
}

/* Grow: a raised reel always sits above the edge fades */
.grow .slot { position: relative; z-index: 0; }
.grow .slot.hl { z-index: 3; }

/* Grow: no z-index pop; the fade itself eases out when a raised reel is under it */
.grow .slot.hl { z-index: 0; }
.grow .slot { transition: transform 0.45s var(--ease), opacity 0.35s var(--ease); }
/* Grow: smoother animation — own layers for the moving parts, fixed-width digits */
.grow-readout strong { font-variant-numeric: tabular-nums; }
.grow-chart svg { will-change: transform; transform: translateZ(0); }
.grow-glow { will-change: transform; transform: translateZ(0); }
@media (hover: none), (pointer: coarse) {
  /* Phones: the glow behind is already a blur, so a live backdrop blur adds cost but no look; use a flat frosted fill */
  .grow-board { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(255 255 255 / 0.52); }
}
/* Grow: the glow's gradients are already soft, so skip the live blur filter (it was re-run every frame and caused jank) */
.grow-glow { filter: none; }
@media (min-width: 761px) {
  .grow-glow {
    background:
      radial-gradient(90% 64% at 18% 30%, rgb(214 120 96 / 0.15), transparent 72%),
      radial-gradient(100% 68% at 55% 70%, rgb(180 180 190 / 0.15), transparent 72%),
      radial-gradient(90% 64% at 86% 35%, rgb(248 186 156 / 0.21), transparent 72%);
  }
}

/* Grow: softer arrival for each new reel — image, shade and label all fade in together, lift eases */
.grow .slot::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 0.5)); opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.grow .slot.on::after { opacity: 1; }
.grow .slot img { opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 1.1s var(--ease); }
.grow .slot.on img { opacity: 1; transform: none; }
.grow .slot .slot-day.views { transition: opacity 0.7s var(--ease) 0.15s, color 0.3s; }
.grow .slot:not(.on) .slot-day.views { opacity: 0; }
.grow .slot { transition: transform 0.7s var(--ease), opacity 0.35s var(--ease); }
@media (hover: none), (pointer: coarse) { .grow-slots { scroll-snap-type: none; } }
.grow:not(.done) .grow-slots { scroll-snap-type: none; }

/* Grow: the raised reel rises above the edge fade on its own (the fade stays on the rest) */
.grow-row { --fl: 0; --fr: 0; }
.grow-row.fade-l { --fl: 0.95; }
.grow-row.fade-r { --fr: 0.95; }
.grow .slot::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / var(--fl)), rgb(255 255 255 / 0) 72px, rgb(255 255 255 / 0) calc(var(--rw, 100%) - 72px), rgb(255 255 255 / var(--fr))) no-repeat;
  background-size: var(--rw, 100%) 100%;
  background-position: calc(-1 * var(--sx, 0px)) 0;
}
.grow .slot.above { z-index: 3; }
.grow .slot.above::before { opacity: 1; transition: opacity 0.45s var(--ease); }
.grow .slot.above.clear::before { opacity: 0; }
.grow .slot.snap::before { transition: none; }

/* Grow: the fade copy's strength eases with the real fade when an edge fade turns on or off */
@property --fl { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fr { syntax: "<number>"; inherits: true; initial-value: 0; }
.grow-row { transition: --fl 0.4s var(--ease), --fr 0.4s var(--ease); }

/* Grow: the lift is driven by one animated number (--s) that the fade copy also reads, so the copy is
   counter-scaled exactly on every frame and the fade never appears to shift */
@property --s { syntax: "<number>"; inherits: true; initial-value: 1; }
.grow-slots .slot, .grow-slots .slot.now, .grow-slots .slot.hl {
  --s: 1;
  transform: translateY(calc((var(--s) - 1) * -100px)) scale(var(--s));
  transition: --s 0.7s var(--ease), opacity 0.35s var(--ease);
}
.grow-slots .slot.hl { --s: 1.04; }
.grow-slots .slot::before {
  background-size: calc(var(--rw, 100%) / var(--s)) 100%;
  background-position: calc((var(--sw, 0px) / 2) - (var(--sx, 0px) + var(--sw, 0px) / 2) / var(--s)) 0;
}
.grow-slots { scroll-snap-type: none; }
.grow-slots .slot::before {
  background-image: linear-gradient(90deg, rgb(255 255 255 / var(--fl)), rgb(255 255 255 / 0) calc(72px / var(--s)), rgb(255 255 255 / 0) calc((var(--rw, 100%) - 72px) / var(--s)), rgb(255 255 255 / var(--fr)));
}

/* Grow: the intro slide is a transform on the reels (--tx), drawn in the same frame as the chart */
.grow-slots .slot, .grow-slots .slot.now, .grow-slots .slot.hl {
  transform: translateX(var(--tx, 0px)) translateY(calc((var(--s) - 1) * -100px)) scale(var(--s));
}
/* Phones: each reel lands together with its point on the line */
@media (hover: none), (pointer: coarse) {
  .grow-slots .slot, .grow-slots .slot.now, .grow-slots .slot.hl { transition: --s 0.5s var(--ease), opacity 0.3s var(--ease); }
  .grow .slot img { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .grow .slot::after { transition: opacity 0.5s var(--ease); }
  .grow .slot .slot-day.views { transition: opacity 0.45s var(--ease) 0.05s, color 0.3s; }
}
/* Grow: the glow fades to nothing before its own edges (no straight cut-off lines), at any width */
.grow-glow {
  inset: -110px -10%;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
@media (max-width: 760px) { .grow-glow { inset: -90px -28px; } }
/* Grow glow v3: the original gradient, given a full-width, extra-tall canvas so it fades into the page on its
   own (no box edges to cut it). Shapes are anchored to the tile's centre. */
.grow .grow-stage .grow-glow {
  inset: auto; left: 50%; top: 50%; width: 100vw; height: calc(100% + 640px);
  transform: translate(-50%, -50%);
  -webkit-mask-image: none; mask-image: none; filter: none;
  background:
    radial-gradient(833px 375px at calc(50% - 314px) calc(50% - 129px), rgb(214 120 96 / 0.16), rgb(214 120 96 / 0.115) 22%, rgb(214 120 96 / 0.061) 42%, rgb(214 120 96 / 0.019) 58%, rgb(214 120 96 / 0) 72%),
    radial-gradient(931px 400px at calc(50% + 49px) calc(50% + 129px), rgb(180 180 190 / 0.16), rgb(180 180 190 / 0.115) 22%, rgb(180 180 190 / 0.061) 42%, rgb(180 180 190 / 0.019) 58%, rgb(180 180 190 / 0) 72%),
    radial-gradient(833px 375px at calc(50% + 353px) calc(50% - 97px), rgb(248 186 156 / 0.22), rgb(248 186 156 / 0.158) 22%, rgb(248 186 156 / 0.084) 42%, rgb(248 186 156 / 0.026) 58%, rgb(248 186 156 / 0) 72%);
}
@media (max-width: 760px) {
  .grow .grow-stage .grow-glow {
    height: calc(100% + 520px);
    background:
      radial-gradient(340px 220px at calc(50% - 125px) calc(50% - 77px), rgb(214 120 96 / 0.16), rgb(214 120 96 / 0.115) 22%, rgb(214 120 96 / 0.061) 42%, rgb(214 120 96 / 0.019) 58%, rgb(214 120 96 / 0) 72%),
      radial-gradient(380px 240px at calc(50% + 19px) calc(50% + 77px), rgb(180 180 190 / 0.16), rgb(180 180 190 / 0.115) 22%, rgb(180 180 190 / 0.061) 42%, rgb(180 180 190 / 0.019) 58%, rgb(180 180 190 / 0) 72%),
      radial-gradient(340px 220px at calc(50% + 140px) calc(50% - 58px), rgb(248 186 156 / 0.22), rgb(248 186 156 / 0.158) 22%, rgb(248 186 156 / 0.084) 42%, rgb(248 186 156 / 0.026) 58%, rgb(248 186 156 / 0) 72%);
  }
}
/* keep the heading and footer links crisp above the glow */
.grow-head, .grow-foot { position: relative; z-index: 1; }

/* Grow: points change size/colour smoothly; on returning to default the end point eases back in a beat later */
.grow-chart .g-dot { transition: opacity 0.25s, r 0.3s var(--ease), fill 0.25s var(--ease); }
.grow.settling .g-dot { transition: opacity 0.25s, r 0.35s var(--ease), fill 0.3s var(--ease); }
.grow.settling .g-dot.now { transition: opacity 0.25s, r 0.6s var(--ease) 0.18s, fill 0.5s var(--ease) 0.18s; }

/* Grow: returning to default is clearly a reset — the end point pops and a soft ring ripples out from it */
.grow-chart .g-pulse { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; pointer-events: none;
  transform-box: fill-box; transform-origin: center; vector-effect: non-scaling-stroke; }
.grow.settling .g-pulse { animation: g-ripple 1.1s var(--ease) 0.2s both; }
.grow.settling .g-dot.now { transform-box: fill-box; transform-origin: center; animation: g-pop 0.7s var(--ease) 0.18s both; }
@keyframes g-ripple { 0% { opacity: 0.45; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }
@keyframes g-pop { 0% { transform: scale(0.6); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (max-width: 760px) { .grow-chart .g-pulse { r: 15; stroke-width: 3; } }
@media (prefers-reduced-motion: reduce) { .grow.settling .g-pulse, .grow.settling .g-dot.now { animation: none; } }
.grow-chart .g-pulse { stroke-width: 2.5; }
@keyframes g-ripple { 0% { opacity: 0.7; transform: scale(1); } 45% { opacity: 0.4; } 100% { opacity: 0; transform: scale(3.4); } }

/* Grow: after an edge slide the reel lifts quickly */
.grow-slots .slot.quick, .grow-slots .slot.quick.hl { transition: --s 0.3s var(--ease), opacity 0.35s var(--ease); }
.grow .slot.quick.above::before { transition: opacity 0.25s var(--ease); }
/* the fade copy must appear instantly (matching the real fade) before it eases out — never animate that first step */
.grow .slot.snap::before { transition: none !important; }
.grow .slot.quick.above.clear::before { transition: opacity 0.35s var(--ease); }

/* Grow v4 edge fades: a transparency mask on the row (blends into any background — e.g. the case-study backdrop).
   Windows A/B (one per raised / settling reel) open the mask over a raised reel, easing in and out. */
@property --aa { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --ba { syntax: "<number>"; inherits: false; initial-value: 0; }
.grow-row .row-fade { display: none; }
.grow .slot::before { display: none; }
.grow-slots .slot.above { z-index: auto; }
.grow-slots {
  -webkit-mask-image:
    linear-gradient(rgb(0 0 0 / var(--aa)), rgb(0 0 0 / var(--aa))),
    linear-gradient(rgb(0 0 0 / var(--ba)), rgb(0 0 0 / var(--ba))),
    linear-gradient(90deg, rgb(0 0 0 / calc(1 - var(--fl))), #000 72px, #000 calc(100% - 72px), rgb(0 0 0 / calc(1 - var(--fr))));
          mask-image:
    linear-gradient(rgb(0 0 0 / var(--aa)), rgb(0 0 0 / var(--aa))),
    linear-gradient(rgb(0 0 0 / var(--ba)), rgb(0 0 0 / var(--ba))),
    linear-gradient(90deg, rgb(0 0 0 / calc(1 - var(--fl))), #000 72px, #000 calc(100% - 72px), rgb(0 0 0 / calc(1 - var(--fr))));
  -webkit-mask-position: var(--ax, -9999px) 0, var(--bx, -9999px) 0, 0 0;
          mask-position: var(--ax, -9999px) 0, var(--bx, -9999px) 0, 0 0;
  -webkit-mask-size: var(--aw, 1px) 100%, var(--bw, 1px) 100%, 100% 100%;
          mask-size: var(--aw, 1px) 100%, var(--bw, 1px) 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: --aa 0.42s var(--ease), --ba 0.42s var(--ease);
}
.grow-slots.nofx { transition: none; }

@media (max-width: 760px) {
  .chart-pt.on .chart-dot, .chart-pt:focus-visible .chart-dot { r: 8; }
  .grow-chart .g-dot.now, .grow-chart .g-dot.hover { r: 9; }
  .grow.hovering .g-dot.now:not(.hover) { r: 6; }
}

/* Homepage: the same fixed, slowly drifting backdrop as the Our work page shows through every white section
   (it stays put while you scroll). The hero keeps a plain white background; grey sections stay grey. */
.home-page main { position: relative; z-index: 1; }
.home-page .footer { position: relative; z-index: 1; }
.home-page .hero { position: relative; isolation: isolate; }
.home-page .hero::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--nav-h, 0px) - 200px); bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--white, #fff); pointer-events: none; }

/* Homepage backdrop: a little whiter than the Our work page */
.home-page .ambient { opacity: 0.6; }

/* The page-wide backdrop replaces the per-section glows (chart, How it works, What you'll get) */
.grow .grow-stage .grow-glow, .bento-glow, .stack-space .space-orb { display: none; }

/* About: inline link to the guarantee */
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(29 29 31 / 0.25); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.text-link:hover { text-decoration-color: var(--ink); }
/* About: "Who you're talking to" reads as its own section title */
.team-title { margin: var(--section) 0 clamp(40px, 5vw, 64px); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
/* Walkthrough section stays plain white over the backdrop */
.home-page .walk { position: relative; background: var(--white, #fff); }

/* Your first 90 days: glassy circles, track and detail bubble */
.tl-node {
  background: rgb(255 255 255 / 0.55); color: var(--gray-2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 4px 12px rgb(0 0 0 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.8);
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
}
.tl-node:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.95), 0 6px 16px rgb(0 0 0 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.8); }
.tl-node[aria-pressed="true"] { background: rgb(29 29 31 / 0.78); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 8px 20px rgb(0 0 0 / 0.16), 0 0 0 5px rgb(29 29 31 / 0.06); animation: none; }
.tl-step.passed .tl-node { background: rgb(134 134 139 / 0.6); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 4px 12px rgb(0 0 0 / 0.08); }
.tl-end .tl-node { background: rgb(255 255 255 / 0.5); color: #d19a8e; box-shadow: inset 0 0 0 1px rgb(226 183 173 / 0.9), 0 4px 12px rgb(135 48 31 / 0.08); }
.tl-end .tl-node:hover { color: var(--red); box-shadow: inset 0 0 0 1px rgb(135 48 31 / 0.5), 0 6px 16px rgb(135 48 31 / 0.12); }
.tl-end .tl-node[aria-pressed="true"] { background: rgb(135 48 31 / 0.85); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2), 0 8px 20px rgb(135 48 31 / 0.25), 0 0 0 5px rgb(135 48 31 / 0.1); }
.tl-seg { height: 4px; margin-top: -2px; background: rgb(255 255 255 / 0.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8), 0 1px 3px rgb(0 0 0 / 0.05); }
.tl-seg::after { background: rgb(134 134 139 / 0.55); }
.tl-panel {
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.75);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.7);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.tl-notch { fill: rgb(255 255 255 / 0.55); top: -12px; }

/* 90 days: the bubble + pointer are one glass shape (drawn by script) */
.tl-panel { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
.tl-panel > :not(.tl-shape):not(.tl-glass) { position: relative; z-index: 1; }
.tl-notch { display: none; }
.tl-shape, .tl-glass { position: absolute; left: 0; top: -12px; width: 100%; height: calc(100% + 12px); pointer-events: none; overflow: visible; }
.tl-shape-shadow { z-index: 0; filter: blur(18px); opacity: 0.09; transform: translateY(12px); }
.tl-shape-shadow path { fill: #000; }
.tl-glass { z-index: 0; background: rgb(255 255 255 / 0.55); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.tl-shape-line { z-index: 1; }
.tl-shape-line path { fill: none; stroke: rgb(255 255 255 / 0.85); stroke-width: 1.5; }
/* 90 days: dots follow the line (their look is set by is-on / is-past, timed by script) */
.tl-seg::after { transition-duration: 0.24s; transition-timing-function: linear; }
.tl-step .tl-node, .tl-step .tl-node[aria-pressed="true"], .tl-step.passed .tl-node {
  background: rgb(255 255 255 / 0.55); color: var(--gray-2); animation: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 4px 12px rgb(0 0 0 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.8);
}
.tl-step.tl-end .tl-node, .tl-step.tl-end .tl-node[aria-pressed="true"] { background: rgb(255 255 255 / 0.5); color: #d19a8e; box-shadow: inset 0 0 0 1px rgb(226 183 173 / 0.9), 0 4px 12px rgb(135 48 31 / 0.08); }
.tl-step .tl-node.is-past { background: rgb(134 134 139 / 0.6); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 4px 12px rgb(0 0 0 / 0.08); }
.tl-step .tl-node.is-on { background: rgb(29 29 31 / 0.78); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 8px 20px rgb(0 0 0 / 0.16), 0 0 0 5px rgb(29 29 31 / 0.06); }
.tl-step.tl-end .tl-node.is-on { background: rgb(135 48 31 / 0.85); color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2), 0 8px 20px rgb(135 48 31 / 0.25), 0 0 0 5px rgb(135 48 31 / 0.1); }
.tl-node { transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.4s var(--ease), box-shadow 0.2s var(--ease); }

/* 90 days bubble: drawn as one see-through shape (no clipped backdrop blur, which some browsers drop) */
.tl-glass { display: none; }
.tl-shape-line path { fill: rgb(255 255 255 / 0.6); stroke: rgb(255 255 255 / 0.9); stroke-width: 1.5; }
.tl-shape-line { z-index: 0; }

/* Closing section: plain white, full width, down to the footer */
.home-page .closing { position: relative; isolation: isolate; }
.home-page .closing::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--white, #fff); pointer-events: none; }

/* Team and engagement tiles: glass */
.about .person, .engagements .plan {
  background: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.06), inset 0 1px 0 rgb(255 255 255 / 0.8);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.engagements .plan:hover, .about .person:hover { box-shadow: 0 20px 44px rgb(0 0 0 / 0.09), inset 0 1px 0 rgb(255 255 255 / 0.8); }

/* 90 days: the fill is driven continuously by script (--f per bar); dots fade gently between light and dark */
.tl-step .tl-seg::after, .tl-step.passed .tl-seg::after { transform: scaleX(var(--f, 0)); transition: none; }
.tl-step .tl-node { transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease, transform 0.4s var(--ease); }

/* Guarantee card: the same frosted glass as the tiles above it */
.promise {
  background: rgb(255 255 255 / 0.6); color: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.06), inset 0 1px 0 rgb(255 255 255 / 0.8);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.promise::before { background: radial-gradient(420px circle at var(--gx) var(--gy), rgb(255 255 255 / 0.55), transparent 65%); }
.promise .dim { color: var(--gray-2); }
.promise .caret { border-color: var(--ink); }
.promise-body div { border-top-color: rgb(29 29 31 / 0.1); }
.promise-body p { color: var(--gray); }

/* 90 days: smooth cross-fade of the bubble content; springy pop on the dot the line lands on */
.tl-panel-text.swap, .tl-ghost { animation: none; }
.tl-body-ghost { position: absolute; z-index: 2; margin: 0; pointer-events: none; animation: tl-body-out 0.22s ease forwards; }
.tl-panel-body.tl-body-in { animation: tl-body-in 0.34s cubic-bezier(.2, .7, .2, 1) 0.06s both; }
@keyframes tl-body-out { to { opacity: 0; } }
@keyframes tl-body-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.tl-step .tl-node.tl-pop { animation: tl-dot-pop 0.42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tl-dot-pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tl-body-ghost, .tl-panel-body.tl-body-in, .tl-step .tl-node.tl-pop { animation: none; } }
.tl-panel > .tl-body-ghost { position: absolute !important; z-index: 2 !important; }

/* Guarantee card: dark frosted glass — the highlighted tile */
.promise {
  background: rgb(29 29 31 / 0.82); color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.14);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.promise::before { background: radial-gradient(420px circle at var(--gx) var(--gy), rgb(255 255 255 / 0.08), transparent 65%); }
.promise .dim { color: #86868b; }
.promise .caret { border-color: var(--white); }
.promise-body div { border-top-color: rgb(255 255 255 / 0.12); }
.promise-body p { color: #a1a1a6; }

/* Guarantee arrow: points down when closed, up when open; hover only nudges it, never flips it */
.promise .caret { transform: translateY(-3px) rotate(45deg); }
.promise summary:hover .caret { transform: translateY(-1px) rotate(45deg); }
.promise[open] .caret, .promise[open] summary:hover .caret { transform: translateY(3px) rotate(225deg); }
.promise[open] summary:hover .caret { transform: translateY(1px) rotate(225deg); }
/* while it's animating closed, it already points the closed way */
.promise[open][data-expanding="false"] .caret { transform: translateY(-3px) rotate(45deg); }
.promise[open][data-expanding="false"] summary:hover .caret { transform: translateY(-1px) rotate(45deg); }

/* Walkthrough: let the video shadow fade out over the closing section instead of being cut by its white background */
.home-page .walk { z-index: 1; }

/* Chart, glass finish: a soft shadow under the line and a thin highlight along its top (a glossy tube);
   frosted points with a red rim; the selected point is red glass with a light inner edge */
.grow-chart .g-line-shadow { fill: none; stroke: rgb(135 48 31 / 0.16); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(3px); vector-effect: non-scaling-stroke; }
.grow-chart .g-line-shine { fill: none; stroke: rgb(255 255 255 / 0.55); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-0.9px); vector-effect: non-scaling-stroke; }
.grow-chart .g-dot { fill: rgb(255 255 255 / 0.72); stroke: rgb(135 48 31 / 0.85); filter: drop-shadow(0 1.5px 2.5px rgb(135 48 31 / 0.25)); }
.grow-chart .g-dot.now, .grow-chart .g-dot.hover { fill: rgb(150 56 36 / 0.92); stroke: rgb(255 255 255 / 0.85); filter: drop-shadow(0 2px 5px rgb(135 48 31 / 0.4)); }
.grow.hovering .g-dot.now:not(.hover) { fill: rgb(255 255 255 / 0.72); stroke: rgb(135 48 31 / 0.85); filter: drop-shadow(0 1.5px 2.5px rgb(135 48 31 / 0.25)); }
@media (max-width: 760px) {
  .grow-chart .g-line-shadow { stroke-width: 9; transform: translateY(3px); }
  .grow-chart .g-line-shine { stroke-width: 1.2; transform: translateY(-1.1px); }
}
@media (max-width: 760px) {
  /* the chart is drawn at about half scale on phones, so offsets are doubled to land on the top edge */
  .grow-chart .g-line-shadow { stroke-width: 6; stroke: rgb(135 48 31 / 0.11); transform: translateY(5px); }
  .grow-chart .g-line-shine { stroke-width: 0.9; stroke: rgb(255 255 255 / 0.5); transform: translateY(-3px); }
}

/* Chart, subtler: no shadow under the line, just a faint sheen; the points are part of the line —
   same colour (matched along the gradient) and the same stroke weight, the selected one filled in */
.grow-chart .g-line-shadow { display: none; }
.grow-chart .g-line-shine { stroke: rgb(255 255 255 / 0.28); }
.grow-chart .g-dot, .grow.hovering .g-dot.now:not(.hover) { fill: rgb(255 255 255 / 0.92); stroke: url(#g-line-u); stroke-width: 3; filter: none; }
.grow-chart .g-dot.now, .grow-chart .g-dot.hover { fill: url(#g-line-u); stroke: url(#g-line-u); filter: none; }
@media (max-width: 760px) {
  .grow-chart .g-dot, .grow.hovering .g-dot.now:not(.hover), .grow-chart .g-dot.now, .grow-chart .g-dot.hover { stroke-width: 3.5; }
}
@media (max-width: 760px) {
  .grow-chart .g-dot, .grow.hovering .g-dot.now:not(.hover) { r: 11; }
  .grow-chart .g-dot.now, .grow-chart .g-dot.hover { r: 14; }
}

/* Chart, Robinhood style: one thin solid line, no fill, no gridlines (just a faint dotted baseline), no points
   except the live end; scrubbing shows a thin marker + one dot, colour up to it and grey after */
.grow-chart .g-area, .grow-chart .g-line-shadow, .grow-chart .g-line-shine { display: none; }
.grow-chart .g-grid { display: none; }
.grow-chart .g-grid.g-base { display: inline; stroke: rgb(29 29 31 / 0.18); stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.grow-chart .g-line { stroke: var(--red); stroke-width: 2.25; }
.grow-chart .g-line-rest { fill: none; stroke: rgb(29 29 31 / 0.16); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.grow-chart .g-cursor { stroke: rgb(29 29 31 / 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.2s ease; }
.grow.scrubbing .grow-chart .g-cursor { opacity: 1; }
/* points: hidden, except the live end dot and the scrubbed dot — solid, in the line colour */
.grow-chart .g-dot, .grow.hovering .g-dot.now:not(.hover) { opacity: 0; fill: var(--red); stroke: none; filter: none; r: 5; }
.grow-chart .g-dot.now, .grow-chart .g-dot.hover { opacity: 1; fill: var(--red); stroke: rgb(255 255 255 / 0.9); stroke-width: 2; r: 5; }
.grow.hovering .grow-chart .g-dot.now:not(.hover) { opacity: 0; }
@media (max-width: 760px) {
  .grow-chart .g-line, .grow-chart .g-line-rest { stroke-width: 2.5; }
  .grow-chart .g-dot, .grow.hovering .g-dot.now:not(.hover), .grow-chart .g-dot.now, .grow-chart .g-dot.hover { r: 10; stroke-width: 2; }
}
.grow .grow-chart .g-dot.on:not(.now):not(.hover), .grow .grow-chart .g-dot:not(.now):not(.hover) { opacity: 0; }
.grow.hovering .grow-chart .g-dot.on.now:not(.hover) { opacity: 0; }
.grow .grow-chart .g-dot { transition: opacity 0.2s ease, r 0.3s var(--ease); }

/* Chart: thicker line on desktop; soft gradient under the coloured part; one dot that slides along the line */
.grow-chart .g-line, .grow-chart .g-line-rest { stroke-width: 3; }
.grow-chart .g-area { display: inline; fill: url(#g-area-r); }
.grow-chart .g-scrubdot { fill: var(--red); stroke: rgb(255 255 255 / 0.9); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.grow.scrubbing .grow-chart .g-scrubdot { opacity: 1; }
.grow .grow-chart .g-dot.hover:not(.now), .grow.scrubbing .grow-chart .g-dot.hover { opacity: 0; }
@media (max-width: 760px) {
  .grow-chart .g-line, .grow-chart .g-line-rest { stroke-width: 2.75; }
  .grow-chart .g-scrubdot { r: 10; }
}

/* Chart intro: one dot rides the tip of the line (the line ends under it), then hands over to the end dot */
.grow.intro-tip .grow-chart .g-scrubdot { opacity: 1; transition: none; }
.grow.intro-tip .grow-chart .g-dot { opacity: 0 !important; transition: none; }

/* Phones: the background reels in "We've done this before" drift noticeably (2D float, slight tilt) */
.work-bg.lite .bg-thumb { animation-name: lite-float2; animation-timing-function: ease-in-out; }
@keyframes lite-float2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(var(--fx, 8px), calc(var(--fa, 14px) * -1)) rotate(var(--fr, 0deg)); }
  100% { transform: translate(calc(var(--fx, 8px) * -0.7), calc(var(--fa, 14px) * -0.35)) rotate(calc(var(--fr, 0deg) * -0.6)); }
}
/* Phones: a thin white ring on the chart's dot so the red reads */
@media (max-width: 760px) {
  .grow-chart .g-dot.now, .grow-chart .g-dot.hover, .grow-chart .g-scrubdot { stroke-width: 1.25; stroke: rgb(255 255 255 / 0.85); }
}
/* Backdrop blobs: soft radial gradients instead of a live 60px blur (same look, far cheaper, esp. on phones) */
.ambient span { filter: none; background: radial-gradient(closest-side, var(--c), transparent) !important; will-change: translate; }
.ambient span:nth-child(1) { --c: rgb(163 61 40 / 0.12); width: 64vw; height: 64vw; }
.ambient span:nth-child(2) { --c: rgb(242 160 120 / 0.18); width: 58vw; height: 58vw; }
.ambient span:nth-child(3) { --c: rgb(29 29 31 / 0.06); width: 52vw; height: 52vw; }
.ambient span:nth-child(4) { --c: rgb(242 160 120 / 0.12); width: 42vw; height: 42vw; }
.ambient span:nth-child(5) { --c: rgb(163 61 40 / 0.08); width: 46vw; height: 46vw; }
/* backdrop gradients tuned to match the old blurred look */
.ambient span { background: radial-gradient(closest-side, var(--c), color-mix(in srgb, var(--c) 55%, transparent) 45%, transparent) !important; }
.ambient span:nth-child(1) { --c: rgb(163 61 40 / 0.2); width: 70vw; height: 70vw; margin: -4vw 0 0 -4vw; }
.ambient span:nth-child(2) { --c: rgb(242 160 120 / 0.3); width: 64vw; height: 64vw; margin: -4vw -4vw 0 0; }
.ambient span:nth-child(3) { --c: rgb(29 29 31 / 0.1); width: 58vw; height: 58vw; margin: -3vw 0 0 -3vw; }
.ambient span:nth-child(4) { --c: rgb(242 160 120 / 0.2); width: 48vw; height: 48vw; margin: -3vw 0 0 -3vw; }
.ambient span:nth-child(5) { --c: rgb(163 61 40 / 0.13); width: 52vw; height: 52vw; margin: -3vw -3vw 0 0; }

/* Chart hover layer: covers the chart and the space down to the reels (no dead gap) */
.grow-chart .g-hit { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 2; cursor: default; background: transparent; }
@media (hover: none), (pointer: coarse) { .grow-chart .g-hit { pointer-events: none; } }

/* About: three short paragraphs instead of one block */
.about-copy { max-width: 720px; margin-inline: auto; display: grid; gap: 16px; }
.about-copy .lede { margin: 0; }
.about-copy { margin-top: 18px; }

/* EZ4X4 history chart: section host with a platform switch and one chart per platform */
.grow-host { position: relative; padding: var(--section) 0; }
.grow-host .grow-panel { height: auto; padding: 0; }
.grow-host .grow-panel[hidden] { display: none; }
.grow-host .grow-inner { display: grid; gap: clamp(18px, 3vh, 28px); }
.grow-switch {
  --seg-i: 0; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 20px; padding: 4px;
  border-radius: 999px; background: rgb(255 255 255 / 0.55); border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.06), inset 0 1px 0 rgb(255 255 255 / 0.8);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.grow-switch::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 999px;
  background: var(--ink); box-shadow: 0 4px 12px rgb(0 0 0 / 0.16);
  transform: translateX(calc(var(--seg-i) * 100%)); transition: transform 0.45s var(--ease);
}
.grow-switch button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 20px; min-width: 112px; font: inherit; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; border-radius: 999px; transition: color 0.3s var(--ease); }
.grow-switch button[aria-selected="true"] { color: var(--white); }
/* period labels above the line, with faint dashed dividers between periods */
.grow-periods { position: absolute; left: 0; right: 0; top: 0; height: 18px; pointer-events: none; z-index: 1; }
.grow-periods .gp { position: absolute; top: 0; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.gp-before { color: #8e8e93; }
.gp-with { color: var(--red); }
.gp-after { color: #c46a43; }
.grow-chart .g-divider { stroke: rgb(29 29 31 / 0.16); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
/* grey placeholder tiles carrying their views */
.grow .slot.slot-blank { background: rgb(29 29 31 / 0.08); }
.grow .slot.slot-blank .slot-day.views { color: var(--white); }
.grow .slot.slot-blank::after { opacity: 0.6; }
@media (max-width: 760px) { .grow-periods .gp { font-size: 10px; } .grow-switch button { min-width: 100px; padding: 7px 16px; } }

.grow-periods .gp { overflow: visible; display: flex; justify-content: center; }

/* EZ4X4 time chart: straight segments between reels, joined cleanly */
.grow .g-line, .grow .g-line-rest { stroke-linejoin: round; }
/* EZ4X4: give Replay / Zoom the same breathing room under the chart as on Stoat */
.grow-host .grow-panel .grow-foot { margin-top: clamp(18px, 3vh, 28px); }
/* EZ4X4: the period labels sit under the chart like axis captions, clear of the big numbers */
.grow-host .grow-periods { top: auto; bottom: 0; transform: translateY(calc(100% + 2px)); }
/* readout: the number first, its label underneath */
.grow-readout strong + .grow-label { margin-top: 3px; }
/* EZ4X4 on phones: hundreds of reels arrive during the intro; their entrance fades cost a restyle each per frame,
   so they arrive without one (they come in at the faded right edge anyway) */
@media (hover: none), (pointer: coarse) {
  .grow[data-grow-zoom] .slot img, .grow[data-grow-zoom] .slot::after, .grow[data-grow-zoom] .slot .slot-day.views { transition: none; }
}
/* EZ4X4: each reel is boxed off for layout, so turning hundreds of them on during the intro (and scrolling
   the row) never re-lays out the whole row */
.grow[data-grow-zoom] .slot { contain: strict; }
/* EZ4X4: the reels can be swiped as soon as the line lands, while the zoom finishes */
.grow.row-free .grow-slots { overflow-x: auto; }
/* EZ4X4 on phones: during the opening the reels stay light, soft placeholders (no pictures to draw while the row
   races along); they come up to full, with their pictures, once the line lands */
@media (hover: none), (pointer: coarse) {
  .grow[data-grow-zoom] .grow-row { transition: opacity 0.6s var(--ease); }
  .grow[data-grow-zoom]:not(.row-free) .grow-row { opacity: 0.4; }   /* (no blur: blurring a moving row redraws it every frame) */
  .grow[data-grow-zoom]:not(.row-free) .slot .slot-day.views { opacity: 0; }
  .grow[data-grow-zoom]:not(.row-free) .slot img { visibility: hidden; }
  .grow[data-grow-zoom]:not(.row-free) .grow-slots { -webkit-mask: none; mask: none; }   /* no edge-fade mask to redraw while it races */
}
