/* GB Studio portfolio. Apple-style page that follows the visitor's device (light or dark).
   Brand colour: Apple green running into mint and teal. Every colour is a token; the dark block only swaps values. */
:root {
  color-scheme: light dark;

  --bg: #fff;
  --tile: #f5f5f7;
  --surface: #fff;
  --line: rgba(0, 0, 0, .09);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #6e6e73;
  --link: #248a3d;
  --accent: #248a3d;

  --nav-bg: rgba(255, 255, 255, .72);
  --nav-border: rgba(0, 0, 0, .07);
  --nav-link: rgba(29, 29, 31, .8);
  --chip-bg: rgba(0, 0, 0, .05);
  --chip-bg-hover: rgba(0, 0, 0, .09);
  --chip-fg: #1d1d1f;
  --chip-on-bg: #1d1d1f;
  --chip-on-fg: #fff;
  --primary-bg: #1d1d1f;
  --primary-hover: #000;
  --primary-fg: #fff;
  --secondary-bg: rgba(0, 0, 0, .06);
  --secondary-hover: rgba(0, 0, 0, .1);

  --glass-bg: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .85);
  --glass-hi: rgba(255, 255, 255, .95);
  --notif-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px -6px rgba(15, 50, 30, .2);
  --depth: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 24px -10px rgba(0, 0, 0, .18), 0 28px 56px -26px rgba(0, 0, 0, .26);
  --tile-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px -12px rgba(0, 0, 0, .16);

  --glow-1: rgba(52, 199, 89, .32);
  --glow-2: rgba(48, 176, 199, .24);
  --frame: #c7c7cc;
  --phone-shadow: rgba(0, 0, 0, .22);

  --tl-bg: #fff;
  --tick: rgba(0, 0, 0, .18);
  --tick-major: rgba(0, 0, 0, .45);
  --lane: rgba(0, 0, 0, .045);
  --cap: rgba(0, 0, 0, .1);
  --cap-done: rgba(36, 138, 61, .5);
  --wave: rgba(0, 0, 0, .2);
  --playhead: #1d1d1f;
  --playhead-glow: rgba(0, 0, 0, .25);
  --clip-ink: #fff;

  /* Green → mint → teal, deep enough that every stop stays readable on white. */
  --g1: #1fa244;
  --g2: #248a3d;
  --g3: #0c8f6e;
  --g4: #0a8a85;
  --g5: #0b7f99;
  --g6: #0071a4;
  --grad: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g6));
  --grad-loop: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g6), var(--g1));
  --conic: conic-gradient(from var(--a), var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g6), var(--g1));

  --gutter: 20px;
  --maxw: 1180px;
  --nav-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --tile: #1c1c1e;
    --surface: #111113;
    --line: rgba(255, 255, 255, .1);
    --text: #f5f5f7;
    --muted: #86868b;
    --muted-2: #a1a1a6;
    --link: #7fd6a6;
    --accent: #3cb987;

    --nav-bg: rgba(22, 22, 23, .66);
    --nav-border: rgba(255, 255, 255, .06);
    --nav-link: #d2d2d7;
    --chip-bg: rgba(255, 255, 255, .08);
    --chip-bg-hover: rgba(255, 255, 255, .14);
    --chip-fg: #d2d2d7;
    --chip-on-bg: #f5f5f7;
    --chip-on-fg: #1d1d1f;
    --primary-bg: #f5f5f7;
    --primary-hover: #fff;
    --primary-fg: #1d1d1f;
    --secondary-bg: rgba(255, 255, 255, .1);
    --secondary-hover: rgba(255, 255, 255, .16);

    --glass-bg: rgba(38, 40, 39, .72);
    --glass-border: rgba(255, 255, 255, .1);
    --glass-hi: rgba(255, 255, 255, .12);
    --notif-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -8px rgba(0, 0, 0, .7);
    --depth: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 26px -10px rgba(0, 0, 0, .7), 0 30px 60px -26px rgba(0, 0, 0, .85);
    --tile-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -14px rgba(0, 0, 0, .8);

    --glow-1: rgba(40, 160, 110, .2);
    --glow-2: rgba(30, 120, 140, .18);
    --frame: #48484c;
    --phone-shadow: rgba(0, 0, 0, .7);

    --tl-bg: #111113;
    --tick: rgba(255, 255, 255, .18);
    --tick-major: rgba(255, 255, 255, .4);
    --lane: rgba(255, 255, 255, .045);
    --cap: rgba(255, 255, 255, .14);
    --cap-done: rgba(255, 255, 255, .55);
    --wave: rgba(255, 255, 255, .24);
    --playhead: #fff;
    --playhead-glow: rgba(255, 255, 255, .6);
    --clip-ink: #1d1d1f;

    /* Quiet in the dark: pearl → soft mint → emerald. */
    --g1: #e9f7ee;
    --g2: #c3ecd2;
    --g3: #8fdcb0;
    --g4: #5ccb94;
    --g5: #3cb987;
    --g6: #2aa57a;
  }
}
@media (min-width: 740px) { :root { --gutter: 40px; } }

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
@keyframes drift { to { background-position: 200% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); -webkit-text-size-adjust: 100%; }
html { scrollbar-gutter: stable; }
html.focus-lock { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.47 var(--font); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; }
.big { font-size: clamp(40px, 7.2vw, 80px); line-height: 1.04; letter-spacing: -.035em; }
.lede {
  margin: 16px 0 0; max-width: 34em;
  font: 500 clamp(18px, 2vw, 22px)/1.35 var(--display); letter-spacing: -.015em; color: var(--muted);
}

/* Headlines carry the brand gradient, drifting slowly so it reads as light, not paint. */
.grad-text {
  background: var(--grad-loop); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: drift 14s linear infinite;
  padding-bottom: .08em;
}

/* ---------- glossy beads (status dots) ---------- */
.bead {
  flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6ffe0 0, #5ee38a 28%, #28b552 62%, #13702f 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 10px rgba(52, 199, 89, .7);
  animation: pulse 2.4s ease-in-out infinite;
}
.bead-red {
  background: radial-gradient(circle at 35% 30%, #ffd9d6 0, #ff6b61 28%, #ff3b30 60%, #a8160d 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 0 10px rgba(255, 59, 48, .65);
  animation-duration: 1.4s;
}
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--font); white-space: nowrap; letter-spacing: -.01em;
  transition: background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: scale(.98); }
.pill-primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .35); }
.pill-primary:hover { background: var(--primary-hover); }
.pill-secondary { background: var(--secondary-bg); color: var(--text); }
.pill-secondary:hover { background: var(--secondary-hover); }
.pill-sm { height: 32px; padding: 0 16px; font-size: 13px; box-shadow: none; }
.pill-lg { height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
}
.nav-in {
  display: flex; align-items: center; gap: 14px; height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
}
.avail {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--primary-bg); color: var(--primary-fg); font: 500 12.5px/1 var(--font); letter-spacing: 0; white-space: nowrap;
}
.nav-links { display: none; gap: 26px; margin-left: auto; font-size: 13px; color: var(--nav-link); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .pill { margin-left: auto; }
@media (min-width: 740px) {
  .nav-links { display: flex; }
  .nav .pill { margin-left: 8px; }
}
/* Brand at the left of the nav: Bao's photo with a green "available" dot, then the name and the word Portfolio,
   so a visitor knows at once whose portfolio this is. The full "Available for work" pill shows only where it fits. */
.nav-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.nav-av { position: relative; flex: none; width: 34px; height: 34px; }
.nav-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; color: transparent; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(0, 0, 0, .3); }
.nav-av .bead { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; box-shadow: 0 0 0 2px var(--bg), 0 0 8px rgba(52, 199, 89, .7); }
.nav-name { font: 600 15px/1 var(--font); letter-spacing: -.02em; white-space: nowrap; }
.nav-tag { margin-left: 2px; padding-bottom: 0; }
.nav .avail { display: none; }
@media (min-width: 560px) and (max-width: 739px), (min-width: 1080px) { .nav .avail { display: inline-flex; } }

/* ---------- soft light behind the hero and the contact block ---------- */
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.glow::before {
  right: -16vmax; top: -14vmax; width: 74vmax; height: 74vmax;
  background: radial-gradient(closest-side, var(--glow-1), transparent 72%);
  animation: float-a 20s ease-in-out infinite alternate;
}
.glow::after {
  right: 16vmax; top: 16vmax; width: 44vmax; height: 44vmax;
  background: radial-gradient(closest-side, var(--glow-2), transparent 72%);
  animation: float-b 24s ease-in-out infinite alternate;
}
@keyframes float-a { to { transform: translate(-8vmax, 6vmax) scale(1.06); } }
@keyframes float-b { to { transform: translate(6vmax, -5vmax) scale(1.12); } }
.glow-low {
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 35%, #000 60%, transparent);
  mask-image: linear-gradient(0deg, transparent, #000 35%, #000 60%, transparent);
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 24px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 8px; align-items: center; }
/* Two columns only where the notifications have room beside the phone. */
@media (min-width: 1120px) {
  .hero { padding: 40px 0 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; min-height: min(760px, calc(100svh - var(--nav-h) - 40px)); }
}
@media (min-width: 900px) and (max-width: 1119px) { .stage { margin-top: 24px; } }
.hero-text { position: relative; }
.hero h1 { font-size: clamp(52px, 9.4vw, 112px); line-height: 1; letter-spacing: -.045em; }
.hero h1 .ln { display: block; }
.hero h1 .ln:last-child { margin-top: .14em; }
.hero .sub { margin: 26px 0 30px; max-width: 30em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--muted-2); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }

/* Figma-style selection box around the cycling word. */
.selbox {
  position: relative; display: inline-block; padding: 0 .1em; margin-left: -.1em;
  width: calc(var(--w, 3.4em) + .2em); white-space: nowrap; color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  transition: width .5s var(--ease);
}
#cycle { display: inline-block; transition: transform .28s ease, opacity .28s ease, filter .28s ease; }
#cycle.out { transform: translateY(-35%); opacity: 0; filter: blur(6px); }
.selbox .h { position: absolute; width: 11px; height: 11px; border-radius: 2px; background: var(--bg); border: 1.5px solid var(--accent); }
.h-tl { left: -6px; top: -6px; } .h-tr { right: -6px; top: -6px; }
.h-bl { left: -6px; bottom: -6px; } .h-br { right: -6px; bottom: -6px; }

.stats { display: flex; gap: 40px; margin: 40px 0 0; }
/* The numbers carry the brand gradient, like the headlines, so they read first. */
.stats dt {
  font: 700 clamp(44px, 4.8vw, 60px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: var(--grad-loop); background-size: 200% 100%; animation: drift 14s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.stats dd { margin: 8px 0 0; font-size: 14px; line-height: 1.3; color: var(--muted); }

/* Stage: viewfinder corners, REC, a hand holding the phone, notifications flying out of it.
   --pw is the phone's width; the hand image and the notifications are laid out in that unit. */
.stage {
  --pw: clamp(220px, 20vw, 262px); --px: 0; --py: 0;
  position: relative; display: grid; justify-items: center; align-content: start;
  min-height: calc(var(--pw) * 2.15); padding-top: calc(var(--pw) * .2);
}
.vf { position: absolute; width: 26px; height: 26px; border: 0 solid var(--muted); opacity: .45; pointer-events: none; }
.vf-tl { left: 2%; top: 3%; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 6px; }
.vf-tr { right: 2%; top: 3%; border-width: 1.5px 1.5px 0 0; border-top-right-radius: 6px; }
.vf-bl { left: 2%; bottom: 6%; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 6px; }
.vf-br { right: 2%; bottom: 6%; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 6px; }
.rec-tag {
  position: absolute; left: calc(2% + 38px); top: calc(3% + 4px); display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--font); letter-spacing: .12em; color: var(--muted); pointer-events: none;
}
.rec-tag .bead { width: 8px; height: 8px; }

.hand-wrap {
  position: relative; z-index: 2; width: var(--pw);
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -6px), 0) rotate(-3deg);
  transition: transform .6s var(--ease);
  animation: hand-in 1.2s .1s var(--ease) both;
}
@keyframes hand-in { from { opacity: 0; transform: translate3d(40px, 140px, 0) rotate(6deg); } }
.hand {
  position: absolute; z-index: 3; left: -52%; top: 0; width: 208%; max-width: none; pointer-events: none;
  transition: opacity .5s ease, transform .6s var(--ease);
}

/* The phone: a bezel with the video card as its screen. */
.phone { position: relative; width: 100%; }
.bezel {
  position: relative; padding: calc(var(--pw) * .024); border-radius: calc(var(--pw) * .155);
  background: #0b0b0c; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1.5px var(--frame), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -20px var(--phone-shadow);
}
.island {
  position: absolute; z-index: 4; left: 50%; top: calc(var(--pw) * .045);
  width: 31%; height: calc(var(--pw) * .068); transform: translateX(-50%);
  border-radius: 99px; background: #000; pointer-events: none;
}
.phone .card { --r: calc(var(--pw) * .131); border-radius: var(--r); background: #000; aspect-ratio: auto; height: calc(var(--pw) * (16 / 9 - .048)); }
.phone .card .meta { opacity: 0; transition: opacity .25s; }
.phone .card .dur { top: calc(var(--pw) * .05); right: calc(var(--pw) * .06); }

/* Hero video playing with sound: the hand lets go and the notifications step aside. */
.stage.watching .hand { opacity: 0; transform: translateY(60px); }
.hand-wrap::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: calc(var(--pw) * -.16); height: calc(var(--pw) * .12); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); filter: blur(6px); z-index: -1; }
@media (prefers-color-scheme: dark) { .hand-wrap::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--g4) 30%, transparent), transparent); } }
.stage.watching .notifs { opacity: 0; }

.notifs {
  position: absolute; z-index: 4; left: 50%; top: calc(var(--pw) * .2); width: var(--pw); height: calc(var(--pw) * 1.74);
  transform: translateX(-50%); pointer-events: none; transition: opacity .4s ease;
}
.notif {
  --w: clamp(200px, 17vw, 236px);
  position: absolute; display: flex; gap: 11px; align-items: flex-start; width: var(--w); padding: 11px 13px 12px 11px;
  border-radius: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--notif-shadow);
  translate: calc(var(--px, 0) * var(--k, 10) * 1px) calc(var(--py, 0) * var(--k, 10) * 1px);
  animation: fly-out .9s var(--d) cubic-bezier(.2, .9, .25, 1.1) both, bob 6s calc(var(--d) + .9s) ease-in-out infinite alternate;
}
/* Each card starts tucked behind the phone and flies out to its place. */
@keyframes fly-out { from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)) scale(.5); } }
@keyframes bob { from { transform: none; } to { transform: translateY(-8px); } }
.ni { flex: none; width: 40px; height: 40px; margin: -1px 0 0 -1px; }
.ni img { width: 53.3px; max-width: none; height: 53.3px; margin: -5.3px 0 0 -6.7px; }
.nt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.nt small { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.nt b { font-size: 13.5px; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
.nt em { font-size: 13px; font-style: normal; line-height: 1.32; color: var(--muted-2); }
/* Positions are in phone widths, so the layout holds at any size. */
.n1 { right: calc(100% - var(--pw) * .2); top: 4%; --k: 14; --fx: 70%; --fy: 40%; }
.n2 { left: calc(100% - var(--pw) * .16); top: 14%; --k: 18; --fx: -70%; --fy: 30%; }
.n3 { right: calc(100% - var(--pw) * .12); top: 37%; --k: 20; --fx: 70%; --fy: 0%; }
.n4 { left: calc(100% - var(--pw) * .1); top: 46%; --k: 12; --fx: -70%; --fy: -10%; }
@media (max-width: 1119px) { .stage { --pw: 262px; } .notif { --w: 236px; } }
@media (max-width: 899px) {
  .stage { --pw: min(240px, 56vw); margin-top: 12px; }
  /* Small screens: two notifications, kept inside the screen edges, overlapping the phone a little. */
  .notifs { left: 0; width: 100%; transform: none; }
  .notif { --w: min(214px, 54vw); padding: 9px 11px 10px 9px; border-radius: 17px; }
  .ni { width: 34px; height: 34px; }
  .ni img { width: 45.3px; height: 45.3px; margin: -4.5px 0 0 -5.7px; }
  .nt em { display: none; }
  .n1 { left: -4px; right: auto; top: 6%; }
  .n2 { right: -4px; left: auto; top: 30%; }
  .n3, .n4 { display: none; }
}

/* ---------- brand marquee ---------- */
.brands {
  overflow: hidden; padding: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands-track { display: flex; align-items: center; width: max-content; animation: marquee 44s linear infinite; }
/* Logos in their own colours (white in dark mode, like the brand tiles); names without a logo in the text colour. */
.mq { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 36px; color: var(--text); white-space: nowrap; }
.mq-text b, .mq-icon b { font: 600 clamp(20px, 2.4vw, 26px)/1 var(--display); letter-spacing: -.03em; }
.mq img { width: auto; height: calc(var(--h) * var(--logo-scale, 1)); max-width: none; }
.mq-icon img { border-radius: 22%; }
@media (max-width: 639px) { .mq { --logo-scale: .78; padding: 0 24px; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement: words light up as you scroll ---------- */
.statement { padding-top: 96px; padding-bottom: 8px; }
.st { margin: 0; max-width: 18em; font: 700 clamp(32px, 5vw, 60px)/1.1 var(--display); letter-spacing: -.035em; }
.st .w { opacity: .14; transition: opacity .35s ease; }
.st .w.lit { opacity: 1; }
.st .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- anatomy: a 30 s ad on a timeline that plays itself while on screen ---------- */
.anatomy { position: relative; padding: 110px 0 20px; }
.anatomy-in { text-align: center; }
.anatomy .lede { margin-left: auto; margin-right: auto; }
.tl {
  --p: 0; --label: 44px;
  margin: 44px auto 0; max-width: 1000px; padding: 18px 18px 22px;
  border-radius: 28px; background: var(--tl-bg); text-align: left;
  border: 1px solid var(--line); box-shadow: var(--depth);
}
.tl-top { display: grid; grid-template-columns: var(--label) 1fr; align-items: end; }
.tc { font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; padding-bottom: 6px; }
.ruler { position: relative; height: 26px; }
.ruler i { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--tick); }
.ruler i.major { height: 10px; background: var(--tick-major); }
.ruler b { position: absolute; top: 0; transform: translateX(-50%); font: 500 11px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ruler b:first-of-type { transform: none; }
.ruler b:last-of-type { transform: translateX(-100%); }
.tracks { position: relative; display: grid; gap: 6px; margin-top: 6px; }
.track { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; }
.tname { font: 600 12px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.lane { position: relative; height: 26px; border-radius: 7px; background: var(--lane); }
.track-main .lane { height: 58px; }
.clip {
  position: absolute; top: 0; bottom: 0; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; padding: 0 10px;
  color: var(--clip-ink); font: 700 13px/1 var(--display); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: .3; filter: saturate(.7); transition: opacity .35s ease, filter .35s ease;
}
.clip.on { opacity: 1; filter: none; }
.clip.done { opacity: .6; }
.cap { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; background: var(--cap); transition: background-color .25s; }
.cap.done { background: var(--cap-done); }
.bars { position: absolute; inset: 0 5px; display: flex; align-items: center; justify-content: space-between; }
.bars i { width: .5%; min-width: 2px; border-radius: 2px; background: var(--wave); transition: background-color .2s; }
.bars i.done { background: var(--c); }
.bed {
  position: absolute; inset: 7px 2px; border-radius: 6px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--g3) 34%, transparent) 8%, color-mix(in srgb, var(--g3) 34%, transparent) 92%, transparent);
}
.playhead {
  position: absolute; top: -34px; bottom: -6px; z-index: 3; width: 2px; margin-left: -1px;
  left: calc(var(--label) + (100% - var(--label)) * var(--p));
  background: var(--playhead); box-shadow: 0 0 14px var(--playhead-glow); pointer-events: none;
}
.playhead span { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; transform: translate(-50%, -2px) rotate(45deg); border-radius: 2px; background: var(--playhead); }
.beats { display: grid; margin: 34px auto 0; padding: 0; list-style: none; max-width: 34em; min-height: 6.2em; }
.beats li { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.beats li.on { opacity: 1; transform: none; }
.beats .bt { display: inline-flex; align-items: baseline; gap: 12px; }
.beats b {
  font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--display); letter-spacing: -.03em;
  background: var(--grad-loop); background-size: 200% 100%; background-position: var(--bp, 0%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.beats .t { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.beats p { margin: 8px 0 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; color: var(--muted-2); }
@media (min-width: 740px) {
  .tl { transform: perspective(1800px) rotateX(8deg); transform-origin: 50% 100%; transition: transform .8s var(--ease); }
  .tl:hover { transform: perspective(1800px) rotateX(0deg); }
}
@media (max-width: 639px) {
  .tl { --label: 30px; padding: 14px 12px 16px; border-radius: 22px; margin-top: 30px; }
  .track-main .lane { height: 46px; }
  .lane { height: 20px; }
  .clip { font-size: 11px; padding: 0 6px; }
  .tc { font-size: 12px; }
  .ruler b { font-size: 9.5px; }
}

/* ---------- sections ---------- */
.section { padding-top: 110px; }
.sec-head { margin-bottom: 30px; }
.brand-nav {
  position: sticky; top: var(--nav-h); z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.brand-nav::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg);
  font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--chip-bg-hover); }
.chip[aria-current="true"] { background: var(--chip-on-bg); color: var(--chip-on-fg); }
.chip .n { opacity: .55; margin-left: 7px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- groups of work ---------- */
.brand { padding-top: 64px; }
.brand:first-child { padding-top: 28px; }
.g-cover { position: relative; border-radius: 22px; }
.g-cover .g-art { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--depth); }
.has-cover .g-cover { max-width: 640px; margin-bottom: 26px; }
@media (min-width: 1000px) {
  .brand.has-cover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; }
  .has-cover .g-cover { position: sticky; top: calc(var(--nav-h) + 84px); margin: 0; }
  .has-cover .row-v { grid-template-columns: repeat(3, 1fr); }
  .has-cover .row-h { grid-template-columns: repeat(2, 1fr); }
}
.brand-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.brand-head h3 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.brand-tag { color: var(--muted); font-size: 15px; }
/* Rows that belong to one brand or one kind of client. */
.row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 30px 0 0; }
.row-block:first-of-type .row-head { margin-top: 20px; }
.row-head b { font: 700 19px/1.3 var(--display); letter-spacing: -.02em; }
.row-head span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.rh-mark { display: flex; align-items: center; gap: 8px; height: 40px; }
.rh-mark img { width: auto; height: var(--h); max-width: none; }
.rh-mark.icon img { border-radius: 22%; }
.row-block .row { margin-top: 12px; }
@media (min-width: 1000px) {
  .has-cover .row-head { display: none; }
  .has-cover .row-block .row { margin-top: 18px; }
  .has-cover .row-block + .row-block { margin-top: 0; }
}

/* Under the cover: the brand (or kind of client) of the row you're looking at, swapping as you scroll. */
.g-now { display: none; }
@media (min-width: 1000px) {
  .g-now {
    display: block; margin-top: 18px; padding: 22px 22px 16px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow);
  }
}
.gn-stack { display: grid; }
.gn-item {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(22px); filter: blur(8px); pointer-events: none;
  transition: opacity .45s ease, transform .7s var(--ease), filter .45s ease;
}
.gn-item.past { transform: translateY(-22px); }
.gn-item.on { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .08s; }
.gn-mark { display: flex; align-items: center; gap: 12px; height: 68px; }
.gn-mark img { width: auto; height: var(--h); max-width: none; }
.gn-mark.icon img { border-radius: 22%; }
.gn-mark b { font: 700 30px/1 var(--display); letter-spacing: -.035em; }
.gn-label {
  display: flex; align-items: center; height: 68px; font: 700 clamp(34px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.gn-item p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted-2); }
.gn-steps { display: flex; gap: 2px; margin-top: 18px; padding: 3px; border-radius: 999px; background: var(--chip-bg); }
.gn-steps button {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.gn-steps button:hover { color: var(--text); }
.gn-steps button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .08); }
@media (prefers-color-scheme: dark) { .gn-steps button.on { background: #2c2c2e; } }

/* "These are picks" note under each group. */
.g-more { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--chip-bg); font-size: 14.5px; line-height: 1.5; color: var(--muted-2); }
.g-more a { color: var(--link); font-weight: 600; white-space: nowrap; }
.g-more-ic { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent); }
.g-more-ic::before, .g-more-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.g-more-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.row-label { margin: 30px 0 0; font: 600 19px/1.3 var(--display); letter-spacing: -.02em; }
.row-label span { display: block; color: var(--muted); font: 400 15px/1.4 var(--font); }
@media (min-width: 640px) { .row-label span { display: inline; margin-left: 10px; } }

/* Phones: each row is a swipe strip with the next card peeking. Wider: a grid. */
.row {
  display: flex; gap: 12px; margin: 18px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > .card { flex: 0 0 44vw; scroll-snap-align: start; }
.row-h > .card { flex-basis: 84vw; }
@media (min-width: 640px) {
  .row { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; overflow: visible; }
  .row > .card { flex: none; }
  .row-v { grid-template-columns: repeat(3, 1fr); }
  .row-h { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) { .row-v { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .row-h { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .row-v { grid-template-columns: repeat(5, 1fr); } }

/* ---------- video card: poster, muted preview, then the full video in place ---------- */
.card {
  --r: 18px;
  position: relative; display: block; width: 100%; overflow: hidden;
  aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--tile); color: #fff;
  /* clip-path keeps a playing (composited) video inside the rounded corners too */
  clip-path: inset(0 round var(--r)); isolation: isolate;
}
.card.is-h { aspect-ratio: 16 / 9; }
.row .card { box-shadow: var(--depth); }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.fit img, .card.fit video { object-fit: contain; }
.card.fit { background: #000; }
.card video { opacity: 0; transition: opacity .3s ease; background: transparent; }
.card.playing video, .card.full video { opacity: 1; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .78) 100%);
  transition: opacity .3s ease;
}
.card .hit { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border-radius: inherit; cursor: pointer; }
.card .meta {
  position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; pointer-events: none; transition: opacity .25s ease;
}
.card .meta b { font: 600 16px/1.2 var(--display); letter-spacing: -.02em; }
.card .meta small { font-size: 13px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .dur {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0;
  background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none; transition: opacity .25s ease;
}
.card .dur::before { content: ""; width: 7px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* Glass play button (an image, so it looks the same everywhere) over a real blur. */
.card .play {
  position: absolute; left: 50%; top: 62%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; pointer-events: none;
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .3s var(--ease);
}
.card .play img { position: absolute; left: -13.7px; top: -11.4px; width: 91.4px; height: 91.4px; max-width: none; }
.card.is-h .play { top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.card.is-h .play img { left: -15.4px; top: -12.9px; width: 102.9px; height: 102.9px; }
@media (hover: hover) { .card:hover .play { opacity: 1; transform: none; } }
@media (hover: none) { .card .play { opacity: .95; transform: scale(.8); } }
.quote .card .play, .phone .card .play { opacity: 1; transform: scale(.82); }
.card.is-h .meta b { font-size: 18px; }
.row-hooks .card .meta b {
  background: linear-gradient(90deg, #7cf08c, #34c759, #30d158); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* A gradient ring marks the card that is previewing. */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--conic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease;
}
.card.playing::before { opacity: 1; animation: spin 4s linear infinite; }
.phone .card::before { display: none; }
/* Playing the full video: nothing on top of it but the browser's own controls. */
.card.full { background: #000; }
.card.full::before, .card.full::after, .card.full .meta, .card.full .dur, .card.full .play, .card.full .hit, .card.full img { opacity: 0; pointer-events: none; }
.card.full .hit { display: none; }
.card.full video { object-fit: contain; z-index: 4; }

/* Focus: the opened video zooms up a little and the page behind it blurs. The card is in the browser's
   top layer (see openFocus in app.js); --zx/--zy/--zk are the move and zoom it eases to. */
.card[popover] {
  position: fixed; inset: auto; margin: 0; padding: 0; border: 0; overflow: hidden;
  max-width: none; max-height: none; box-shadow: none;
}
.card[popover]:not(:popover-open) { display: block; }
/* While one is open the page behind is only a backdrop: no hovers, no clicks (a click there closes the video). */
html.focus-lock body > header, html.focus-lock body > main, html.focus-lock body > footer { pointer-events: none; }
html.focus-lock .card.pop { pointer-events: auto; }
.card.pop { transform: none; transform-origin: 50% 50%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.card.pop.zoomed { transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(var(--zk, 1)); }
.card.pop::backdrop {
  background: rgba(8, 12, 10, .42);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  animation: focus-in .45s ease both;
}
.card.pop.leaving::backdrop { animation: focus-out .4s ease both; }
@keyframes focus-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes focus-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-color-scheme: dark) { .card.pop::backdrop { background: rgba(0, 0, 0, .55); } }

/* ---------- brand tiles ---------- */
.brand-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.btile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 236px; padding: 22px;
  border-radius: 22px; background: var(--surface); color: var(--text); text-align: left;
  border: 1px solid var(--line); box-shadow: var(--tile-shadow);
  transition: transform .5s var(--ease), box-shadow .3s ease;
}
.bt-mark { display: flex; align-items: center; gap: 10px; height: 52px; }
.bt-mark img { width: auto; height: var(--h); max-width: none; }
.bt-mark.icon img { border-radius: 22%; }
.bt-mark b { font: 700 24px/1 var(--display); letter-spacing: -.03em; }
.bt-desc { flex: 1; font-size: 15px; line-height: 1.45; color: var(--muted-2); }
.bt-foot { display: flex; justify-content: flex-end; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.bt-go { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; }
.bt-go::before { content: ""; width: 7px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* Brand logos: lg-dark is a brand's own version for dark backgrounds; others turn white in dark mode. */
img.lg-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :is(.bt-mark, .gn-mark, .rh-mark):not(.icon) img, .mq:not(.mq-icon) img { filter: brightness(0) invert(1); opacity: .92; }
  :is(.bt-mark, .gn-mark, .rh-mark, .mq) img.lg-light { display: none; }
  :is(.bt-mark, .gn-mark, .rh-mark):not(.icon) img.lg-dark, .mq:not(.mq-icon) img.lg-dark { display: block; filter: none; opacity: 1; }
}

/* The solo creators share one tile: their faces instead of a logo; on wide screens it runs the full width. */
@media (min-width: 900px) {
  .btile-more { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 26px; min-height: 0; padding: 22px 26px; }
  .btile-more .bt-faces { grid-row: 1 / 3; }
  .btile-more .bt-title { grid-column: 2; }
  .btile-more .bt-desc { grid-column: 2; }
  .btile-more .bt-foot { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0 0 0 26px; border-top: 0; border-left: 1px solid var(--line); align-self: stretch; justify-content: center; }
  .btile-more .bt-faces img, .btile-more .bt-more { width: 52px; height: 52px; }
  .btile-more .bt-more b { font-size: 19px; } .btile-more .bt-more small { font-size: 10px; }
}
.bt-faces { display: flex; height: 48px; align-items: center; }
.bt-faces img { width: 42px; height: 42px; max-width: none; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2.5px solid var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.bt-faces img + img, .bt-faces .bt-more { margin-left: -12px; }
/* "+ more" bubble after the faces: these are a few of the creators, not all of them. */
.bt-more {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--surface);
  background: linear-gradient(135deg, #34c759, #0b7f99); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}
.bt-more b { font: 700 16px/1 var(--display); margin-top: -1px; }
.bt-more small { font-size: 8.5px; font-weight: 600; line-height: 1; letter-spacing: .02em; opacity: .9; }
.bt-title {
  font: 700 22px/1.15 var(--display); letter-spacing: -.025em; padding-bottom: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- testimonials ---------- */
.testimonials { display: grid; gap: 16px; }
@media (min-width: 880px) { .testimonials { grid-template-columns: 1fr 1fr; } }
.quote {
  position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center;
  padding: 16px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--tile-shadow);
}
@media (min-width: 520px) { .quote { grid-template-columns: 168px 1fr; gap: 28px; padding: 20px; } }
.quote .card { --r: 16px; }
.quote .card .meta { display: none; }
.quote blockquote { margin: 0; font: 600 clamp(20px, 2.4vw, 26px)/1.25 var(--display); letter-spacing: -.025em; }
.quote blockquote::before {
  content: "\201C"; display: block; font-size: 2em; line-height: .7; margin-bottom: 6px; width: max-content;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.quote .who { margin: 14px 0 0; font-size: 14px; }
.quote .who b { display: block; font-weight: 600; }
.quote .who span { color: var(--muted); }

/* ---------- reveal on scroll (translate, so it never fights the tilt transform) ---------- */
.rv-up { opacity: 0; translate: 0 26px; transition: opacity .7s ease var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
.rv-up.in { opacity: 1; translate: none; }
/* Big headings sharpen into place. */
.reveal-h { opacity: 0; translate: 0 .28em; filter: blur(14px); transition: opacity 1s ease, translate 1.2s var(--ease), filter 1s ease; }
.reveal-h.in { opacity: 1; translate: none; filter: none; }
/* Hero lines arrive one after another. */
.hero h1 .ln { animation: ln-in 1.1s var(--ease) both; }
.hero h1 .ln:nth-child(2) { animation-delay: .1s; }
.hero h1 .ln:nth-child(3) { animation-delay: .2s; }
.hero .sub { animation: ln-in 1.1s .32s var(--ease) both; }
.hero .pills { animation: ln-in 1.1s .42s var(--ease) both; }
.hero .stats { animation: ln-in 1.1s .52s var(--ease) both; }
@keyframes ln-in { from { opacity: 0; transform: translateY(36%); filter: blur(10px); } }
/* Scroll progress under the menu. */
.nav::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--sp, 0) * 100%); background: var(--grad); box-shadow: 0 0 10px color-mix(in srgb, var(--g3) 60%, transparent); }
/* Buttons that lean toward the pointer. */
.magnet { translate: var(--mx2, 0) var(--my2, 0); transition: background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease, translate .35s var(--ease); }
.surface-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); }

/* ---------- case studies: a slide of frames, the project details beside it ---------- */
.cs { display: grid; gap: 20px; }
@media (min-width: 1000px) { .cs { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } .cs-dots { grid-column: 1 / -1; } }
.cs-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0d0f0e; box-shadow: var(--depth); touch-action: pan-y; }
.cs-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.4s var(--ease); }
.cs-slide.on { opacity: 1; transform: none; }
.cs-slide img { width: 100%; height: 100%; object-fit: cover; }
.cs-nav {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .25s ease, background-color .2s ease;
}
.cs-nav:hover { background: rgba(255, 255, 255, .28); }
.cs-stage:hover .cs-nav, .cs-nav:focus-visible { opacity: 1; }
@media (hover: none) { .cs-nav { opacity: 1; width: 38px; height: 38px; margin-top: -19px; } }
.cs-nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; }
.cs-prev { left: 14px; } .cs-prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.cs-next { right: 14px; } .cs-next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.cs-count {
  position: absolute; right: 14px; bottom: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .8); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.cs-count b { color: #fff; }
.cs-info { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); }
.cs-info.swap > * { animation: cs-in .55s var(--ease) both; }
.cs-info.swap > :nth-child(2) { animation-delay: .06s; }
.cs-info.swap > :nth-child(3) { animation-delay: .12s; }
@keyframes cs-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.cs-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.cs-mark { display: flex; align-items: center; gap: 10px; height: 50px; }
.cs-mark img { width: auto; height: var(--h); max-width: none; }
.cs-mark.icon img { border-radius: 22%; }
.cs-mark b, .cs-name { font: 700 28px/1 var(--display); letter-spacing: -.03em; }
.cs-project { margin: 0; font: 600 21px/1.25 var(--display); letter-spacing: -.02em; }
.cs-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 0; flex: 1; align-content: start; }
.cs-facts dt { margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.cs-facts dd { margin: 0; font-size: 15px; line-height: 1.4; }
.cs-wide { grid-column: 1 / -1; }
.cs-facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.cs-facts li { position: relative; padding-left: 18px; }
.cs-facts li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.tool { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font: 700 13px/1 var(--display); letter-spacing: 0; }
.tool-pr, .tool-ae { background: #00005b; color: #9999ff; box-shadow: inset 0 0 0 1.5px #9999ff; }
.tool-re { background: #0b84f3; color: #fff; }
.tool-bl { background: #1b1b1f; color: #f5792a; box-shadow: inset 0 0 0 1.5px #f5792a; }
.tool-cc { background: #000; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.tool-name { margin-right: 8px; font-size: 14px; color: var(--muted-2); }
.cs-watch { align-self: flex-start; margin-top: 22px; }
.cs-dots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cs-dots::-webkit-scrollbar { display: none; }
.cs-dots button { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s; }
.cs-dots button:hover { background: var(--chip-bg-hover); }
.cs-dots button.on { background: var(--chip-on-bg); color: var(--chip-on-fg); }
.cs-dots button { position: relative; overflow: hidden; }
.cs-dots button.tick::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; animation: dot-fill 5.2s linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } }

/* ---------- why brands come back ---------- */
.why-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.why-card { position: relative; padding: 24px 24px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); }
.why-ic { display: block; width: 48px; height: 48px; margin-bottom: 18px; }
.why-ic img { width: 64px; height: 64px; max-width: none; margin: -6.4px 0 0 -8px; }
.why-card h3 { margin: 0 0 8px; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.why-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--depth); }
.cmp-col { padding: 26px 26px 24px; }
.cmp-me { background: linear-gradient(160deg, #13281d, #0b120e); color: #f5f5f7; }
.cmp-them { background: var(--surface); color: var(--muted-2); }
.cmp-h { display: block; margin-bottom: 18px; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.cmp-them .cmp-h { color: var(--text); }
.cmp-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 15px; }
.cmp-col li { display: flex; align-items: flex-start; gap: 12px; min-height: 22px; font-size: 15.5px; line-height: 1.4; }
.compare i { flex: none; position: relative; width: 21px; height: 21px; margin-top: 0; border-radius: 7px; }
.compare i.yes { background: #30d158; box-shadow: 0 0 12px rgba(48, 209, 88, .45); }
.compare i.yes::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.compare i.no { background: rgba(255, 69, 58, .14); }
.compare i.no::before, .compare i.no::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2.2px; border-radius: 2px; background: #ff453a; transform: translate(-50%, -50%) rotate(45deg); }
.compare i.no::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cmp-note { grid-column: 1 / -1; margin: 0; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
@media (max-width: 639px) { .compare { grid-template-columns: 1fr; } .cmp-col { padding: 22px 20px; } }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.svc { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); }
.svc-top h3 { margin: 0 0 6px; font: 700 22px/1.15 var(--display); letter-spacing: -.025em; }
.svc-top p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted-2); }
.svc-list { flex: 1; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.svc-list li { position: relative; padding-left: 27px; font-size: 15px; line-height: 1.4; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); }
.svc-list li::after { content: ""; position: absolute; left: 6.5px; top: 4.5px; width: 4px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.svc-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.svc-ex > span { width: 100%; margin-bottom: 2px; font-size: 12px; color: var(--muted); }
.ex { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--chip-bg); font-size: 13px; font-weight: 500; transition: background-color .2s; }
.ex::before { content: ""; width: 6px; height: 7px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ex:hover { background: var(--chip-bg-hover); }
.svc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- process: steps and notifications arriving one by one ---------- */
.process-in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 1000px) { .process-in { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 60px; } }
.steps { margin: 30px 0 32px; padding: 0; list-style: none; display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.st-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font: 700 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.steps b { font: 600 18px/1.3 var(--display); letter-spacing: -.015em; }
.steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.progress-stack { position: relative; display: grid; gap: 14px; justify-items: center; padding: 30px 0; isolation: isolate; }
.progress-stack::before { content: ""; position: absolute; inset: -10% 0; z-index: -1; background: radial-gradient(closest-side, var(--glow-1), transparent 72%); }
.notif.pnotif {
  position: relative; --w: min(380px, 100%); width: var(--w); translate: none; animation: none;
  opacity: 0; transform: translateY(26px) scale(.96);
  transition: opacity .6s ease calc(var(--i) * .28s), transform .9s var(--ease) calc(var(--i) * .28s);
}
.pnotif:nth-child(odd) { left: -20px; } .pnotif:nth-child(even) { left: 20px; }
.progress-stack.in .pnotif { opacity: 1; transform: none; }
.pnotif .nt em { display: block; }
@media (max-width: 639px) { .pnotif:nth-child(odd), .pnotif:nth-child(even) { left: 0; } }

/* ---------- numbers band ---------- */
.numbers { padding-top: 110px; text-align: center; }
.nb-label { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.nb { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; }
.nb-item { opacity: 0; translate: 0 16px; transition: opacity .6s ease, translate .8s var(--ease); }
.numbers.in .nb-item { opacity: 1; translate: none; }
.numbers.in .nb-item:nth-child(2) { transition-delay: .1s; } .numbers.in .nb-item:nth-child(3) { transition-delay: .2s; } .numbers.in .nb-item:nth-child(4) { transition-delay: .3s; }
.nb-item b {
  display: block; font: 700 clamp(52px, 6.4vw, 84px)/1 var(--display); letter-spacing: -.05em; padding-bottom: .06em;
  background: var(--grad-loop); background-size: 200% 100%; animation: drift 14s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.nb-item span { display: block; max-width: 15em; margin: 10px auto 0; font-size: 15px; line-height: 1.4; color: var(--muted-2); }

/* ---------- review wall ---------- */
.rwall {
  display: grid; gap: 16px; margin-top: 40px; padding: 10px 0 24px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rv-track { display: flex; gap: 16px; width: max-content; animation: marquee 64s linear infinite; }
.rv-rev .rv-track { animation-direction: reverse; animation-duration: 78s; }
.rwall:hover .rv-track { animation-play-state: paused; }
.rv { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: 340px; margin: 0; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); }
.rv blockquote { flex: 1; margin: 0; font: 600 17px/1.4 var(--display); letter-spacing: -.015em; }
/* Five gold stars (the text glyph, so every browser draws it) and the score. */
.rv-stars { display: flex; align-items: center; gap: 8px; margin-bottom: -4px; }
.rv-stars > span { color: #ff9f0a; font-size: 15px; letter-spacing: 2px; line-height: 1; }
.rv-stars b { font-size: 13px; font-weight: 700; color: var(--text); }
.rv blockquote::before { content: "\201C"; margin-right: 1px; color: var(--accent); }
.rv blockquote::after { content: "\201D"; color: var(--accent); }
.rv figcaption { display: flex; align-items: center; gap: 10px; }
.rv-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #34c759, #0b7f99); color: #fff; font: 700 13px/1 var(--display); }
.rv figcaption b { display: block; font-size: 14px; line-height: 1.3; }
.rv figcaption small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
@media (max-width: 639px) { .rv { width: 280px; } }
@media (prefers-reduced-motion: reduce) { .rv-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 var(--gutter); } .rv[aria-hidden], .rv-rev { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.qa { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 22px; font: 600 17px/1.35 var(--display); letter-spacing: -.01em; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--chip-bg); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 2px; background: var(--text); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa p { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.55; color: var(--muted-2); }
.qa[open] p { animation: qa-in .4s var(--ease) both; }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact ---------- */
.contact { position: relative; margin-top: 110px; padding: 120px 0 100px; text-align: center; overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { margin-bottom: 26px; font-size: clamp(46px, 8.5vw, 96px); line-height: 1; letter-spacing: -.045em; }
.contact-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0 0 30px; font-size: 18px; color: var(--muted-2); }
.reply { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--chip-bg); font-size: 13.5px; color: var(--text); }
.reply .bead { width: 8px; height: 8px; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 0 auto; padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--depth); text-align: left; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f > span { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.f > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; outline: none;
  background: var(--tile); color: var(--text); font: 400 16px/1.4 var(--font); letter-spacing: -.01em;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.f textarea { min-height: 120px; resize: vertical; }
.f select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.f input::placeholder, .f textarea::placeholder { color: var(--muted); opacity: .7; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.f-error { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #ff453a; }
.f-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (max-width: 639px) { .cform { grid-template-columns: 1fr; padding: 18px; border-radius: 22px; } .f-actions .pill { width: 100%; } }
.csent { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 760px; margin: 16px auto 0; padding: 20px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); font-size: 15px; }
.csent[hidden] { display: none; }
.csent a { color: var(--link); font-weight: 500; }
.csent .pill { margin-top: 6px; }
/* Other ways to reach me: two small cards with app icons. */
.reach { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 22px auto 0; }
.reach-card {
  display: flex; align-items: center; gap: 10px; flex: 1 1 300px; max-width: 374px; padding: 10px 12px 10px 10px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.reach-card:hover { transform: translateY(-2px); }
.reach-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.reach-ic { flex: none; width: 42px; height: 42px; }
.reach-ic img { width: 56px; height: 56px; max-width: none; margin: -5.6px 0 0 -7px; }
.reach-t { display: flex; flex-direction: column; min-width: 0; }
.reach-t small { font-size: 12px; color: var(--muted); }
.reach-t b { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reach-act { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--chip-bg); font-size: 13px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; transition: background-color .2s; }
.reach-act:hover { background: var(--chip-bg-hover); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--tile) 55%, var(--bg)); }
.foot-in { display: grid; gap: 34px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.foot-logo { display: block; margin-bottom: 16px; font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.foot-about h3 { margin: 0 0 8px; font: 600 17px/1.3 var(--display); letter-spacing: -.01em; }
.foot-about p { max-width: 44em; margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted-2); }
.foot-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.foot-tools span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--chip-bg); font-size: 12.5px; color: var(--chip-fg); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.foot-col b { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.foot-col a { color: var(--text); transition: color .2s; }
.foot-col a:hover { color: var(--link); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- depth: cards and tiles tilt toward the pointer, with a moving highlight (desktop) ---------- */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ts, 1));
  transition: transform .6s var(--ease);
}
.tilt.tilting { --ts: 1.025; transition: transform .12s ease-out; }
.card.full.tilt:not(.pop) { transform: none; }
.glare {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%);
  opacity: 0; transition: opacity .4s ease;
}
.tilting .glare { opacity: 1; }
.card.full .glare { display: none; }

/* ---------- reduced motion: everything still, the timeline shown as a list ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .brands-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 14px; }
  .brands-track [aria-hidden] { display: none; }
  .st .w { opacity: 1; }
  .card.pop::backdrop { animation: none !important; }
}
.anatomy.still .playhead { display: none; }
.anatomy.still .clip, .anatomy.still .cap { opacity: 1; filter: none; }
.anatomy.still .tl { --p: 1; }
.anatomy.still .beats { min-height: 0; gap: 22px; text-align: left; max-width: 1000px; }
.anatomy.still .beats li { grid-area: auto; opacity: 1; transform: none; }
@media (min-width: 860px) { .anatomy.still .beats { grid-template-columns: repeat(5, 1fr); } }
