/* Peak Apps Studio: obsidian, graphite, restrained silver. */

@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink-0: #060709;
  --ink-1: #0b0c0f;
  --ink-2: #111317;
  --ink-3: #181b20;
  --line: rgba(236, 240, 246, 0.09);
  --line-2: rgba(236, 240, 246, 0.16);
  --silver: #c7ccd4;
  --silver-hi: #f1f3f6;
  --muted: #8b9199;
  --dim: #5c626b;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Fine film grain gives the black some texture; static, so it costs almost nothing. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--silver-hi); color: var(--ink-0); }
:focus-visible { outline: 1.5px solid var(--silver-hi); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--silver-hi); color: var(--ink-0); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.skip:focus { left: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), padding 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  background: rgba(6, 7, 9, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--silver-hi); }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-weight: 560; letter-spacing: -0.02em; font-size: 17px; }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color 0.3s, background 0.3s; }
.nav-links a:hover { color: var(--silver-hi); background: rgba(255, 255, 255, 0.05); }
.nav-cta {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-0);
  background: var(--silver-hi);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 520;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  --p: 0;           /* scroll progress through the hero, 0..1 (JS) */
  --mx: 0;          /* pointer, -1..1 (JS) */
  --my: 0;
  --lx: 62%;        /* light position (JS) */
  --ly: 38%;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 70% 10%, #10131a 0%, var(--ink-0) 60%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(180deg, transparent, var(--ink-0)); z-index: 1; pointer-events: none; }
.hero-light {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at var(--lx) var(--ly), rgba(214, 222, 236, 0.16), transparent 70%),
    radial-gradient(60% 50% at 70% 110%, rgba(150, 164, 190, 0.10), transparent 70%);
  transition: opacity 1.2s var(--ease-out);
}
.hero-video { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease-out); }
.hero-video.is-ready { opacity: 0.55; }
.hero-video video, .hero-video img { width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-0) 5%, rgba(6, 7, 9, 0.35) 55%, rgba(6, 7, 9, 0.2)), linear-gradient(0deg, var(--ink-0), transparent 40%); }

.stage-wrap {
  position: absolute;
  inset: 0;
  perspective: 1800px;
  perspective-origin: 62% 38%;
  pointer-events: none;
  /* Screens emerge from darkness toward the headline. */
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 70% 38%, #000 52%, transparent 88%);
  mask-image: radial-gradient(ellipse 62% 70% at 70% 38%, #000 52%, transparent 88%);
}
.stage {
  position: absolute;
  left: 68%;
  top: 38%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform:
    translate3d(0, calc(var(--p) * -14vh), 0)
    rotateX(calc(9deg + var(--p) * 16deg + var(--my) * -2.2deg))
    rotateY(calc(-17deg + var(--mx) * 3.4deg))
    scale(calc(1 - var(--p) * 0.14));
  will-change: transform;
}
.win, .phone {
  --k: 0;           /* pointer parallax strength per layer */
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  transform:
    translate(-50%, -50%)
    translate3d(var(--x), var(--y), var(--z))
    translate3d(calc(var(--mx) * var(--k) * 1px), calc(var(--my) * var(--k) * 1px), 0);
  animation: assemble 1.8s var(--ease-out) both;
  animation-delay: calc(var(--d) * 110ms + 150ms);
}
.win {
  width: min(44vw, 780px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 0 rgba(255, 255, 255, 0.14) inset,
    0 40px 90px -20px rgba(0, 0, 0, 0.85),
    0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
/* A soft specular sheen that drifts with the pointer. */
.win::after, .phone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.10) 46%, transparent 58%);
  background-size: 260% 100%;
  background-position: calc(60% + var(--mx) * 18%) 0;
  mix-blend-mode: screen;
}
.win--main { --k: 10; --x: 3.5vw; --y: 2vh; --z: 0px; width: min(42vw, 780px); z-index: 3; }
.win--invoice { --k: 6; --x: -14vw; --y: -15vh; --z: -260px; width: min(33vw, 580px); filter: brightness(0.62) saturate(0.8); }
.win--mileage { --k: 4; --x: 16vw; --y: -19vh; --z: -480px; width: min(30vw, 520px); filter: brightness(0.45) saturate(0.7); }
.win--report { --k: 8; --x: -8vw; --y: 22vh; --z: -320px; width: min(24vw, 420px); filter: brightness(0.75) saturate(0.85); animation-name: assemble, drift; animation-duration: 1.8s, 13s; animation-delay: calc(var(--d) * 110ms + 150ms), 2.4s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease-out), var(--ease-io); animation-direction: normal, alternate; }
.phone {
  --k: 14;
  --x: 21vw;
  --y: 17vh;
  --z: 200px;
  width: min(10.5vw, 190px);
  border-radius: 26px;
  padding: 7px;
  overflow: hidden;
  background: linear-gradient(160deg, #3a3f47, #15171b 40%, #2a2e35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 80px -30px rgba(0, 0, 0, 0.9);
  animation-name: assemble, drift;
  animation-duration: 1.8s, 11s;
  animation-delay: calc(var(--d) * 110ms + 150ms), 2.6s;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease-out), var(--ease-io);
  animation-direction: normal, alternate;
}
.phone img { border-radius: 20px; }
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(180deg, #1c1f24, #15171b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c3037; }
.win-bar span { margin-left: 10px; letter-spacing: 0.02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stage-floor {
  position: absolute;
  left: 20%;
  right: -10%;
  bottom: -8%;
  height: 40%;
  background: radial-gradient(50% 60% at 55% 30%, rgba(170, 184, 210, 0.09), transparent 70%);
  filter: blur(10px);
}

@keyframes assemble {
  from { opacity: 0; translate: 0 40px -420px; }
  to { opacity: 1; translate: 0 0 0; }
}
@keyframes drift {
  from { translate: 0 0 0; }
  to { translate: 0 -10px 0; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  max-width: min(1180px, 84vw);
  padding: 120px var(--gutter) clamp(64px, 11vh, 120px);
  opacity: calc(1 - var(--p) * 1.6);
  transform: translate3d(0, calc(var(--p) * -60px), 0);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1.2s var(--ease-out) 0.2s both;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #d8dde5; box-shadow: 0 0 0 4px rgba(216, 221, 229, 0.12); }
.hero-title {
  margin: 0;
  font-weight: 480;
  font-size: clamp(48px, 7vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.052em;
  color: var(--silver-hi);
}
.hero-title em { font-size: 1.06em; letter-spacing: -0.03em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; animation: lineUp 1.4s var(--ease-out) both; }
.line:nth-child(1) > span { animation-delay: 0.35s; }
.line:nth-child(2) > span { animation-delay: 0.5s; }
/* Metallic highlight on the display type: light from above, falling to graphite. */
.hero-title span span, .section-title, .chapter-title, .contact-title a {
  background: linear-gradient(180deg, #ffffff 0%, #e7eaef 45%, #9ea4ad 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
  animation: rise 1.2s var(--ease-out) 0.75s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: rise 1.2s var(--ease-out) 0.9s both; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.45s var(--ease-out), background 0.3s, border-color 0.3s, color 0.3s;
}
.btn--light { background: var(--silver-hi); color: var(--ink-0); font-weight: 540; }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { color: var(--silver); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: rgba(236, 240, 246, 0.4); color: var(--silver-hi); }
.hero-foot {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: calc(1 - var(--p) * 3);
}
.hero-foot-line { width: 64px; height: 1px; background: linear-gradient(90deg, var(--dim), transparent); position: relative; overflow: hidden; }
.hero-foot-line::after { content: ""; position: absolute; inset: 0; background: var(--silver-hi); transform: translateX(-100%); animation: scan 2.8s var(--ease-io) 2s infinite; }

@keyframes lineUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(96px, 18vh, 200px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.manifesto-text {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(28px, 3.9vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 420;
  color: var(--silver-hi);
}
.manifesto-text .w { opacity: 0.16; transition: opacity 0.5s linear; }
.manifesto-text .w.on { opacity: 1; }

/* ---------- Section scaffolding ---------- */
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.section-title { margin: 0; max-width: 16ch; font-size: clamp(38px, 5.6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 460; }
.section-note { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Work ---------- */
.work { padding: clamp(40px, 8vh, 100px) 0 0; }
.chapter { position: relative; margin-top: clamp(80px, 14vh, 170px); }
.chapter-num { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.chapter-title { margin: 0; font-size: clamp(38px, 4vw, 68px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 480; }
.chapter-lede { margin: 20px 0 0; max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--silver); }
.facts { margin: 28px 0 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.facts dd { margin: 0; color: var(--silver); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--silver-hi);
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(var(--silver-hi), var(--silver-hi)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), gap 0.4s var(--ease-out);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; gap: 12px; }

/* 01: cinematic, full-bleed */
.chapter--film { margin-top: clamp(64px, 10vh, 120px); }
.film { position: relative; }
.film-main { position: relative; overflow: hidden; aspect-ratio: 1600 / 680; max-height: 88vh; }
.film-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.film-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.film-main.is-ready video { opacity: 1; }
.film-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 9, 0.92) 0%, rgba(6, 7, 9, 0.55) 34%, rgba(6, 7, 9, 0) 62%), linear-gradient(0deg, var(--ink-0) 0%, transparent 30%); }
.film-copy { position: absolute; left: var(--gutter); bottom: clamp(40px, 9vh, 96px); max-width: 460px; z-index: 2; }
.film-copy .facts div { grid-template-columns: 96px 1fr; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 16px); padding: clamp(10px, 1.2vw, 18px) var(--gutter) 0; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.strip-item { margin: 0; position: relative; border-radius: 8px; overflow: hidden; }
.strip-item img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease-out), filter 0.8s; filter: saturate(0.85) brightness(0.85); }
.strip-item:hover img { transform: scale(1.04); filter: none; }
.strip-item figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

/* 02-04: sticky copy beside layered media */
.chapter--split {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(32px, 6vw, 110px);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
  align-items: start;
}
.chapter--flip { grid-template-columns: 7fr minmax(300px, 5fr); }
.chapter--flip .chapter-copy { order: 2; }
.sticky { position: sticky; top: 16vh; }
.chapter-media { display: grid; gap: clamp(20px, 3vw, 40px); }
.frame { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.frame--paper { background: #f6f7f9; }
.frame--offset { width: 78%; margin-left: auto; margin-top: clamp(-120px, -8vw, -40px); }
.media-pair { display: grid; grid-template-columns: 0.72fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: end; }

/* Image reveal: a mask opens upward while the picture settles. */
.reveal-img { clip-path: inset(0 0 0 0 round 12px); }
.js .reveal-img { clip-path: inset(18% 0 0 0 round 12px); transition: clip-path 1.4s var(--ease-out); }
.js .reveal-img img { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.js .reveal-img.in { clip-path: inset(0 0 0 0 round 12px); }
.js .reveal-img.in img { transform: none; }
.film-main.reveal-img, .js .film-main.reveal-img, .js .film-main.reveal-img.in { clip-path: none; }

/* ---------- Apps ---------- */
.apps { padding: clamp(120px, 20vh, 220px) 0 0; }
.apps-list { list-style: none; margin: clamp(48px, 8vh, 90px) auto 0; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.app { display: grid; grid-template-rows: auto 1fr; gap: 28px; padding: 36px 32px 40px 0; border-right: 1px solid var(--line); }
.app + .app { padding-left: 32px; }
.app:last-child { border-right: 0; }
.app-glyph {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #2a2e35 0%, #121419 55%, #22262c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 24px 40px -20px rgba(0, 0, 0, 0.9);
}
.app-glyph span { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; background: linear-gradient(180deg, #fff, #9ea4ad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.app-name { margin: 0; font-size: 30px; font-weight: 480; letter-spacing: -0.03em; color: var(--silver-hi); }
.app-desc { margin: 12px 0 0; color: var(--muted); font-size: 16px; max-width: 34ch; }
.app-meta { margin: 18px 0 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.app-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-quiet { font-size: 14px; color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--silver-hi); }

/* ---------- Index ---------- */
.index { padding: clamp(120px, 20vh, 220px) 0 0; }
.index-list { list-style: none; margin: 48px auto 0; padding: 0 var(--gutter); max-width: var(--max); counter-reset: idx; }
.index-list li { counter-increment: idx; border-top: 1px solid var(--line); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list a {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(180px, 1.1fr) 2fr 120px 24px;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  text-decoration: none;
  transition: padding 0.5s var(--ease-out), color 0.3s;
}
.index-list a::before { content: counter(idx, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.index-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--silver-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.index-list a:hover { padding-left: 12px; }
.index-list a:hover::after { transform: scaleX(1); }
.i-name { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; color: var(--silver-hi); font-weight: 460; }
.i-what { color: var(--muted); font-size: 15px; }
.i-kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.i-go { color: var(--dim); transition: color 0.3s, transform 0.5s var(--ease-out); }
.index-list a:hover .i-go { color: var(--silver-hi); transform: translate(3px, -3px); }

/* ---------- Principles ---------- */
.principles { padding: clamp(120px, 20vh, 220px) 0 0; }
.rules { list-style: none; margin: clamp(48px, 8vh, 90px) auto 0; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 110px); }
.rule { position: relative; padding: 34px 0 44px 64px; border-top: 1px solid var(--line); }
.rule-n { position: absolute; left: 0; top: 30px; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--dim); }
.rule h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; font-weight: 470; color: var(--silver-hi); }
.rule p { margin: 12px 0 0; color: var(--muted); max-width: 42ch; }

/* ---------- Contact / footer ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(140px, 24vh, 260px) var(--gutter) clamp(90px, 14vh, 150px); }
.contact-title { margin: 0; font-size: clamp(34px, 7.4vw, 120px); line-height: 1; letter-spacing: -0.05em; font-weight: 440; overflow-wrap: anywhere; }
.contact-title a { text-decoration: none; background-size: 100% 100%; }
.contact-title a:hover { background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%); }
.contact-note { margin: 28px 0 0; color: var(--muted); max-width: 46ch; }
.footer { border-top: 1px solid var(--line); }
.footer-row { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--silver-hi); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .index-list a { grid-template-columns: 44px 1fr 110px 20px; }
  .i-what { grid-column: 2 / 3; grid-row: 2; }
}
@media (max-width: 960px) {
  .chapter--split, .chapter--flip { grid-template-columns: 1fr; }
  .chapter--flip .chapter-copy { order: 0; }
  .sticky { position: static; }
  .apps-list { grid-template-columns: 1fr; }
  .app, .app + .app { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 92px 1fr; grid-template-rows: auto; }
  .rules { grid-template-columns: 1fr; }
  .film-main { aspect-ratio: auto; height: 58vh; }
  .film-main::after { background: linear-gradient(0deg, var(--ink-0) 2%, rgba(6, 7, 9, 0.2) 55%, rgba(6, 7, 9, 0) 70%); }
  .film-copy { position: relative; left: auto; bottom: auto; max-width: none; padding: 0 var(--gutter); margin-top: -64px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; gap: 12px; }
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .brand-sub { display: none; }
  /* Phones get a quieter stage: fewer layers, no pointer tilt, content first. */
  .stage-wrap { perspective: 1100px; perspective-origin: 50% 20%; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 26%, transparent 42%); mask-image: linear-gradient(180deg, #000 0%, #000 26%, transparent 42%); }
  .stage { left: 54%; top: 19%; }
  .win--main { --x: 4vw; --y: 1vh; width: 84vw; }
  .win--invoice { --x: -12vw; --y: -9vh; width: 62vw; }
  .win--mileage, .win--report { display: none; }
  .phone { --x: 31vw; --y: 3vh; --z: 140px; width: 21vw; border-radius: 16px; padding: 4px; }
  .phone img { border-radius: 14px; }
  .hero-copy { padding-bottom: 56px; }
  .hero-title { font-size: clamp(44px, 13vw, 64px); }
  .hero-foot { display: none; }
  .strip { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-item { scroll-snap-align: start; }
  .media-pair { grid-template-columns: 1fr; }
  .frame--offset { width: 90%; margin-top: -32px; }
  .index-list a { grid-template-columns: 36px 1fr 20px; gap: 12px; padding: 18px 0; }
  .i-kind { display: none; }
  .rule { padding-left: 48px; }
  .facts div { grid-template-columns: 92px 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero { --p: 0 !important; --mx: 0 !important; --my: 0 !important; }
  .js .reveal-img, .js .reveal-img img { clip-path: none; transform: none; }
  .manifesto-text .w { opacity: 1; }
}
