/* ==========================================================================
   plurafusion.com — the site's design system.
   Opal (OmniBlick/assets/design/tokens.json) carried onto the web:
   a dark gallery where real data glows, Opal paper for reading, the opal
   light reserved for the moment many things become one.
   ========================================================================== */

@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* the ground: light Opal paper by default */
  --bg: #f6f9fa;
  --bg-2: #eef4f6;
  --bg-3: #e6eef1;
  --bg-4: #dce7eb;
  --line: rgba(23, 49, 61, 0.1);
  --line-2: rgba(23, 49, 61, 0.2);
  --text: #17313d;
  --text-2: #3e5a66;
  --text-3: #5b7480;
  --accent: #24597d;
  --amber: #946209;
  --mint: #1a7f57;
  --sky: #7ec4ef;
  --lav: #a69cf0;
  --rose: #f0a9cb;
  --veil-rgb: 246, 249, 250;   /* veils over imagery fade to the ground */
  --fg-rgb: 23, 49, 61;        /* hairlines and washes in the text colour */
  --shade-rgb: 23, 49, 61;     /* shadows */
  --shade-k: 0.32;             /* how heavy shadows are on this ground */
  --surface: #ffffff;          /* raised panels: the command palette, the tour frame */
  --surface-2: #f8fbfc;
  --btn-fg: #f2f7f8;
  --btn-bg: #17313d;
  --grain: 0;
  --opal-text: linear-gradient(110deg, #0f8f76 0%, #1e6fb8 34%, #5e52c4 67%, #b0487e 100%);
  color-scheme: light;

  /* the paper (light Opal) */
  --paper: #fafcfd;
  --paper-2: #eef4f6;
  --paper-3: #e4eef2;
  --ink: #17313d;
  --ink-2: #3e5a66;
  --ink-3: #5b7480;
  --accent-ink: #24597d;
  --paper-line: rgba(23, 49, 61, 0.12);

  /* opal light */
  --opal-rim: linear-gradient(110deg, #7fd9bd 0%, #7ec4ef 25%, #a69cf0 50%, #f0a9cb 75%, #7fd9bd 100%);
  --opal-soft: linear-gradient(110deg, #a8e6d1 0%, #a9d8f5 27%, #c9c4f2 53%, #f7d6e6 77%, #a8e6d1 100%);
  --opal-deep: linear-gradient(110deg, #0f8f76 0%, #1e6fb8 34%, #5e52c4 67%, #b0487e 100%);

  /* shape and motion (tokens.json) */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 18px;
  --r-4: 28px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-open: cubic-bezier(0.3, 0, 0.1, 1);
  --t-fast: 160ms;
  --t-panel: 240ms;
  --t-slow: 450ms;
  --t-reveal: 760ms;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

}

/* the gallery: dark, chosen in the nav, and the scope of any section or viewport that shows data on black */
:root[data-theme="dark"], .theme-dark, .section--dark, .explorer, .story,
.nav-over-dark .nav:not(.is-solid):not(.is-open) {
  --bg: #0b0c0d;
  --bg-2: #111314;
  --bg-3: #181a1b;
  --bg-4: #212425;
  --line: rgba(236, 238, 239, 0.09);
  --line-2: rgba(236, 238, 239, 0.18);
  --text: #eceeef;
  --text-2: #bcc3c6;
  --text-3: #8f979b;
  --accent: #a9cdf0;
  --amber: #e3b45e;
  --mint: #7fd9bd;
  --veil-rgb: 11, 12, 13;
  --fg-rgb: 236, 238, 239;
  --shade-rgb: 0, 0, 0;
  --shade-k: 1;
  --surface: #15181a;
  --surface-2: #0f1112;
  --btn-fg: #0b1014;
  --btn-bg: #eceeef;
  --grain: 0.05;
  --opal-text: linear-gradient(110deg, #a8e6d1 0%, #a9d8f5 27%, #c9c4f2 53%, #f7d6e6 77%, #a8e6d1 100%);
  color-scheme: dark;
  color: var(--text); /* an inherited colour is computed once; a scope has to say it again */
}
/* a scope that stays light whatever the theme (the Design sheets) */
.theme-light {
  --bg: #f6f9fa; --bg-2: #eef4f6; --bg-3: #e6eef1; --bg-4: #dce7eb;
  --line: rgba(23, 49, 61, 0.1); --line-2: rgba(23, 49, 61, 0.2);
  --text: #17313d; --text-2: #3e5a66; --text-3: #5b7480;
  --accent: #24597d; --amber: #946209; --mint: #1a7f57;
  --veil-rgb: 246, 249, 250; --fg-rgb: 23, 49, 61; --shade-rgb: 23, 49, 61; --shade-k: 0.32;
  --surface: #ffffff; --surface-2: #f8fbfc; --btn-fg: #f2f7f8; --btn-bg: #17313d; --grain: 0;
  color-scheme: light;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; } /* the width/height attributes reserve the shape; CSS sizes it (aspect-ratio rules apply) */
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(169, 205, 240, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* film grain: the whole site sits under one quiet layer of it */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 23px -41px; }
  60% { background-position: -19px -13px; } 80% { background-position: 41px 33px; } 100% { background-position: 0 0; }
}
html { overflow-x: clip; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8.2vw, 136px);
  line-height: 0.93;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display strong, .h2 strong, .h3 strong { font-weight: 600; }
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h4 { font-family: var(--font-text); font-weight: 600; font-size: 19px; line-height: 1.35; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.body { color: var(--text-2); text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-3); line-height: 1.6; }
.opal-text {
  background: var(--opal-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: opal-drift 9s linear infinite;
}
@keyframes opal-drift { to { background-position: 200% 0; } }
.amber { color: var(--amber); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 10vw, 160px); }
.section--tight { padding-block: clamp(72px, 9vw, 140px); }
.section--paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.section--paper .lead, .section--paper .body { color: var(--ink-2); }
.section--paper .mono { color: var(--ink-3); }
.section--paper .eyebrow { color: var(--accent-ink); }
.section--paper2 { background: var(--paper-3); color: var(--ink); color-scheme: light; }
.section--paper2 .lead, .section--paper2 .body { color: var(--ink-2); }
.section--paper2 .mono { color: var(--ink-3); }
.section--paper2 .eyebrow { color: var(--accent-ink); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 24px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 16px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(32px, 5vw, 96px); align-items: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); gap: var(--gap, 16px); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.head-row > .lead { margin-bottom: 0.4em; }
.spacer { height: clamp(40px, 6vw, 80px); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(var(--veil-rgb), 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.005em; }
.brand img { width: 34px; height: 34px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); font-size: 15px; color: var(--text-2); }
.nav__links a { position: relative; padding-block: 8px; transition: color var(--t-fast) var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--opal-rim); transform: scaleX(0); transform-origin: left; transition: transform var(--t-panel) var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 14px; }
.nav__signin { font-size: 14.5px; font-weight: 600; color: var(--text-2); text-decoration: none; padding: 8px 4px; border-radius: 8px; transition: color var(--t-fast) var(--ease); }
.nav__signin:hover { color: var(--text); }
.nav__signin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__theme { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--text-2); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.nav__theme:hover { color: var(--text); border-color: var(--line-2); }
.nav__theme svg { width: 18px; height: 18px; }
.nav__theme .i-sun { display: none; }
:root[data-theme="dark"] .nav__theme .i-sun { display: block; }
:root[data-theme="dark"] .nav__theme .i-moon { display: none; }
.nav__lang { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; }
.nav__menu span, .nav__menu span::before, .nav__menu span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform var(--t-panel) var(--ease); }
.nav__menu span::before, .nav__menu span::after { content: ""; position: absolute; left: 0; }
.nav__menu span::before { top: -6px; } .nav__menu span::after { top: 6px; }
.nav.is-open .nav__menu span { background: transparent; }
.nav.is-open .nav__menu span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__menu span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav.is-open { background: rgba(var(--veil-rgb), 0.96); height: auto; min-height: 100svh; align-items: flex-start; padding-top: 12px; }
  .nav.is-open .nav__inner { flex-wrap: wrap; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: flex-start; width: 100%; order: 3; gap: 4px; padding-top: 32px; font-family: var(--font-display); font-size: 34px; font-weight: 300; color: var(--text); }
}
@media (max-width: 560px) { .nav__end .btn, .nav__end .nav__signin { display: none; } .nav.is-open .nav__end .btn, .nav.is-open .nav__end .nav__signin { display: inline-flex; } }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: var(--r-1);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  transition: transform var(--t-fast) var(--ease), background var(--t-panel) var(--ease), border-color var(--t-panel) var(--ease), color var(--t-panel) var(--ease);
  isolation: isolate;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn--ghost:hover { border-color: rgba(var(--fg-rgb), 0.42); background: rgba(var(--fg-rgb), 0.04); }
.btn--primary {
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box, var(--opal-rim) border-box;
  background-size: 100% 100%, 220% 100%;
  animation: rim-drift 7s linear infinite;
}
.btn--primary::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--opal-rim); background-size: 220% 100%;
  filter: blur(14px); opacity: 0; transition: opacity var(--t-slow) var(--ease);
  animation: rim-drift 7s linear infinite;
}
.btn--primary:hover::before { opacity: 0.55; }
@keyframes rim-drift { to { background-position: 0 0, 220% 0; } }
.section--paper .btn--ghost, .section--paper2 .btn--ghost { color: var(--ink); border-color: rgba(23, 49, 61, 0.22); }
.section--paper .btn--ghost:hover, .section--paper2 .btn--ghost:hover { border-color: rgba(23, 49, 61, 0.45); background: rgba(23, 49, 61, 0.03); }
.section--paper .btn--primary, .section--paper2 .btn--primary { color: #eaf6f4; background: linear-gradient(#17313d, #17313d) padding-box, var(--opal-rim) border-box; background-size: 100% 100%, 220% 100%; }
.btn .arrow { transition: transform var(--t-panel) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.section--paper .link-arrow, .section--paper2 .link-arrow { color: var(--accent-ink); }
.link-arrow span { transition: transform var(--t-panel) var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- chips, tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
}
.chip--preview { color: var(--amber); border-color: rgba(227, 180, 94, 0.4); }
.chip--live { color: var(--mint); border-color: rgba(127, 217, 189, 0.4); }
.chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.section--paper .chip, .section--paper2 .chip { color: var(--ink-2); border-color: var(--paper-line); }
.section--paper .chip--preview, .section--paper2 .chip--preview { color: #946209; border-color: rgba(148, 98, 9, 0.35); }

/* ---------- glass and media ---------- */
.glass {
  position: relative;
  border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -40px rgba(var(--shade-rgb), calc(0.8 * var(--shade-k)));
}
.section--paper .glass, .section--paper2 .glass {
  background: #ffffff;
  border-color: var(--paper-line);
  box-shadow: 0 0 0 1px rgba(23, 49, 61, 0.04), 0 1px 2px rgba(23, 49, 61, 0.05), 0 26px 50px -32px rgba(23, 49, 61, 0.34);
}
.media {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media__cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: rgba(236, 238, 239, 0.9); /* always over imagery */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.figure-cap { margin-top: 12px; }
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--bg-3) 0 14px, var(--bg-4) 14px 28px);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
}

/* ---------- reveal motion (driven by site.js; static without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.split-line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.shot [data-reveal], .shot [data-split] .split-line > span, .shot .story__step { transition: none !important; }
.split-line > span { display: inline-block; }
.js [data-split] .split-line > span { transform: translate3d(0, 105%, 0); }
.js [data-split].is-in .split-line > span { transform: none; transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: clip; background: radial-gradient(120% 90% at 70% 40%, var(--bg-2) 0%, var(--bg) 60%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--veil-rgb), 0.78) 0%, rgba(var(--veil-rgb), 0.25) 46%, rgba(var(--veil-rgb), 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(var(--veil-rgb), 0) 28%); }
.hero__content { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(56px, 9vh, 120px); pointer-events: none; }
.hero__content .wrap { pointer-events: auto; }
.hero__copy { max-width: 980px; display: flex; flex-direction: column; gap: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__readout {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 4vh, 40px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.03em; pointer-events: none;
}
.hero__readout b { color: var(--text-2); font-weight: 400; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--line-2), transparent); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--opal-rim); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
@media (max-width: 760px) { .hero__readout { display: none; } }

/* ---------- the stage story (pinned) ---------- */
.story { position: relative; }
.story__pin { position: relative; height: 100svh; min-height: 640px; overflow: clip; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--veil-rgb), 0.9) 0%, rgba(var(--veil-rgb), 0.55) 30%, rgba(var(--veil-rgb), 0) 58%), linear-gradient(0deg, rgba(var(--veil-rgb), 0.85) 0%, rgba(var(--veil-rgb), 0) 22%), radial-gradient(70% 60% at 68% 42%, rgba(126, 196, 239, 0.06), transparent 70%); }
.story { background: radial-gradient(120% 90% at 70% 35%, #121a1e 0%, var(--bg) 62%); }
.story__ui { position: absolute; inset: 0; pointer-events: none; }
.story__steps { position: absolute; top: var(--nav-h); bottom: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); right: var(--gutter); }
.story__step { position: absolute; left: 0; top: 50%; width: min(560px, 100%); display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(calc(-50% + 24px)); transition: opacity 600ms var(--ease), transform 600ms var(--ease); pointer-events: none; }
.story__step.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.story__step--hero { top: auto; bottom: clamp(56px, 11vh, 128px); width: min(780px, 100%); gap: 26px; transform: translateY(24px); }
.story__step--hero.is-on { transform: none; }
.story__step--hero .display { font-size: clamp(44px, 6.6vw, 100px); }
.story__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }
.story__stat { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.story__stat b { color: var(--text); font-weight: 400; }
.story__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-2); background: rgba(var(--veil-rgb), 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.story__dot { background: none; border: 0; padding: 4px 0; cursor: pointer; display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); transition: color var(--t-panel) var(--ease); }
.story__dot i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: background var(--t-panel) var(--ease), box-shadow var(--t-panel) var(--ease), border-color var(--t-panel); }
.story__dot.is-on { color: var(--text); }
.story__dot.is-on i { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 12px rgba(127, 217, 189, 0.8); }
.story__photos { position: absolute; right: 16%; top: 20%; width: min(32vw, 460px); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transition: opacity 700ms var(--ease); }
.story__photos.is-on { opacity: 1; }
.story__photos img { position: absolute; width: 72%; border-radius: var(--r-2); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 40px 80px -30px rgba(var(--shade-rgb), calc(0.9 * var(--shade-k))); }
.story__photos img:nth-child(1) { left: 0; top: 18%; transform: rotate(-6deg); }
.story__photos img:nth-child(2) { left: 16%; top: 4%; transform: rotate(3deg); }
.story__photos img:nth-child(3) { left: 28%; top: 26%; transform: rotate(-1deg); }
.hero__scroll { display: none; }
@media (orientation: portrait), (max-width: 900px) {
  .story__rail { display: none; }
  .story__veil { background: linear-gradient(0deg, rgba(var(--veil-rgb), 0.97) 0%, rgba(var(--veil-rgb), 0.9) 38%, rgba(var(--veil-rgb), 0.35) 62%, rgba(var(--veil-rgb), 0) 80%); }
  .hero__readout { display: none; }
}
@media (max-width: 900px) {
  .story__step, .story__step--hero { top: auto; bottom: 48px; transform: translateY(24px); }
  .story__step.is-on, .story__step--hero.is-on { transform: none; }
  .story__photos { right: 6%; top: 12%; width: 64vw; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 20px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: marquee 48s linear infinite; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }
.marquee__track span { display: inline-flex; align-items: center; gap: 46px; }
.marquee__track span::after { content: "◆"; font-size: 7px; color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.job {
  position: relative; display: flex; flex-direction: column; min-height: 520px; border-radius: var(--r-3); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); isolation: isolate;
  transition: transform var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}
.job:hover { transform: translateY(-4px); border-color: var(--line-2); }
.job__media { position: absolute; inset: 0; z-index: -1; }
.job__media img, .job__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity var(--t-slow) var(--ease); }
.job__media video { position: absolute; inset: 0; opacity: 0; }
.job:hover .job__media img { transform: scale(1.04); }
.job:hover .job__media video.is-ready { opacity: 1; }
.job::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--veil-rgb), 0.96) 0%, rgba(var(--veil-rgb), 0.55) 46%, rgba(var(--veil-rgb), 0.05) 75%); }
.job__body { margin-top: auto; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.job__top { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.job h3 { font-family: var(--font-display); font-weight: 300; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.job p { color: var(--text-2); font-size: 16px; }
.job .mono { color: var(--text-3); }
.job__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }

/* ---------- proof / numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); border-top: 1px solid var(--line); }
.number { display: flex; flex-direction: column; gap: 14px; padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); }
.number + .number { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .number + .number { padding-left: 0; border-left: 0; } }
.number__v { font-family: var(--font-display); font-weight: 300; font-size: clamp(54px, 6vw, 92px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.number__v small { font-size: 0.45em; letter-spacing: 0; color: var(--text-3); }
.number p { color: var(--text-2); max-width: 32ch; }

/* ---------- before / after ---------- */
.compare { position: relative; border-radius: var(--r-3); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); user-select: none; touch-action: pan-y; background: var(--bg-3); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--x, 50%)); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 1.5px; background: var(--opal-rim); transform: translateX(-50%); box-shadow: 0 0 16px rgba(169, 205, 240, 0.6); }
.compare__knob {
  position: absolute; top: 50%; left: var(--x, 50%); transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--veil-rgb), 0.6); border: 1.5px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: ew-resize;
}
.compare__label { position: absolute; top: 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(var(--veil-rgb), 0.55); border: 1px solid var(--line-2); }
.compare__label--l { left: 16px; } .compare__label--r { right: 16px; }

/* ---------- feature lists ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--bg); transition: background var(--t-slow) var(--ease); }
.feature:hover { background: var(--bg-2); }
.feature svg.ic { width: 28px; height: 28px; color: var(--accent); }
.feature p { color: var(--text-2); font-size: 15.5px; }
.section--paper .features, .section--paper2 .features { background: var(--paper-line); border-color: var(--paper-line); }
.section--paper .feature, .section--paper2 .feature { background: var(--paper); }
.section--paper .feature:hover, .section--paper2 .feature:hover { background: #fff; }
.section--paper .feature p, .section--paper2 .feature p { color: var(--ink-2); }
.section--paper .feature svg.ic, .section--paper2 .feature svg.ic { color: var(--accent-ink); }

/* ---------- workspaces index ---------- */
.ws-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 40px; }
.ws { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--paper-line); align-items: start; }
.ws svg { width: 30px; height: 30px; color: var(--accent-ink); grid-row: span 2; margin-top: 2px; }
.ws b { font-weight: 600; font-size: 18px; }
.ws span { color: var(--ink-2); font-size: 15.5px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 16px; padding: 30px 26px; }
.price__v { font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__v small { font-family: var(--font-text); font-size: 15px; color: var(--ink-3); letter-spacing: 0; }
.price--featured { background: var(--ink) !important; color: #eaf6f4; border-color: transparent !important; }
.price--featured .mono, .price--featured .price__v small { color: #9fc0cc; }
.price--featured .body { color: #c9dde3; }
.price ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; padding-top: 14px; border-top: 1px solid var(--paper-line); }
.price--featured ul { border-top-color: rgba(234, 246, 244, 0.16); }
.price li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.price li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--opal-rim); }
/* a segmented switch, in the theme of whatever section holds it */
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: var(--r-2); background: rgba(var(--fg-rgb), 0.07); }
.seg button { min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-1); background: transparent; color: var(--text-2); font-size: 15px; transition: background var(--t-fast) var(--ease), color var(--t-fast); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(0.4 * var(--shade-k))); }
.section--paper .seg, .section--paper2 .seg { background: rgba(23, 49, 61, 0.07); }
.section--paper .seg button, .section--paper2 .seg button { color: var(--ink-2); }
.section--paper .seg button[aria-pressed="true"], .section--paper2 .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 49, 61, 0.14); }
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--paper-line); background: #fff; color: var(--ink); font-size: 15px; transition: all var(--t-fast) var(--ease); }
.pick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #eaf6f4; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.input, .select {
  min-height: 50px; padding: 0 16px; border-radius: var(--r-1);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast);
}
.input:focus, .select:focus { outline: none; border-color: var(--sky); background: rgba(255, 255, 255, 0.05); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.check input { width: 20px; height: 20px; accent-color: var(--sky); margin: 1px 0 0; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--text); font-size: 14px; transition: all var(--t-fast) var(--ease); }
.toggle-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--btn-fg); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: clip; text-align: center; }
.cta__mark { width: min(300px, 60vw); margin: 0 auto 8px; }
.cta .lead { margin-inline: auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: var(--text-2); }
.footer__col a:hover { color: var(--text); }
.footer__col .mono { margin-bottom: 4px; }
.footer__legal { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* ---------- page header (inner pages) ---------- */
.pagehead { position: relative; padding-top: calc(var(--nav-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(48px, 7vw, 96px); overflow: clip; }
.pagehead__glow { position: absolute; inset: auto -10% -40% auto; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(126, 196, 239, 0.16), rgba(166, 156, 240, 0.08) 45%, transparent 70%); filter: blur(10px); pointer-events: none; }

/* ---------- steps with media ---------- */
.steps { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); }
.step { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.step:nth-child(even) > :first-child { order: 2; }
@media (max-width: 960px) { .step:nth-child(even) > :first-child { order: 0; } }
.step .media { aspect-ratio: 16 / 10; }

/* ---------- limits box ---------- */
.limits { padding: 32px; border-radius: var(--r-3); border: 1px dashed rgba(227, 180, 94, 0.45); background: rgba(227, 180, 94, 0.04); }
.section--paper .limits { border-color: rgba(148, 98, 9, 0.35); background: rgba(148, 98, 9, 0.04); }

/* ---------- pricing extras ---------- */
.price { transition: box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.price.is-fit { box-shadow: 0 0 0 2px transparent, 0 30px 60px -30px rgba(36, 89, 125, 0.45); transform: translateY(-6px); }
.price.is-fit::after {
  content: "Fits your jobs"; position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; color: #0b1014; background: var(--opal-soft);
}
.price.is-fit::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; background: var(--opal-rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price em { font-style: normal; color: #946209; font-size: 0.9em; }
.price--featured em { color: var(--amber); }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--paper-line); text-align: center; font-weight: 400; }
.cmp thead th { font-weight: 600; background: var(--paper-2); position: sticky; top: 0; }
.cmp tbody th { text-align: left; color: var(--ink); }
.cmp td { color: var(--accent-ink); font-size: 14px; }
.cmp tbody tr:hover { background: rgba(36, 89, 125, 0.04); }
/* on a narrow screen the table scrolls sideways; the row names stay put */
.cmp tbody th, .cmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--paper-line); }
.cmp thead th:first-child { z-index: 2; background: var(--paper-2); }
.faq { display: flex; flex-direction: column; }
.faq__item { display: grid; grid-template-columns: minmax(200px, 0.8fr) 1.2fr; gap: 12px 40px; padding: 26px 0; border-top: 1px solid var(--paper-line); }
.faq__item:last-child { border-bottom: 1px solid var(--paper-line); }
@media (max-width: 720px) { .faq__item { grid-template-columns: 1fr; } }

/* ---------- in action (screen films) ---------- */
.reel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.reel .media { aspect-ratio: 16 / 9; }
.reel__a { grid-column: span 7; } .reel__b { grid-column: span 5; } .reel__c { grid-column: span 4; } .reel__d { grid-column: span 4; } .reel__e { grid-column: span 4; }
@media (max-width: 960px) { .reel__a, .reel__b, .reel__c, .reel__d, .reel__e { grid-column: span 12; } }
.reel figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.media video + .media__live { position: absolute; top: 12px; left: 12px; }

/* ---------- input / task / goal ---------- */
.itg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.itg > div { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; background: var(--bg-2); }
.itg .h3 { font-size: clamp(22px, 2vw, 28px); }

/* ---------- explorer (a live cloud you can recolour) ---------- */
.explorer { position: relative; border-radius: var(--r-4); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(90% 80% at 55% 40%, #142026 0%, #0b0c0d 70%); min-height: clamp(460px, 62vw, 760px); }
.explorer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.explorer__bar { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.explorer__bar > * { pointer-events: auto; }
.explorer .seg { background: rgba(var(--veil-rgb), 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.explorer .seg button { color: var(--text-2); }
.explorer .seg button[aria-pressed="true"] { background: rgba(var(--fg-rgb), 0.92); color: #0b1014; }
.explorer__legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-2); background: rgba(var(--veil-rgb), 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); font-size: 13px; min-width: 220px; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.explorer__legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; color: var(--text-2); }
.explorer__legend i { width: 10px; height: 10px; border-radius: 3px; }
.explorer__legend b { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--text); }
.explorer:not([data-mode="classes"]) .explorer__legend { opacity: 0; transform: translateY(8px); pointer-events: none; }
.explorer__read { position: absolute; right: 16px; bottom: 16px; text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); line-height: 1.6; pointer-events: none; }
.explorer__read b { color: var(--text-2); font-weight: 400; }
.explorer__hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); padding: 8px 12px; border-radius: 999px; background: rgba(var(--veil-rgb), 0.55); border: 1px solid var(--line); }
@media (max-width: 640px) { .explorer__legend { min-width: 0; font-size: 12px; } .explorer__read { display: none; } .explorer__hint { display: none; } }

/* ==========================================================================
   The instrument sheet — the site's own vocabulary, drawn from survey plans:
   station rules, crop marks, dimension lines, annotations, the command ledger.
   ========================================================================== */

/* station rule: STA 0+120 ─┼──┼──┼─ title ─┼──┼─ coordinates */
.sta { display: grid; grid-template-columns: auto auto 1fr auto; align-items: end; gap: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.sta__k { color: var(--accent); }
.sta__t { color: var(--text); }
.sta__rule {
  height: 11px; align-self: center;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 120px) left bottom / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px) left bottom / 100% 5px no-repeat;
  transform-origin: left center;
}
.js .sta[data-reveal] { opacity: 1; transform: none; }
.js .sta[data-reveal] .sta__rule { transform: scaleX(0); }
.js .sta[data-reveal].is-in .sta__rule { transform: scaleX(1); transition: transform 1.4s var(--ease); }
.section--paper .sta, .section--paper2 .sta { color: var(--ink-3); }
.section--paper .sta__k, .section--paper2 .sta__k { color: var(--accent-ink); }
.section--paper .sta__t, .section--paper2 .sta__t { color: var(--ink); }
.section--paper .sta__rule, .section--paper2 .sta__rule {
  background:
    linear-gradient(var(--paper-line), var(--paper-line)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(23, 49, 61, 0.28) 0 1px, transparent 1px 120px) left bottom / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--paper-line) 0 1px, transparent 1px 24px) left bottom / 100% 5px no-repeat;
}
@media (max-width: 720px) { .sta { grid-template-columns: auto 1fr; } .sta__rule { grid-column: 1 / -1; order: 3; } .sta__c { display: none; } }

/* crop marks around a frame, as on a plotted sheet */
.crop { position: relative; --c: rgba(var(--fg-rgb), 0.4); }
.crop::after {
  content: ""; position: absolute; inset: -12px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px 16px no-repeat;
}
.section--paper .crop, .section--paper2 .crop { --c: rgba(23, 49, 61, 0.35); }

/* dimension line: |←— value —→| */
.dim { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); }
.dim::before, .dim::after { content: ""; height: 9px; border-inline: 1px solid var(--line-2); background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; }
.dim::before { border-right: 0; } .dim::after { border-left: 0; }
.section--paper .dim, .section--paper2 .dim { color: var(--ink-2); }
.section--paper .dim::before, .section--paper .dim::after, .section--paper2 .dim::before, .section--paper2 .dim::after { border-color: rgba(23, 49, 61, 0.3); background-image: linear-gradient(rgba(23, 49, 61, 0.3), rgba(23, 49, 61, 0.3)); }

/* annotation: a note hung off a hairline */
.note { position: relative; padding-left: 22px; border-left: 1px solid var(--line-2); color: var(--text-2); max-width: 48ch; text-wrap: pretty; }
.note::before { content: attr(data-n); position: absolute; left: 22px; top: -1.9em; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }
.note--lg { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; }
.section--paper .note, .section--paper2 .note { border-left-color: rgba(23, 49, 61, 0.28); color: var(--ink-2); }
.section--paper .note::before, .section--paper2 .note::before { color: var(--ink-3); }

/* the command ledger: real command ids, leader dots, what they do */
.ledger { border-top: 1px solid var(--line-2); }
.ledger__row { display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.3fr) minmax(0, 2fr) auto; gap: 8px 28px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background var(--t-panel) var(--ease); }
.ledger__row:hover { background: linear-gradient(90deg, rgba(169, 205, 240, 0.05), transparent 70%); }
.ledger__id { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger__name { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 17px; }
.ledger__name::after { content: ""; flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.ledger__what { color: var(--text-2); font-size: 15.5px; }
.ledger__st { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); white-space: nowrap; }
.ledger__st--pre { color: var(--amber); }
.section--paper .ledger, .section--paper2 .ledger { border-top-color: rgba(23, 49, 61, 0.25); }
.section--paper .ledger__row, .section--paper2 .ledger__row { border-bottom-color: var(--paper-line); }
.section--paper .ledger__id, .section--paper2 .ledger__id { color: var(--accent-ink); }
.section--paper .ledger__what, .section--paper2 .ledger__what { color: var(--ink-2); }
.section--paper .ledger__name::after, .section--paper2 .ledger__name::after { border-bottom-color: rgba(23, 49, 61, 0.25); }
.section--paper .ledger__st, .section--paper2 .ledger__st { color: #1a7f57; }
.section--paper .ledger__st--pre, .section--paper2 .ledger__st--pre { color: #946209; }
/* stacks by the ledger's own width, not the viewport's: a ledger in a half column stacks on a wide screen too */
.ledger { container-type: inline-size; }
@container (max-width: 760px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0; }
  .ledger__id { grid-column: 1 / -1; grid-row: 1; }
  .ledger__name { grid-column: 1; grid-row: 2; }
  .ledger__st { grid-column: 2; grid-row: 2; }
  .ledger__what { grid-column: 1 / -1; grid-row: 3; }
  .ledger__name::after { display: none; }
}

/* illustrations (assets/illus) take four colours from their container: light ink on the dark sections,
   dark ink on paper. --paper is what an illustration paints to occlude, so it is the section's ground. */
[data-svg] { --ink: var(--text); --paper: var(--bg); }
[data-svg] > svg { display: block; width: 100%; height: auto; }
.section--paper [data-svg] { --ink: #17313d; --paper: #fafcfd; --accent: #24597d; --line: #d3e3e8; }
.section--paper2 [data-svg] { --ink: #17313d; --paper: #e4eef2; --accent: #24597d; --line: #c9dce3; }

/* contour texture: the real quarry's 2 m contours behind a section */
.contours { position: absolute; inset: 0; pointer-events: none; opacity: 0.07; background: url("../illus/contours-wietrznia.svg") center / cover no-repeat; mix-blend-mode: screen; }
.section--paper .contours, .section--paper2 .contours { opacity: 0.09; mix-blend-mode: multiply; filter: invert(1) hue-rotate(180deg); }

/* the hero's instrument: a crosshair that reads the ground under the cursor */
.reticle { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity var(--t-panel) var(--ease); }
.reticle.is-on { opacity: 1; }
.reticle__x { position: absolute; width: 34px; height: 34px; left: -17px; top: -17px;
  background: linear-gradient(var(--mint), var(--mint)) center / 1px 100% no-repeat, linear-gradient(var(--mint), var(--mint)) center / 100% 1px no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.reticle__l { position: absolute; left: 22px; top: 10px; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text); text-shadow: 0 1px 6px rgba(var(--shade-rgb), calc(0.9 * var(--shade-k))); }
@media (hover: none) { .reticle { display: none; } }

/* ==========================================================================
   The world (landing page): one scene, every kind of data, a journey through it
   ========================================================================== */
.world { position: relative; background: radial-gradient(80% 60% at 50% 72%, var(--bg-2) 0%, var(--bg) 72%); }
.world__pin { position: relative; height: 100svh; min-height: 640px; overflow: clip; }
.world__pin > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the copy is centred at the top on a clean ground; the form fills the open space below it */
.world__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--veil-rgb), 0.96) 0%, rgba(var(--veil-rgb), 0.82) 26%, rgba(var(--veil-rgb), 0) 48%); }
/* the caption at the foot of the form: name, points, credit — it changes with the form */
.world__cap {
  position: absolute; left: 50%; bottom: clamp(18px, 3.4vh, 40px); width: min(640px, calc(100% - 2 * var(--gutter)));
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; text-align: center; pointer-events: none;
  min-height: 34px; /* two lines, held before the text arrives, so the band above it is measured once */
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
  opacity: 0; transform: translate(-50%, 6px); transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.world__cap.is-on { opacity: 1; transform: translate(-50%, 0); }
.world__cap b { font-weight: 400; color: var(--text); letter-spacing: 0.14em; }
.journey { position: absolute; inset: 0; pointer-events: none; }
.journey__panel {
  position: absolute; left: 50%; top: calc(var(--nav-h) + clamp(20px, 5vh, 64px));
  width: min(720px, calc(100% - 2 * var(--gutter))); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  opacity: 0; transform: translate(-50%, 18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); pointer-events: none;
}
.journey__panel.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.journey__panel--hero { top: calc(var(--nav-h) + clamp(28px, 7vh, 96px)); width: min(1000px, calc(100% - 2 * var(--gutter))); gap: 22px; }
.journey__panel--hero .display { font-size: clamp(40px, 5.4vw, 86px); }
.journey__panel .sta { width: min(520px, 100%); }
.journey__panel .lead { margin-inline: auto; max-width: 52ch; }
.journey__panel .row { justify-content: center; }
.journey__kind { font-size: 17px; color: var(--text-2); }
/* a station's jobs: one quiet line of real command ids */
.journey__jobs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.journey__jobs li { display: inline-flex; gap: 8px; align-items: baseline; }
.journey__jobs code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.journey__jobs span { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 900px) {
  .journey__jobs { display: none; }
}
/* a short landscape screen (a phone on its side): the pin is the screen, the copy says less */
@media (orientation: landscape) and (max-height: 600px) {
  .world__pin { min-height: 0; }
  .journey__panel, .journey__panel--hero { top: calc(var(--nav-h) + 6px); gap: 10px; }
  .journey__live, .journey__kind, .journey__panel--hero .lead, .journey__panel .sta { display: none; }
  .journey__panel--hero .display { font-size: clamp(28px, 8vh, 48px); }
  .journey__panel .h2 { font-size: clamp(24px, 7vh, 36px); }
  .journey__panel .lead { font-size: 14.5px; line-height: 1.45; }
  .journey__panel .btn--lg { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
  .world__cap { display: none; }
}
/* a phone: the hero says less, so the form has room */
@media (max-width: 560px) {
  .journey__live { display: none; }
  .journey__panel--hero { gap: 16px; }
  .journey__panel--hero .lead { font-size: 16px; }
  .journey__panel .btn--lg { min-height: 48px; padding: 0 20px; font-size: 15.5px; }
}

/* the hero's ground: the quarry's real 2 m contours, faint, like the sheet a survey is drawn on */
.world__ground { position: absolute; inset: 0; pointer-events: none; background: url("../illus/contours-wietrznia.svg") center 60% / cover no-repeat;
  opacity: 0.13; filter: invert(1) hue-rotate(180deg); mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(70% 62% at 50% 64%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%); mask-image: radial-gradient(70% 62% at 50% 64%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%); }
:root[data-theme="dark"] .world__ground { filter: none; mix-blend-mode: screen; opacity: 0.1; }
/* on a wide screen the form is framed: the index of forms on the left, the reading of the one on screen on the right */
.world__index, .world__read { display: none; }
@media (min-width: 1100px) and (min-height: 640px) {
  .world__index { display: flex; position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); top: var(--band-mid, 64%); transform: translateY(-50%);
    flex-direction: column; gap: 2px; margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--line-2); }
  .world__index button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 0; border: 0; background: none; text-align: left;
    font-size: 14.5px; color: var(--text-3); transition: color var(--t-panel) var(--ease); position: relative; }
  .world__index button span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text-3); opacity: 0.8; }
  .world__index button:hover { color: var(--text); }
  .world__index button.is-on { color: var(--text); }
  .world__index button.is-on::before { content: ""; position: absolute; left: -15.5px; top: 8px; bottom: 8px; width: 2px; background: var(--opal-rim); border-radius: 2px; }
  .world__read { display: flex; position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); top: var(--band-mid, 64%); transform: translateY(-50%);
    flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; width: 250px; padding-right: 14px; border-right: 1px solid var(--line-2);
    opacity: 0; transition: opacity 500ms var(--ease); }
  .world__read.is-on { opacity: 1; }
  .world__read .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
  .world__read b { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--text); line-height: 1.15; }
  .world__read span { font-size: 14px; color: var(--text-2); line-height: 1.45; }
  .world__read .c { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
  .world__cap { display: none; }
}
/* pictures from the application, drifting by slowly; a hover holds them */
.reel-band { overflow: hidden; padding-block: clamp(36px, 5vw, 72px) 0; }
.reel-band__track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; animation: reel-drift 90s linear infinite; }
.reel-band:hover .reel-band__track { animation-play-state: paused; }
.reel-band figure { flex: none; width: clamp(240px, 26vw, 400px); display: flex; flex-direction: column; gap: 8px; }
.reel-band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-2); background: var(--bg-3); }
.reel-band figcaption { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
@keyframes reel-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel-band { overflow-x: auto; } .reel-band__track { animation: none; } }

/* facts: a large measured number, what it measures, and where it came from */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0; border-top: 1.5px solid var(--text); }
.fact { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line-2); }
.fact b { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.fact span { font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.fact i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); }
.section--paper .fact b, .section--paper2 .fact b { color: var(--ink); }
.section--paper .fact span, .section--paper2 .fact span { color: var(--ink-2); }
.section--paper .fact i, .section--paper2 .fact i { color: var(--ink-3); }
.section--paper .facts, .section--paper2 .facts { border-top-color: var(--ink); }
.section--paper .fact + .fact, .section--paper2 .fact + .fact { border-left-color: rgba(23, 49, 61, 0.18); }
@media (max-width: 620px) { .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); } }
/* versus: three columns, read across */
.vs { border-top: 1.5px solid var(--ink); }
.vs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.4fr); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--paper-line); align-items: baseline; }
.vs__row span:first-child { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.vs__row span:nth-child(2) { color: var(--accent-ink); font-size: 15.5px; }
.vs__row span:nth-child(3) { color: var(--ink-2); font-size: 15.5px; }
.vs__row--head span { font-family: var(--font-mono) !important; font-weight: 400 !important; font-size: 11px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3) !important; }
@media (max-width: 720px) { .vs__row { grid-template-columns: 1fr; gap: 4px; } .vs__row--head { display: none; } }

/* ==========================================================================
   The cover sheet (index.html): a centred title, a framed live viewport with a sheet list and a title block
   ========================================================================== */
.cover { padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 104px); }
.cover .display { font-size: clamp(40px, 5.6vw, 88px); }
.viewport { padding: clamp(8px, 1vw, 14px); }
.viewport__stage { position: relative; height: clamp(420px, 62vh, 640px); }
.viewport__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the sheet list: every form in the viewport, the one on screen marked; click to see another */
.viewport__index { position: absolute; left: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px solid rgba(23, 49, 61, 0.25); display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.viewport__index button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 0; border: 0; background: none; text-align: left; font-size: 14.5px; color: var(--ink-3); transition: color var(--t-panel) var(--ease); }
.viewport__index button span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3); opacity: 0.8; }
.viewport__index button:hover, .viewport__index button.is-on { color: var(--ink); }
.viewport__index button.is-on::before { content: ""; position: absolute; left: -15.5px; top: 7px; bottom: 7px; width: 2px; background: var(--ink); }
/* the title block, as on a drawing sheet */
.tblock { position: absolute; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); width: 300px; margin: 0; border: 1.5px solid var(--ink); background: rgba(250, 252, 253, 0.92); z-index: 1; opacity: 0; transition: opacity 400ms var(--ease); }
.tblock.is-on { opacity: 1; }
.tblock div { display: grid; grid-template-columns: 70px minmax(0, 1fr); border-top: 0.75px solid rgba(23, 49, 61, 0.35); }
.tblock div:first-child { border-top: 0; }
.tblock dt { padding: 6px 8px; border-right: 0.75px solid rgba(23, 49, 61, 0.35); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tblock dd { margin: 0; padding: 6px 10px; font-size: 13px; line-height: 1.35; color: var(--ink); }
.tblock div:nth-child(2) dd { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
@media (max-width: 900px) {
  .viewport__stage { height: auto; display: flex; flex-direction: column; }
  .viewport__stage canvas { position: relative; inset: auto; height: min(78vw, 460px); }
  .viewport__index { display: none; }
  .tblock { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 10px; }
}
/* a linked plate: the whole plate goes to its sheet */
.plate--link { color: inherit; text-decoration: none; }
.plate--link h3 { transition: color var(--t-panel) var(--ease); }
.plate--link:hover h3 { color: var(--accent-ink); }
/* the rendered gallery: one large frame, two beside it */
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(14px, 1.6vw, 22px); }
.gallery__main { grid-row: span 2; display: flex; flex-direction: column; }
.gallery__main img { flex: 1; min-height: 0; }
.gallery figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__main img { aspect-ratio: auto; }
.gallery figcaption { padding-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.gallery figcaption b { font-weight: 400; color: var(--ink); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .gallery__main { grid-row: auto; } .gallery__main img { aspect-ratio: 16 / 9; } }

/* a centred section head: the heading, then what it means, then where to go */
.head-center { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.head-center .lead { max-width: 58ch; margin-inline: auto; }
.center-figure { width: min(1040px, 100%); margin-inline: auto; }
.center-self { align-self: center; }
.cmdk--center { width: min(820px, 100%); margin-inline: auto; }

/* the atlas teaser: the real command list, searchable */
.atlas-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cmdk { border-radius: var(--r-3); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: 0 40px 80px -40px rgba(var(--shade-rgb), calc(0.9 * var(--shade-k))), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; }
.cmdk__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk__bar svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.cmdk__bar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 18px; }
.cmdk__bar kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; }
.cmdk ul { list-style: none; margin: 0; padding: 8px; min-height: 290px; }
.cmdk li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: baseline; padding: 11px 12px; border-radius: var(--r-1); }
.cmdk li:first-child { background: rgba(169, 205, 240, 0.08); }
.cmdk code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk li span { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk li em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.cmdk li.empty { display: block; color: var(--text-3); font-size: 14.5px; }
@media (max-width: 560px) { .cmdk li { grid-template-columns: 1fr; gap: 2px; } .cmdk li em { display: none; } }

/* editions as a price ruler, not four cards */
.ruler { position: relative; padding-top: 24px; container-type: inline-size; }
/* major ticks every €250 (10 %), minor every €50 (2 %) */
.ruler__line { position: relative; height: 18px; background:
  linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1.5px no-repeat,
  repeating-linear-gradient(90deg, rgba(23, 49, 61, 0.55) 0 1px, transparent 1px 10%) left bottom / 100% 18px no-repeat,
  repeating-linear-gradient(90deg, rgba(23, 49, 61, 0.25) 0 1px, transparent 1px 2%) left bottom / 100% 8px no-repeat; }
.ruler__scale { position: relative; height: 14px; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--ink-3); }
.ruler__scale span { position: absolute; top: 0; left: var(--at); transform: translateX(-50%); white-space: nowrap; }
.ruler__scale span:first-child { transform: none; }
.ruler__scale span:last-child { transform: translateX(-100%); }
.ruler__stops { position: relative; height: 230px; }
.ruler__stop { position: absolute; top: 0; left: var(--at); transform: translateX(-0.75px); display: flex; flex-direction: column; gap: 6px; padding: 18px 0 0 14px; border-left: 1.5px solid var(--ink); width: min(210px, 19cqi); } /* 19 %: Geo (59.6 %) and Ultimate (99.6 %, reading left) never meet */
.ruler__stop::before { content: ""; position: absolute; left: -6px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.ruler__stop b { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.ruler__stop .price__v { font-size: 38px; }
.ruler__stop p { font-size: 14.5px; color: var(--ink-2); }
.ruler__stop--geo::before { background: var(--opal-rim); border-color: transparent; width: 12px; height: 12px; left: -7px; top: -7px; }
/* the last stop sits at its true place near the end of the rule and reads leftwards from it */
.ruler__stop--end { left: auto; right: calc(100% - var(--at)); transform: translateX(0.75px); padding: 18px 14px 0 0; border-left: 0; border-right: 1.5px solid var(--ink); align-items: flex-end; text-align: right; }
.ruler__stop--end::before { left: auto; right: -6px; }
@container (max-width: 900px) {
  .ruler__line, .ruler__scale { display: none; }
  .ruler__stops { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px 20px; }
  .ruler__stop, .ruler__stop--end { position: relative; left: 0; right: auto; transform: none; width: auto; padding: 18px 0 0 14px; border-right: 0; border-left: 1.5px solid var(--ink); align-items: flex-start; text-align: left; }
  .ruler__stop--end::before { left: -6px; right: auto; }
}

/* workspace tour: the application's own frame, switched by its own chips */
.tour { border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.tour__bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tour__bar button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--text-2); font-size: 13.5px; }
.tour__bar button[aria-pressed="true"] { border-color: var(--line-2); background: rgba(var(--fg-rgb), 0.08); color: var(--text); }
.tour__view { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); }
.tour__view img, .tour__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 500ms var(--ease); }
.tour__view .is-on { opacity: 1; }
.tour__cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.tour__cap b { color: var(--text); font-weight: 400; }

/* ==========================================================================
   Paper pages (Design): the nav reads in ink over paper, and its glass turns light
   ========================================================================== */
.page--paper { background: var(--paper); }
/* a dark section on a paper page has to bring its own ground */
.section--dark { background: var(--bg); color: var(--text); color-scheme: dark; }
.page--paper .nav:not(.is-open) { color: var(--ink); }
.page--paper .nav:not(.is-open) .nav__links { color: var(--ink-2); }
.page--paper .nav:not(.is-open) .nav__links a:hover, .page--paper .nav:not(.is-open) .nav__links a[aria-current="page"] { color: var(--ink); }
.page--paper .nav:not(.is-open) .nav__lang { color: var(--ink-3); }
.page--paper .nav:not(.is-open) .nav__menu { border-color: rgba(23, 49, 61, 0.22); }
.page--paper .nav:not(.is-open) .nav__menu span, .page--paper .nav:not(.is-open) .nav__menu span::before, .page--paper .nav:not(.is-open) .nav__menu span::after { background: var(--ink); }
.page--paper .nav:not(.is-open) .btn--primary { color: #eaf6f4; background: linear-gradient(#17313d, #17313d) padding-box, var(--opal-rim) border-box; background-size: 100% 100%, 220% 100%; }
.page--paper .nav.is-solid:not(.is-open) { background: rgba(250, 252, 253, 0.8); border-bottom-color: var(--paper-line); }

/* ==========================================================================
   Design (design.html): a drafting sheet — a 24/120 px grid, frames, title blocks, plates
   ========================================================================== */
.sheet { position: relative; isolation: isolate; }
.sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 49, 61, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 49, 61, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(23, 49, 61, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 49, 61, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.dhead { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px)); padding-bottom: clamp(56px, 7vw, 112px); }
.dhead__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 4.5vw, 72px); align-items: center; }
.dhead__grid > .stack { min-width: 0; }
@media (max-width: 1060px) { .dhead__grid { grid-template-columns: minmax(0, 1fr); } }
.frame { position: relative; border: 1.5px solid var(--ink); padding: clamp(8px, 1.2vw, 16px); background: rgba(250, 252, 253, 0.72); }
.frame::after { content: ""; position: absolute; inset: 5px; border: 0.75px solid rgba(23, 49, 61, 0.35); pointer-events: none; }
.frame__tag { max-width: calc(100% - 36px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: absolute; top: -10px; left: 18px; padding: 0 8px; background: var(--paper); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); z-index: 1; }
.counts { display: flex; flex-wrap: wrap; gap: 18px 36px; padding-top: 8px; border-top: 1.5px solid var(--ink); }
.counts div { display: flex; flex-direction: column; gap: 2px; }
.counts b { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.counts span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.plate { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 22px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: rgba(250, 252, 253, 0.6); transition: background var(--t-panel) var(--ease); }
.plate:hover { background: #fff; }
.plate__no { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plate__fig { aspect-ratio: 320 / 220; margin: 4px -4px 6px; }
.plate h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.005em; }
.plate code { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.plate p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.cmdline { border-radius: var(--r-2); background: #0f1214; color: var(--text); font-family: var(--font-mono); font-size: 13.5px; overflow: hidden; border: 1px solid #1d2326; box-shadow: 0 30px 60px -36px rgba(23, 49, 61, 0.6); }
.cmdline__log { padding: 16px 18px 6px; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: var(--text-3); }
.cmdline__log p { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdline__log b { color: var(--accent); font-weight: 400; }
.cmdline__log i { font-style: normal; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.cmdline__in { display: flex; gap: 10px; padding: 12px 18px 14px; border-top: 1px solid #1d2326; color: var(--text); }
.cmdline__in span:first-child { color: var(--text-3); }
.cmdline__caret { display: inline-block; width: 8px; height: 1.15em; background: var(--mint); vertical-align: -0.2em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* readings: measured numbers, each with what it measured */
.readings { display: flex; flex-wrap: wrap; gap: 18px clamp(28px, 4vw, 56px); padding-top: 14px; border-top: 1px solid var(--line-2); }
.readings div { display: flex; flex-direction: column; gap: 4px; }
.readings b { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.readings span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); max-width: 26ch; }
.section--paper .readings, .section--paper2 .readings { border-top-color: rgba(23, 49, 61, 0.25); }
.section--paper .readings b, .section--paper2 .readings b { color: var(--ink); }
.section--paper .readings span, .section--paper2 .readings span { color: var(--ink-3); }

/* ==========================================================================
   Present (present.html): the screening room — a monitor, a slate, an edit timeline
   ========================================================================== */
.reel-player { display: flex; flex-direction: column; gap: 14px; }
.reel-player__monitor { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-2); overflow: hidden; background: #000; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9); }
.reel-player__monitor video { width: 100%; height: 100%; object-fit: cover; }
.reel-player__slate { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 238, 239, 0.92); background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.reel-player__slate span:last-child { font-variant-numeric: tabular-nums; color: var(--mint); }
.reel-player__bar { display: flex; gap: 12px; align-items: stretch; }
.reel-player__play { flex: none; width: 52px; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); display: grid; place-items: center; }
.reel-player__play svg { width: 20px; height: 20px; fill: currentColor; }
.reel-player__play .i-play, .reel-player.is-paused .reel-player__play .i-pause { display: none; }
.reel-player.is-paused .reel-player__play .i-play { display: block; }
.reel-player__note { min-height: 3.2em; max-width: 90ch; }
.edl { position: relative; flex: 1; min-width: 0; display: flex; gap: 3px; height: 64px; }
.edl__clip { position: relative; flex: 0 0 calc(var(--w) - 3px); min-width: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; padding: 0; background: var(--bg-3); text-align: left; opacity: 0.55; transition: opacity var(--t-panel) var(--ease), border-color var(--t-panel) var(--ease); }
.edl__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edl__clip span { position: absolute; left: 6px; right: 6px; bottom: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #eceeef; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edl__clip:hover, .edl__clip.is-on { opacity: 1; }
.edl__clip.is-on { border-color: var(--mint); }
.edl__head { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 10px var(--mint); pointer-events: none; }
@media (max-width: 640px) { .edl { height: 46px; } .edl__clip span { display: none; } }

/* the quality ladder: four steps, each a plate a little higher than the last */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: end; margin: 0; padding: 0; }
.ladder li { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 24px; min-height: calc(150px + var(--k) * 46px); border-top: 1.5px solid var(--ink); border-left: 1px solid rgba(23, 49, 61, 0.2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)); }
.ladder li:first-child { border-left: 0; }
.ladder code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-ink); }
.ladder b { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); }
.ladder span { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 820px) { .ladder { grid-template-columns: 1fr 1fr; row-gap: 24px; } .ladder li { min-height: 0; } .ladder li:nth-child(3) { border-left: 0; } }
@media (max-width: 460px) { .ladder { grid-template-columns: 1fr; } .ladder li { border-left: 0; } }

/* ==========================================================================
   Share (share.html): a status board in three columns, a wall of formats
   ========================================================================== */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 1.5px solid var(--ink); }
.board__col { display: flex; flex-direction: column; gap: 14px; padding: 22px clamp(16px, 2vw, 28px) 8px 0; }
.board__col + .board__col { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid rgba(23, 49, 61, 0.18); }
.board h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.board ul { display: flex; flex-direction: column; gap: 18px; }
.board li { display: flex; flex-direction: column; gap: 4px; }
.board li b { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.board li span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--now { background: #1a7f57; box-shadow: 0 0 0 3px rgba(26, 127, 87, 0.16); }
.dot--next { background: #24597d; box-shadow: 0 0 0 3px rgba(36, 89, 125, 0.16); }
.dot--later { background: transparent; border: 1.5px solid #8a9aa2; }
@media (max-width: 700px) { .board__col + .board__col { padding-left: 0; border-left: 0; border-top: 1px solid rgba(23, 49, 61, 0.18); } }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.formats > div { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.formats__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.formats p { font-family: var(--font-display); font-weight: 300; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; color: var(--text); }

/* Stereo (stereo.html): a real side-by-side frame, shown three ways */
.stereo-view { display: flex; flex-direction: column; gap: 14px; }
.stereo-view canvas { width: 100%; height: auto; border-radius: var(--r-2); background: #000; }
.stereo-view[data-mode="anaglyph"] canvas { width: min(100%, 860px); align-self: center; }
.stereo-view .seg { align-self: flex-start; }
.stereo-view .mono { color: var(--text-3); }

/* ==========================================================================
   Photos to Twin (twin.html): image-heavy — a sequence, a full bleed, a contact sheet
   ========================================================================== */
.seq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.seq figure { display: flex; flex-direction: column; gap: 12px; }
.seq img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-2); background: var(--bg-3); }
.seq figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; }
.seq figcaption b { grid-row: span 2; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--accent); }
.seq figcaption span { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.seq figcaption i { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
@media (max-width: 720px) { .seq { grid-template-columns: 1fr; } }
.bleed { position: relative; margin: 0; }
.bleed img { width: 100%; height: min(86vh, 58vw); object-fit: cover; }
.bleed figcaption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; color: rgba(236, 238, 239, 0.92); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
@media (max-width: 720px) { .bleed img { height: 62vw; } .bleed figcaption { position: static; padding: 12px var(--gutter) 0; color: var(--text-3); text-shadow: none; } }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); padding: clamp(12px, 1.6vw, 20px); border: 1.5px solid var(--ink); background: #fff; }
.contact figure { display: flex; flex-direction: column; gap: 8px; }
.contact img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr 1fr; } .contact figure:last-child { display: none; } }
.formats--paper { border-top-color: rgba(23, 49, 61, 0.25); }
.formats--paper > div { border-bottom-color: var(--paper-line); }
.formats--paper .formats__k { color: var(--ink-3); }
.formats--paper p { color: var(--ink); }
.formats__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.formats__links .link-arrow { font-family: var(--font-text); font-size: 17px; }

/* the footer on a phone: the brand across, the link columns two by two */
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__grid > .footer__col:first-child { grid-column: 1 / -1; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-split] .split-line > span { opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
}
