/* KTwo AI Labs: a survey sheet laid over a night climb of K2.
   Live WebGPU scenes come from scene.js; scroll state comes from main.js.
   Fonts are self-hosted (fonts/OFL.txt). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070a;
  --snow: #f4f7fa;
  --text: #dfe5ec;
  --soft: #c3cbd6;
  --muted: #9aa5b3;
  --faint: #7a8594;
  --line: rgba(214, 226, 242, 0.12);
  --line-strong: rgba(214, 226, 242, 0.26);
  --sans: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --draw: cubic-bezier(0.65, 0, 0.2, 1);
  /* set from main.js */
  --intro-p: 1; /* the home page opens at 0: the logo frame */
  --hero-p: 0;
  --page-p: 0;
  --stmt-p: 0;
  --access-p: 0;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; color: var(--snow); font-weight: 620; font-stretch: 82%; letter-spacing: -0.015em; line-height: 0.92; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: var(--mono); font-stretch: normal; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--snow);
  outline-offset: 3px;
  border-radius: 1px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--snow); color: var(--bg);
  padding: 10px 16px; border-radius: 2px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Map lettering: wide capitals, the way a survey sheet labels things. */
.sec-label, .legend dt, .spec dt, .price-label, .contact-label, .footer-col h2,
.models-table thead th, .models-table tbody td::before, .cta-form label, .nav-links a, .route-label, .legal-nav a, .lettering {
  font: 560 0.6875rem/1.2 var(--sans);
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- Backdrop ---------------- */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.backdrop-fallback, .backdrop-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.backdrop-canvas { opacity: 0; transition: opacity 1.6s var(--ease); }
html.scene-live .backdrop-canvas { opacity: 1; }
.backdrop-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* behind the text (the logo at the bottom centre, then the model copy at the lower left),
       so it holds over the lit face while the summit stays crisp */
    radial-gradient(ellipse 58% 42% at calc(50% - var(--intro-p) * 14%) calc(78% - var(--intro-p) * 18%),
      rgba(5, 7, 10, 0.62), rgba(5, 7, 10, 0.3) 55%, rgba(5, 7, 10, 0) 88%),
    linear-gradient(90deg, rgba(5, 7, 10, calc(0.7 - var(--access-p) * 0.15)) 0%, rgba(5, 7, 10, 0) 64%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.5) 0%, rgba(5, 7, 10, 0) 18%),
    linear-gradient(0deg, rgba(5, 7, 10, 0.85) 0%, rgba(5, 7, 10, 0) 36%),
    rgba(5, 7, 10, calc(var(--hero-p) * 0.3 + var(--stmt-p) * 0.2));
}

/* Callout on the summit (the opening frame). scene.js sets --sx/--sy/--lead and the
   placement classes; main.js fades it with --tag-o as the model frame comes in. */
.summit-tag {
  position: absolute; left: 0; top: 0; display: none;
  transform: translate(calc(var(--sx, 0px) - 0.5px), calc(var(--sy, 0px) - 100%));
  opacity: var(--tag-o, 1);
  color: var(--soft);
}
.summit-tag.is-placed { display: flex; flex-direction: column; align-items: flex-start; }
.summit-tag-text { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px 10px; font: 500 0.8125rem/1 var(--sans); font-stretch: 112%; letter-spacing: 0.06em; white-space: nowrap; }
.summit-tag-text b { font-weight: 640; color: var(--snow); letter-spacing: 0.1em; margin-right: 4px; }
.summit-tag-text .mono { font-size: 0.6875rem; letter-spacing: 0.02em; color: var(--muted); }
.summit-tag-leader { position: relative; width: 1px; height: var(--lead, 56px); background: linear-gradient(to top, rgba(244, 247, 250, 0.7), rgba(244, 247, 250, 0.15)); }
.summit-tag-leader::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 7px; height: 7px; border: 1px solid var(--snow); border-radius: 50%; }
/* above, near the right edge: the label hangs to the left of its leader */
.summit-tag.is-flip { transform: translate(calc(var(--sx, 0px) - 100% + 0.5px), calc(var(--sy, 0px) - 100%)); }
.summit-tag.is-flip.is-placed { align-items: flex-end; }
.summit-tag.is-flip .summit-tag-text { padding: 0 10px 10px 0; align-items: flex-end; }
/* side: too little sky above the summit, so the label sits level with it, to the left */
.summit-tag.is-side.is-placed { flex-direction: row; align-items: center; transform: translate(calc(var(--sx, 0px) - 100% - 3px), calc(var(--sy, 0px) - 50%)); }
.summit-tag.is-side .summit-tag-text { padding: 0 10px 0 0; align-items: flex-end; }
.summit-tag.is-side .summit-tag-leader { width: var(--lead, 44px); height: 1px; background: linear-gradient(to left, rgba(244, 247, 250, 0.7), rgba(244, 247, 250, 0.15)); }
.summit-tag.is-side .summit-tag-leader::after { left: auto; right: -6px; bottom: -3px; }
/* ...or to the right, when the left has no room */
.summit-tag.is-side.is-flip.is-placed { flex-direction: row-reverse; transform: translate(calc(var(--sx, 0px) + 3px), calc(var(--sy, 0px) - 50%)); }
.summit-tag.is-side.is-flip .summit-tag-text { padding: 0 0 0 10px; align-items: flex-start; }
.summit-tag.is-side.is-flip .summit-tag-leader { background: linear-gradient(to right, rgba(244, 247, 250, 0.7), rgba(244, 247, 250, 0.15)); }
.summit-tag.is-side.is-flip .summit-tag-leader::after { right: auto; left: -6px; }
@media (max-height: 460px) { .summit-tag.is-placed { display: none; } }
html.js .summit-tag-text { opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
html.js .summit-tag-leader { transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.9s var(--draw) 0.9s; }
html.js .summit-tag.is-side .summit-tag-leader { transform: scaleX(0); transform-origin: 100% 50%; }
html.js .summit-tag.is-side.is-flip .summit-tag-leader { transform-origin: 0 50%; }
html.js.is-loaded .summit-tag-text { opacity: 1; }
html.js.is-loaded .summit-tag-leader, html.js.is-loaded .summit-tag.is-side .summit-tag-leader { transform: none; }

/* ---------------- Altimeter ---------------- */
.alti { display: none; }
html:not(.js) .alti { display: none !important; }
@media (min-width: 1280px) and (min-height: 620px) {
  .alti {
    position: fixed; right: 18px; top: 50%; z-index: 90; transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    pointer-events: none; color: var(--faint); font-size: 0.625rem; letter-spacing: 0.04em;
  }
  .alti-scale {
    position: relative; width: 7px; height: 38vh;
    border-right: 1px solid var(--line-strong);
    background: repeating-linear-gradient(to top, var(--line-strong) 0 1px, transparent 1px 3.8vh) right / 4px 100% no-repeat;
  }
  .alti-needle {
    position: absolute; right: -1px; top: 0; width: 15px; height: 1px; background: var(--snow);
    transform: translateY(calc((1 - var(--page-p)) * 38vh));
  }
  .alti-read { position: absolute; right: 21px; top: -6px; color: var(--snow); font-size: 0.6875rem; white-space: nowrap; }
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.site-nav.is-scrolled, html:not(.js) .site-nav {
  background: rgba(5, 7, 10, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: var(--snow); }
.brand-logo { display: block; width: 32px; height: 22px; }
body[data-scene="home"] .site-nav .brand { opacity: var(--nav-brand-o, 1); }
body[data-scene="home"] .site-nav .brand:focus-visible { opacity: 1; }
.brand-word { font-weight: 640; font-stretch: 100%; letter-spacing: -0.005em; font-size: 1rem; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; padding: 8px 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--snow); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 600 1rem/1 var(--sans); font-stretch: 100%; letter-spacing: 0; text-decoration: none;
  padding: 16px 22px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-sm { padding: 10px 14px; font-size: 0.875rem; }
.nav-inner .btn { white-space: nowrap; }
.btn-solid { background: var(--snow); color: var(--bg); }
.btn-solid:hover { background: #fff; }
.btn-line { color: var(--snow); border-color: var(--line-strong); background: rgba(5, 7, 10, 0.3); }
.btn-line:hover { border-color: var(--snow); }
.btn-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; transition: transform 0.25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ---------------- Hero ---------------- */
/* Two frames: the logo, then the model. They stack (no JS, reduced motion); with motion the
   stage is pinned and main.js crossfades them as --intro-p runs from 0 to 1. */
.hero { position: relative; }
.hero-brand {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(64px, 13vh, 150px);
}
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3.2vh, 32px); font-size: 1rem; line-height: 1; }
.hero-mark { display: block; width: clamp(150px, 17vw, 260px); height: auto; color: var(--snow); filter: drop-shadow(0 6px 28px rgba(5, 7, 10, 0.7)); }
.hero-wordmark {
  font: 560 clamp(0.9375rem, 1.3vw, 1.25rem)/1 var(--sans); font-stretch: 125%;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--snow);
  padding-left: 0.42em; /* the tracking trails the last letter; this keeps the word centred */
  text-shadow: 0 4px 24px rgba(5, 7, 10, 0.75);
}
.hero-tagline {
  margin-top: clamp(14px, 2vh, 20px); padding-left: 0.24em;
  font: 500 0.75rem/1.2 var(--sans); font-stretch: 125%; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); text-shadow: 0 2px 16px rgba(5, 7, 10, 0.8);
}
.hero-model { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-body { width: 100%; padding-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero-title { font-size: clamp(3.4rem, 9.4vw, 9.25rem); font-weight: 640; font-stretch: 80%; line-height: 0.86; letter-spacing: -0.02em; max-width: 7.6em; }
/* Display type over the live scene: a wide, faint shadow separates it from lit snow */
.hero-title, .access .sec-head :is(h1, h2), .statement-text { text-shadow: 0 2px 2px rgba(5, 7, 10, 0.25), 0 8px 48px rgba(5, 7, 10, 0.6); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin-top: clamp(24px, 4vh, 40px); }
.hero-sub { max-width: 31em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-legend { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  /* pinned for one screen of scroll: the logo lifts away, then the model is drawn on */
  html.js .hero { height: 200vh; height: calc(100vh + 100svh); }
  html.js .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  html.js .hero-brand, html.js .hero-model { position: absolute; inset: 0; min-height: 0; }
  html.js .hero-brand { opacity: var(--brand-o, 1); transform: translate3d(0, var(--brand-y, 0px), 0); }
  html.js .hero-model { opacity: calc(1 - var(--hero-p) * 1.5); transform: translate3d(0, calc(var(--hero-p) * -60px), 0); }
  html.js .hero:not(.model-on) .hero-model { pointer-events: none; }
  html.js .hero-title { clip-path: polygon(-3% -30%, calc(-3% + 106% * var(--m-title, 0)) -30%, calc(-3% + 106% * var(--m-title, 0)) 130%, -3% 130%); }
  html.js .hero-foot { opacity: var(--m-foot, 0); transform: translate3d(0, calc((1 - var(--m-foot, 0)) * 18px), 0); }
  html.js .hero-legend { opacity: var(--m-legend, 0); }
}
.legend {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px;
  padding: 18px 0 26px; border-top: 1px solid var(--line-strong);
}
.legend dt { color: var(--faint); margin-bottom: 8px; }
.legend dd { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--snow); }

/* ---------------- Statement ---------------- */
.statement { position: relative; height: 240vh; }
.statement-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.statement-sticky > .container { width: 100%; }
.statement-text {
  font-size: clamp(2rem, 4.8vw, 4.6rem); line-height: 1.02; letter-spacing: -0.012em;
  font-weight: 540; font-stretch: 86%; color: var(--snow); max-width: 15.5em;
}
html.js .statement-text .sw { opacity: 0.16; transition: opacity 0.3s linear; }
html.js .statement-text .sw.on { opacity: 1; }

/* ---------------- Sheet ---------------- */
/* Opaque: the landing page's index of pages and LE PEAK, and all of the model, models and
   pricing pages. The scene behind it is paused while it fills the screen (scene.js). */
.sheet { position: relative; background: var(--bg); padding-bottom: clamp(96px, 12vw, 168px); }
.sheet::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0), var(--bg));
}

.section { position: relative; padding-top: clamp(96px, 12vw, 168px); }
/* A page that opens on the sheet starts below the nav (the model page's map clears it itself) */
.page-sheet .sheet > .section:first-child { padding-top: calc(var(--nav-h) + clamp(72px, 10vw, 136px)); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .sec-label { grid-column: 1 / span 3; padding-top: 0.6em; }
.sec-head :is(h1, h2), .sec-head .sec-sub { grid-column: 4 / -1; }
.sec-head :is(h1, h2) { font-size: clamp(2.6rem, 6.4vw, 5.75rem); max-width: 10em; }
.sec-sub { margin-top: 20px; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 32em; }
.sec-sub a { color: var(--snow); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
/* The way on at the foot of a page */
.page-ctas { margin-top: clamp(40px, 5vw, 64px); }

/* ---------------- Landing: one row per page ---------------- */
.routes { border-bottom: 1px solid var(--line); }
.route {
  display: grid; grid-template-columns: 3fr 4fr 5fr 16px; gap: 8px 24px; align-items: baseline;
  padding: 24px 0 26px; text-decoration: none; color: inherit;
}
.route-label { color: var(--faint); }
.route-title { font-size: clamp(1.5rem, 2.7vw, 2.25rem); font-weight: 580; font-stretch: 84%; line-height: 1.05; letter-spacing: -0.01em; color: var(--snow); }
.route-note { color: var(--muted); font-size: 0.9375rem; max-width: 28em; }
.route .btn-icon { align-self: center; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
.route:hover .route-title { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.route:hover .btn-icon { transform: translateX(3px); color: var(--snow); }

/* ---------------- Model: survey map ---------------- */
.map {
  --cx: 0.62; --cy: 0.44;
  position: relative; margin: 0; height: clamp(560px, 94vh, 1000px); overflow: hidden; isolation: isolate;
}
.map-canvas, .map-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.map-fallback { object-fit: cover; object-position: 62% 44%; opacity: 0.85; }
/* Hidden while the live map may still start (scene.js sets scene-off when it can't); no-JS keeps it */
html.js .map-fallback { display: none; }
html.js.scene-off .map-fallback, html.js .map.is-static .map-fallback { display: block; }
/* the rendered image always puts its summit at 62% / 44% of the box (object-position) */
html.scene-off .map, .map.is-static, html:not(.js) .map { --cx: 0.62; --cy: 0.44; }
/* keeps the title clear of the contour lines behind it */
.map::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 48% 42% at 18% 30%, rgba(5, 7, 10, 0.8), rgba(5, 7, 10, 0) 72%);
}
.map-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(214, 226, 242, 0.045) 0 1px, transparent 1px 160px),
    repeating-linear-gradient(0deg, rgba(214, 226, 242, 0.045) 0 1px, transparent 1px 160px);
  background-position: calc(var(--cx) * 100%) calc(var(--cy) * 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.map-peak {
  position: absolute; left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%);
  display: flex; align-items: center; gap: 8px; transform: translate(-5px, -50%);
  font: 560 0.75rem/1 var(--sans); font-stretch: 112%; letter-spacing: 0.08em; color: var(--snow); white-space: nowrap;
  pointer-events: none;
}
.map-peak::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--snow); }
.map-peak b { font-weight: 680; letter-spacing: 0.12em; }
.map-head { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px)); pointer-events: none; }
.map-head > * { pointer-events: auto; }
.map-title { margin-top: 18px; font-size: clamp(3rem, 8.4vw, 8rem); font-weight: 640; font-stretch: 80%; line-height: 0.86; letter-spacing: -0.02em; max-width: 6em; }
.map-id { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.map-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font: 400 0.75rem/1.4 var(--mono); color: var(--faint);
}
.map-hint { display: none; }
@media (hover: hover) and (pointer: fine) { html.scene-live .map-hint { display: inline; } }
.map.is-static .map-hint { display: none; }
.live-only { display: none; }
html.scene-live .live-only { display: inline; }
.map.is-static .live-only { display: none; }

.model-lede { margin: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); max-width: 26em; font-size: clamp(1.3125rem, 2.3vw, 1.875rem); line-height: 1.3; font-stretch: 94%; color: var(--soft); }
.spec { margin: 0; border-bottom: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 8px 24px; padding: 24px 0 26px; align-items: baseline; }
.spec dt { color: var(--faint); }
.spec dd { margin: 0; }
.spec-val { font-size: clamp(1.5rem, 2.7vw, 2.25rem); font-weight: 580; font-stretch: 84%; line-height: 1.05; letter-spacing: -0.01em; color: var(--snow); }
.spec-val.mono { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 450; letter-spacing: 0; }
.spec-note { color: var(--muted); font-size: 0.9375rem; max-width: 28em; }
.spec-note a { color: var(--soft); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ---------------- Models table ---------------- */
/* The table never scrolls sideways: it fits on wide screens and becomes a list below 1180px. */
.models-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.models-table th, .models-table td { text-align: left; padding: 20px 16px 22px; vertical-align: baseline; }
.models-table th:first-child, .models-table td:first-child { padding-left: 0; }
.models-table th:last-child, .models-table td:last-child { padding-right: 0; }
.models-table thead th { font-size: 0.625rem; color: var(--faint); border-bottom: 1px solid var(--line); white-space: normal; }
.models-table tbody tr { border-bottom: 1px solid var(--line); }
.models-table .nw, .models-table .mono, .models-table .num, .models-table tbody th { white-space: nowrap; }
.models-table tbody th { font-weight: 600; font-stretch: 100%; font-size: 1rem; letter-spacing: 0; line-height: 1.4; color: var(--snow); }
.models-table tbody th a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.models-table tbody th a:hover { text-decoration-color: var(--snow); }
.models-table tbody td { color: var(--soft); }
.models-table .num { font-variant-numeric: tabular-nums; color: var(--snow); }
.models-table .mono { color: var(--snow); font-size: 0.875rem; }
.tag {
  display: inline-block; margin-left: 10px; padding: 3px 6px 2px; vertical-align: 2px;
  font: 600 0.5625rem/1.2 var(--sans); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--snow); border-radius: 1px; color: var(--snow);
}

.row-note { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); white-space: normal; }
.models-table .na { color: var(--faint); }
.table-note { margin-top: 14px; font-size: 0.8125rem; color: var(--faint); }

/* ---------------- Pricing ---------------- */
.prices { display: grid; grid-template-columns: 1fr 1fr; }
.price { padding: 24px 0 36px; }
.price + .price { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.price-fig {
  margin: 20px 0 14px; font-size: clamp(5.5rem, 15.5vw, 13.5rem); font-weight: 560; font-stretch: 72%;
  line-height: 0.8; letter-spacing: -0.02em; color: var(--snow); font-variant-numeric: lining-nums tabular-nums;
}
.price-cur { font-size: 0.34em; vertical-align: top; position: relative; top: 0.2em; margin-right: 0.08em; color: var(--muted); font-weight: 480; }
.price-unit { color: var(--muted); font-size: 0.9375rem; }

.estimator {
  margin: 8px 0 0; padding: 26px 0 30px;
  display: grid; grid-template-columns: 1fr 1fr minmax(220px, auto); gap: 24px clamp(24px, 4vw, 56px); align-items: end;
}
.estimator h3 { grid-column: 1 / -1; }
.est-row { display: grid; grid-template-columns: 1fr auto; row-gap: 12px; align-items: baseline; }
.est-row label { font-size: 0.9375rem; color: var(--soft); }
.est-row output { color: var(--snow); font-size: 0.9375rem; }
.est-row input { grid-column: 1 / -1; }
.est-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; }
.est-total output { font-size: 2.25rem; line-height: 1; color: var(--snow); letter-spacing: -0.03em; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--snow) var(--fill, 10%), var(--line-strong) var(--fill, 10%)); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--snow); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 22px; margin-top: -10.5px; border-radius: 1px; background: var(--snow); border: 0; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 22px; border-radius: 1px; background: var(--snow); border: 0; }
input[type="range"]:focus-visible { outline-offset: 6px; }

.fine-print { margin-top: 22px; max-width: 48em; color: var(--faint); font-size: 0.875rem; }
.fine-print a { color: var(--soft); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ---------------- LE PEAK (chat) ---------------- */
/* The message box lines up with the headline column. */
.chat-start { margin: 0 0 clamp(56px, 7vw, 88px) calc((100% - 264px) / 4 + 72px); max-width: 760px; }
.chat-start > .lettering { display: block; margin-bottom: 12px; }
.chat-box {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 10px;
  background: rgba(214, 226, 242, 0.025); border: 1px solid var(--line-strong); border-radius: 2px;
  transition: border-color 0.25s, box-shadow 0.35s;
}
.chat-box:focus-within { border-color: rgba(244, 247, 250, 0.5); box-shadow: 0 0 0 1px rgba(244, 247, 250, 0.06), 0 0 40px rgba(214, 226, 242, 0.07); }
.chat-box textarea {
  width: 100%; min-height: 4.6em; resize: vertical; padding: 4px 2px; border: 0; background: transparent;
  font: 400 1.125rem/1.5 var(--sans); color: var(--snow);
}
.chat-box textarea::placeholder { color: var(--faint); }
.chat-box textarea:focus, .chat-box textarea:focus-visible { outline: none; }
.chat-box-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-model { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-model select {
  -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%;
  padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  font: 600 0.8125rem/1.2 var(--sans); color: var(--snow); color-scheme: dark;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa5b3' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
  transition: border-color 0.2s;
}
.chat-model select:hover { border-color: var(--line-strong); }
.chat-model select:focus-visible { outline: 2px solid var(--snow); outline-offset: 2px; }
.chat-send { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.chat-hint { font-size: 0.6875rem; color: var(--faint); white-space: nowrap; }
html:not(.js) .chat-hint { display: none; }
@media (hover: none) { .chat-hint { display: none; } }
.chat-start-note { margin-top: 12px; font-size: 0.8125rem; color: var(--faint); }
.chat-names { display: block; margin-bottom: 6px; color: var(--soft); }

/* ---------------- Access (summit) ---------------- */
.access { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 96px) 0 clamp(64px, 9vw, 120px); }
.access-body { width: 100%; }
/* Stacked in the left column: the summit owns the right side at dawn */
.access .sec-head { display: block; margin-bottom: 0; max-width: 40rem; }
.access .sec-head .sec-label { padding-top: 0; margin-bottom: 18px; }
.access .sec-head :is(h1, h2) { max-width: 8.6em; }
.cta-form { margin-top: clamp(36px, 5vw, 56px); max-width: 560px; }
.cta-form label { display: block; margin-bottom: 10px; color: var(--soft); }
.cta-field { display: flex; gap: 12px; max-width: 620px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.cta-field:focus-within { border-bottom-color: var(--snow); box-shadow: 0 1px 0 var(--snow); }
.cta-field input {
  flex: 1 1 auto; min-width: 0; font: 400 1.25rem var(--sans); color: var(--snow);
  padding: 12px 0; border: 0; background: transparent;
}
.cta-field input::placeholder { color: var(--faint); }
.cta-field input:focus, .cta-field input:focus-visible { outline: none; }
.cta-note { margin-top: 16px; font-size: 0.875rem; min-height: 1.5em; color: var(--snow); }
.disclaimer { margin-top: 6px; max-width: 36em; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }

.contact { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.contact-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 4px; text-decoration: none; }
.contact-label { color: var(--faint); }
.contact-mail { font-size: 1.1875rem; font-weight: 560; color: var(--snow); overflow-wrap: anywhere; }
.contact-desc { font-size: 0.875rem; color: var(--muted); }
.contact-item:hover .contact-mail { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ---------------- Rules drawn on scroll ---------------- */
[data-rule] { position: relative; }
[data-rule]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line-strong); transform-origin: 0 50%;
}

/* ---------------- Footer ---------------- */
.site-footer { position: relative; background: var(--bg); padding-bottom: 32px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 160px; pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0), var(--bg));
}
.plate { display: none; position: relative; height: clamp(150px, 19vw, 280px); border-bottom: 1px solid var(--line); }
html.scene-live .plate { display: block; }
html.scene-live .plate[hidden] { display: none; }
.plate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-top: 64px; }
html:not(.scene-live) .footer-grid { border-top: 1px solid var(--line); }
.footer-logo { display: block; width: 68px; height: 54px; color: var(--snow); }
.footer-tag { margin-top: 16px; font: 560 0.75rem/1.2 var(--sans); font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer-col h2 { color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; font-size: 0.9375rem; padding: 5px 0; color: var(--soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--snow); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; font-size: 0.8125rem; color: var(--faint);
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.footer-trademarks { flex-basis: 100%; order: 1; font-size: 0.75rem; }
.footer-credit a { color: var(--muted); }
.footer-credit a:hover { color: var(--snow); }
.footer-founder { flex-basis: 100%; font-size: 0.75rem; }
.footer-founder a { color: inherit; text-decoration: none; }
.footer-founder a:hover { color: var(--muted); text-decoration: underline; }

/* ---------------- Legal, contact + 404 ---------------- */
.page-legal .backdrop-shade { background: rgba(5, 7, 10, 0.66); }
.legal { padding: calc(var(--nav-h) + clamp(72px, 12vw, 136px)) 0 clamp(96px, 12vw, 144px); }
.legal-head { margin-bottom: clamp(48px, 6vw, 72px); }
.legal-head h1 { margin-top: 18px; font-size: clamp(3rem, 8vw, 7rem); font-weight: 640; font-stretch: 80%; line-height: 0.88; letter-spacing: -0.02em; max-width: 8em; }
.legal-head .sec-sub { margin-top: 24px; }
.legal-head .hero-ctas { margin-top: 36px; }
/* Privacy, Terms and Security: one page each, with a row of links between them */
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 20px; }
.legal-nav a { text-decoration: none; padding: 8px 0; transition: color 0.2s; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--snow); }
.legal-body { max-width: 44em; padding-top: 26px; }
.legal-body p { color: var(--soft); font-size: 1.0625rem; }
.legal-body p + p { margin-top: 14px; }
.legal-body a { color: var(--snow); text-underline-offset: 3px; }
.legal .contact { margin-top: 0; }
.page-404 .legal { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.page-404 .legal > .container { width: 100%; }

/* ---------------- Blog ---------------- */
/* /blog and each post sit on the sheet, like the model pages. Both are generated from
   src/blog by scripts/build-blog.mjs, which also writes the home page's latest posts. */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list .route-title { margin: 0; }
/* date and section: side by side, or stacked when the column is narrow */
.post-list .route-label { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.blog-feed { margin-top: 18px; font-size: 0.875rem; color: var(--faint); }
.blog-feed a { color: var(--soft); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

.post-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.75rem); line-height: 0.95; max-width: 13em; }
.post-head .sec-label a { color: inherit; text-decoration: none; }
.post-head .sec-label a:hover { color: var(--snow); }
.post-meta { grid-column: 4 / -1; margin-top: 22px; font-size: 0.8125rem; color: var(--faint); }
.post-layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.post-toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 32px); padding-top: 26px; }
.post-toc h2 { font: 560 0.6875rem/1.2 var(--sans); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.post-toc ol { list-style: none; margin: 14px 0 0; padding: 0; }
.post-toc a { display: block; padding: 5px 0; font-size: 0.875rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.post-toc a:hover { color: var(--snow); }

/* Article text: the headline's column, at a reading measure */
.prose { grid-column: 4 / span 8; min-width: 0; max-width: 42em; padding-top: 26px; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: var(--soft); font-size: 1.125rem; line-height: 1.7; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; font-stretch: 84%; line-height: 1.02; }
.prose h3 { margin-top: 1.8em; font-size: 1.3125rem; font-weight: 600; font-stretch: 92%; line-height: 1.2; letter-spacing: -0.005em; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0.7em; }
.prose :is(h2, h3) { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose a { color: var(--snow); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--snow); }
.prose strong { color: var(--snow); font-weight: 600; }
.prose :is(ul, ol) { padding-left: 1.3em; }
.prose li + li, .prose li > :is(ul, ol) { margin-top: 0.45em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { padding: 4px 0 4px 22px; border-left: 1px solid var(--line-strong); }
.prose blockquote p { color: var(--text); font-size: 1.25rem; line-height: 1.5; font-stretch: 94%; }
.prose code { font-family: var(--mono); font-size: 0.86em; padding: 0.1em 0.35em; color: var(--snow); background: rgba(214, 226, 242, 0.06); border: 1px solid var(--line); border-radius: 2px; overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; padding: 18px 20px; font-size: 0.875rem; line-height: 1.6; background: rgba(214, 226, 242, 0.03); border: 1px solid var(--line); border-radius: 2px; }
.prose pre code { padding: 0; font-size: inherit; color: var(--text); background: none; border: 0; overflow-wrap: normal; }
.prose hr { height: 1px; margin-top: 2.4em; background: var(--line); border: 0; }
.prose hr + * { margin-top: 2.4em; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.prose th, .prose td { padding: 12px 18px 13px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.prose :is(th, td):last-child { padding-right: 0; }
.prose thead th { font: 560 0.625rem/1.2 var(--sans); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.prose tbody th { font-weight: 600; color: var(--snow); }
.prose td { color: var(--soft); }
.prose .ta-right { text-align: right; }
.prose .ta-center { text-align: center; }
.prose td.ta-right { font-variant-numeric: tabular-nums; }

.post-more { margin-top: clamp(72px, 9vw, 120px); }
.post-more > .sec-label { display: block; margin-bottom: 18px; }
@media (max-width: 900px) {
  .post-layout { display: block; }
  .post-toc { position: static; padding-top: 22px; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .prose p, .prose li { font-size: 1.0625rem; }
}

/* ---------------- Motion ---------------- */
/* Hidden states only apply when JS runs (html.js), so no-JS visitors see everything. */
html.js [data-reveal] {
  opacity: 0; translate: 0 18px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Headings and figures are drawn on from the left, like the rest of the sheet */
html.js [data-wipe] {
  clip-path: polygon(-3% -30%, -3% -30%, -3% 130%, -3% 130%);
  transition: clip-path 1.3s var(--draw);
  transition-delay: var(--d, 0ms);
}
html.js [data-wipe].is-in { clip-path: polygon(-3% -30%, 103% -30%, 103% 130%, -3% 130%); }

html.js [data-rule]::before { transform: scaleX(0); transition: transform 1.2s var(--draw); transition-delay: var(--d, 0ms); }
html.js [data-rule].is-in::before { transform: scaleX(1); }

html.js [data-intro] { opacity: 0; translate: 0 16px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
html.js .hero-mark[data-intro] {
  opacity: 1; translate: none;
  clip-path: polygon(-3% -30%, -3% -30%, -3% 130%, -3% 130%);
  transition: clip-path 1.6s var(--draw) 0.2s;
}
html.js [data-intro="1"] { transition-delay: 0.9s; }
html.js [data-intro="2"] { transition-delay: 1.05s; }
html.js.is-loaded [data-intro] { opacity: 1; translate: 0 0; }
html.js.is-loaded .hero-mark[data-intro] { clip-path: polygon(-3% -30%, 103% -30%, 103% 130%, -3% 130%); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  /* Models table becomes one labelled list per model */
  .models-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .models-table tr, .models-table th, .models-table td { display: block; }
  .models-table tbody tr { border-bottom: 0; }
  .models-table tbody th, .models-table tbody th:first-child { padding: 22px 0 14px; font-size: 1.25rem; }
  .models-table tbody td, .models-table tbody td:first-child, .models-table tbody td:last-child {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; border-top: 1px solid var(--line); text-align: right;
  }
  .models-table tbody td::before { content: attr(data-label); color: var(--faint); text-align: left; }
  .models-table tbody td:last-child { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1080px) {
  /* six links and the button still fit on one line down to 901px */
  .nav-inner { gap: 24px; }
  .nav-links { gap: 20px; }
  .spec-row { grid-template-columns: 1fr 2fr; }
  .spec-note { grid-column: 2; }
  .route { grid-template-columns: 1fr 2fr 16px; }
  .route-note { grid-column: 2; }
  .estimator { grid-template-columns: 1fr 1fr; }
  .est-total { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .sec-head { display: block; }
  .sec-head .sec-label { padding-top: 0; margin-bottom: 18px; }
  .chat-start { margin-left: 0; }
  .contact { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
  .legend > div:nth-child(n + 3) { margin-top: 16px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .brand-word { display: none; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.75rem); }
  .hero-mark { width: clamp(132px, 40vw, 180px); }
  .hero-wordmark { letter-spacing: 0.34em; padding-left: 0.34em; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .legend dd { font-size: 0.875rem; }
  .statement { height: 200vh; }
  .map { --cx: 0.6; --cy: 0.5; height: 82svh; min-height: 520px; }
  .map-title { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .spec-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0 22px; }
  .spec-note { grid-column: auto; }
  .route { grid-template-columns: 1fr 16px; gap: 6px 16px; padding: 20px 0 22px; }
  .route-label, .route-title, .route-note { grid-column: 1; }
  .route .btn-icon { grid-column: 2; grid-row: 1 / span 3; }
  .prices { grid-template-columns: 1fr; }
  .price + .price { padding-left: 0; border-left: 0; }
  .estimator { grid-template-columns: 1fr; }
  .cta-field { flex-direction: column; border-bottom: 0; padding-bottom: 0; }
  .cta-field input { border-bottom: 1px solid var(--line-strong); }
  .cta-field:focus-within { box-shadow: none; }
  .cta-field input:focus { border-bottom-color: var(--snow); box-shadow: 0 1px 0 var(--snow); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Reduced motion (last, so it wins over the breakpoints) ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js [data-intro], html.js [data-wipe], html.js .hero-mark[data-intro] {
    opacity: 1; translate: none; clip-path: none; transition: none;
  }
  html.js [data-rule]::before { transform: none; transition: none; }
  html.js .summit-tag-text, html.js .summit-tag-leader { opacity: 1; transform: none; transition: none; }
  html.js .statement-text .sw { opacity: 1; }
  /* static text, kept clear of the sheet's fade below it */
  .statement { height: auto; padding: 120px 0 calc(40vh + 24px); }
  .statement-sticky { position: static; height: auto; }
}
