/* Vectra — site styles. Everything is self-hosted: no third-party requests. */

@font-face { font-family: "Michroma"; src: url(fonts/michroma-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-var.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  /* Graphite, from the icon's barrel; tally red is the only accent. */
  --night: #101113;
  --night-2: #17181b;
  --bone: #eceae6;
  --ash: #8e8c88;
  --rule: #2a2b2e;
  --tally: #f2382c;

  --wordmark: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 6vw, 96px);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--tally); }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bone); color: var(--night); padding: 8px 12px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  font-size: 15px;
}
.nav .mark { font-family: var(--wordmark); font-size: 15px; letter-spacing: 0.24em; text-decoration: none; }
.nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav ul a { text-decoration: none; opacity: 0.8; }
.nav ul a:hover, .nav ul a[aria-current] { opacity: 1; }

/* ── Hero: sticky photograph, flat log grading itself to Rec.709 ───────── */

.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* What the sensor stores: lifted blacks, rolled highlights, muted colour. */
  filter: saturate(0.42) contrast(0.58) brightness(1.2);
  animation: grade 1.8s cubic-bezier(.6, 0, .2, 1) 0.9s forwards;
}
@keyframes grade { to { filter: saturate(1.05) contrast(1.06) brightness(0.96); } }

.hero::after {   /* keeps the wordmark legible over bright foliage */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(10 11 13 / 0.78) 0%, rgb(10 11 13 / 0.15) 46%, rgb(10 11 13 / 0) 62%, rgb(10 11 13 / 0.35) 100%);
}

/* Monitor readout, as on a camera's screen. */
.hud {
  position: absolute; z-index: 2; top: 92px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; gap: 16px;
  font: 400 12.5px/1 var(--mono); letter-spacing: 0.04em; color: rgb(236 234 230 / 0.86);
}
.hud .rec::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; vertical-align: 1px;
  border-radius: 50%; background: var(--tally); box-shadow: 0 0 10px var(--tally);
}
.hud .view { display: inline-grid; }
.hud .view > span { grid-area: 1 / 1; text-align: right; transition: opacity .3s; }
.hud .view .graded { opacity: 0; animation: swap-in 0.01s linear 1.8s forwards; }
.hud .view .log { animation: swap-out 0.01s linear 1.8s forwards; }
@keyframes swap-in { to { opacity: 1; } }
@keyframes swap-out { to { opacity: 0; } }

.hero-copy {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
}
.wordmark {
  margin: 0;
  font: 400 clamp(56px, 15.2vw, 300px)/0.86 var(--wordmark);
  letter-spacing: -0.02em;
  margin-left: -0.04em;
}
.hero-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px;
  margin-top: clamp(14px, 2.4vh, 26px);
}
.hero-line p { margin: 0; }
.tagline { font: italic 400 clamp(24px, 2.6vw, 38px)/1.15 var(--serif); }
.soon { font-size: 15px; color: rgb(236 234 230 / 0.78); }

@supports (animation-timeline: scroll()) {
  .hero picture { animation: recede linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes recede { to { transform: scale(1.08); opacity: 0.55; } }
}

/* ── Page cover: everything after the hero slides up over it ────────────── */

.cover { position: relative; z-index: 1; background: var(--night); }

.manifesto {
  padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(72px, 10vw, 140px);
  max-width: 1500px; margin: 0 auto;
}
.manifesto p {
  margin: 0; max-width: 22ch;
  font: 400 clamp(36px, 5.4vw, 84px)/1.04 var(--serif);
  letter-spacing: -0.012em; text-wrap: balance;
}
.manifesto p + p { margin-top: 0.5em; color: var(--ash); }

/* Feature sections: giant faint word behind, serif heading, spec rows. */
.feature {
  position: relative; overflow: hidden;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.feature .ghost {
  position: absolute; z-index: 0; top: clamp(30px, 4vw, 60px); right: calc(var(--gutter) * -0.4);
  font: 400 clamp(110px, 24vw, 420px)/0.8 var(--wordmark);
  color: transparent; -webkit-text-stroke: 1px rgb(236 234 230 / 0.05);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.feature .inner {
  position: relative; z-index: 1; max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.feature h2 {
  margin: 0 0 20px; font: 400 clamp(40px, 4.6vw, 72px)/1.02 var(--serif); letter-spacing: -0.01em;
}
.feature .lede { margin: 0; max-width: var(--measure); color: #c4c2be; font-size: 18px; }

.specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.specs li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 9rem; gap: 18px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.specs .name { font-size: 19px; font-weight: 500; }
.specs .what { color: var(--ash); font-size: 15.5px; }
.specs .val { font: 400 15px/1 var(--mono); color: var(--bone); text-align: right; white-space: nowrap; }
.specs-note { margin: 14px 0 0; color: var(--ash); font-size: 14px; }
.specs.two li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.specs.two .val { text-align: right; }

.trace { margin: clamp(24px, 3vw, 40px) 0 0; grid-column: 1 / -1; }
.trace svg { width: 100%; height: auto; overflow: visible; }
.trace polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trace .gx { stroke: var(--bone); }
.trace .gy { stroke: var(--ash); }
.trace .gz { stroke: var(--tally); }
.trace .axis { stroke: var(--rule); stroke-width: 1; }
.trace figcaption { display: flex; gap: 22px; margin-top: 14px; font: 400 12.5px/1 var(--mono); color: var(--ash); }
.trace figcaption span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 8px; vertical-align: 3px; background: currentColor; }
.trace figcaption .x { color: var(--bone); }
.trace figcaption .z { color: var(--tally); }

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

.foot { border-top: 1px solid var(--rule); padding: clamp(64px, 8vw, 120px) var(--gutter) 40px; overflow: hidden; }
.foot .big {
  margin: 0 0 clamp(40px, 6vw, 80px);
  font: 400 clamp(52px, 15.2vw, 300px)/0.85 var(--wordmark); letter-spacing: -0.02em; margin-left: -0.04em;
  color: var(--night-2); -webkit-text-stroke: 1px var(--rule);
}
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; font-size: 14.5px; color: var(--ash); }
.foot ul { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; list-style: none; }
.foot .credit { margin: 22px 0 0; font-size: 12.5px; color: #66655f; max-width: 70ch; }

/* ── Document pages (privacy, support) ─────────────────────────────────── */

.doc .nav { position: static; border-bottom: 1px solid var(--rule); }
.doc main { padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(72px, 9vw, 130px); }
.doc article { max-width: 44rem; }
.doc h1 { margin: 0 0 10px; font: 400 clamp(52px, 7vw, 96px)/0.98 var(--serif); letter-spacing: -0.015em; }
.doc .meta { margin: 0 0 clamp(36px, 5vw, 56px); color: var(--ash); }
.doc h2 { margin: 2.6em 0 0.5em; font: 400 32px/1.1 var(--serif); }
.doc p, .doc li { color: #c9c7c3; }
.doc ul { padding-left: 1.1em; }
.doc li { margin: 0.4em 0; }
.doc li::marker { color: var(--ash); }
.doc code { font: 400 0.88em var(--mono); color: var(--bone); }
.doc .summary {
  margin: 0 0 8px; padding: 0 0 0 22px; border-left: 2px solid var(--tally);
  font: 400 clamp(24px, 2.6vw, 32px)/1.25 var(--serif); color: var(--bone);
}
.doc .perm { margin: 1.2em 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.doc .perm li { display: grid; grid-template-columns: 11rem 1fr; gap: 18px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.doc .perm b { font-weight: 500; color: var(--bone); }
.doc dl { margin: 0; border-top: 1px solid var(--rule); }
.doc dt { padding-top: 26px; font: 400 26px/1.2 var(--serif); color: var(--bone); }
.doc dd { margin: 8px 0 0; padding-bottom: 26px; border-bottom: 1px solid var(--rule); color: #c9c7c3; }
.doc .foot { padding-top: 40px; }

/* ── Small screens & motion ─────────────────────────────────────────────── */

@media (max-width: 860px) {
  .specs li { grid-template-columns: 1fr auto !important; }
  .feature .inner { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 1fr auto; }
  .specs .what { grid-column: 1 / -1; grid-row: 2; }
  .hud .tc { display: none; }
  .doc .perm li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav ul { gap: 18px; }
  .hud { font-size: 11px; }
  .hud > span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero picture img { animation: none; filter: saturate(1.05) contrast(1.06) brightness(0.96); }
  .hud .view .graded { animation: none; opacity: 1; }
  .hud .view .log { animation: none; opacity: 0; }
  .hero picture { animation: none !important; }
}
