/* ============================================================
   REALIS3D — design system v1
   Source of truth: BRAND_KIT.md §2 (locked 2026-07-07)
   Pure monochrome. Emphasis = scale, weight, white space.
   ============================================================ */

:root {
  /* Palette — BRAND_KIT.md tokens */
  --space-black: #0B0D10;
  --true-black:  #000000;
  --ink:         #16181C;
  --steel:       #6E747C;
  --titanium:    #C7CBD1;
  --cloud:       #F4F5F7;
  --white:       #FFFFFF;
  --hairline:    #23262B;   /* borders on dark */

  /* Type */
  --font-display: 'D-DIN Exp', 'D-DIN', 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'D-DIN', 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --track-wide: 0.22em;
  --track-mid:  0.15em;

  /* Spacing — 8px grid */
  --section-pad: 96px;
  --gutter: 24px;
  --max-w: 1200px;
}

@media (max-width: 720px) {
  :root { --section-pad: 48px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--space-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  font-size: clamp(28px, 5.2vw, 64px);
  line-height: 1.15;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: var(--track-mid);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.3;
}

.lede { color: var(--titanium); font-size: clamp(16px, 1.6vw, 19px); max-width: 34em; }
.muted { color: var(--steel); }

.caption, .telemetry {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-pad) 0; }
.section-rule { border-top: 1px solid var(--hairline); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: linear-gradient(to bottom, rgba(11,13,16,0.92), rgba(11,13,16,0));
}
.nav .brand { height: 18px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--titanium);
}
.nav-links a:hover { color: var(--white); }
@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links li.hide-m { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  padding: 14px 36px;
  border: 1px solid var(--white);
  color: var(--white); background: transparent;
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--space-black); }
.btn.solid { background: var(--white); color: var(--space-black); }
.btn.solid:hover { background: transparent; color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding-top: 96px;
  /* no opaque base layer — body provides it; keeps the hexgrid canvas visible */
  background:
    radial-gradient(1200px 600px at 70% 20%, rgba(255,255,255,0.045), transparent 60%);
}
.hero .telemetry-corner { position: absolute; bottom: 28px; left: var(--gutter); }
.hero .cta-row { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero .sub { margin-top: 24px; }

/* Chip row: machine status + availability side by side */
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Availability chip — inverted, pulsing ring */
.avail-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white); color: var(--space-black);
  padding: 6px 14px; border-radius: 999px;
  animation: ring 2.8s ease-out infinite;
}
.avail-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--space-black); animation: pulse 2.8s ease-in-out infinite; }
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
  60%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Hero drop-zone — quick path to the quote page */
.hero-drop {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px dashed var(--steel);
  padding: 14px 22px;
  color: var(--titanium);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hero-drop:hover, .hero-drop.dragover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.03); }

/* ---------- Hero: copy + live machine viewport ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 8px; }
}

/* Smooth in-page funnel scrolling + anchor offset under the nav */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Hero hologram: static drone blueprint + live HUD ---------- */
.holo { position: relative; width: 100%; }
.holo-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; }
.holo-drone {
  display: block; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: screen;                 /* pure-black bg drops out; only the glow lands on the hero */
  filter: drop-shadow(0 0 26px rgba(120,220,255,0.20));
}

/* faint scanline drifting down the frame */
.holo-scan {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.45;
  background: linear-gradient(180deg, transparent 0%, rgba(143,233,255,0.10) 48%, rgba(143,233,255,0.20) 50%, rgba(143,233,255,0.10) 52%, transparent 100%);
  background-size: 100% 24%; background-repeat: no-repeat;
  animation: holoScan 6.5s linear infinite;
}
@keyframes holoScan { from { background-position: 0 -25%; } to { background-position: 0 125%; } }

/* vector HUD: brackets, tick rulers, marching-ants leaders, reticle */
.holo-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hl-bracket path { stroke: var(--steel); stroke-width: 0.4; fill: none; }
.hl-tick path { stroke: var(--steel); stroke-width: 0.3; opacity: 0.55; }
.hl-lead path { stroke: #bfe6f2; stroke-width: 0.35; fill: none; stroke-dasharray: 1.4 1.2; animation: hlDash 1.1s linear infinite; }
@keyframes hlDash { to { stroke-dashoffset: -2.6; } }
.hl-reticle circle, .hl-reticle path { stroke: #8fe9ff; stroke-width: 0.3; fill: none; }
.hl-reticle { animation: hlPulse 3s ease-in-out infinite; }
@keyframes hlPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.9; } }

/* text HUD layer — everything sits in the empty margins */
.holo-anno { position: absolute; inset: 0; pointer-events: none; }
.holo-anno > div { position: absolute; left: var(--x); top: var(--y); }

/* cycling part labels (fade in/out, alternating) */
.holo-label { opacity: 0; animation: holoLabel 8s ease-in-out infinite; animation-delay: var(--d); }
.holo-label .tx {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--titanium); white-space: nowrap; text-shadow: 0 1px 4px #000;
}
@keyframes holoLabel { 0% { opacity: 0; } 6% { opacity: 1; } 44% { opacity: 1; } 50%,100% { opacity: 0; } }

/* live indicator */
.holo-live {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--titanium); text-shadow: 0 1px 4px #000; white-space: nowrap;
}
.holo-live .blink { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 7px #6ee7a8; animation: holoBlink 1.6s steps(1) infinite; }
@keyframes holoBlink { 0%,60% { opacity: 1; } 61%,100% { opacity: 0.15; } }

/* ticking telemetry readouts */
.holo-tele {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--titanium); text-shadow: 0 1px 4px #000; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.holo-tele span { color: var(--white); }

/* DFM status chip */
.holo-badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--titanium); border: 1px solid var(--hairline); padding: 3px 8px; text-shadow: 0 1px 4px #000; white-space: nowrap;
}

/* caliper measurement — value sweeps 0 → 25 mm and back */
.holo-meas { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.holo-meas .cal { width: 58px; height: 7px; flex: none; border-left: 1px solid var(--steel); border-right: 1px solid var(--steel); border-bottom: 1px solid var(--steel); }
.holo-meas .mval { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--white); text-shadow: 0 1px 4px #000; font-variant-numeric: tabular-nums; }

.holo-cap {
  margin-top: 14px; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--steel);
}
@media (prefers-reduced-motion: reduce) {
  .holo-scan, .hl-lead path, .hl-reticle, .holo-live .blink { animation: none; }
  .holo-label { animation: none; opacity: 1; }
}

/* The machine — screen photo on top, live build chamber below (drop target) */
.machine-viewport {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--true-black);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
}
.mv-screen-wrap { position: relative; line-height: 0; }
.mv-screen {
  display: block; width: 100%;
  aspect-ratio: 16 / 7; object-fit: cover; object-position: center 34%;
  filter: grayscale(1) contrast(1.02) brightness(0.9);
}
/* blend the product photo's edges into the black frame */
.mv-screen-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 50px 16px var(--true-black);
  background: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, transparent 24%, transparent 68%, var(--true-black) 100%);
}
.mv-screen-tag {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--titanium);
  display: inline-flex; align-items: center; gap: 7px;
}
.mv-screen-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 8px #6ee7a8; }

.mv-chamber {
  position: relative;
  height: 300px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), transparent 60%),
    var(--true-black);
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.mv-chamber.dragover { background: rgba(255,255,255,0.06); }
.mv-chamber canvas { display: block; width: 100% !important; height: 300px !important; }
.mv-chamber.has-model { cursor: default; }
.mv-prompt { text-align: center; padding: 24px; color: var(--titanium); }
.mv-prompt svg { color: var(--steel); }
.mv-prompt .t { margin-top: 12px; font-size: 14px; }
.mv-prompt .s { margin-top: 8px; }
.mv-prompt .s a { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.mv-prompt .s a:hover { color: var(--titanium); }

/* Process step icons */
.step-icon { display: block; margin-bottom: 14px; color: var(--titanium); }
.step-icon svg { width: 28px; height: 28px; }
.step:hover .step-icon { color: var(--white); }

/* ---------- Filament library (homepage) ---------- */
.fil-stage { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 48px; }
@media (max-width: 900px) { .fil-stage { grid-template-columns: 1fr; gap: 32px; } }
.spool-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; }
#spool3d { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; background: radial-gradient(58% 58% at 50% 44%, rgba(255,255,255,0.05), transparent 70%); }
#spool3d canvas { display: block; }
.spool-cap { text-align: center; }
.spool-cap .m { font-family: var(--font-display); font-weight: 300; letter-spacing: var(--track-mid); text-transform: uppercase; font-size: 20px; }
.spool-cap .c { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-top: 4px; }

.fil-controls .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.fil-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.fil-chip { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--hairline); background: var(--space-black); color: var(--titanium); padding: 8px 12px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.fil-chip:hover { border-color: var(--steel); color: var(--white); }
.fil-chip[aria-pressed="true"] { background: var(--white); color: var(--space-black); border-color: var(--white); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.sw { width: 30px; height: 30px; border: 1px solid var(--hairline); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { outline: 1px solid var(--white); outline-offset: 2px; }
.sw:hover { outline: 1px solid var(--steel); outline-offset: 2px; }

.pcu { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 8px; }
@media (max-width: 520px) { .pcu { grid-template-columns: 1fr; } }
.pcu .cell { background: var(--space-black); padding: 18px 18px; }
.pcu .cell.full { grid-column: 1 / -1; }
.pcu .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.pcu .txt { margin-top: 8px; color: var(--titanium); font-size: 14px; line-height: 1.55; }

/* Offer section — audience chips */
.aud-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.aud { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--hairline); color: var(--titanium); padding: 8px 14px; }

.mv-hud {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--titanium); pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.mv-actions { position: absolute; right: 12px; bottom: 10px; z-index: 3; display: flex; gap: 8px; }
.mv-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--hairline); color: var(--titanium); background: rgba(11,13,16,0.7);
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.mv-btn.solid { background: var(--white); color: var(--space-black); border-color: var(--white); }
.mv-btn:hover { border-color: var(--white); color: var(--white); }
.mv-btn.solid:hover { color: var(--space-black); opacity: .9; }

/* Hero flow line — the process as telemetry */
.flow-line {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px;
  margin-top: 28px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--titanium);
  max-width: 44em;
}
.flow-line .fstep { white-space: nowrap; }
.flow-line .fstep:first-child { color: var(--white); }
.flow-line .farrow { color: var(--steel); }

/* Machine status chip */
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--titanium);
  border: 1px solid var(--hairline); padding: 6px 12px; border-radius: 999px;
}
.status-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--hairline); padding-top: 24px; }
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--steel); letter-spacing: 0.12em; }
.step h3 {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  letter-spacing: var(--track-mid); font-size: 18px; margin: 12px 0 10px;
}
.step p { color: var(--titanium); font-size: 15px; }

/* ---------- Materials strip ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 48px; }
@media (max-width: 860px) { .mat-grid { grid-template-columns: repeat(2, 1fr); } }
.mat { background: var(--space-black); padding: 28px 24px; }
.mat .name { font-family: var(--font-display); font-weight: 300; letter-spacing: var(--track-mid); text-transform: uppercase; font-size: 16px; }
.mat .spec { margin-top: 10px; }
.mat .badge {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--hairline); padding: 3px 8px; color: var(--titanium);
}

/* ---------- Story / anti-factory ---------- */
.story { max-width: 720px; }
.story p { color: var(--titanium); margin-top: 20px; font-size: clamp(16px, 1.5vw, 18px); }
.story p strong { color: var(--white); font-weight: 600; }

/* ---------- Spec strip ---------- */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
@media (max-width: 720px) { .spec-strip { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; } }
.spec-strip .val {
  font-family: var(--font-display); font-weight: 200; font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: var(--track-mid);
}
.spec-strip .lbl { margin-top: 8px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-col ul { list-style: none; margin-top: 14px; }
.foot-col li { margin-top: 8px; }
.foot-col a { text-decoration: none; color: var(--titanium); font-size: 14px; }
.foot-col a:hover { color: var(--white); }
.foot-legal { margin-top: 48px; }

/* ---------- WhatsApp bubble ---------- */
.wa-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--space-black);
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform .15s ease;
}
.wa-bubble:hover { transform: scale(1.06); }
.wa-bubble svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Quote page ---------- */
.quote-hero { min-height: auto; padding-top: 140px; padding-bottom: 40px; }

.quote-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; } }

/* Upload / viewer panel */
.drop-zone {
  border: 1px dashed var(--steel);
  min-height: 380px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 32px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--white); background: rgba(255,255,255,0.02); }
.drop-zone.has-model { padding: 0; cursor: default; border-style: solid; border-color: var(--hairline); }
.drop-zone canvas { display: block; width: 100% !important; height: 420px !important; }
.viewer-hud {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel); pointer-events: none;
}
.viewer-reset {
  position: absolute; right: 14px; top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--titanium);
  background: none; border: 1px solid var(--hairline); padding: 5px 10px; cursor: pointer;
}
.viewer-reset:hover { color: var(--white); border-color: var(--white); }

/* Quote form */
.qform label { display: block; margin-top: 24px; }
.qform .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 8px;
}
.qform select, .qform input[type="number"], .qform input[type="text"], .qform textarea {
  width: 100%;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--hairline);
  font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px;
  border-radius: 0;
}
.qform select:focus, .qform input:focus, .qform textarea:focus { outline: 1px solid var(--titanium); }
.qform .check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; cursor: pointer; }
.qform .check input { accent-color: var(--white); margin-top: 3px; }
.qform .check span { color: var(--titanium); font-size: 14px; }

/* Advanced settings disclosure */
.qform details.adv { border: 1px solid var(--hairline); margin-top: 28px; padding: 0 18px 18px; }
.qform details.adv summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel);
}
.qform details.adv summary::-webkit-details-marker { display: none; }
.qform details.adv summary::before { content: "+ "; }
.qform details.adv[open] summary::before { content: "− "; }
.qform details.adv summary:hover { color: var(--titanium); }
.qform details.adv label:first-of-type { margin-top: 4px; }

/* Price panel */
.price-panel { border: 1px solid var(--hairline); padding: 28px; position: sticky; top: 96px; }
.price-panel .rows { margin-top: 20px; }
.price-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
  font-size: 14px; color: var(--titanium);
}
.price-row .v { font-family: var(--font-mono); color: var(--white); white-space: nowrap; }
.price-row.total { border-bottom: none; padding-top: 18px; }
.price-row.total .v { font-family: var(--font-display); font-weight: 200; font-size: clamp(26px, 3vw, 36px); letter-spacing: var(--track-mid); }
.price-note { margin-top: 14px; font-size: 12.5px; color: var(--steel); }

/* Dispatch state chips */
.dispatch-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-top: 16px;
}
.dispatch-chip.ok { background: var(--white); color: var(--space-black); }
.dispatch-chip.warn { border: 1px solid var(--steel); color: var(--titanium); }
.dispatch-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Content pages ---------- */
/* Materials table */
.mat-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.mat-table th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); font-weight: 400;
  text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline);
}
.mat-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--titanium); vertical-align: top; }
.mat-table td:first-child { font-family: var(--font-display); font-weight: 300; letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--white); white-space: nowrap; }
.mat-table .mono { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) { .mat-table .hide-m { display: none; } }

/* FAQ accordion */
.faq { margin-top: 40px; max-width: 760px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0;
  font-family: var(--font-display); font-weight: 300; font-size: 17px;
  letter-spacing: 0.06em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--steel); font-size: 18px;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 24px; color: var(--titanium); font-size: 15px; max-width: 42em; }
.faq .a p + p { margin-top: 12px; }

/* Legal / long-form prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 48px; font-size: clamp(17px, 2vw, 20px); }
.prose p, .prose li { color: var(--titanium); font-size: 15px; margin-top: 14px; }
.prose ul { margin: 14px 0 0 18px; }
.prose strong { color: var(--white); font-weight: 600; }

/* Rapid timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 48px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }
.timeline .t { background: var(--space-black); padding: 24px 20px; }
.timeline .t .when { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--steel); text-transform: uppercase; }
.timeline .t .what { margin-top: 10px; font-size: 14px; color: var(--titanium); }

/* ---------- Order dashboard ---------- */
.o-timeline { margin-top: 32px; border-left: 1px solid var(--hairline); padding-left: 24px; max-width: 560px; }
.o-step { position: relative; padding: 14px 0; }
.o-step::before {
  content: ""; position: absolute; left: -28.5px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--steel);
}
.o-step.done::before { background: var(--white); }
.o-step.current::before { background: var(--white); animation: pulse 2.4s ease-in-out infinite; }
.o-step .st { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--titanium); }
.o-step.done .st, .o-step.current .st { color: var(--white); }
.o-step .ts { font-family: var(--font-mono); font-size: 11px; color: var(--steel); margin-left: 12px; }
.o-step .note { font-size: 14px; color: var(--titanium); margin-top: 4px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--hairline); }

.countdown-box { border: 1px solid var(--hairline); padding: 20px 24px; margin-top: 32px; max-width: 560px; }
.countdown-box .cd { font-family: var(--font-display); font-weight: 200; font-size: 32px; letter-spacing: var(--track-mid); margin-top: 6px; }

.flag-form textarea { width: 100%; max-width: 560px; background: var(--ink); color: var(--white); border: 1px solid var(--hairline); padding: 12px 14px; font-family: var(--font-body); font-size: 15px; margin-top: 12px; }

/* Admin */
.admin-card { border: 1px solid var(--hairline); padding: 20px; margin-top: 16px; }
.admin-card.flagged { border-color: var(--white); }
.admin-card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.btn.mini { padding: 8px 14px; font-size: 11px; }
.admin-input { background: var(--ink); color: var(--white); border: 1px solid var(--hairline); padding: 9px 12px; font-family: var(--font-body); font-size: 14px; }

/* ---------- Motion system (2026-07-09) ----------
   .reveal fades/slides in when it enters the viewport (assets/js/motion.js).
   Reduced motion or no JS: everything stays visible — never hide content permanently. */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
html.no-js .reveal { opacity: 1; transform: none; }

/* Honeycomb background canvas (assets/js/hexgrid.js) — fixed behind all content.
   Infill pattern as texture: near-invisible at rest, cells lift with an underglow
   around the cursor. z-index -1 keeps every page layer above it untouched. */
#hexgrid {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}

/* Media slots — telemetry-framed spaces for real P2S photos/timelapse.
   Drop an <img> or <video> inside the slot and the frame styling carries it. */
.media-slot {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.014) 14px 28px),
    var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.media-slot.portrait { aspect-ratio: 4 / 5; }
.media-slot img, .media-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot .tag {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel);
}
.media-slot .crosshair {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel); text-align: center;
}
.media-slot::after {           /* slow scan line — reads as instrumentation, not absence */
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.035), transparent);
  animation: scan 7s linear infinite;
}
@keyframes scan { to { top: 120%; } }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } }

/* Hover polish — cards lift a hair, strictly monochrome */
.mat, .timeline .t, .step { transition: background .25s ease; }
.mat:hover, .timeline .t:hover { background: #101318; }
.step:hover .num { color: var(--titanium); }

/* ---------- Utilities ---------- */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
