/* ============================================================
   LOGAN NEWMAN — flagship portfolio
   Design system v2: Apple-style light UI — white space, Inter,
   alternating white/gray/black bands, per-venture accents
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;          /* Apple's section gray */
  --bg-dark: #000000;
  --ink: #1d1d1f;             /* Apple's near-black */
  --ink-2: #6e6e73;           /* Apple's secondary gray */
  --ink-3: #86868b;
  --hairline: #d2d2d7;
  --card: #ffffff;

  --accent: #0071e3;          /* venture pages override */
  --accent-ink: #ffffff;
  --grad-a: #42a1ec;
  --grad-b: #0062cc;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --w-max: 1200px;
  --w-tiles: 1440px;
  --pad: clamp(22px, 4.5vw, 48px);
  --sec-y: clamp(88px, 12vw, 160px);
  --r-tile: clamp(20px, 2.4vw, 30px);
  --r-card: 22px;

  --ease-out: cubic-bezier(0.25, 0.6, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.10);
  --shadow-icon: 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* dark band token flip */
.sec-dark {
  --bg: #000000;
  --bg-alt: #101013;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --hairline: #2c2c2e;
  --card: #16161a;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 420;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

::selection { background: rgba(0, 113, 227, 0.18); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  border-radius: 10px; font-weight: 600; font-size: 14px;
  transform: translateY(-200%); transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.nav.is-solid { border-bottom-color: rgba(0, 0, 0, 0.08); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-hidden:focus-within { transform: translateY(0); }
.nav-inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad);
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 620; font-size: 15px; letter-spacing: -0.01em; color: #1d1d1f;
}
.nav-brand .mono {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #1d1d1f; color: #fff;
  font-weight: 700; font-size: 11.5px; letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 480; color: #424245;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #000; }
.nav-links a.nav-cta {
  font-size: 13.5px; font-weight: 560; color: #fff;
  background: #1d1d1f; border-radius: 999px; padding: 8px 17px;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.nav-links a.nav-cta:hover { background: #000; transform: scale(1.03); }
@media (max-width: 720px) { .nav-links li.hide-m { display: none; } }

/* venture sub-ribbon (Apple product bar) */
.ribbon {
  position: sticky; top: 0; z-index: 150;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ribbon-inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad);
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ribbon .r-left { display: inline-flex; align-items: center; gap: 10px; }
.ribbon .r-ico { --icon-s: 26px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.ribbon .r-ico::before { background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent 55%); }
.ribbon .r-name { font-size: 17px; font-weight: 620; letter-spacing: -0.015em; color: #1d1d1f; }
.ribbon .r-cta {
  font-size: 13px; font-weight: 560; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 7px 15px;
  transition: filter 0.25s ease, transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.ribbon .r-cta:hover { filter: brightness(1.08); transform: scale(1.03); }
.ribbon { transition: box-shadow 0.35s ease; }
.ribbon.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 15px; font-weight: 620; letter-spacing: -0.005em;
  color: var(--accent);
}
.h-hero {
  text-wrap: balance;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.028em;
  font-weight: 680;
  color: var(--ink);
  /* em-based cap gives balanced natural wraps at every viewport */
  max-width: 11.8em;
  margin-left: auto; margin-right: auto;
}
.h-1 {
  text-wrap: balance;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.026em;
  font-weight: 660;
  color: var(--ink);
}
.h-2 {
  text-wrap: balance;
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 640;
  color: var(--ink);
}
.h-3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 620; color: var(--ink); }
.lead {
  text-wrap: pretty;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  font-weight: 440;
}
.body-2 { color: var(--ink-2); }
/* Title gradients read on white via --title-a/b (darker than the icon
   gradient --grad-a/b); split lines carry their own copy because
   background-clip:text breaks across transformed child layers. */
.grad-text,
.grad-text .sl-line {
  background-image: linear-gradient(100deg, var(--title-a, var(--grad-a)), var(--title-b, var(--grad-b)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ---------- */
section[id], [id="main"] { scroll-margin-top: 72px; }
.wrap { max-width: var(--w-max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-n { max-width: 860px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.sec-alt { background: var(--bg-alt); }
.sec-dark {
  background: radial-gradient(ellipse 85% 70% at 50% 0%, #141418, #000 74%);
  color: var(--ink);
}
.center { text-align: center; }
.center .lead, .center .max-read { margin-left: auto; margin-right: auto; }
.max-read { max-width: 62ch; }
.stack { display: grid; gap: clamp(14px, 2vw, 22px); justify-items: center; }
.stack-l { display: grid; gap: clamp(14px, 2vw, 22px); }

/* ---------- Buttons & links ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1d1d1f; color: #fff;
  font-size: 16px; font-weight: 540; letter-spacing: -0.01em;
  padding: 13px 26px; border-radius: 999px; min-height: 44px;
  transition: background 0.25s ease, transform 0.3s var(--ease-out), filter 0.25s ease;
  will-change: transform;
}
.pill:active { transform: scale(0.97); }
.pill:hover { background: #000; }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.pill-accent:hover { background: var(--accent); filter: brightness(1.08); }
.pill-lg { font-size: 17.5px; padding: 15px 32px; }
.sec-dark .pill { background: #f5f5f7; color: #000; }
.sec-dark .pill:hover { background: #fff; }

.link-more {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); font-size: 16.5px; font-weight: 500; letter-spacing: -0.012em;
  transition: gap 0.25s var(--ease-out);
}
.link-more .chev { transition: transform 0.25s var(--ease-out); font-weight: 600; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-more:hover .chev { transform: translateX(2px); }

.cta-row { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 30px); flex-wrap: wrap; }
.cta-row-l { display: flex; align-items: center; gap: clamp(18px, 3vw, 30px); flex-wrap: wrap; }

/* ---------- App icon squircle ---------- */
.app-icon {
  position: relative;
  width: var(--icon-s, 96px); height: var(--icon-s, 96px);
  border-radius: 24%;
  background-image: linear-gradient(140deg, var(--grad-a), var(--grad-b));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: -0.02em;
  font-size: calc(var(--icon-s, 96px) * 0.38);
  box-shadow: var(--shadow-icon), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  user-select: none;
}
.app-icon::before {
  /* glass highlight — turns a flat gradient into an app icon */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.05) 42%, transparent 60%);
  pointer-events: none;
}
.app-icon svg { width: 46%; height: 46%; position: relative; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(120px, 18vh, 190px);
  padding-bottom: clamp(56px, 8vw, 110px);
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 24%,
    color-mix(in srgb, var(--accent) 5%, transparent), transparent 72%);
}
.hero > * { position: relative; }
.hero .stack { gap: clamp(18px, 2.6vw, 28px); }
.hero .lead { max-width: 46ch; }
.hero-icons {
  display: flex; gap: clamp(10px, 1.6vw, 18px); justify-content: center; flex-wrap: wrap;
  margin-top: clamp(26px, 4vw, 44px);
}
@keyframes dock-pop {
  0% { opacity: 0; transform: scale(0.5) translateY(18px); }
  62% { opacity: 1; transform: scale(1.06) translateY(-3px); }
  100% { opacity: 1; transform: none; }
}
.js .hero-icons a { opacity: 0; animation: dock-pop 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.js .hero-icons a:nth-child(1) { animation-delay: 0.50s; }
.js .hero-icons a:nth-child(2) { animation-delay: 0.57s; }
.js .hero-icons a:nth-child(3) { animation-delay: 0.64s; }
.js .hero-icons a:nth-child(4) { animation-delay: 0.71s; }
.js .hero-icons a:nth-child(5) { animation-delay: 0.78s; }
.js .hero-icons a:nth-child(6) { animation-delay: 0.85s; }
.hero-icons .app-icon {
  --icon-s: clamp(46px, 6.5vw, 76px); /* six icons + gaps must fit 390px */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.hero-icons a:hover .app-icon, .hero-icons a:focus-visible .app-icon {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

/* ---------- Venture tiles (apple.com showcase grid) ---------- */
.tiles {
  max-width: var(--w-tiles); margin: 0 auto;
  padding: 0 clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}
.tile {
  position: relative;
  border-radius: var(--r-tile);
  background: var(--bg-alt);
  overflow: hidden;
  display: grid; justify-items: center; align-content: start; text-align: center;
  gap: 10px;
  padding: clamp(48px, 6vw, 84px) clamp(24px, 4vw, 56px) clamp(52px, 6.5vw, 92px);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.tile::after {
  /* faint venture-tinted glow keeps each tile on-brand */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 52% at 50% 0%,
    color-mix(in srgb, var(--tc, var(--accent)) 6%, transparent), transparent 68%);
}
.tile > * { position: relative; z-index: 1; }
.tile:active { transform: translateY(-1px) scale(0.995); }
.tile:hover, .tile.in-view:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.tile:hover .chev { transform: translateX(2px); }
.tile-full { grid-column: 1 / -1; }
.tile-dark { background: #000; }
.tile.tile-dark .t-name { color: #f5f5f7; }
.tile.tile-dark .t-sub { color: #a1a1a6; }
.tile.tile-dark .t-num { color: #6e6e73; }
.tile .t-kicker { font-size: 14px; font-weight: 620; color: var(--tc, var(--accent)); }
.tile .t-name {
  text-wrap: balance;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 660; letter-spacing: -0.025em; line-height: 1.05; color: #1d1d1f;
}
.tile-full .t-name { font-size: clamp(34px, 4.6vw, 64px); }
.tile .t-sub {
  text-wrap: pretty;
  font-size: clamp(16.5px, 1.7vw, 21px); letter-spacing: -0.014em;
  color: #6e6e73; max-width: 44ch; font-weight: 440;
}
.tile .t-links {
  display: flex; gap: clamp(16px, 2.4vw, 26px); align-items: center; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.tile .app-icon {
  --icon-s: clamp(64px, 7vw, 88px); margin-bottom: clamp(14px, 2vw, 22px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tile:hover .app-icon { transform: translateY(-7px) scale(1.06); }
.tile .t-num {
  position: absolute; top: clamp(18px, 2.4vw, 28px); right: clamp(20px, 2.8vw, 32px);
  font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-full .t-name { font-size: clamp(32px, 9vw, 44px); }
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  max-width: 880px; margin: clamp(40px, 6vw, 72px) auto 0;
}
.stat { display: grid; gap: 8px; justify-items: center; text-align: center; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat b {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 680; letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.stat b .unit { color: var(--accent); }
.stat > span { font-size: 14.5px; color: var(--ink-2); font-weight: 480; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .stat + .stat { border-left: 0; }
}

/* ---------- Bento cards ---------- */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(40px, 5.5vw, 64px);
}
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 38px);
  display: grid; gap: 14px; align-content: start; text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(0, 0, 0, 0.035);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.card:hover, .card.in-view:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(0, 0, 0, 0.035);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  color: var(--accent);
}
.sec-dark .card .ico { background: color-mix(in srgb, var(--accent) 22%, #000); }
.card .ico svg { width: 21px; height: 21px; }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; letter-spacing: -0.008em; }
@media (min-width: 981px) {
  /* 6-card grids get an alternating bento rhythm: wide, narrow / narrow, wide / wide, narrow */
  .bento:has(> .card:nth-child(6)) > .card:nth-child(6n + 1),
  .bento:has(> .card:nth-child(6)) > .card:nth-child(6n + 4),
  .bento:has(> .card:nth-child(6)) > .card:nth-child(6n + 5) { grid-column: span 2; }
  .bento:has(> .card:nth-child(6)) > .card:nth-child(6n + 1) p,
  .bento:has(> .card:nth-child(6)) > .card:nth-child(6n + 4) p,
  .bento:has(> .card:nth-child(6)) > .card:nth-child(6n + 5) p { max-width: 56ch; }
}
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Venture hero ---------- */
.v-hero {
  padding-top: clamp(96px, 14vh, 150px);
  padding-bottom: clamp(56px, 8vw, 104px);
  position: relative;
}
.v-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 55% at 50% 30%,
    color-mix(in srgb, var(--accent) 6%, transparent), transparent 72%);
}
.v-hero > * { position: relative; }
.v-hero .crumbs {
  font-size: 14px; font-weight: 520; color: var(--ink-3);
  display: inline-flex; gap: 8px; align-items: center;
}
.v-hero .crumbs a {
  color: var(--ink-3); transition: color 0.2s ease;
  /* inflate the hit area without moving layout */
  position: relative; padding: 12px 6px; margin: -12px -6px;
}
.v-hero .crumbs a:hover { color: var(--ink); }
.v-hero .app-icon { --icon-s: clamp(84px, 10vw, 120px); margin-bottom: clamp(6px, 1vw, 10px); }
.v-title {
  font-size: clamp(46px, 8.2vw, 110px);
  line-height: 1.0; letter-spacing: -0.03em; font-weight: 690;
}
.v-tagline {
  font-size: clamp(19px, 2.3vw, 28px); letter-spacing: -0.016em;
  color: var(--ink-2); max-width: 40ch; line-height: 1.4; font-weight: 440;
}
.v-meta {
  display: flex; gap: clamp(14px, 2.6vw, 34px); flex-wrap: wrap; justify-content: center;
  margin-top: clamp(22px, 3.4vw, 38px);
  color: var(--ink-3); font-size: 13.5px; font-weight: 500;
}
.v-meta b { color: var(--ink-2); font-weight: 600; }
.v-meta span { display: inline-flex; gap: 6px; align-items: baseline; }

/* sustained copy reads left-aligned in a measured column (Apple pattern) */
.prose { text-align: left; }
.prose .body-2, .prose p { max-width: 54ch; }

/* hero content drifts up + fades as it scrolls away (JS-driven) */
.hero > .wrap, .v-hero > .wrap { will-change: transform, opacity; }

/* ---------- Scroll story (white scroll-scrubbed cinema) ---------- */
.seq { position: relative; height: 400svh; background: #fff; }
.seq-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(30px, 5svh, 52px);
  overflow: clip; padding: 0 var(--pad);
}
.seq-wash {
  position: absolute; inset: 0; pointer-events: none;
  transition: background 1.2s ease;
}
.seq[data-tint="0"] .seq-wash { background: radial-gradient(ellipse 62% 56% at 50% 38%, rgba(0, 119, 200, 0.075), transparent 72%); }
.seq[data-tint="1"] .seq-wash { background: radial-gradient(ellipse 62% 56% at 50% 38%, rgba(110, 110, 115, 0.07), transparent 72%); }
.seq[data-tint="2"] .seq-wash { background: radial-gradient(ellipse 62% 56% at 50% 38%, rgba(4, 120, 87, 0.07), transparent 72%); }
.seq[data-tint="3"] .seq-wash { background: radial-gradient(ellipse 62% 56% at 50% 38%, rgba(14, 116, 144, 0.09), transparent 72%); }
.seq-stage { position: relative; width: 100%; max-width: 940px; min-height: clamp(240px, 42svh, 360px); }
.seq-beat {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center; gap: 16px;
  text-align: center; pointer-events: none;
  will-change: opacity, transform, filter;
}
.js .seq:not(.seq-static) .seq-beat { opacity: 0; } /* first rAF frame takes over */
.seq-beat .k { font-size: 15px; font-weight: 620; letter-spacing: -0.005em; color: var(--kc, #0071e3); }
.seq-beat h3 {
  font-size: clamp(30px, 4.8vw, 60px); font-weight: 670;
  letter-spacing: -0.027em; line-height: 1.06; color: #1d1d1f;
  text-wrap: balance; max-width: 21ch;
}
.seq-beat p {
  color: #6e6e73; max-width: 48ch; text-wrap: pretty;
  font-size: clamp(16px, 1.7vw, 20px); line-height: 1.5; letter-spacing: -0.012em;
}
.seq-beat .link-more { margin-top: 4px; }
.seq-icons { display: flex; gap: clamp(10px, 1.8vw, 18px); }
.seq-icons .app-icon {
  --icon-s: clamp(42px, 5vw, 56px);
  opacity: 0; transform: scale(0.35) translateY(16px);
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.seq-icons .app-icon.on { opacity: 1; transform: none; }
.seq-track {
  width: min(300px, 42vw); height: 3px; border-radius: 99px;
  background: #e8e8ed; overflow: hidden;
}
.seq-track i { display: block; height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, #0077c8, #0e7490); }
/* static fallback: no JS or reduced motion — beats stack as a normal section */
.no-js .seq, .seq.seq-static { height: auto; }
.no-js .seq-sticky, .seq-static .seq-sticky { position: static; height: auto; padding: var(--sec-y) var(--pad); }
.no-js .seq-stage, .seq-static .seq-stage { min-height: 0; display: grid; gap: 56px; }
.no-js .seq-beat, .seq-static .seq-beat {
  position: static; opacity: 1 !important; transform: none !important; filter: none !important;
  pointer-events: auto;
}
.no-js .seq-icons .app-icon, .seq-static .seq-icons .app-icon { opacity: 1; transform: none; }
.no-js .seq-track, .seq-static .seq-track, .no-js .seq-wash, .seq-static .seq-wash { display: none; }

/* ---------- Statement band ---------- */
.statement {
  text-wrap: balance;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.12; letter-spacing: -0.026em; font-weight: 650;
  max-width: 22ch; margin: 0 auto;
}
.statement .hi { color: var(--tc-vivid, var(--accent)); position: relative; }
.statement .hi::after {
  content: ''; position: absolute; left: 1%; right: 1%; bottom: -0.08em;
  height: 0.055em; border-radius: 99px; background: currentColor; opacity: 0.9;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-expo) 0.5s;
}
.statement.in-view .hi::after { transform: scaleX(1); }
.sec-dark .statement { color: #f5f5f7; }

/* ---------- Pager ---------- */
.pager {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.pager a {
  padding: clamp(30px, 4.5vw, 52px) var(--pad);
  display: grid; gap: 6px;
  transition: background 0.3s ease;
}
.pager a:hover { background: var(--bg-alt); }
.pager a + a { border-left: 1px solid var(--hairline); text-align: right; justify-items: end; }
.pager .dir { font-size: 13px; color: var(--ink-3); font-weight: 520; }
.pager .pname { font-size: clamp(19px, 2.4vw, 28px); font-weight: 640; letter-spacing: -0.02em; color: var(--ink); transition: color 0.2s ease; }
.pager a:hover .pname { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--w-max); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--pad) 28px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(28px, 4vw, 40px); }
.footer .footer-h { font-size: 12.5px; font-weight: 620; color: var(--ink-2); margin-bottom: 14px; }
.footer .footer-note { font-size: 13.5px; color: var(--ink-2); max-width: 36ch; line-height: 1.55; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: #424245; font-size: 13.5px; transition: color 0.2s ease; display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; }
.footer .f-ico { --icon-s: 18px; border-radius: 28%; box-shadow: none; flex-shrink: 0; }
.footer .f-ico::before { display: none; }
.footer .f-ico svg { width: 58%; height: 58%; }
.footer ul a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--hairline);
  color: var(--ink-3); font-size: 12.5px;
}
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Reveal engine ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform, filter;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].in-view { opacity: 1; transform: none; filter: none; }
/* hoverable components keep box-shadow in their transition even while
   carrying data-reveal (whose transition list would otherwise replace it) */
.tile[data-reveal], .card[data-reveal] {
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.5s var(--ease-out),
    box-shadow 0.5s ease,
    filter 0.8s var(--ease-out);
}

[data-split] .sl-mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .sl-line {
  display: block; transform: translateY(112%);
  transition: transform 1s var(--ease-expo);
  transition-delay: calc(var(--l, 0) * 90ms);
  will-change: transform;
}
[data-split].in-view .sl-line { transform: none; }

.no-js [data-reveal], .no-js [data-split] .sl-line { opacity: 1; transform: none; filter: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-split] .sl-line { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero-icons { gap: 8px; }
  .hero-icons .app-icon { --icon-s: 40px; }
  .seq-icons { gap: 8px; }
  .seq-icons .app-icon { --icon-s: 36px; }
  .v-meta {
    /* tidy 2x2 instead of ragged flex wrap */
    display: grid; grid-template-columns: repeat(2, auto);
    justify-content: center; gap: 10px 26px; text-align: left;
  }
  .pill { font-size: 15px; padding: 12px 22px; }
  .footer ul a { padding: 6px 0; }
}
