/* ============================================================
   rapive — global stylesheet
   tokens ported verbatim from design_handoff_rapive/tokens/
   ============================================================ */

/* ---- self-hosted webfonts (variable) ---- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/spline-sans-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/spline-sans-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens: color (warm monochrome) ---- */
:root {
  --ink-1000: #0d0d0c;
  --ink-900: #141414;
  --ink-700: #2e2c29;
  --ink-500: #55524c;
  --ink-400: #726e66;
  --ink-300: #8a877f;
  --ink-200: #b8b4ac;
  --ink-100: #d6d3cd;

  --paper-100: #e8e6e1;
  --paper-50: #f3f1ec;
  --paper-0: #fbfaf8;
  --white: #ffffff;

  --fn-error: oklch(0.55 0.12 25);
  --fn-success: oklch(0.55 0.12 155);
  --fn-warning: oklch(0.62 0.12 80);
  --fn-error-bg: oklch(0.95 0.02 25);
  --fn-success-bg: oklch(0.95 0.02 155);
  --fn-warning-bg: oklch(0.95 0.02 80);

  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted: var(--ink-300);
  --text-inverse: var(--paper-0);

  --surface-page: var(--paper-0);
  --surface-raised: var(--white);
  --surface-sunken: var(--paper-50);
  --surface-inverse: var(--ink-900);

  --border-subtle: rgba(20, 20, 20, 0.08);
  --border-strong: rgba(20, 20, 20, 0.22);
  --border-inverse: rgba(251, 250, 248, 0.15);

  --hover-wash: rgba(20, 20, 20, 0.06);
  --press-wash: rgba(20, 20, 20, 0.12);
  --focus-ring: 0 0 0 2px var(--paper-0), 0 0 0 4px rgba(20, 20, 20, 0.45);
  --focus-ring-inverse: 0 0 0 2px var(--ink-900), 0 0 0 4px rgba(251, 250, 248, 0.6);

  /* ---- tokens: type ---- */
  --font-brand: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wordmark-weight: 600;
  --wordmark-tracking: -0.035em;

  --tracking-display: -0.035em;
  --tracking-title: -0.02em;
  --tracking-caption: 0.06em;

  /* ---- tokens: spacing + shape ---- */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px;  --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --radius-full: 999px; --radius-icon: 25%;

  --control-sm: 32px; --control-md: 40px; --control-lg: 48px;
  --hit-target-min: 44px;

  /* ---- tokens: elevation + motion ---- */
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.06);
  --shadow-md: 0 2px 8px rgba(20, 18, 14, 0.08), 0 1px 2px rgba(20, 18, 14, 0.05);
  --shadow-lg: 0 8px 28px rgba(20, 18, 14, 0.12), 0 2px 6px rgba(20, 18, 14, 0.06);

  --motion-fast: 120ms;
  --motion-base: 180ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  /* page rhythm */
  --page-max: 1200px;
  --pad-x: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--ink-900); color: var(--paper-0); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.ink :focus-visible { box-shadow: var(--focus-ring-inverse); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink-900); color: var(--paper-0);
  padding: 12px 20px; border-radius: 0 0 var(--radius-md) 0;
  font-size: 13.5px; font-weight: 500;
}
.skip-link:focus-visible { left: 0; }

.container { max-width: var(--page-max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ============================================================
   type
   ============================================================ */
.display-xl {
  font-family: var(--font-brand); font-weight: 600;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.98; letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.display {
  font-family: var(--font-brand); font-weight: 600;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.02; letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.title {
  font-family: var(--font-brand); font-weight: 600;
  font-size: 28px; line-height: 1.15; letter-spacing: var(--tracking-title);
}
.heading {
  font-family: var(--font-brand); font-weight: 600;
  font-size: 20px; line-height: 1.25; letter-spacing: var(--tracking-title);
}
.lede { font-size: 17px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.small { font-size: 13px; line-height: 1.5; }
.caption {
  font-family: var(--font-ui); font-weight: 500;
  font-size: 11.5px; line-height: 1.4;
  letter-spacing: var(--tracking-caption); text-transform: uppercase;
  color: var(--text-secondary);
}
.mono { font-family: var(--font-mono); font-weight: 400; font-size: 13px; line-height: 1.6; }
.mono-label {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 11px; line-height: 1.4; letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* the square full-stop — ends display headlines that are complete thoughts */
.sq {
  display: inline-block;
  width: 0.145em; height: 0.145em;
  background: currentColor;
  margin-left: 0.13em;
}

/* ============================================================
   wordmark — live type + a css square (never an image)
   ============================================================ */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.13em;
  color: var(--ink-900); line-height: 1;
}
.wordmark .wm-text {
  font-family: var(--font-brand);
  font-weight: var(--wordmark-weight);
  letter-spacing: var(--wordmark-tracking);
  line-height: 1;
}
.wordmark .wm-dot { width: 0.145em; height: 0.145em; background: currentColor; display: block; }
.wordmark--inverse { color: var(--paper-0); }

/* ============================================================
   controls
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 500; font-size: 15px; line-height: 1;
  color: var(--paper-0); background: var(--ink-900);
  padding: 15px 26px; border-radius: var(--radius-md);
  transition: background-color var(--motion-fast) var(--ease-out);
  min-height: var(--hit-target-min);
}
.btn:hover { background: var(--ink-700); }
.btn:active { background: var(--ink-1000); }

.btn--sm { font-size: 13.5px; padding: 10px 18px; min-height: 0; }

.btn--ghost { background: transparent; color: var(--ink-900); padding: 15px 22px; }
.btn--ghost:hover { background: var(--hover-wash); }
.btn--ghost:active { background: var(--press-wash); }

.btn--inverse { background: var(--paper-0); color: var(--ink-900); }
.btn--inverse:hover { background: var(--white); }
.btn--inverse:active { background: var(--paper-100); }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  background: var(--paper-0);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.site-header .wordmark { font-size: 19px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-size: 13.5px; color: var(--ink-500);
  transition: color var(--motion-fast) var(--ease-out);
  padding: 8px 0;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink-900); }

.menu-btn {
  display: none;
  font-size: 13.5px; font-weight: 500; color: var(--ink-900);
  padding: 10px 14px; border-radius: var(--radius-md);
  transition: background-color var(--motion-fast) var(--ease-out);
}
.menu-btn:hover { background: var(--hover-wash); }

.mobile-nav {
  display: none;
  position: fixed; inset: 72px 0 0 0; z-index: 40;
  background: var(--paper-0);
  padding: 48px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-brand); font-weight: 600;
  font-size: 32px; letter-spacing: var(--tracking-title);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav .btn { margin-top: 32px; align-self: flex-start; font-size: 16px; }

/* ============================================================
   sections
   ============================================================ */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--band { padding: 128px 0; }

.ink { background: var(--ink-900); color: var(--paper-0); }
.ink .caption { color: var(--ink-300); }
.ink .lede { color: var(--ink-200); }

.meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}
.ink .meta-row { border-color: var(--border-inverse); }

.caption-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 40px;
}
.ink .caption-row { border-color: var(--border-inverse); }

/* ============================================================
   product cards
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }

.product-card { display: flex; flex-direction: column; gap: 16px; }
.photo { position: relative; display: block; overflow: hidden; background: var(--paper-50); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card .photo { aspect-ratio: 4 / 3; }
.product-card .photo::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(20, 20, 20, 0);
  transition: background-color var(--motion-fast) var(--ease-out);
}
.product-card:hover .photo::after { background: var(--hover-wash); }
.product-card .name { transition: color var(--motion-fast) var(--ease-out); }
.product-card:hover .name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.product-card .card-body { display: flex; flex-direction: column; gap: 6px; }

.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot-sep { width: 4px; height: 4px; background: var(--ink-100); display: inline-block; flex: none; }
.ink .dot-sep { background: var(--ink-500); }

/* striped placeholder for photography not yet supplied */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--paper-100) 0 10px, var(--paper-50) 10px 20px);
}

/* unified photography treatment — warm duotone black-and-white
   ("desaturated warm" per the brand imagery rule). sensor outputs
   (.screen-frame) keep their native palette. */
.photo img, .product-hero img {
  filter: grayscale(1) sepia(0.18) contrast(1.07) brightness(1.01);
}
.product-card .photo img { transition: transform 0.9s var(--ease-out); }
.product-card:hover .photo img { transform: scale(1.025); }

/* ============================================================
   feature columns (ink section)
   ============================================================ */
.feature-col {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--border-inverse);
  padding-top: 20px;
}
.feature-col .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); }
.feature-col .name { font-family: var(--font-brand); font-weight: 600; font-size: 22px; letter-spacing: var(--tracking-title); }
.feature-col p { font-size: 14px; line-height: 1.6; color: var(--ink-200); text-wrap: pretty; }

.paper .feature-col { border-top-color: var(--border-subtle); }
.paper .feature-col p { color: var(--ink-500); }

/* stats */
.stats {
  display: flex; gap: 64px; flex-wrap: wrap;
  border-top: 1px solid var(--border-inverse);
  padding-top: 24px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .value { font-family: var(--font-mono); font-size: 26px; line-height: 1.2; }
.stat .label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); }

/* ============================================================
   hairline rows (journal, retail, timeline, next-product)
   ============================================================ */
.row-line {
  display: flex; align-items: baseline; gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.row-line .when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-300); width: 120px; flex: none; }
.row-line .what {
  font-family: var(--font-brand); font-weight: 600; font-size: 20px;
  letter-spacing: var(--tracking-title);
  transition: color var(--motion-fast) var(--ease-out);
}
.row-line .aside { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); flex: none; }
a.row-line:hover .what { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.ink .row-line { border-color: var(--border-inverse); }

/* ============================================================
   spec table
   ============================================================ */
.spec-table { border-top: 1px solid var(--border-subtle); }
.spec-table .spec-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.spec-table .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-300); }
.spec-table .v { font-family: var(--font-mono); font-size: 13px; color: var(--ink-900); text-align: right; }
.ink .spec-table, .ink .spec-table .spec-row { border-color: var(--border-inverse); }
.ink .spec-table .v { color: var(--paper-0); }

/* ============================================================
   product page
   ============================================================ */
.product-hero { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--paper-50); }
.product-hero img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-50); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

/* screen captures keep native color, framed inside ink */
.screen-frame { background: var(--ink-900); padding: clamp(16px, 4vw, 48px); }
.screen-frame img { width: 100%; }
.screen-frame .frame-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-300);
  margin-top: 14px;
}

.proof-row { display: flex; gap: 64px; flex-wrap: wrap; border-top: 1px solid var(--border-subtle); padding-top: 24px; }

/* ============================================================
   article / prose
   ============================================================ */
.prose { max-width: 640px; }
.prose p { margin: 0 0 1.4em; font-size: 16px; line-height: 1.7; color: var(--ink-700); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-brand); font-weight: 600; font-size: 22px;
  letter-spacing: var(--tracking-title); margin: 2em 0 0.8em;
}
.prose ul { margin: 0 0 1.4em; }
.prose li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  font-size: 16px; line-height: 1.7; color: var(--ink-700);
}
.prose li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; background: var(--ink-900);
}

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--ink-900); color: var(--paper-0); padding: 64px 0 40px; }
.site-footer .footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.site-footer .wordmark { font-size: 17px; }
.footer-cols { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 13px; color: var(--ink-200);
  transition: color var(--motion-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--paper-0); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border-inverse);
  margin-top: 56px; padding-top: 20px;
}
.footer-bottom .legal { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); }
.footer-bottom .end-dot { width: 8px; height: 8px; background: var(--paper-0); display: block; }

/* ============================================================
   motion — page-load fade, 40ms stagger
   ============================================================ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade   { animation: fade-in var(--motion-base) var(--ease-out) both; }
.fade-1 { animation: fade-in var(--motion-base) var(--ease-out) 40ms both; }
.fade-2 { animation: fade-in var(--motion-base) var(--ease-out) 80ms both; }
.fade-3 { animation: fade-in var(--motion-base) var(--ease-out) 120ms both; }
.fade-4 { animation: fade-in var(--motion-base) var(--ease-out) 160ms both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .fade-1, .fade-2, .fade-3, .fade-4 { animation: none; }
  .marquee-track { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   motion layer — night-vision accents, particles, kinetic type
   every effect below is gated behind html.js-motion (added by
   js/motion.js only when JS runs and reduced-motion is off),
   so content is always visible without it.
   ============================================================ */
:root {
  --accent: #b8f04a;          /* phosphor — the color of seeing in the dark */
  --accent-deep: #6f9c2c;     /* phosphor, readable on paper */
  --accent-thermal: #ff8a3d;  /* thermal — reserved for predator x2 */
}

::selection { background: var(--accent); color: var(--ink-900); }

/* film grain — sensor texture over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 70;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* scroll progress — a phosphor hairline */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* particle field host */
.pf-host { position: relative; }
.pf-host > canvas.pf {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; display: block;
}
.pf-host > .container { position: relative; z-index: 1; }

/* scroll reveals */
.js-motion .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js-motion .reveal.in { opacity: 1; transform: none; }

/* kinetic headlines — line mask reveal.
   padding/margin pair gives descenders (g, y, commas) room below the
   tight line box so overflow:hidden never clips them */
.js-motion .mask-line {
  display: block; overflow: hidden;
  padding-bottom: 0.16em; margin-bottom: -0.16em;
}
.js-motion .mask-line .mask-inner {
  display: block; transform: translateY(112%); opacity: 0.001;
  transition: transform 0.9s var(--ease-out), opacity 0.5s var(--ease-out);
}
.js-motion .masked.in .mask-inner { transform: none; opacity: 1; }

/* photo wipe reveal — clip the img, not the container: a fully
   clipped container reports zero intersection and never reveals */
.js-motion .wipe img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.07);
  transition: clip-path 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.js-motion .wipe.in img {
  clip-path: inset(0 0 0 0); transform: none;
  transition: clip-path 1s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-motion .product-card:hover .photo.wipe.in img { transform: scale(1.025); }

/* nav underline */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 240ms var(--ease-out);
}
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

/* magnetic buttons */
.js-motion .btn {
  transition: background-color var(--motion-fast) var(--ease-out),
              transform 300ms var(--ease-out);
  will-change: transform;
}

/* hairline rows — slide on hover */
.js-motion a.row-line { transition: padding-left 240ms var(--ease-out); }
.js-motion a.row-line:hover { padding-left: 12px; }

/* status light — the brand's square dot, in a functional color */
.status-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--accent-deep); margin-right: 8px;
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* cursor — an inverted square ring (fine pointers only) */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 110;
  width: 26px; height: 26px;
  border: 1px solid #fff; mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-200px, -200px);
  transition: width 200ms var(--ease-out), height 200ms var(--ease-out),
              background-color 200ms var(--ease-out);
}
.cursor-ring.on { width: 12px; height: 12px; background: #fff; }
@media (pointer: coarse) { .cursor-ring { display: none; } }

/* marquee — spec sheet on a loop */
.marquee {
  overflow: hidden; background: var(--ink-900); color: var(--paper-0);
  border-top: 1px solid var(--border-inverse);
  border-bottom: 1px solid var(--border-inverse);
  padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-group { display: flex; align-items: center; gap: 56px; flex: none; }
.marquee-group span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-200); white-space: nowrap;
}
.marquee-group .msq { width: 6px; height: 6px; background: var(--accent); flex: none; }
@keyframes marquee-scroll { to { transform: translateX(calc(-50% - 28px)); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   high-end accent layer — materiality + signature micro-moments
   ============================================================ */

/* ink sections carry a barely-there night undertone at the top */
.ink { background: radial-gradient(120% 90% at 50% 0%, #171a14 0%, #141414 60%); }
.site-footer.ink { background: var(--ink-900); }

/* phosphor tick draws in under section rules */
.caption-row, .meta-row { position: relative; }
.js-motion .caption-row::after, .js-motion .meta-row::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 28px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.js-motion .caption-row.in::after, .js-motion .meta-row.in::after { transform: scaleX(1); }

/* the square dot lands in phosphor, then settles to ink/paper */
@keyframes sq-land { from { background: var(--accent); } to { background: currentColor; } }
.js-motion .masked.in .sq { animation: sq-land 1.6s var(--ease-out) 0.9s both; }

/* counted stats earn a phosphor underline tick */
.stat .value { position: relative; align-self: flex-start; }
.js-motion .stat .value::after {
  content: ""; position: absolute; left: 0; bottom: -7px;
  width: 22px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.8s var(--ease-out) 1.1s;
}
.js-motion .stat.in .value::after { transform: scaleX(1); }

/* hairline rows — the date warms on hover */
a.row-line .when { transition: color var(--motion-fast) var(--ease-out); }
a.row-line:hover .when { color: var(--accent-deep); }

/* buttons — the period follows the action */
.js-motion .btn::after {
  content: ""; width: 6px; height: 6px; background: currentColor;
  margin-left: 10px; flex: none;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.js-motion .btn:hover::after { opacity: 1; transform: none; }

/* footer end-dot winks phosphor once in a while */
@keyframes end-blink {
  0%, 91%, 100% { background: var(--paper-0); }
  93%, 95% { background: var(--accent); }
}
.js-motion .footer-bottom .end-dot { animation: end-blink 8s linear infinite; }

/* hero proximity type — letters carry the variable weight axis */
.js-motion .ch {
  display: inline-block;
  font-variation-settings: "wght" 600;
  transition: font-variation-settings 220ms var(--ease-out);
}

/* hero headline drifts as you leave it behind */
.js-motion .hero-drift { will-change: transform, opacity; }

/* ============================================================
   cinema layer — video sections + liquid glass, rapive geometry
   ============================================================ */
.cinema { position: relative; overflow: hidden; }
.cinema .fading-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.js-motion .cinema .fading-video { opacity: 0; }
.cinema > .container { position: relative; z-index: 1; }
/* ink scrim — type holds at every frame of the loop */
.cinema::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 12, 0.68) 0%, rgba(13, 13, 12, 0.28) 55%, rgba(13, 13, 12, 0.5) 100%),
    linear-gradient(180deg, rgba(13, 13, 12, 0.35) 0%, rgba(13, 13, 12, 0) 30%, rgba(13, 13, 12, 0.4) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .cinema .fading-video { display: none; } }

/* full-viewport cinematic hero */
.cinema--hero .container {
  display: flex; flex-direction: column;
  min-height: calc(100svh - 72px - 168px);
}
.cinema--hero .hero-badge { margin-top: auto; }
.cinema--hero h1 { margin-top: 28px; }

/* liquid glass, in rapive's square-leaning geometry — never pills */
.glass, .glass-strong {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(251, 250, 248, 0.02);
  background-blend-mode: luminosity;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(251, 250, 248, 0.12);
}
.glass-strong {
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(251, 250, 248, 0.18);
}
.glass::before, .glass-strong::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg,
    rgba(251, 250, 248, 0.38) 0%,
    rgba(251, 250, 248, 0.12) 20%,
    rgba(251, 250, 248, 0) 40%,
    rgba(251, 250, 248, 0) 60%,
    rgba(251, 250, 248, 0.12) 80%,
    rgba(251, 250, 248, 0.38) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-strong::before {
  background: linear-gradient(180deg,
    rgba(251, 250, 248, 0.5) 0%,
    rgba(251, 250, 248, 0.2) 20%,
    rgba(251, 250, 248, 0) 40%,
    rgba(251, 250, 248, 0) 60%,
    rgba(251, 250, 248, 0.2) 80%,
    rgba(251, 250, 248, 0.5) 100%);
}

/* glass controls for video surfaces */
.btn--glass {
  position: relative; overflow: hidden;
  background: rgba(251, 250, 248, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--paper-0);
  box-shadow: inset 0 1px 1px rgba(251, 250, 248, 0.18);
}
.btn--glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg,
    rgba(251, 250, 248, 0.5) 0%, rgba(251, 250, 248, 0.15) 30%,
    rgba(251, 250, 248, 0) 50%,
    rgba(251, 250, 248, 0.15) 70%, rgba(251, 250, 248, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn--glass:hover { background: rgba(251, 250, 248, 0.1); }
.btn--glass:active { background: rgba(251, 250, 248, 0.16); }

.btn--ghost-inverse { background: transparent; color: var(--paper-0); padding: 15px 22px; }
.btn--ghost-inverse:hover { background: rgba(251, 250, 248, 0.08); }
.btn--ghost-inverse:active { background: rgba(251, 250, 248, 0.14); }

/* hero badge — glass chip + solid paper tag */
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px;
  align-self: flex-start;
  font-size: 13px; color: var(--ink-200);
}
.hero-badge .tag {
  background: var(--paper-0); color: var(--ink-900);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: var(--radius-sm);
}

/* notify — glass capture bar */
.notify {
  display: flex; align-items: center; gap: 8px;
  width: min(460px, 100%);
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-md);
}
.notify input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--paper-0);
  font-family: var(--font-mono); font-size: 13.5px;
}
.notify input::placeholder { color: var(--ink-300); }
.notify input:focus-visible { box-shadow: none; }
.notify .btn { min-height: 0; padding: 12px 20px; font-size: 13.5px; flex: none; }

/* word-by-word blur-in for cinematic headlines */
.js-motion .bw {
  display: inline-block;
  filter: blur(10px); opacity: 0; transform: translateY(30px);
  margin-right: 0.22em;
}
.js-motion .bw:last-child { margin-right: 0; }
/* the wrapped square dot keeps its exact 0.13em gap (0.22em word margin − 0.09em) */
.js-motion .bw-sq { margin-left: -0.09em; }
.js-motion .bw-sq .sq { margin-left: 0; }
@keyframes word-in {
  0%   { filter: blur(10px); opacity: 0;   transform: translateY(30px); }
  55%  { filter: blur(4px);  opacity: 0.6; transform: translateY(-3px); }
  100% { filter: blur(0);    opacity: 1;   transform: translateY(0); }
}
.js-motion .wordy.in .bw { animation: word-in 0.8s var(--ease-out) var(--d, 0ms) both; }

/* ============================================================
   responsive — 768 / 1120
   ============================================================ */
@media (max-width: 1120px) {
  .grid-3 { grid-template-columns: 1fr; gap: 0; }
  .feature-col { padding: 20px 0; }
  .split { gap: 40px; }
  .stats { gap: 40px; }
  .footer-cols { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }

  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section--band { padding: 96px 0; }

  .site-nav a:not(.btn), .site-nav .btn { display: none; }
  .menu-btn { display: block; }

  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; }

  .row-line { flex-wrap: wrap; gap: 8px 24px; }
  .row-line .when { width: auto; }
  .row-line .what { font-size: 18px; }
  .row-line .aside { margin-left: 0; width: 100%; }

  .stats { gap: 32px; }
  .stat .value { font-size: 22px; }

  .product-hero { aspect-ratio: 4 / 3; }

  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
}
