@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-latin.woff2") format("woff2");
}

/* URBANO — Apple product-page grammar on the layered-light world.
   SF Pro where the device has it, Inter everywhere else. Centered type
   with air, one product turning in space, one black statement. */

:root {
  --bg: #fbfbfd;
  --band: #f5f5f7;
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --meta: #6e6e73;
  --line: #e5e5e7;
  --on-black: #f5f5f7;
  --on-black-muted: #86868b;
  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

::selection { background: rgba(79, 70, 229, 0.16); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 999px; border: 2px solid var(--bg); }
html { scrollbar-width: thin; scrollbar-color: #d2d2d7 var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Nav ────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav.on-dark { background: rgba(0, 0, 0, 0.6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.nav.on-dark .wordmark, .nav.on-dark .nav-links a { color: var(--on-black); }
.nav.on-dark .nav-links a:hover { color: #ffffff; }
.progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
  pointer-events: none;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.95rem clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; transition: color 0.3s; }
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.55rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s var(--ease);
}
.nav-links a.active::after { transform: translateX(-50%) scale(1); }

/* ── Hero: centered, with air ───────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5rem;
  overflow: hidden;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "t1 stage"
    "copy stage"
    "copy ship";
  column-gap: 2rem;
  row-gap: 0;
  align-items: start;
}
.hero-copy { grid-area: copy; display: grid; justify-items: start; text-align: left; align-self: start; padding-top: 1.75rem; }
.hero-title { display: contents; }
.hero-title .t1 {
  grid-area: t1;
  align-self: end;
  font-size: clamp(2.5rem, 4.3vw, 4.1rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 9em;
}
.hero-title .t2 {
  grid-area: ship;
  align-self: start;
  justify-self: start;
  font-size: clamp(3.5rem, 7.2vw, 6.75rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-top: 2.5rem;
  margin-left: 2%;
}

/* the stage: the product large, lit, with facts orbiting it */
.hero-stage {
  grid-area: stage;
  position: relative;
  height: clamp(520px, 66svh, 640px);
  display: grid;
  align-items: center;
  justify-items: start;
  perspective: 1500px;
  transform-style: preserve-3d;
}
.stage-light {
  position: absolute;
  left: 38%; top: 50%;
  width: 150%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.3), rgba(129, 140, 248, 0.16) 18%, rgba(79, 70, 229, 0.07) 34%, rgba(79, 70, 229, 0.025) 48%, transparent 62%);
  filter: blur(22px);
  pointer-events: none;
}
.device-hero {
  width: 262px; height: 534px;
  margin-left: 2%;
  --ry: -22deg; --rx: 5deg;
  transform: rotateY(calc(var(--ry) + var(--dr, 0deg))) rotateX(var(--rx)) translate3d(var(--hx, 0px), var(--hy, 0px), 0);
  transition: none;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { margin-top: -12px; } }

.hero-stage .chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transform: translate3d(calc(var(--hx, 0px) * var(--k, 1)), calc(var(--hy, 0px) * var(--k, 1)), 140px);
  animation: float var(--fd, 6s) ease-in-out infinite;
  animation-delay: var(--fdl, 0s);
  z-index: 3;
}
.chip.c1 { left: -6%; top: 3%; --k: 1.6; --fd: 6.5s; }
.chip.c2 { right: 0; top: 20%; --k: 1.2; --fd: 7.5s; --fdl: -2s; }
.chip.c3 { left: auto; right: calc(98% - 12px); top: 52%; --k: 1.4; --fd: 8s; --fdl: -4s; }
.chip.c4 { right: 0; top: 71%; --k: 1.8; --fd: 6.8s; --fdl: -1s; }
.chip.c5 { right: -5%; bottom: 11%; left: auto; --k: 1.1; --fd: 7.2s; --fdl: -3s; }
.stage-note-hero { position: absolute; left: 0; bottom: -1.25rem; white-space: nowrap; }

.scroll-cue {
  grid-area: copy;
  align-self: end;
  justify-self: start;
  position: relative;
  margin: 2rem 0 0 0.25rem;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -44px;
  width: 1px; height: 44px;
  background: linear-gradient(transparent, var(--ink));
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 60%, 100% { transform: translateY(88px); } }
.develop { display: block; }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 26em;
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--muted);
}
.hero-sub a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hero-sub a:hover { color: var(--accent-ink); }
.hero-actions { margin-top: 2.25rem; display: flex; gap: 0.875rem; flex-wrap: wrap; }
.hero .now { margin-top: 2.5rem; }

/* pills */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.5s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary { background: var(--accent); color: #ffffff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); box-shadow: 0 10px 28px -10px rgba(79, 70, 229, 0.6); }
.btn-primary:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.97); box-shadow: none; }
.btn-ghost { border: 1px solid #d2d2d7; color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.75); }

/* Now chip */
.now > span { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.6rem 1.1rem 0.6rem 0.9rem; border-radius: 999px; }
.now p { font-size: 0.9375rem; color: var(--muted); }
.now-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35);
  animation: live 2.6s var(--ease) infinite;
}
@keyframes live {
  40% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* ── Sections ───────────────────────────────────────────────── */

section { scroll-margin-top: 0; }   /* sections carry their own top padding; nothing dark stays under the nav */
h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* status line + arrow links */
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--accent-ink); font-weight: 500; }
.status-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.arrow-link { display: inline-block; font-weight: 500; color: var(--accent-ink); text-decoration: none; transition: color 0.25s var(--ease); }
.arrow-link::after { content: "\2192"; display: inline-block; margin-left: 0.4em; transition: transform 0.35s var(--ease); }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ── Pinned chapters ────────────────────────────────────────── */

.chapter { position: relative; height: 340vh; }
.chapter .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.chapter .container { position: relative; z-index: 1; width: 100%; }
.editbay { height: 300vh; }
.seventeen { height: 260vh; background: var(--band); }   /* the section wears the pin's color: a phone's pin is 100svh, and the viewport grows past it when the browser chrome collapses */

/* Work: the product turns while its features arrive */
.pin-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
.stage { display: grid; justify-items: center; gap: 1.25rem; perspective: 1600px; }
.stage-note { font-size: 0.875rem; color: var(--meta); letter-spacing: 0.01em; }

.device {
  position: relative;
  width: 290px; height: 590px;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--ry, -24deg) + var(--dr, 0deg))) rotateX(var(--rx, 4deg)) translateZ(0);
  transition: transform 0.15s linear;
  will-change: transform;
}
.device-body {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a3a3f, #1c1c1f 48%, #0f0f11);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28),
    inset 0 0 0 3px rgba(0, 0, 0, 0.6),
    0 40px 90px -36px rgba(0, 0, 0, 0.6);
  transform: translateZ(10px);
}
/* rim light along the edge that faces the light */
.device-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
}
/* the slab's thickness, visible when it turns */
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(90deg, #3d3d42, #1a1a1d 35%, #0e0e10);
  transform: translateZ(-8px);
}
.device-screen {
  position: absolute;
  inset: 11px;
  border-radius: 37px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
/* glass sweep over the screen; it travels with the turn */
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(105deg, transparent calc(var(--sweep, 44%) - 12%), rgba(255, 255, 255, 0.24) var(--sweep, 44%), rgba(255, 255, 255, 0.05) calc(var(--sweep, 44%) + 8%), transparent calc(var(--sweep, 44%) + 16%));
}
.device-shadow {
  position: absolute;
  left: 8%; right: 8%; bottom: -46px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(29, 29, 31, 0.28), transparent 70%);
  transform: translateZ(-40px) scaleX(var(--sh, 1));
  filter: blur(6px);
}

/* real screens: brand-kit captures, cropped from the top like a phone would show them */
.screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(var(--pan, 0) * 100%);
  opacity: 0;
  transition: opacity 0.55s ease-out;
}
/* each screen scrolls through its own capture while it is on: the hero drifts on the recede, the pin pans per step */
.screen-img.s0 { --pan: var(--pan0, 0); }
.screen-img.s1 { --pan: var(--pan1, 0); }
.screen-img.s2 { --pan: var(--pan2, 0); }
.screen-img.s3 { --pan: var(--pan3, 0); }
.device[data-screen="0"] .s0, .device[data-screen="1"] .s1, .device[data-screen="2"] .s2, .device[data-screen="3"] .s3 { opacity: 1; }

.product-icon { width: 24px; height: 24px; border-radius: 6px; flex: none; margin-right: 0.15rem; }
.pin-right { max-width: 30rem; }
.pin-claim {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.pin-right .status { margin-top: 1.25rem; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.steps .step { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.step-n { font-size: 0.9375rem; font-weight: 600; color: var(--accent-ink); padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: 1.0625rem; line-height: 1.5; }
.js .step { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.5s ease-out, transform 0.7s var(--ease), filter 0.6s ease-out; }
.js .step.on { opacity: 1; transform: none; filter: blur(0); }
.pin-link { margin-top: 1.75rem; }

/* About: the black statement */
.manifesto { background: var(--black); }
.manifesto .pin { background: var(--black); color: var(--on-black); justify-content: center; }
.manifesto .glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.28), transparent 62%);
  pointer-events: none;
}
.lines { display: grid; gap: 1.5rem; max-width: 48rem; text-align: center; justify-items: center; }
.line-big {
  font-size: clamp(1.75rem, 3.6vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--on-black);
  transition: color 0.8s ease-out;
}
.js .line-big.past { color: var(--on-black-muted); }
.nowrap { white-space: nowrap; }
.line-big.handset { text-wrap: pretty; justify-self: stretch; }   /* full width: shrink-to-fit rounds the last word onto a new line */

/* ── The tile band ──────────────────────────────────────────── */

.band { background: var(--band); padding: clamp(5rem, 11vh, 8rem) 0; }
.band-title { text-align: center; }
.band-sub { margin: 1rem auto 0; max-width: 30em; text-align: center; color: var(--muted); font-size: 1.125rem; }
.facts { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.fact { padding-top: 1.25rem; border-top: 1px solid #d2d2d7; }
.fact b { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.fact p { margin-top: 0.75rem; color: var(--muted); }
.js .fact.reveal.in { transition-delay: calc(var(--i, 0) * 110ms); }
/* ── The edit bay: a pinned timeline; the playhead scrubs four years while the story arrives ── */

.editbay .pin { padding: 4rem 0 2rem; }
.editbay-grid { display: grid; justify-items: center; }
.editbay-head { text-align: center; }
.editbay-sub { margin: 1rem auto 0; max-width: 34em; text-align: center; color: var(--muted); font-size: 1.125rem; }
.timeline { position: relative; margin: 2.75rem auto 0; max-width: 56rem; width: 100%; }
.tc { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
.tc-time { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-time::before { content: "TC "; font-weight: 500; color: var(--meta); }
.track { position: relative; margin-top: 0.75rem; padding: 1.6rem 0 0.5rem; }
.ruler {
  position: relative;
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2.5%),
    repeating-linear-gradient(90deg, #c7c7cc 0 1px, transparent 1px 12.5%);
  background-size: 100% 6px, 100% 14px;
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
}
.ruler .yr {
  position: absolute;
  top: -1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  transition: color 0.3s ease-out;
}
.ruler .yr:nth-child(1) { left: 0; transform: none; }
.ruler .yr:nth-child(2) { left: 25%; }
.ruler .yr:nth-child(3) { left: 50%; }
.ruler .yr:nth-child(4) { left: 75%; }
.ruler .yr:nth-child(5) { left: 100%; transform: translateX(-100%); }
.ruler .yr.on { color: var(--ink); }
.clips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; margin-top: 0.75rem; }
.clip {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  display: grid;
  gap: 0.15rem;
  opacity: 0.55;
  transform: scale(0.985);
  transition: opacity 0.45s ease-out, transform 0.6s var(--ease), outline-color 0.3s ease-out;
  outline: 1.5px solid transparent;
  outline-offset: -1.5px;
}
.clip.on { opacity: 1; transform: none; }
.clip.live { outline-color: var(--accent); }
.clip.live b { color: var(--accent-ink); }
.clip b { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.3s ease-out; }
.clip small { font-size: 0.875rem; color: var(--muted); }
.playhead {
  position: absolute;
  top: 1.45rem;
  height: calc(0.15rem + 14px + 0.55rem);
  left: calc(var(--tp, 0) * 100%);
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  transform: translateX(-1px);
}
.playhead::before {
  content: "";
  position: absolute;
  left: 50%; top: -6px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
}
/* the story, one cut at a time on the monitor under the timeline */
.cuts { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 56rem; width: 100%; display: grid; min-height: 5.5rem; }
.cuts .cut { grid-area: 1 / 1; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: start; max-width: 42rem; }
.cut-n { font-size: 0.875rem; font-weight: 600; color: var(--accent-ink); padding-top: 0.35rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.cut p { font-size: 1.25rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cut p b { color: var(--ink); font-weight: 600; }
.js .cuts .cut.past { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
.editbay .strip-links { margin-top: 2rem; }
.strip-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }

/* ── Seventeen: a pinned school day; the clock runs while you scroll ── */

.seventeen .pin { background: var(--band); padding: 4rem 0 2rem; }
.seventeen-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem 4rem; align-items: center; }
.clock-wrap { display: grid; justify-items: center; gap: 1.25rem; }
.clock {
  position: relative;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 30px 60px -30px rgba(29, 29, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* sixty minute ticks and twelve hour ticks, as rings */
.clock::before, .clock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.clock::before {
  background: repeating-conic-gradient(from -0.5deg, #c7c7cc 0 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 86%, #000 86.5%, #000 94%, transparent 94.5%);
  mask: radial-gradient(circle closest-side, transparent 86%, #000 86.5%, #000 94%, transparent 94.5%);
}
.clock::after {
  background: repeating-conic-gradient(from -1deg, var(--ink) 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 81%, #000 81.5%, #000 94%, transparent 94.5%);
  mask: radial-gradient(circle closest-side, transparent 81%, #000 81.5%, #000 94%, transparent 94.5%);
}
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; background: var(--ink); z-index: 1; }
.hand.hour { width: 5px; height: 26%; margin-left: -2.5px; transform: rotate(var(--h, 90deg)); }
.hand.minute { width: 3.5px; height: 38%; margin-left: -1.75px; transform: rotate(var(--m, 0deg)); }
.hand.second { width: 1.5px; height: 42%; margin-left: -0.75px; background: var(--accent); transform: rotate(var(--s, 0deg)); }
.pivot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #ffffff; z-index: 2; }
.clock-read { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.seventeen-copy .band-title, .seventeen-copy .band-sub { text-align: left; margin-left: 0; }
.hours { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.hour-line p { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); transition: color 0.6s ease-out; }
.js .hours .hour-line.past p { color: var(--muted); }
.seventeen .facts { grid-column: 1 / -1; margin-top: 1rem; }

/* ── Contact: the letter you write him ──────────────────────── */
/* No card. The form is a sentence set in display type; the fields live inside it, underlined like blanks,
   and grow as you write so the line reflows. One line under the button says what happens, then what happened. */

.contact { min-height: 100svh; display: grid; align-content: center; padding: clamp(6rem, 14vh, 10rem) 0 clamp(5rem, 11vh, 8rem); }   /* the last chapter owns a full screen, so the Contact link lands on it cleanly */
.contact-wrap { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.letter {
  max-width: 24em;
  font-size: clamp(1.625rem, 3.1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
  color: var(--ink);
}
.letter-line { position: relative; text-wrap: pretty; }
.fill {
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink);
  caret-color: var(--accent);
  background: none;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid #c7c7cc;
  margin: 0;
  padding: 0 0.02em 0.02em 0.05em;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.fill::placeholder { color: #a1a1a6; opacity: 1; }
.fill:hover { border-color: #8e8e93; }
.fill:focus { border-color: var(--accent); }
.fill.missing { border-color: #d70015; }
.fill:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s ease-out; }   /* keep the browser's autofill wash off the page */
.letter-line .fill { display: inline-block; box-sizing: content-box; vertical-align: baseline; line-height: 1.15; max-width: 100%; min-width: 3ch; margin: 0 0 0 0.04em; }
.fill-block { display: block; width: 100%; margin-top: 0.55em; line-height: 1.3; padding: 0 0 0.12em; resize: none; overflow: hidden; field-sizing: content; }
.measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.form-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-send { font-size: 1.125rem; padding: 1rem 2rem; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.form-status { font-size: 1rem; color: var(--meta); min-height: 1.4em; transition: color 0.3s var(--ease); }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: #d70015; }

/* ── Footer ─────────────────────────────────────────────────── */

.footer { background: var(--band); border-top: 1px solid var(--line); padding: 1.75rem 0 2.25rem; }
.footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--meta); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--meta); text-decoration: none; transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--ink); }

/* ── The living field ───────────────────────────────────────── */

.field { position: fixed; inset: -20% -10%; z-index: -1; pointer-events: none; will-change: transform; }
.field i { position: absolute; border-radius: 50%; will-change: transform; }
.field .f1 { width: 58vw; height: 58vw; left: -14vw; top: -14vw; background: radial-gradient(circle, rgba(79, 70, 229, 0.16), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.field .f2 { width: 46vw; height: 46vw; right: -10vw; top: 16vh; background: radial-gradient(circle, rgba(129, 140, 248, 0.18), transparent 60%); animation: drift2 34s ease-in-out infinite alternate; }
.field .f3 { width: 52vw; height: 52vw; left: 24vw; bottom: -18vw; background: radial-gradient(circle, rgba(165, 180, 252, 0.4), transparent 58%); animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(7vw, 5vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-6vw, 8vh, 0) scale(0.94); } }
@keyframes drift3 { to { transform: translate3d(5vw, -6vh, 0) scale(1.07); } }
.js .field { opacity: 0; transition: opacity 1.8s ease-out; }
.js .field.on { opacity: 1; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.022;
  background: 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Glass ──────────────────────────────────────────────────── */

.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid transparent;
  border-radius: 24px;
  box-shadow: 0 18px 50px -24px rgba(79, 70, 229, 0.3), 0 2px 10px -6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(129, 140, 248, 0.4) 38%, rgba(255, 255, 255, 0.35) 68%, rgba(79, 70, 229, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* ── Cursor: the lens ───────────────────────────────────────── */

@media (pointer: fine) {
  html.cursor-on, html.cursor-on body, html.cursor-on a, html.cursor-on button, html.cursor-on label { cursor: none; }
  html.cursor-on input, html.cursor-on textarea { cursor: text; }
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 120; border-radius: 50%; pointer-events: none; display: none; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { display: block; opacity: 0; transition: opacity 0.3s ease-out; }
html.cursor-seen .cursor-dot, html.cursor-seen .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); transform: translate(-50%, -50%); }
.cursor-ring { z-index: 119; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.cursor-ring::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 70, 229, 0.45);
  background: rgba(79, 70, 229, 0);
  transform: scale(1);
  transition: transform 0.3s var(--ease), opacity 0.25s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out;
}
html.cursor-hover .cursor-ring::after { transform: scale(1.6); background: rgba(79, 70, 229, 0.08); border-color: rgba(79, 70, 229, 0.7); }
html.cursor-pill .cursor-ring::after { transform: scale(0.5); opacity: 0; }

/* ── Motion: develop, reveals ───────────────────────────────── */

.js .develop { opacity: 0; filter: blur(18px) contrast(0.35) brightness(1.5); }
.js .hero.developed .develop { animation: develop 1.7s var(--ease) forwards; }
.js .hero.developed .develop:nth-child(2) { animation-delay: 0.22s; }
@keyframes develop {
  0%   { opacity: 0; filter: blur(18px) contrast(0.35) brightness(1.5); letter-spacing: -0.025em; }
  45%  { opacity: 0.75; filter: blur(6px) contrast(0.7) brightness(1.15); }
  100% { opacity: 1; filter: blur(0) contrast(1) brightness(1); letter-spacing: -0.04em; }
}
.js .hero-sub, .js .hero-actions, .js .hero .now { opacity: 0; transform: translateY(10px); transition: opacity 0.9s ease-out, transform 1s var(--ease); }
.js .hero-stage .device-hero { opacity: 0; transition: opacity 1.2s ease-out; }
.js .hero.developed .device-hero { opacity: 1; transition-delay: 0.5s; }
.js .hero-stage .chip { opacity: 0; transition: opacity 0.8s ease-out; }
.js .hero.developed .chip { opacity: 1; }
.js .hero.developed .c1 { transition-delay: 1.2s; } .js .hero.developed .c2 { transition-delay: 1.35s; } .js .hero.developed .c3 { transition-delay: 1.5s; } .js .hero.developed .c4 { transition-delay: 1.65s; } .js .hero.developed .c5 { transition-delay: 1.8s; }
.js .scroll-cue { opacity: 0; transition: opacity 1s ease-out 2s; }
.js .hero.developed .scroll-cue { opacity: 1; }
.js .hero.developed .hero-sub { opacity: 1; transform: none; transition-delay: 0.9s; }
.js .hero.developed .hero-actions { opacity: 1; transform: none; transition-delay: 1.15s; }
.js .hero.developed .now { opacity: 1; transform: none; transition-delay: 1.35s; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.4s ease-out, transform 0.5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease-out, transform 0.9s var(--ease); }
.js .reveal-plane { transform: translateY(18px) scale(0.985); filter: blur(4px); transition: opacity 0.4s ease-out, transform 0.5s var(--ease), filter 0.4s ease-out; }
.js .reveal-plane.in { transform: none; filter: blur(0); transition: opacity 0.8s ease-out, transform 1.1s var(--ease), filter 0.9s ease-out; }
.js .tile.reveal.in { transition-delay: calc(var(--i, 0) * 90ms); }
.js h2.reveal { filter: blur(10px); transition: opacity 0.4s ease-out, transform 0.5s var(--ease), filter 0.5s ease-out; }
.js h2.reveal.in { filter: blur(0); transition: opacity 0.8s ease-out, transform 1s var(--ease), filter 0.9s ease-out; }

/* ── Phones ─────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .nav-links { gap: 1.1rem; } .nav-links a { font-size: 0.8125rem; } .nav-links a:nth-child(3) { display: none; }
  .hero { padding: 5.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "t1" "stage" "ship" "copy"; grid-template-rows: auto auto auto auto; row-gap: 1.25rem; }
  .hero-copy { justify-items: center; text-align: center; padding-top: 0.5rem; }
  .hero-actions { justify-content: center; }
  .hero-title .t1 { font-size: clamp(2.1rem, 9.2vw, 3rem); max-width: none; text-align: center; justify-self: center; }
  .hero-title .t2 { font-size: clamp(3.2rem, 15vw, 4.6rem); justify-self: center; margin: 0; text-align: center; }
  .hero .now { margin-top: 2rem; }
  .hero-stage { height: auto; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 0.5rem; padding: 0.5rem 0 0; }
  .hero-stage .device-hero { flex: 0 0 auto; margin: 0 auto 1.5rem; }
  .hero-stage .stage-light { left: 50%; }
  .stage-note-hero { position: static; transform: none; flex-basis: 100%; text-align: center; order: 2; margin-bottom: 0.25rem; }
  .hero-stage .chip { display: none; }
  .hero-stage { row-gap: 0.5rem; column-gap: 0.4rem; padding-left: 0; padding-right: 0; }
  .hero-stage .chip { font-size: 0.8rem; }
  .hero-stage .device-hero { width: 210px; height: 426px; --ry: -18deg; }
  .hero-stage .device-hero .device-body, .hero-stage .device-hero::before { border-radius: 34px; }
  .hero-stage .device-hero .device-screen { inset: 8px; border-radius: 27px; }
  .hero-stage .device-hero .device-island { top: 12px; width: 46px; height: 10px; }
  .chip { font-size: 0.8125rem; padding: 0.45rem 0.75rem 0.45rem 0.6rem; }
  .chip.c2, .chip.c4 { display: none; }
  .stage-note-hero { bottom: -1.25rem; font-size: 0.75rem; }
  .scroll-cue { display: none; }
  .now > span { align-items: flex-start; text-align: left; }
  .now-dot { margin-top: 0.5em; }
  .chapter { height: 300vh; }
  .chapter .pin { height: 100svh; padding: 4.25rem 0 1rem; align-items: center; }
  .pin-grid { grid-template-columns: 1fr; gap: 1rem; justify-items: center; text-align: center; }
  .stage { gap: 0.5rem; }
  .stage-note { font-size: 0.8125rem; }
  .device { width: 210px; height: 426px; }
  .device-body, .device::before { border-radius: 34px; }
  .device-screen { inset: 8px; border-radius: 27px; }
  .device-island { top: 12px; width: 46px; height: 10px; }
  .device-btn.b1 { top: 70px; height: 18px; } .device-btn.b2 { top: 98px; height: 30px; } .device-btn.b3 { top: 136px; height: 30px; } .device-btn.b4 { top: 106px; height: 44px; }
  .device-shadow { bottom: -30px; height: 26px; }
  .pin-right { max-width: 34rem; text-align: left; }
  .pin-claim { font-size: clamp(1.2rem, 5.2vw, 1.45rem); text-align: center; }
  .pin-right .status { margin-top: 0.5rem; font-size: 0.875rem; justify-content: center; display: flex; }
  /* one proof step at a time beneath the larger device: they share one cell and hand over */
  .steps { margin-top: 0.9rem; gap: 0; }
  .steps .step { grid-area: 1 / 1; grid-template-columns: 1.25rem 1fr; gap: 0.4rem; }
  .js .steps .step.past { opacity: 0; transform: translateY(-10px); }
  .step-n { font-size: 0.875rem; padding-top: 0.1rem; }
  .step p { font-size: 0.875rem; line-height: 1.4; }
  .pin-link { margin-top: 0.6rem; text-align: center; font-size: 0.9375rem; }
  .facts { grid-template-columns: 1fr; gap: 0.9rem; }
  .editbay .pin, .seventeen .pin { padding: 4.25rem 0 1rem; }
  .editbay-sub { font-size: 1rem; }
  .timeline { margin-top: 1.5rem; }
  .tc-meta { display: none; }
  .clips { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .clip { padding: 0.65rem 0.7rem; border-radius: 12px; }
  .clip b { font-size: 0.8125rem; }
  .clip small { display: none; }
  .cuts { margin-top: 1.25rem; min-height: 7rem; }
  .cuts .cut { grid-template-columns: 1.75rem 1fr; gap: 0.5rem; }
  .cut p { font-size: 1rem; line-height: 1.4; }
  .editbay .strip-links { margin-top: 1rem; gap: 0.75rem 1.5rem; }
  /* Seventeen must fit the small viewport to hold like the other chapters: a smaller clock, one hour line at a time, and one fact at a time paired with it */
  .seventeen-grid { grid-template-columns: 1fr; gap: 1rem; justify-items: center; text-align: center; }
  .clock { width: 136px; }
  .clock-wrap { gap: 0.5rem; }
  .clock-read { font-size: 1.375rem; }
  .seventeen-copy .band-title, .seventeen-copy .band-sub { text-align: center; }
  .band-sub { font-size: 1rem; margin-top: 0.75rem; }
  .hours { margin-top: 0.75rem; gap: 0; }
  .hours .hour-line { grid-area: 1 / 1; }
  .js .hours .hour-line.past { opacity: 0; transform: translateY(-10px); }
  .hour-line p { font-size: 1.25rem; }
  .seventeen .facts { margin-top: 0.5rem; }
  .seventeen .fact { grid-area: 1 / 1; }
  .fact { padding-top: 0.7rem; }
  .fact b { font-size: 1.0625rem; }
  .fact p { margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.4; }
  .js .seventeen .fact.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.5s ease-out, transform 0.7s var(--ease), filter 0.6s ease-out; transition-delay: 0s; }
  .js .seventeen .fact.reveal.on { opacity: 1; transform: none; filter: blur(0); }
  .js .seventeen .fact.reveal.past { opacity: 0; transform: translateY(-10px); }
  .line-big { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .lines { gap: 1.25rem; }
  .letter { line-height: 1.5; }
  .form-foot { gap: 0.9rem 1.25rem; }
  .btn-send { font-size: 1.0625rem; padding: 0.9rem 1.7rem; }
  .form-status { font-size: 0.9375rem; }
  .footer .container { justify-content: center; text-align: center; }
}

/* Phone touch and fit: 44px targets, hero sized by the screen's height, notch-safe edges */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  a, button { -webkit-tap-highlight-color: transparent; }
  .nav-inner { align-items: center; padding-top: max(0.4rem, env(safe-area-inset-top)); padding-bottom: 0.4rem; padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
  .wordmark { padding: 0.75rem 0; }
  .nav-links { gap: 0.25rem; }
  .nav-links a { padding: 0.8rem 0.55rem; }
  .nav-links a::after { bottom: 0.2rem; }
  .hero { padding-top: 5rem; }
  .hero-stage .device-hero { width: calc(min(426px, 46svh) * 0.493); height: min(426px, 46svh); margin-bottom: 1rem; }
  .hero-title .t2 { margin-top: -0.25rem; }
  .btn { min-height: 48px; }
  .strip-links .arrow-link, .pin-link .arrow-link, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0.25rem 1rem; }
  .footer .container { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .contact { padding-bottom: max(4rem, calc(env(safe-area-inset-bottom) + 3rem)); }
  .fill, .fill-block { scroll-margin-top: 6rem; }
}

/* a short phone: the device shrinks so the EducaIA chapter still fits its hold */
@media (max-width: 760px) and (max-height: 720px) {
  .device { width: 170px; height: 345px; }
  .device-body, .device::before { border-radius: 28px; }
  .device-screen { inset: 7px; border-radius: 22px; }
  .device-island { top: 10px; width: 40px; height: 9px; }
  .device-btn.b1 { top: 58px; height: 14px; } .device-btn.b2 { top: 80px; height: 24px; } .device-btn.b3 { top: 110px; height: 24px; } .device-btn.b4 { top: 86px; height: 36px; }
}

/* a shorter phone still: the clocks and subtitles tighten before any chapter gives up its hold */
@media (max-width: 760px) and (max-height: 640px) {
  .clock { width: 116px; }
  .clock-read { font-size: 1.25rem; }
  .band-sub, .editbay-sub { font-size: 0.9375rem; }
  .seventeen-grid { gap: 0.75rem; }
}

/* A pinned chapter must fit the small viewport. app.js measures each frame against 100svh; when a phone
   cannot hold it, the chapter flows like a normal section — every shared cell stacked, every line shown. */
@media (max-width: 760px) {
  .chapter.flow { height: auto; }
  .chapter.flow .pin { position: static; height: auto; min-height: 0; padding: 4.5rem 0 3rem; }
  .flow .steps { gap: 0.75rem; } .flow .steps .step { grid-area: auto; }
  .flow .cuts { gap: 1rem; } .flow .cuts .cut { grid-area: auto; }
  .flow .hours { gap: 0.5rem; } .flow .hours .hour-line { grid-area: auto; }
  .seventeen.flow .fact { grid-area: auto; }
  .js .flow .step, .js .flow .steps .step.past, .js .flow .cuts .cut.past, .js .flow .hours .hour-line.past { opacity: 1; transform: none; filter: none; }
  .js .seventeen.flow .fact.reveal, .js .seventeen.flow .fact.reveal.past { opacity: 1; transform: none; filter: none; }
  .flow .playhead { left: 50%; }
}

/* ── The phone, built properly: titanium edge with real thickness, island, side keys, glass; drag it to turn it ── */

.device { --r: 46px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.device.grabbing { cursor: grabbing; transition: none; }
.device .edge {
  position: absolute; inset: 0;
  border-radius: var(--r);
  background: linear-gradient(180deg, #9a9aa0, #6b6b71 40%, #4a4a50);
  transform: translateZ(var(--z, 0px));
  pointer-events: none;
}
.device .edge:nth-of-type(odd) { background: linear-gradient(180deg, #8a8a90, #5e5e64 40%, #3f3f45); }
.device-island {
  position: absolute; z-index: 6;
  left: 50%; top: 14px;
  width: 78px; height: 22px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device-island::after { content: ""; position: absolute; right: 18%; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a63, #0a0d18 70%); }
.device-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #77777d, #4a4a50); z-index: 0; }
.device-btn.b1, .device-btn.b2, .device-btn.b3 { left: -3px; }
.device-btn.b4 { right: -3px; }
.device-btn.b1 { top: 96px; height: 26px; } .device-btn.b2 { top: 140px; height: 48px; } .device-btn.b3 { top: 200px; height: 48px; } .device-btn.b4 { top: 160px; height: 80px; }
/* a soft glass reflection that leans with the turn */
.device-screen::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 34%);
}
.device-body { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34), inset 0 0 0 3.5px #0b0b0d, inset 0 0 0 5px rgba(255, 255, 255, 0.07), 0 50px 90px -40px rgba(20, 20, 60, 0.55); }

@media (max-width: 760px) {
  .device { --r: 34px; }
  .device-island { width: 58px; height: 16px; }
  .device-island::after { width: 4px; height: 4px; margin-top: -2px; }
  .hero-stage .device-hero { width: calc(min(426px, 46svh) * 0.493); height: min(426px, 46svh); }
  .device-btn.b1 { top: 70px; height: 18px; } .device-btn.b2 { top: 102px; height: 34px; } .device-btn.b3 { top: 144px; height: 34px; } .device-btn.b4 { top: 118px; height: 56px; }
  /* each scroll step stops: the browser snaps to the markers app.js lays along the pinned chapters */
}
@media (max-width: 760px) and (max-height: 720px) {
  .device { --r: 28px; }
  .device-island { width: 48px; height: 13px; }
  .device-btn.b1 { top: 58px; height: 14px; } .device-btn.b2 { top: 80px; height: 26px; } .device-btn.b3 { top: 112px; height: 26px; } .device-btn.b4 { top: 92px; height: 44px; }
}

/* Phones: the EducaIA chapter must always pin, so the phone stays put while you scroll. The device takes whatever height
   the screen has left after the nav, claim, one step and the link, instead of a fixed size that made the chapter flow. */
@media (max-width: 760px) {
  .work .device { --dh: clamp(220px, calc(100svh - 400px), 426px); height: var(--dh); width: calc(var(--dh) * 0.493); }
  .work .pin-claim { font-size: clamp(1.1rem, 4.8vw, 1.35rem); }
  .work .pin-grid { gap: 0.6rem; }
  .work .pin-link { margin-top: 0.35rem; }
  .work .steps { margin-top: 0.6rem; }
  .work .device-btn.b1 { top: 22%; height: 5%; } .work .device-btn.b2 { top: 30%; height: 8%; } .work .device-btn.b3 { top: 40%; height: 8%; } .work .device-btn.b4 { top: 33%; height: 13%; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .work .status { display: none; }
  .work .device { --dh: clamp(190px, calc(100svh - 350px), 426px); }
}
@media (max-width: 760px) and (max-height: 600px) {
  .editbay .pin { padding-top: 3.75rem; }
  .editbay-sub { font-size: 0.9rem; }
  .timeline { margin-top: 0.9rem; }
  .cuts { min-height: 6rem; margin-top: 0.8rem; }
  .cut p { font-size: 0.9375rem; }
  .editbay .strip-links { margin-top: 0.5rem; }
}

/* every pinned step stops, on any screen: app.js lays a marker per step and arms the snap while the run is on screen */
html.snap-on { scroll-snap-type: y mandatory; }
.snap { position: absolute; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
html.snap-on .contact { scroll-snap-align: start; scroll-snap-stop: always; }

/* ── Reduced motion (kept last so it wins the cascade) ─────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-plane, .js .reveal.in, .js h2.reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .field { opacity: 1; transition: none; }
  .field i { animation: none; }
  .js .develop, .js .hero.developed .develop, .js .hero.developed .develop:nth-child(2) { opacity: 1; filter: none; animation: none; }
  .js .hero-sub, .js .hero-actions, .js .hero .now, .js .hero.developed .hero-sub, .js .hero.developed .hero-actions, .js .hero.developed .now { opacity: 1; transform: none; transition: none; }
  .js .step, .js .steps .step, .js .step.on { opacity: 1; transform: none; filter: none; transition: none; }
  .js .line-big.past { color: var(--on-black-muted); }
  .now-dot { animation: none; }
  .btn, .arrow-link::after, .tile { transition: none; }
  .device { transform: none !important; transition: none; animation: none; }
  .screen-img { transition: none; object-position: top center; }
  .playhead { left: 50%; }
  .clip { opacity: 1; transform: none; transition: none; }
  .cuts { gap: 1rem; } .cuts .cut { grid-area: auto; }
  .hours .hour-line { grid-area: auto; }
  .js .cuts .cut.past, .js .hours .hour-line.past, .js .steps .step.past { opacity: 1; transform: none; filter: none; }
  .seventeen .fact { grid-area: auto; }
  .js .seventeen .fact.reveal, .js .seventeen .fact.reveal.past { opacity: 1; transform: none; filter: none; transition: none; }
  .steps { gap: 0.75rem; } .steps .step { grid-area: auto; }
  .hand, .clip b, .ruler .yr, .hour-line p { transition: none; }
  .chip, .scroll-cue i::after { animation: none; }
  .js .hero-stage .device-hero, .js .hero-stage .chip, .js .scroll-cue { opacity: 1; transition: none; }
  .device .screen-img { opacity: 0; } .device .s3, .device .s0 { opacity: 1; }
  .js .steps .step.past { opacity: 1; transform: none; }
  .chapter { height: auto; }
  .chapter .pin { position: static; height: auto; min-height: 0; padding: 6rem 0; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
