@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrumentserif-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrumentserif-italic.woff2") format("woff2");
}

:root {
  --bg: #050507;
  --ink: #f3efe7;
  --muted: rgba(243, 239, 231, 0.7);
  --faint: rgba(243, 239, 231, 0.58);
  --line: rgba(243, 239, 231, 0.22);
  --error: #ffb0a3;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 239, 231, 0.28) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

::selection { background: var(--ink); color: #0b0b0d; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(243, 239, 231, 0.24); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

#stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 18px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.72), rgba(5, 5, 7, 0));
  pointer-events: none;
  z-index: -1;
}

.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand span { color: var(--faint); letter-spacing: 0.01em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #0b0b0d;
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.3s, box-shadow 0.5s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(243, 239, 231, 0.35);
}
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(243, 239, 231, 0.5); }
.btn:active { transform: translateY(0); }
.btn-nav {
  padding: 11px 18px;
  font-size: 14px;
  background: rgba(243, 239, 231, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-nav:hover { background: var(--ink); color: #0b0b0d; box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- chapter rail ---------- */
.rail {
  position: fixed;
  z-index: 10;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s var(--ease), visibility 0s 0.8s;
}
.rail.is-on, .rail:focus-within {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
  transition: color 0.4s;
}
.rail a::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.39);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.rail a:hover, .rail a.is-current { color: var(--ink); }
.rail a.is-current::after { transform: none; }

/* ---------- chapters ---------- */
main { position: relative; z-index: 1; }
.scrim { display: none; }

/* each chapter = one screen plus a short pinned run (px, so every wheel step moves the
   story by a similar amount on any screen height) */
.ch { position: relative; height: calc(100vh + 440px); }
.ch-hero { height: calc(100vh + 280px); }
.ch-name { height: calc(100vh + 400px); }

.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.fallback-mark {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  font: 600 min(27vw, 42vh) / 1 var(--sans);
  letter-spacing: -0.03em;
  color: #d9d9de;
  background: linear-gradient(180deg, #f5f5f7 20%, #6b6b73 52%, #e4e4ea 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 12vh;
}
html:not(.js) .fallback-mark, .no-webgl .fallback-mark { display: grid; }

/* the photograph in "Wear" — a static picture without WebGL, driven by main.js with it */
.wear-photo {
  display: block;
  position: absolute;
  top: 0;
  right: -12vw;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 100%);
}
/* With WebGL, the picture is shown by a fixed full-resolution layer behind the canvas. */
.photo-layer { display: none; }
.js:not(.no-webgl) .wear-photo { display: none; }
.js:not(.no-webgl) .photo-layer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  max-width: none;
  visibility: hidden;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* hero */
.hero-copy {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  max-width: 34rem;
}
.hero-title {
  margin: 0;
  font: 400 clamp(36px, 3.9vw, 64px) / 1 var(--serif);
  letter-spacing: -0.012em;
}
.hero-title em { font-style: italic; }
.hero-sub {
  margin: 14px 0 28px;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
  text-wrap: pretty;
}
.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue i {
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--ink), transparent);
  transform-origin: top;
  animation: breathe-line 3.2s var(--ease) infinite;
}
@keyframes breathe-line {
  0% { transform: scaleY(0.15); opacity: 0.3; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.15); opacity: 0.3; }
}

/* definition chapters */
.copy {
  position: absolute;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  width: min(40rem, 44vw);
}
.sense {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.sense b { color: var(--ink); font-weight: 600; }
.sense i {
  font: italic 400 22px/1 var(--serif);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
}
.copy h2 {
  margin: 0.1em 0 0.2em -0.04em;
  font: 400 clamp(92px, 13.5vw, 236px) / 0.86 var(--serif);
  letter-spacing: -0.035em;
}
.def {
  margin: 0;
  max-width: 31ch;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.def em { font: italic 400 1.14em/1.3 var(--serif); color: var(--ink); }

/* name chapter */
.name-head {
  position: absolute;
  top: calc(96px + env(safe-area-inset-top));
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.name-head h2 {
  margin: 0;
  max-width: 11ch;
  font: 400 clamp(54px, 6.6vw, 118px) / 0.92 var(--serif);
  letter-spacing: -0.03em;
}
.name-head p {
  margin: 0.6em 0 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  text-wrap: pretty;
}
.facts {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.facts div { padding: 18px 16px 0 0; }
.facts dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts dd {
  margin: 6px 0 0;
  font: 400 clamp(44px, 5vw, 88px) / 1 var(--serif);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* offer */
.ch-offer {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(36vh, 240px) var(--pad) 0;
  display: flex;
  flex-direction: column;
}
.offer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
  flex: 1;
}
.offer-copy h2 {
  margin: 0;
  font: 400 clamp(52px, 6vw, 108px) / 0.94 var(--serif);
  letter-spacing: -0.03em;
}
.offer-copy p { margin: 0.9em 0 0; max-width: 30ch; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); }

.offer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(243, 239, 231, 0.09), rgba(243, 239, 231, 0.03));
  box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label span { letter-spacing: 0.04em; text-transform: none; color: var(--faint); font-weight: 400; margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 231, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 19px/1.3 var(--sans);
  caret-color: var(--ink);
  transition: border-color 0.3s;
  resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.money { display: flex; align-items: baseline; gap: 6px; }
.money span { font-size: 19px; color: var(--faint); }
.field-offer input { font: 400 clamp(26px, 2.2vw, 34px)/1.1 var(--serif); letter-spacing: 0.01em; font-variant-numeric: lining-nums; }
.money span { font: 400 clamp(26px, 2.2vw, 34px)/1.1 var(--serif); }
.err { margin: 6px 0 0; min-height: 1.2em; font-size: 13px; color: var(--error); }
.err:empty { min-height: 0; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-send { padding: 17px 30px; font-size: 16px; }
.btn-send[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.is-error { color: var(--error); }
.form-note { margin: -6px 0 0; font-size: 13px; color: var(--faint); }
.ts-box:empty { display: none; }
.ts-box { min-height: 0; }

.sent { padding: clamp(24px, 3vw, 40px); border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.sent-title { margin: 0; font: italic 400 clamp(44px, 4.4vw, 72px)/1 var(--serif); }
.sent p:last-child { margin: 12px 0 0; color: var(--muted); }
.sent:focus { outline: none; }

.foot {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(40px, 6vh, 80px);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}
.foot p { margin: 0; }
.foot a { color: var(--muted); }

/* ---------- reveal choreography (JS only; content is visible without JS) ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js .is-active .rv { opacity: 1; transform: none; filter: none; }

[data-split] .w { display: inline-block; overflow: hidden; padding: 0.04em 0.06em 0.14em; margin: -0.04em -0.06em -0.14em; vertical-align: top; }
[data-split] .c { display: inline-block; }
.js [data-split] .c {
  transform: translateY(112%) rotate(6deg);
  transform-origin: 0 100%;
  opacity: 0;
  transition: transform 1.25s var(--ease), opacity 0.5s linear;
  transition-delay: calc(var(--i) * 34ms + 120ms);
}
.js .is-active [data-split] .c { transform: none; opacity: 1; }

/* ---------- small screens ---------- */
@media (max-width: 1180px) {
  .rail { display: none; }
}

@media (max-width: 820px), (max-aspect-ratio: 85/100) {
  .brand { font-size: 16px; }
  .btn-nav { padding: 10px 15px; font-size: 13px; }

  /* one screen-fixed scrim behind the text (per-section scrims left seams while scrolling) */
  .scrim {
    display: block;
    position: fixed;
    inset: 48% 0 0;
    z-index: 0;
    background: linear-gradient(to top, rgba(5, 5, 7, 0.86) 40%, rgba(5, 5, 7, 0));
    pointer-events: none;
  }
  .wear-photo { right: auto; left: 50%; height: 56%; transform: translateX(-50%); }
  /* each text block carries its own shade, so it stays legible while it scrolls */
  .copy::before, .name-head::before {
    content: "";
    position: absolute;
    inset: -35% calc(-1 * var(--pad) - 12%) -25%;
    z-index: -1;
    background: radial-gradient(ellipse 48% 45% at 50% 55%, rgba(5, 5, 7, 0.82) 38%, rgba(5, 5, 7, 0) 100%);
    pointer-events: none;
  }

  .hero-copy { right: var(--pad); }
  .hero-title { font-size: clamp(34px, 9.5vw, 48px); }
  .scroll-cue { display: none; }

  .copy {
    top: auto;
    bottom: calc(var(--pad) + env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    right: var(--pad);
  }
  .copy h2 { font-size: clamp(72px, 22vw, 120px); }
  .def { font-size: 17px; }

  .name-head { flex-direction: column; gap: 0; top: auto; bottom: calc(var(--pad) + 160px + env(safe-area-inset-bottom)); }
  .name-head h2 { font-size: clamp(46px, 13vw, 64px); max-width: none; }
  .name-head p { font-size: 16px; }
  .facts { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
  .facts div { padding-top: 12px; }
  .facts dd { font-size: 40px; }

  .ch-offer { padding-top: 33vh; }
  .offer-inner { grid-template-columns: 1fr; }
  .offer-form { grid-template-columns: 1fr; gap: 22px; }
  .offer-copy h2 { font-size: clamp(46px, 13vw, 64px); }
  .foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js [data-split] .c { transition: none; opacity: 1; transform: none; filter: none; }
  .scroll-cue i { animation: none; }
}

[hidden] { display: none !important; }

/* social card render (?og) */
.og .nav, .og .rail, .og .hero-sub, .og .hero-actions, .og .scroll-cue { display: none; }
.og .hero-title { font-size: 44px; }

/* ---------- privacy notice ---------- */
.legal { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; padding: calc(120px + env(safe-area-inset-top)) var(--pad) 64px; }
.legal h1 { margin: 0 0 0.15em; font: 400 clamp(56px, 8vw, 104px) / 0.95 var(--serif); letter-spacing: -0.03em; }
.legal .updated { margin: 0 0 40px; color: var(--faint); font-size: 14px; }
.legal h2 { margin: 48px 0 12px; font: 400 clamp(28px, 3vw, 36px) / 1.1 var(--serif); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 500; }
.short {
  margin: 0 0 8px;
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(243, 239, 231, 0.04);
}
.short h2 { margin-top: 0; font-size: 24px; }
.short ul { margin: 0; }
.legal-page .foot { max-width: 46rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
