/* =========================================================
   Optimus — industrial manual design system
   ========================================================= */
:root {
  /* palette */
  --paper: #ECE8DF;
  --paper-2: #E2DDD1;
  --paper-3: #F6F3EC;
  --ink: #151412;
  --ink-2: #3B3833;
  --muted: #5B574F;
  --line: rgba(21, 20, 18, .16);
  --line-strong: rgba(21, 20, 18, .5);
  --signal: #E2471B;
  --signal-ink: #B8350F;       /* signal text on paper (AA) */
  --night: #141312;
  --night-2: #1D1C1A;
  --on-night: #ECE8DF;
  --on-night-muted: #ABA59A;
  --error: #B42318;
  --success: #1F6B3A;

  /* type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;

  /* spacing (spacious, 8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --header-h: 64px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t-fast: 160ms;
  --t-med: 280ms;

  --z-header: 40;
  --z-progress: 50;
  --z-cookie: 60;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.sr-only, .sr-defs {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- type primitives ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.1rem, 5.2vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display--sm { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.display em, .hero__title em, .finale__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-variation-settings: normal;
}
.lead { font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.eyebrow, .chapter__num, .chapter__kicker, .sheet-meta, .panel__code, .footnote, .plate-caption, time, .summary__label {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--ink { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--ink:hover { --bg: var(--ink-2); --bd: var(--ink-2); }
.btn--signal { --bg: var(--signal); --fg: #140a05; --bd: var(--signal); }
.btn--signal:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: var(--paper); }
.btn__arrow { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.linklike { background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 26px; height: 26px; }
.brand__word {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 125;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem;
}
.brand__word--lg { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; margin-bottom: 12px; }
.brand__model { font-family: var(--f-mono); font-size: .72rem; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }

.nav__toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600;
}
.nav__toggle-lines, .nav__toggle-lines::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform var(--t-med) var(--ease-out); }
.nav__toggle-lines::before { content: ""; position: absolute; top: 5px; }
.nav__toggle-lines { transform: translateY(-2.5px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { transform: translateY(-5px) rotate(-90deg); }

.nav__list { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500; font-size: .95rem; position: relative;
}
.nav__list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.nav__list a:not(.btn):hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__list a[aria-current="true"] { color: var(--signal-ink); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    /* header's backdrop-filter makes it the containing block, so size explicitly */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: var(--s-4) var(--gutter);
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .nav__list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a:not(.btn) { width: 100%; min-height: 60px; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.6rem; }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__cta-item { border: 0 !important; padding-top: var(--s-4); }
  .nav__cta-item .btn { width: 100%; min-height: 52px; }
}

/* ---------- sections ---------- */
main { position: relative; z-index: 2; }
.chapter {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.chapter--dark, .chapter--paper2, .chapter--signal { max-width: none; }
.chapter--dark > *, .chapter--paper2 > *, .chapter--signal > * { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.chapter--dark { background: var(--night); color: var(--on-night); border-top: 0; }
.chapter--dark .lead { color: var(--on-night-muted); }
.chapter--paper2 { background: var(--paper-2); }
.chapter--signal { background: var(--signal); color: var(--ink); border-top: 0; }

.chapter__head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: var(--s-3); margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid currentColor;
}
.chapter--dark .chapter__head { border-color: rgba(236, 232, 223, .3); }
.chapter__num { color: var(--signal-ink); font-weight: 500; }
.chapter--dark .chapter__num { color: var(--signal); }
.chapter__kicker { margin-left: auto; }

[data-reveal] { will-change: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(48px, 6vw, 80px);
}
.sheet-meta {
  display: flex; gap: 24px; justify-content: space-between; color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); margin-bottom: clamp(28px, 5vw, 56px);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(226, 71, 27, .5); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 71, 27, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(226, 71, 27, 0); } }

.hero__title {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 118;
  font-size: clamp(3rem, 6.6vw, 7rem); line-height: .9; letter-spacing: -.035em;
  text-transform: uppercase; margin-bottom: var(--s-5);
}
.hero__title .line { display: block; }
.hero__title em { text-transform: none; font-size: 1.08em; color: var(--signal-ink); letter-spacing: -.02em; }
.hero__lede { font-size: clamp(1.06rem, 1.35vw, 1.22rem); color: var(--ink-2); max-width: 46ch; margin-bottom: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-6); }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); max-width: 520px; }
.hero__stats > div { padding: 14px 16px 0 0; }
.hero__stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__stats dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hero__stats dd { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 110; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }

.hero__plate { position: relative; }
.plate-frame {
  position: relative; background: var(--paper-3);
  border: 1px solid var(--line-strong);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  padding: clamp(12px, 2vw, 24px);
}
.corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--ink); }
.corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero__svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.hero__svg .axis { stroke: var(--signal); stroke-width: 1; stroke-dasharray: 6 6; opacity: .55; fill: none; }
.callout path { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.callout circle { fill: var(--signal); stroke: var(--ink); stroke-width: 1.4; }
.callout text { font-family: var(--f-display); font-weight: 700; font-size: 22px; fill: var(--ink); font-variation-settings: "wdth" 110; }
.callout text.sub { font-family: var(--f-mono); font-weight: 400; font-size: 15px; fill: var(--muted); }
.dim path { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.dim text { font-family: var(--f-mono); font-size: 16px; fill: var(--ink); }
.visor-glint { transition: transform var(--t-med) var(--ease-out); }
.plate-caption { display: flex; gap: 12px; margin-top: 12px; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.plate-caption span { color: var(--ink); text-transform: uppercase; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__plate { order: 2; }
}
@media (max-width: 560px) {
  .sheet-meta span:nth-child(3) { display: none; }
  .callout text { font-size: 28px; }
  .callout text.sub { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 1px solid var(--ink); position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; gap: 28px; padding: 18px 0; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .01em; white-space: nowrap; }
.ticker i { color: var(--signal); font-style: normal; font-weight: 700; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- §01 ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(56px, 8vw, 112px); }
.split__text p + p { margin-top: var(--s-3); color: var(--ink-2); max-width: 52ch; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pillar { padding: var(--s-4) var(--s-4) var(--s-4) 0; }
.pillar + .pillar { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.pillar__idx {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-5);
  border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--f-mono); font-size: .9rem;
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}
.pillar:hover .pillar__idx { background: var(--signal); border-color: var(--signal); }
.pillar h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 108; font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; }
.pillar p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* ---------- §02 anatomy ---------- */
.anatomy__intro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.anatomy__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.anatomy__figure {
  position: relative; width: min(100%, 360px); margin: 0 auto; aspect-ratio: 360 / 720;
  background:
    radial-gradient(closest-side, rgba(226, 71, 27, .12), transparent 70%) center 40% / 120% 60% no-repeat;
}
.anatomy__figure svg { width: 100%; height: 100%; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center;
}
.hotspot::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--night);
  box-shadow: 0 0 0 1.5px var(--paper);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) ease;
}
.hotspot::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid var(--signal);
  opacity: 0; transform: scale(.6); transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out);
}
.hotspot:hover::before { transform: scale(1.15); }
.hotspot.is-active::before { background: var(--signal); }
.hotspot.is-active::after { opacity: 1; transform: scale(1); animation: ring 2s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.anatomy__panel {
  border: 1px solid rgba(236, 232, 223, .22); padding: clamp(24px, 3.5vw, 44px);
  background: var(--night-2); position: relative;
}
.anatomy__panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 3px; background: var(--signal); }
.panel__code { color: var(--signal); margin-bottom: var(--s-3); }
.panel__title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; margin-bottom: var(--s-3); }
.panel__text { color: var(--on-night-muted); max-width: 52ch; margin-bottom: var(--s-5); min-height: 6.4em; }
.panel__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(236, 232, 223, .22); }
.panel__specs > div { padding: 14px 12px 14px 0; }
.panel__specs > div + div { padding-left: 14px; border-left: 1px solid rgba(236, 232, 223, .14); }
.panel__specs dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--on-night-muted); }
.panel__specs dd { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.panel__nav { display: flex; align-items: center; gap: 16px; margin-top: var(--s-4); }
.panel__count { font-family: var(--f-mono); font-size: .85rem; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1.5px solid currentColor; transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--on-night); color: var(--night); }
.is-swapping [data-field] { opacity: 0; transform: translateY(6px); }
[data-field] { transition: opacity 200ms ease, transform 280ms var(--ease-out); }
@media (max-width: 860px) {
  .anatomy__intro { grid-template-columns: 1fr; }
  .anatomy__stage { grid-template-columns: 1fr; }
  .anatomy__figure { width: min(72%, 300px); }
}

/* ---------- §03 day ---------- */
.day { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.day__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.day__aside .lead { margin-top: var(--s-4); }
.clock { display: flex; align-items: center; gap: 20px; margin-top: var(--s-6); }
.clock svg { width: 88px; height: 88px; }
.clock circle { fill: none; stroke: var(--ink); stroke-width: 2; }
.clock circle:last-child { fill: var(--ink); }
.clock__hand { stroke: var(--signal); stroke-width: 3; stroke-linecap: round; transform-origin: 60px 60px; transition: transform 600ms var(--ease-out); }
.clock__time { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 120; font-size: clamp(2.4rem, 5vw, 3.8rem); font-variant-numeric: tabular-nums; line-height: 1; }
.timeline { border-left: 1px solid var(--ink); }
.moment {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--s-4); align-items: center;
  padding: var(--s-5) 0 var(--s-5) var(--s-5); position: relative;
}
.moment + .moment { border-top: 1px solid var(--line); }
.moment::before { content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); transition: background-color var(--t-med) ease; }
.moment.is-current::before { background: var(--signal); border-color: var(--signal); }
.moment__art { background: var(--paper-3); border: 1px solid var(--line); aspect-ratio: 3 / 2; }
.moment__art svg { width: 100%; height: 100%; }
.moment__art .prop { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.moment__art .prop-dot { fill: var(--signal); }
.moment time { color: var(--signal-ink); font-weight: 500; }
.moment h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 108; font-size: 1.35rem; line-height: 1.2; margin: 6px 0 8px; }
.moment p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 960px) {
  .day { grid-template-columns: 1fr; }
  .day__aside { position: static; }
  .clock { display: none; }
}
@media (max-width: 560px) {
  .moment { grid-template-columns: 1fr; padding-left: var(--s-4); }
  .moment::before { top: var(--s-5); margin-top: 0; }
}

/* ---------- §04 specs ---------- */
.specs .display { margin-bottom: clamp(32px, 5vw, 64px); }
.specs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  text-align: left; font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 0; border-bottom: 2px solid var(--ink);
}
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: .96rem; }
.spec-table th { font-weight: 500; color: var(--muted); width: 46%; padding-right: 12px; }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.footnote { margin-top: var(--s-5); color: var(--muted); text-transform: none; letter-spacing: .01em; max-width: 80ch; line-height: 1.6; }
@media (max-width: 960px) { .specs__grid { grid-template-columns: 1fr; } }

/* ---------- §05 safety ---------- */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.safety .chapter__num { grid-column: 1 / -1; color: var(--ink); padding-bottom: var(--s-3); border-bottom: 1px solid var(--ink); }
.safety .display em { color: var(--paper); }
.safety__list li { padding: var(--s-4) 0; border-bottom: 1px solid rgba(21, 20, 18, .35); font-size: 1.05rem; line-height: 1.55; }
.safety__list li:first-child { padding-top: 0; }
.safety__list strong { display: block; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.3rem; margin-bottom: 4px; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }

/* ---------- §06 reserve ---------- */
.reserve { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.reserve__visual { position: sticky; top: calc(var(--header-h) + 32px); text-align: center; }
.reserve__figure {
  aspect-ratio: 360 / 720; width: min(100%, 340px); margin: 0 auto;
  border: 1px solid var(--line-strong); background: var(--paper-3);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; padding: 20px;
}
.reserve__figure svg { width: 100%; height: 100%; }
.reserve__figure svg * { transition: fill 400ms ease; }
.reserve__finish-label { margin-top: 12px; font-family: var(--f-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.reserve__form .display { margin-bottom: var(--s-3); }
.reserve__form > .lead { margin-bottom: var(--s-6); }

.field-group { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
.field-group legend { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 0 12px; width: 100%; border-bottom: 1px solid var(--ink); margin-bottom: var(--s-4); }

.editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.edition { position: relative; display: block; cursor: pointer; }
.edition input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.edition__body {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--paper-3);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.edition:hover .edition__body { border-color: var(--ink); }
.edition input:checked + .edition__body { border-color: var(--ink); background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--signal); }
.edition input:focus-visible + .edition__body { outline: 3px solid var(--signal); outline-offset: 3px; }
.edition__name { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.3rem; }
.edition__price { font-family: var(--f-mono); font-size: .92rem; font-variant-numeric: tabular-nums; }
.edition__desc { font-size: .88rem; line-height: 1.45; opacity: .82; }

.finishes { display: flex; flex-wrap: wrap; gap: 12px; }
.finish { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 600; transition: border-color var(--t-fast) ease; }
.finish input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.finish__chip { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.finish:hover { border-color: var(--ink); }
.finish:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.finish:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--signal-ink); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px;
  background: var(--paper-3); border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151412' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(226, 71, 27, .45); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field__hint { font-size: .85rem; color: var(--muted); }
.field__error { font-size: .88rem; color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }
.field__error::before { content: "! "; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; align-items: start; margin-bottom: var(--s-3); }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field--check label { font-weight: 400; font-size: .95rem; cursor: pointer; }
.field--check .field__error { grid-column: 2; }

.form-error-summary { border: 2px solid var(--error); border-radius: 12px; padding: 16px 20px; margin-bottom: var(--s-5); background: #FBEDEA; color: var(--error); }
.form-error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-error-summary a { color: var(--error); font-weight: 600; }

.summary {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin: var(--s-5) 0 var(--s-4); padding: var(--s-4) 0; border-block: 1px solid var(--ink);
}
.summary__label { color: var(--muted); margin-bottom: 4px; }
.summary__item { font-weight: 600; font-size: 1.05rem; }
.summary__price { text-align: right; }
.summary__value { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.fine { margin-top: 12px; font-size: .85rem; color: var(--muted); }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.reserve__success { grid-column: 2; padding: clamp(24px, 4vw, 48px); border: 1.5px solid var(--ink); background: var(--paper-3); box-shadow: 10px 10px 0 var(--signal); }
.reserve__success .display { margin: var(--s-3) 0; }
.reserve__success p + p, .reserve__success .btn { margin-top: var(--s-4); }
.reserve__success .chapter__num { color: var(--success); }

@media (max-width: 960px) {
  .reserve { grid-template-columns: 1fr; }
  .reserve__visual { position: static; }
  .reserve__figure { width: min(60%, 240px); }
  .reserve__success { grid-column: 1; }
}
@media (max-width: 640px) {
  .editions { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
}

/* ---------- §07 faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 72px; padding: 16px 0; font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 106; font-size: 1.15rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) ease;
}
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--signal); border-color: var(--signal); }
.qa summary:hover::after { background-color: var(--paper); }
.qa[open] summary:hover::after { background-color: var(--signal); }
.qa__a { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- finale ---------- */
.finale { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding: clamp(96px, 14vw, 200px) var(--gutter); }
.finale__inner { position: relative; z-index: 2; max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; }
.finale__title {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(3.4rem, 13vw, 12rem); line-height: .85; letter-spacing: -.04em; margin-bottom: var(--s-6);
}
.finale__title span { display: block; }
.finale__title em { text-transform: none; color: var(--signal); font-size: 1.1em; }
.finale__robot { position: absolute; right: -2%; bottom: -30%; width: min(46vw, 520px); height: auto; opacity: .9; z-index: 1; }
@media (max-width: 640px) { .finale__robot { width: 60vw; right: -18%; bottom: -12%; opacity: .45; } }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--paper); border-top: 1px solid var(--ink); }
.site-footer__grid { max-width: var(--maxw); margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-6); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); }
.site-footer__brand p:not(.brand__word) { color: var(--ink-2); margin-bottom: 8px; }
.site-footer__brand a { font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
.site-footer__h { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { max-width: var(--maxw); margin: 0 auto; padding: var(--s-3) var(--gutter) var(--s-4); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; z-index: var(--z-cookie); left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px));
  background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: 16px; padding: 20px;
  box-shadow: 8px 8px 0 var(--ink); font-size: .94rem;
  animation: cookie-in 420ms var(--ease-out);
}
.cookie__title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.1rem; margin-bottom: 6px; }
.cookie__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cookie__actions .btn { flex: 1 1 auto; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- legal pages ---------- */
.legal { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(72px, 10vw, 128px); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.legal__head { grid-column: 1 / -1; border-bottom: 1px solid var(--ink); padding-bottom: var(--s-5); }
.legal__head .display { margin: 12px 0 16px; }
.legal__meta { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal__toc ol { margin: 0; padding-left: 20px; font-size: .92rem; }
.legal__toc li { margin-bottom: 6px; }
.legal__toc a { text-decoration: none; display: inline-block; padding: 4px 0; }
.legal__toc a:hover { text-decoration: underline; }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 110; font-size: 1.5rem; line-height: 1.2; margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.1rem; margin: var(--s-4) 0 var(--s-2); }
.legal__body p, .legal__body ul, .legal__body ol { margin-bottom: var(--s-3); color: var(--ink-2); }
.legal__body li { margin-bottom: 6px; }
.legal__body table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); font-size: .94rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.legal__body th { font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.table-scroll { overflow-x: auto; }
.legal__note { border-left: 3px solid var(--signal); padding: 12px 16px; background: var(--paper-3); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- reveal (JS adds .js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.site-footer a[aria-current="page"] { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__body code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-3); padding: 1px 6px; border-radius: 4px; }
.legal__body .linklike { min-height: 0; padding: 0; font-weight: 600; color: inherit; }
