:root {
  --ink: #0d0d0e;
  --ink-2: #141416;
  --line: rgba(242, 239, 232, 0.1);
  --line-strong: rgba(242, 239, 232, 0.24);
  --text: #f2efe8;
  --text-2: #cfcbc3;
  --muted: #8f8b83;
  --gold: #b8995a;
  --gold-hi: #e2c98f;
  --frame: 14px;
  --max: 1280px;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --phone-h: min(70svh, 680px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

a {
  color: var(--gold-hi);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gold {
  color: var(--gold);
}

/* ---------- Atmosphere ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.frame {
  position: fixed;
  inset: var(--frame);
  z-index: 80;
  pointer-events: none;
  border: 1px solid var(--line);
}

.frame i {
  position: absolute;
  width: 13px;
  height: 13px;
}

.frame i::before,
.frame i::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.frame i::before {
  left: 6px;
  top: 0;
  width: 1px;
  height: 13px;
}

.frame i::after {
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
}

.frame i:nth-child(1) { top: -7px; left: -7px; }
.frame i:nth-child(2) { top: -7px; right: -7px; }
.frame i:nth-child(3) { bottom: -7px; left: -7px; }
.frame i:nth-child(4) { bottom: -7px; right: -7px; }

/* Reading progress, drawn along the top edge of the frame */
.progress {
  position: fixed;
  top: var(--frame);
  left: var(--frame);
  right: var(--frame);
  z-index: 81;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Intro: the name assembles, the rule draws, the curtain lifts */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: transform 1.1s var(--ease-io) 0.1s;
  animation: intro-failsafe 0.6s ease 4.5s forwards;
}

.intro.is-done {
  transform: translateY(-100%);
}

@keyframes intro-failsafe {
  to { opacity: 0; visibility: hidden; }
}

.intro-inner {
  text-align: center;
}

.intro-name {
  display: flex;
  justify-content: center;
  font-size: clamp(18px, 3.4vw, 34px);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
  overflow: hidden;
}

.intro-name span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease) forwards;
}

.intro-rule {
  height: 1px;
  margin: 22px auto 16px;
  background: var(--gold);
  transform: scaleX(0);
  animation: draw 1.1s var(--ease) 0.5s forwards;
}

.intro-count {
  color: var(--muted);
}

.no-intro .intro {
  display: none;
}

@keyframes rise {
  to { transform: translateY(0); }
}

@keyframes draw {
  to { transform: scaleX(1); }
}

/* Page curtain: covers on the way out, lifts on the way in */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  border-top: 1px solid var(--gold);
  transform: translateY(101%);
  pointer-events: none;
}

.curtain.is-covering {
  transform: translateY(0);
  animation: intro-failsafe 0.5s ease 3s forwards;
}

.curtain.is-leaving {
  transition: transform 0.65s var(--ease-io);
  transform: translateY(0);
}

.curtain.is-lifting {
  transition: transform 0.9s var(--ease-io);
  transform: translateY(-101%);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: var(--frame);
  left: var(--frame);
  right: var(--frame);
  z-index: 70;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 14, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  max-width: none;
}

.brand {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 104px 0 56px;
  overflow: hidden;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 153, 90, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: clamp(24px, 4vh, 44px);
  color: var(--muted);
}

.hero-meta b {
  font-weight: 400;
  color: var(--gold);
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(50px, min(7.4vw, 12.5vh), 124px);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.hero-title em {
  color: var(--gold-hi);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}

.is-in .line > span,
.is-in.line > span {
  transform: translateY(0);
}

.hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.16s; }

.hero-lede {
  max-width: 440px;
  margin: clamp(24px, 4vh, 40px) 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-copy .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.42s; }

/* Hero device: perspective stage, cursor-driven tilt, floating chips */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: min(78svh, 760px);
  perspective: 1600px;
}

.hero-device {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(calc(-20deg + var(--my, 0) * 1deg)) rotateX(calc(6deg + var(--mx, 0) * -1deg)) rotateZ(-3deg);
  opacity: 0;
  translate: 0 60px;
}

.is-in .hero-device,
.no-js .hero-device {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1.4s var(--ease) 0.5s, translate 1.6s var(--ease) 0.5s;
}

/* A current Pro Max, drawn in CSS and sized from its height (--pw is its width):
   a thin polished metal band, slim black glass bezel, Dynamic Island, side buttons */
.phone {
  --pw: calc(var(--phone-h) * 0.4615);
  --pd: calc(var(--pw) * 0.11);
  position: relative;
  transform-style: preserve-3d;
  height: var(--phone-h);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--pw) * 0.012);
  border-radius: calc(var(--pw) * 0.165);
  background:
    linear-gradient(90deg,
      #4a4a4e 0%, #d9d9de 2.2%, #8e8e94 4.5%, #2c2c30 9%,
      #232326 50%,
      #2c2c30 91%, #8e8e94 95.5%, #e2e2e7 97.8%, #4a4a4e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 70px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 60px -25px rgba(0, 0, 0, 0.85),
    0 0 80px -20px rgba(226, 201, 143, 0.12);
}

/* Left: action button and two volume buttons. Right: side button. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: calc(var(--pw) * 0.012);
  transform: translateZ(calc(var(--pd) * -0.5));
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2a2d, #b9b9be 50%, #2a2a2d);
  pointer-events: none;
}

.phone::before {
  left: calc(var(--pw) * -0.01);
  top: 17%;
  height: 4.2%;
  box-shadow:
    0 calc(var(--phone-h) * 0.07) 0 0 #8e8e94,
    0 calc(var(--phone-h) * 0.14) 0 0 #8e8e94;
}

.phone::after {
  right: calc(var(--pw) * -0.01);
  top: 25%;
  height: 10%;
}

.phone-screen {
  position: relative;
  transform: translateZ(1px);
  height: 100%;
  overflow: hidden;
  border: calc(var(--pw) * 0.026) solid #050506;
  border-radius: calc(var(--pw) * 0.152);
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* The body: thin rounded layers stacked behind the face, so a turned phone shows a
   solid metal side about as deep as the real thing, ending in a dark back */
.phone-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.phone-body i {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(180deg, #a4a4aa, #5e5e63 18%, #8a8a90 50%, #5e5e63 82%, #a4a4aa);
  filter: brightness(calc(1 - var(--i) * 0.035));
  transform: translateZ(calc(var(--pd) * var(--i) / -12));
}

.phone-body i:last-child {
  background: linear-gradient(160deg, #2a2a2e, #141416 60%, #222225);
  filter: none;
}

/* Dynamic Island, sized to sit exactly over the one baked into some screenshots */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 1.45%;
  left: 50%;
  z-index: 5;
  width: 29%;
  aspect-ratio: 184 / 54;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Glass: a soft diagonal sheen over the display */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 42%);
  pointer-events: none;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  clip-path: inset(100% 0 0 0);
}

.phone-screen img.is-under {
  z-index: 1;
  clip-path: inset(0);
}

.phone-screen img.is-active {
  z-index: 2;
  clip-path: inset(0);
  transition: clip-path 0.9s var(--ease-io);
}

.chip {
  position: absolute;
  top: var(--y);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  transform: translate(calc(var(--px, 0) * var(--depth, 1) * 1px), calc(var(--py, 0) * var(--depth, 1) * 1px));
  transition: opacity 1s var(--ease), translate 1.2s var(--ease);
  opacity: 0;
  translate: 0 20px;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Chips sit just past the phone's edge, so they never cover the numbers on screen */
.chip-l {
  right: calc(50% + var(--phone-h) * 0.2308 - 26px);
}

.chip-r {
  left: calc(50% + var(--phone-h) * 0.2308 - 26px);
}

.is-in .chip,
.no-js .chip {
  opacity: 1;
  translate: 0 0;
}

.chip:nth-of-type(1) { transition-delay: 1s; }
.chip:nth-of-type(2) { transition-delay: 1.15s; }
.chip:nth-of-type(3) { transition-delay: 1.3s; }

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px var(--gold);
}

.chip small {
  font: inherit;
  color: var(--muted);
}

@keyframes float {
  50% { margin-top: -8px; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */

.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 48px;
  padding-right: 48px;
  animation: marquee 36s linear infinite;
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1;
  white-space: nowrap;
}

.marquee-track em {
  color: var(--muted);
}

.marquee-track b {
  color: var(--gold);
  font-weight: 400;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(96px, 14vh, 160px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: clamp(48px, 8vh, 96px);
}

.section-head .mono {
  padding-top: 14px;
  color: var(--gold);
}

.section-title {
  margin: 0;
  max-width: 900px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.section-title em {
  color: var(--gold-hi);
}

#apps {
  padding-bottom: 0;
}

#apps .section-head {
  margin-bottom: 0;
}

/* ---------- Showcase: phone stays, screens change with scroll ---------- */

.showcase {
  position: relative;
  height: 320vh;
  border-top: 1px solid var(--line);
}

.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px clamp(20px, 4vw, 56px) 28px;
  perspective: 1600px;
}

.showcase-copy {
  position: relative;
  z-index: 2;
}

.showcase-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--muted);
}

.showcase-index b {
  color: var(--gold);
  font-weight: 400;
}

.showcase-index i {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--line-strong);
}

.showcase-name {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, min(7.4vw, 12vh), 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.showcase-name img {
  width: clamp(48px, 5vw, 72px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.showcase-tag {
  margin: 0 0 28px;
  color: var(--gold-hi);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.showcase-body {
  max-width: 470px;
  margin: 0 0 32px;
  color: var(--text-2);
}

.steps {
  position: relative;
  display: grid;
  margin: 0 0 36px;
  padding: 0;
  max-width: 470px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.4s;
}

.steps li::after {
  content: "";
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.4s, border-color 0.4s;
}

.steps li.is-active {
  color: var(--text);
}

.steps li.is-active::after {
  background: var(--gold);
  border-color: var(--gold);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-hi);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-hi);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.25; }
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
  height: 100%;
  max-height: 760px;
}

.stage-num {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(260px, 34vw, 520px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 201, 143, 0.16);
  pointer-events: none;
}

.stage-glow {
  position: absolute;
  z-index: 0;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: 0.55;
  filter: blur(30px);
}

.stage .phone {
  z-index: 1;
  transform: rotateY(calc(var(--tilt, -8deg) + var(--my, 0) * 1deg)) rotateX(calc(3deg + var(--mx, 0) * -1deg));
}

.stage .chip {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s, transform 0.6s var(--ease);
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-hi);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover {
  color: var(--ink);
  border-color: var(--gold-hi);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-solid {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

.btn-arrow {
  transition: transform 0.5s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  position: relative;
  padding: 36px 32px 8px 0;
}

.principle + .principle {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.principle:hover::before {
  transform: scaleX(1);
}

.principle .mono {
  color: var(--gold);
}

.principle h3 {
  margin: 18px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Company ledger ---------- */

.ledger {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

.ledger dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.ledger div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ledger div:nth-child(odd) {
  padding-right: 24px;
}

.ledger dt {
  margin-bottom: 6px;
  color: var(--muted);
}

.ledger dd {
  margin: 0;
  font-size: 18px;
}

/* ---------- Contact call ---------- */

.cta {
  position: relative;
  padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.cta .mono {
  color: var(--gold);
}

.cta-title {
  margin: 20px 0 36px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.cta-mail {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-size: clamp(17px, 2.4vw, 28px);
  text-decoration: none;
}

.cta-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.cta-mail:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.cta-note {
  margin: 28px 0 0;
  color: var(--muted);
}

/* ---------- Scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Long-form pages ---------- */

.doc {
  max-width: 760px;
  padding: 160px clamp(20px, 4vw, 56px) 120px;
  margin: 0 auto;
}

.doc .mono {
  color: var(--gold);
}

.doc h1 {
  margin: 16px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.doc h2 {
  margin: 52px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc ul {
  padding-left: 20px;
}

.contact-email {
  display: inline-block;
  margin: 8px 0 24px;
  font-family: var(--display);
  font-size: clamp(22px, 5.4vw, 56px);
  line-height: 1.1;
  color: var(--text);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0 calc(var(--frame) + 36px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 32px;
  max-width: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- No JS: show everything, skip the theatre ---------- */

.no-js .intro,
.no-js .curtain,
.no-js .progress {
  display: none;
}

.no-js .line > span,
.no-js .reveal {
  transform: none;
  opacity: 1;
}

.no-js .phone-screen img:first-child {
  z-index: 2;
  clip-path: inset(0);
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  :root {
    --frame: 8px;
    --phone-h: min(60svh, 560px);
  }

  .site-header .wrap {
    height: 58px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .nav {
    gap: 16px;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(46px, 13vw, 72px);
  }

  .hero-stage {
    height: auto;
    padding: 24px 0 8px;
  }

  .hero-device {
    transform: rotateY(-10deg) rotateX(4deg) rotateZ(-2deg);
  }

  .chip {
    padding: 8px 12px;
    font-size: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .section-head,
  .ledger {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-head .mono {
    padding-top: 0;
  }

  /* On phones the showcase is ordinary flow: words first, then the phone,
     whose screens cycle on their own while it is in view */
  .showcase {
    height: auto;
  }

  .showcase-sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .showcase-index {
    margin-bottom: 18px;
  }

  .showcase-name {
    margin-bottom: 10px;
  }

  .showcase-tag {
    margin-bottom: 16px;
  }

  .showcase-body {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .steps {
    margin-bottom: 28px;
  }

  .stage {
    height: auto;
    min-height: 0;
    padding: 12px 0;
  }

  .stage-num {
    font-size: 72vw;
  }

  .stage .chip {
    display: none;
  }

  .btn {
    min-height: 44px;
    padding: 0 18px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stage .chip {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro,
  .grain,
  .curtain,
  .hero-lines {
    display: none;
  }

  .line > span,
  .reveal,
  .hero-device,
  .chip {
    transform: none !important;
    translate: 0 0 !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }

  .marquee-track,
  .scroll-cue span,
  .status::before {
    animation: none;
  }

  .phone-screen img.is-active {
    transition: none;
  }
}

/* Section links land below the fixed header, not under it */
[id] {
  scroll-margin-top: 84px;
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* Right-hand chips keep their short label on laptop widths so they stay on screen */
@media (max-width: 1440px) {
  .chip-r small {
    display: none;
  }
}
