/* ==========================================================================
   SPITHA — Built layer by layer
   ========================================================================== */

:root {
  /* Spitha brand palette */
  --forest: #1c3320;      /* brand forest */
  --ink: #0f1d12;         /* deep forest — page background */
  --ink-2: #16281a;
  --bone: #f7f5f0;        /* brand cream */
  --bone-2: #ece9e1;
  --spark: #4fc285;       /* brand spark green */
  --amber: #a8ecc6;       /* spark, lightened */
  --lumier: #e8c27a;
  --zibbro: #4fc285;

  --bg: var(--ink);
  --fg: var(--bone);
  --muted: rgba(247, 245, 240, .64);
  --line: rgba(247, 245, 240, .14);
  --card: rgba(247, 245, 240, .035);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

body[data-theme="light"] {
  --bg: var(--bone);
  --fg: var(--forest);
  --muted: rgba(28, 51, 32, .68);
  --line: rgba(28, 51, 32, .16);
  --card: rgba(28, 51, 32, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--spark); color: var(--ink); }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; text-transform: none; }
.eyebrow { color: var(--muted); margin-bottom: 28px; }
.i { width: 18px; height: 18px; flex: none; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--spark); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Headlines ------------------------------------------------------------- */
.h2 {
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: .9;
  font-weight: 350;
  font-stretch: 125%;
  letter-spacing: -.05em;
  text-transform: none;
}
.h2 .serif, .h-xl .serif, .hero-title .serif { text-transform: none; font-size: 1.08em; letter-spacing: -.02em; }
.h-xl { font-size: clamp(3.2rem, 11vw, 11rem); line-height: .86; font-weight: 300; font-stretch: 120%; letter-spacing: -.055em; text-transform: none; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46ch; font-weight: 400; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn-sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { --h: 64px; padding: 0 34px; font-size: 16px; }
.btn-spark { background: var(--spark); color: var(--ink); }
.btn-spark::before { background: var(--bone); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark::before { background: var(--spark); }
.btn-dark:hover { color: var(--ink); }
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.link-arrow .i { transition: transform .4s var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

/* Preloader -------------------------------------------------------------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bone);
  animation: preloader-failsafe .01s 4.5s forwards;
}
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader-inner { display: grid; justify-items: center; gap: 14px; }
.preloader-mark { width: 64px; height: 64px; color: var(--spark); }
.preloader-mark svg { width: 100%; height: 100%; }
.preloader-mark rect { transform-box: fill-box; transform-origin: left; }
.preloader-label { color: var(--muted); }
.preloader-count { font-size: 14px; }
.preloader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.preloader-bar span { display: block; height: 100%; width: 100%; background: var(--spark); transform-origin: left; transform: scaleX(0); }

/* Cursor & grain -------------------------------------------------------- */
/* The pointer itself is the Spitha spark (SVG, with PNG fallback). */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("../img/cursor-spark.svg") 16 16, url("../img/cursor-spark.png") 16 16, auto; }
  a, button, summary, label, select, [data-cursor], [data-magnetic], .spool, .machine-list li, .chips span {
    cursor: url("../img/cursor-spark-hover.svg") 22 22, url("../img/cursor-spark-hover.png") 22 22, pointer;
  }
  input, textarea { cursor: text; }

  /* Small label bubble that trails the spark over cards ("Read", "Discover") */
  .has-cursor .cursor { display: block; }
  .has-cursor .cursor-ring {
    position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none;
    margin: 20px 0 0 20px; padding: 9px 13px; border-radius: 999px;
    background: var(--spark); color: var(--ink);
    transform-origin: 0 0; scale: 0; opacity: 0;
    transition: scale .45s var(--ease), opacity .3s;
  }
  .has-cursor .cursor.is-label .cursor-ring { scale: 1; opacity: 1; }
  .cursor-label { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
}
.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: transform .6s var(--ease), background-color .5s, backdrop-filter .5s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { position: relative; display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 36px; width: auto; transition: opacity .6s var(--ease); }
.brand-logo--forest { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
body[data-theme="light"] .brand-logo--cream { opacity: 0; }
body[data-theme="light"] .brand-logo--forest { opacity: 1; }
.menu-open .brand-logo--cream { opacity: 1 !important; }
.menu-open .brand-logo--forest { opacity: 0 !important; }
.nav ul { display: flex; gap: 30px; }
.nav a { position: relative; font-size: 14px; font-weight: 500; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink); color: var(--bone);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid rgba(247,245,240,.12); }
.mobile-menu a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-size: clamp(1.8rem, 8vw, 3rem); font-weight: 350; font-stretch: 115%; letter-spacing: -.03em; text-transform: none; transform: translateY(100%); transition: transform .7s var(--ease); }
.mobile-menu a .mono { color: var(--spark); font-size: 11px; }
.menu-open .mobile-menu a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu-foot { color: rgba(247,245,240,.6); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(40px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 45%, rgba(79,194,133, .22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(247,245,240,.035) 0 1px, transparent 1px 7px),
    var(--ink);
}
.hero::after { /* legibility scrim */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,20,12,.55) 0%, transparent 22%, transparent 55%, rgba(10,20,12,.8) 100%);
}
.hero-content { position: relative; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; font-weight: 300; font-stretch: 125%; text-transform: none; letter-spacing: -.06em; line-height: .84; font-size: clamp(3rem, min(12.5vw, 17vh), 13.5rem); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .12em; line-height: 1; margin-bottom: clamp(18px, 3vh, 32px); color: var(--muted); font-stretch: 100%; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 0 rgba(79,194,133,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(79,194,133,0); } 100% { box-shadow: 0 0 0 0 rgba(79,194,133,0); } }
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.line-inner { display: block; will-change: transform; }
.hero-title .serif { color: var(--spark); font-size: 1.12em; }
.hero-lede { margin-top: clamp(22px, 3.5vh, 36px); max-width: 48ch; font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hud {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 28px);
  width: 250px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(10,20,12,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 10.5px; display: grid; gap: 7px;
}
.hud-row { display: flex; justify-content: space-between; gap: 10px; }
.hud-k { color: var(--muted); }
.hud-v { color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-status { color: var(--spark); }
.hud-status.is-done { color: var(--zibbro); }
.hud-bar { height: 2px; background: var(--line); margin-top: 6px; }
.hud-fill { display: block; height: 100%; background: var(--spark); transform-origin: left; transform: scaleX(0); }

.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 96px); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.scroll-cue i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--spark); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Initial hidden states (only when JS/GSAP runs) */
.js.anim .hero-title .line-inner { transform: translateY(105%); }
.js.anim .hero-kicker, .js.anim [data-hero-fade] { opacity: 0; }

/* Manifesto -------------------------------------------------------------- */
.manifesto { padding-block: clamp(110px, 18vh, 220px) clamp(80px, 12vh, 140px); }
.manifesto-text { font-size: clamp(1.8rem, 4.4vw, 4.6rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 500; font-stretch: 105%; max-width: 22ch; }
.manifesto-text .w { display: inline-block; opacity: .16; transition: none; }
.no-anim .manifesto-text .w { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 9vh, 110px); border-top: 1px solid var(--line); }
.fact { display: grid; gap: 10px; padding-top: 24px; }
.fact-n { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; font-stretch: 125%; line-height: .9; color: var(--spark); }
.fact-l { color: var(--muted); max-width: 26ch; font-size: 15px; }

/* Marquee ---------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-list { display: flex; flex: none; }
.marquee-list li { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); font-size: clamp(1.6rem, 3.8vw, 3.6rem); font-weight: 300; font-stretch: 120%; text-transform: none; letter-spacing: -.04em; white-space: nowrap; }
.marquee-list li:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--spark); }
.marquee-list li::after { content: ""; width: .32em; height: .32em; background: currentColor; transform: rotate(45deg); opacity: .5; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Capabilities ----------------------------------------------------------- */
.caps { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(100px, 14vh, 160px) 40px; }
.caps-pin { display: flex; flex-direction: column; gap: clamp(36px, 6vh, 64px); }
.caps-head { position: relative; }
.caps-progress { position: absolute; right: var(--gutter); bottom: 12px; width: 180px; height: 2px; background: var(--line); }
.caps-progress span { display: block; height: 100%; background: var(--spark); transform-origin: left; transform: scaleX(0); }
.caps-track { display: flex; gap: 20px; width: max-content; min-width: 100%; padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); }
.cap-card {
  flex: none;
  width: min(460px, 82vw);
  min-height: 520px;
  display: flex; flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  position: relative; overflow: hidden;
  transition: border-color .5s;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(79,194,133,.14), transparent 40%);
  opacity: 0; transition: opacity .5s;
}
.cap-card:hover::before { opacity: 1; }
.cap-card:hover { border-color: rgba(79,194,133,.45); }
.cap-card > * { position: relative; z-index: 1; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.cap-n { color: var(--spark); }
.cap-ico { width: 88px; height: 88px; fill: none; stroke: var(--fg); stroke-width: 1.2; opacity: .8; }
.cap-ico * { vector-effect: non-scaling-stroke; }
.cap-title { font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: .95; font-weight: 400; font-stretch: 115%; letter-spacing: -.03em; text-transform: none; margin: 64px 0 18px; }
.cap-body { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* Process ---------------------------------------------------------------- */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); padding-block: clamp(110px, 16vh, 200px); align-items: start; }
.process-head { position: sticky; top: calc(var(--header-h) + 40px); }
.process-head .lead { margin-top: 28px; }
.steps { position: relative; padding-left: 40px; }
.steps-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps-line span { position: absolute; inset: 0; background: linear-gradient(var(--amber), var(--spark)); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: -38px; top: 42px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.is-on::before { background: var(--spark); border-color: var(--spark); box-shadow: 0 0 18px var(--spark); }
.step-n { color: var(--spark); padding-top: 12px; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 400; font-stretch: 112%; letter-spacing: -.025em; text-transform: none; line-height: 1.05; }
.step p { color: var(--muted); margin-top: 8px; max-width: 46ch; }

/* Brands ----------------------------------------------------------------- */
.brands { padding-block: clamp(90px, 12vh, 150px); }
.brands-head { margin-bottom: clamp(40px, 7vh, 80px); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.brand-panel {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 80vh, 780px);
  border-radius: calc(var(--radius) + 6px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
  isolation: isolate;
}
.brand-panel.lumier { background: radial-gradient(120% 90% at 50% 20%, #2a2016 0%, #120e0a 60%, #0a0806 100%); color: #f5e9d4; }
.brand-panel.zibbro { background: var(--bone); color: var(--forest); box-shadow: inset 0 0 0 1px rgba(28,51,32,.08); }
.brand-visual { position: absolute; inset: 0 0 34% 0; z-index: -1; display: grid; place-items: center; }
.lumier-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,110,.55), rgba(255,140,40,.12) 45%, transparent 70%); filter: blur(10px); transition: transform 1.2s var(--ease), opacity 1.2s; opacity: .7; }
.lumier:hover .lumier-glow { transform: scale(1.3); opacity: 1; }
.lumier-lamp { width: min(62%, 320px); height: auto; overflow: visible; }
.lumier-lamp ellipse { fill: none; stroke: #f5d9a6; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.zibbro-stack { width: min(66%, 360px); height: auto; overflow: visible; }
.zibbro-stack rect:nth-child(4n) { stroke: var(--spark); }
.zibbro-stack rect { fill: none; stroke: var(--forest); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.brand-copy { display: grid; gap: 16px; max-width: 44ch; }
.brand-tag { opacity: .7; }
.brand-name { font-size: clamp(2.6rem, 5.4vw, 5.4rem); line-height: .88; letter-spacing: -.05em; font-weight: 350; font-stretch: 122%; text-transform: none; }
.lumier .brand-name .serif { color: var(--lumier); display: block; text-transform: none; font-size: 1.05em; }
.zibbro .brand-name { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.05em; }
.brand-copy p:not(.brand-tag) { opacity: .82; }

/* OEM -------------------------------------------------------------------- */
.oem { padding-block: clamp(110px, 16vh, 200px); }
.oem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.oem-intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 28px; justify-items: start; }
.oem-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.oem-list li:last-child { border-bottom: 1px solid var(--line); }
.oem-list .mono { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--spark); transition: background .4s, color .4s; }
.oem-list li:hover .mono { background: var(--spark); color: var(--ink); }
.oem-list h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; font-stretch: 110%; letter-spacing: -.015em; }
.oem-list p { color: var(--muted); margin-top: 6px; }

/* Academy (light) -------------------------------------------------------- */
.academy { padding-block: clamp(110px, 16vh, 200px) clamp(60px, 8vh, 100px); }
.academy-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(50px, 8vh, 90px); }
.academy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.course { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 12px; align-content: start; transition: translate .5s var(--ease), background .5s, color .5s; }
.course:hover { translate: 0 -6px; background: var(--ink); color: var(--bone); }
.course:hover p, .course:hover .course-meta { color: rgba(247,245,240,.7); }
.course-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.course h3 { font-size: 1.35rem; line-height: 1.1; font-weight: 500; font-stretch: 110%; letter-spacing: -.015em; }
.course p { color: var(--muted); font-size: 15px; }

.cert-wrap { perspective: 1200px; display: grid; place-items: center; }
.cert {
  position: relative; overflow: hidden;
  width: min(100%, 520px); aspect-ratio: 1.414;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(145deg, #fbf8f2, #efe7d8);
  color: #1c1814;
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(10,20,12,.45), 0 0 0 1px rgba(10,20,12,.08), inset 0 0 0 10px #fbf8f2, inset 0 0 0 11px rgba(180,140,70,.35);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px;
  transform-style: preserve-3d;
  will-change: transform;
}
.cert-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.7) 45%, rgba(255,200,120,.25) 52%, transparent 62%); background-size: 250% 100%; background-position: var(--sx, 100%) 0; mix-blend-mode: soft-light; }
.cert-top { position: absolute; top: clamp(20px, 3vw, 34px); left: clamp(22px, 3.4vw, 40px); right: clamp(22px, 3.4vw, 40px); display: flex; justify-content: space-between; font-size: 9px; color: #7a6a52; }
.cert-small { font-size: 9.5px; color: #7a6a52; }
.cert-name { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 2px 0 6px; }
.cert-course { font-weight: 600; font-stretch: 120%; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1rem, 1.8vw, 1.35rem); margin-top: 4px; }
.cert-foot { position: absolute; left: clamp(22px, 3.4vw, 40px); right: clamp(22px, 3.4vw, 40px); bottom: clamp(18px, 2.6vw, 30px); display: flex; justify-content: space-between; align-items: flex-end; }
.cert-seal { width: clamp(56px, 8vw, 84px); height: auto; color: #b0863a; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cert-sign { display: grid; justify-items: end; gap: 4px; }
.cert-sign .serif { font-size: 1.5rem; line-height: 1; }
.cert-sign i { width: 110px; height: 1px; background: #1c1814; opacity: .5; }
.cert-sign .mono { font-size: 8.5px; color: #7a6a52; }

/* Store (light) ---------------------------------------------------------- */
.store { padding-block: clamp(60px, 8vh, 100px) clamp(110px, 16vh, 200px); }
.store-head { margin-bottom: clamp(50px, 8vh, 90px); }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.store-sub { color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 500; }
.machine-list li {
  display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "n name i" "n desc i"; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .5s;
}
.machine-list .mono { grid-area: n; color: var(--spark); }
.m-name { grid-area: name; font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.015em; }
.m-desc { grid-area: desc; color: var(--muted); font-size: 14px; }
.machine-list .i { grid-area: i; width: 22px; height: 22px; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.machine-list li:hover { padding-left: 12px; }
.machine-list li:hover .i { transform: rotate(0); }
.store-note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 44ch; }

.spools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.spool { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 8px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: translate .5s var(--ease), border-color .5s; }
.spool:hover { translate: 0 -6px; border-color: var(--c); }
.spool-disc {
  width: min(84px, 100%); aspect-ratio: 1; border-radius: 50%; margin-bottom: 10px;
  background:
    radial-gradient(circle, #f7f5f0 0 16%, #1b1a18 16.5% 20%, transparent 20.5%),
    repeating-radial-gradient(circle, color-mix(in srgb, var(--c) 85%, #000) 0 1.2px, var(--c) 1.2px 3px);
  box-shadow: inset 0 0 0 5px #1b1a18, inset 0 0 0 7px rgba(255,255,255,.12), 0 14px 24px -12px rgba(10,20,12,.5);
  transition: transform 1.4s var(--ease);
}
.spool:hover .spool-disc { transform: rotate(360deg); }
.spool b { font-weight: 600; font-stretch: 112%; font-size: 15px; letter-spacing: -.01em; }
.spool small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.store-cta { margin-top: clamp(50px, 8vh, 80px); display: flex; justify-content: center; }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); padding-block: clamp(110px, 16vh, 200px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.faq-item summary i { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: transform .5s var(--ease), background .4s, border-color .4s; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { transform: rotate(180deg); background: var(--spark); border-color: var(--spark); color: var(--ink); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-answer { color: var(--muted); padding: 0 56px 28px 0; max-width: 64ch; }

/* Contact ---------------------------------------------------------------- */
.contact { padding-block: clamp(110px, 16vh, 200px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 900px; aspect-ratio: 1; left: -300px; bottom: -520px; border-radius: 50%; background: radial-gradient(circle, rgba(79,194,133,.22), transparent 65%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; position: relative; }
.contact-intro { display: grid; gap: 28px; }
.contact-intro .h-xl .serif { color: var(--spark); }
.contact-meta { display: grid; gap: 18px; margin-top: 12px; }
.contact-meta dt { color: var(--muted); margin-bottom: 4px; }
.contact-meta dd { font-size: 1.15rem; }
.contact-meta a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact-meta a:hover { border-color: var(--spark); }

.contact-form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--card); backdrop-filter: blur(6px); }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 26px 0 10px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease), font-size .35s var(--ease), color .35s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--spark); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.78); color: var(--spark); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff4d4d; }
.chips { border: 0; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { color: var(--muted); margin-bottom: 12px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 14px; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--spark); color: var(--ink); border-color: var(--spark); }
.chips input:focus-visible + span { outline: 2px solid var(--spark); outline-offset: 2px; }
.contact-form .btn { justify-self: start; margin-top: 12px; }
.form-status { min-height: 1.2em; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: .02em; }

/* Footer ----------------------------------------------------------------- */
.site-footer { padding-top: clamp(60px, 10vh, 110px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-tag { font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; max-width: 26ch; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--muted); transition: color .3s; }
.site-footer nav a:hover { color: var(--fg); }
.footer-meta { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer-meta a:hover { color: var(--spark); }
.footer-word {
  font-size: clamp(5rem, 24vw, 26rem); line-height: .78; font-weight: 300; font-stretch: 125%; letter-spacing: -.06em;
  text-align: center; margin-top: clamp(50px, 8vh, 90px); user-select: none;
  background: repeating-linear-gradient(0deg, var(--fg) 0 5px, transparent 5px 8px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 26px; color: var(--muted); font-size: 10.5px; border-top: 1px solid var(--line); margin-top: 16px; }

/* No-WebGL: show fallback art only */
.no-webgl .hero-canvas { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta { display: none; }
  .process, .faq, .oem-grid { grid-template-columns: 1fr; }
  .process-head, .faq-head, .oem-intro { position: static; }
  .academy-head, .academy-grid, .store-grid, .contact-grid { grid-template-columns: 1fr; }
  .academy-grid { gap: 56px; }
}

/* Capabilities fall back to a vertical stack on small screens */
@media (max-width: 899px) {
  .caps-track { flex-direction: column; width: auto; min-width: 0; }
  .cap-card { width: 100%; min-height: 0; }
  .cap-title { margin-top: 40px; }
  .caps-progress { display: none; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-panel { min-height: 620px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; --radius: 14px; }
  body { font-size: 16px; }
  .brand-logo { height: 30px; }
  .hud { display: none; }
  .hero-kicker { letter-spacing: .06em; font-size: 10.5px; }
  .hud-row:first-child { display: none; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 36px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { grid-template-columns: 90px 1fr; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .fact-n { font-size: 3rem; }
  .courses { grid-template-columns: 1fr; }
  .spools { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0; padding: 26px 0; }
  .step-n { padding-top: 0; margin-bottom: 8px; }
  .step::before { top: 28px; }
  .faq-answer { padding-right: 0; }
  .cap-card { padding: 24px; }
  .machine-list li { grid-template-columns: 44px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .grain { display: none; }
}

/* Brand additions -------------------------------------------------------- */
.site-header, .mobile-menu { --line: rgba(247,245,240,.16); }
body[data-theme="light"] .site-header { --line: rgba(28,51,32,.16); }
.menu-open .site-header { color: var(--bone); }
.footer-word { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.footer-spark { width: clamp(28px, 6vw, 96px); height: auto; color: var(--spark); margin-top: .12em; flex: none; animation: spark-spin 9s linear infinite; }
@keyframes spark-spin { to { transform: rotate(360deg); } }

/* Pinned capabilities must fit one viewport on desktop */
@media (min-width: 900px) {
  .caps { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 16px) 32px; }
  .caps-pin { gap: clamp(24px, 4vh, 56px); }
  .caps .h2 { font-size: clamp(2.5rem, min(7vw, 9vh), 7rem); }
  .cap-card { min-height: clamp(340px, 52vh, 520px); }
  .cap-title { margin-top: clamp(24px, 5vh, 64px); }
}

/* ==========================================================================
   Scroll animation support
   ========================================================================== */

/* Whole-page "print progress" bar */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 220; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--spark); box-shadow: 0 0 10px var(--spark); transform-origin: left; transform: scaleX(0); }

/* Elements that get "printed" as they scroll under a fixed print line. --p goes 0 → 1:
   the top p·100% is visible and a glowing layer line sits on the edge.
   The clip box is widened by 80px so shadows are not cut off once finished. */
.print-reveal {
  --p: 1;
  position: relative;
  clip-path: inset(-80px -80px calc((1 - var(--p)) * (100% + 80px) - 80px) -80px);
}
.print-reveal::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 6; pointer-events: none;
  top: calc(var(--p) * 100%); height: 2px; margin-top: -2px;
  background: var(--spark); box-shadow: 0 0 16px 3px rgba(79,194,133,.7);
  opacity: clamp(0, calc((1 - var(--p)) * 25), 1);
}
.brand-panel.print-reveal { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0 round calc(var(--radius) + 6px)); }
.cap-card.print-reveal { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0 round var(--radius)); }

/* Rules that draw across as they scroll in (--draw 0 → 1) */
.facts { --draw: 1; position: relative; border-top: 0; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--draw)); }
.store-sub { --draw: 1; position: relative; border-bottom: 0; }
.store-sub::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--draw)); }

/* Contact glow drifts with scroll; spools spin with scroll (separate from the hover spin) */
.contact::before { transform: translateY(var(--gy, 0px)); }
.spool-disc { --spin: 0; rotate: calc(var(--spin) * 1deg); }

/* ==========================================================================
   Layout & accessibility fixes from the audit
   ========================================================================== */
.scroll-cue { font-size: 11px; }
.cert-top, .cert-small, .cert-sign .mono { font-size: 10px; }

/* Comfortable tap targets on touch screens */
@media (max-width: 899px) {
  .brand { min-height: 44px; }
  .link-arrow { padding-block: 12px 10px; }
  .site-footer nav ul { gap: 0; }
  .site-footer nav a, .footer-meta a { display: inline-block; padding-block: 11px; }
  .footer-meta { gap: 0; }
  .contact-meta a { display: inline-block; padding-block: 8px; }
}

/* Hero design switcher (only shown with ?choose in the URL) */
.model-chooser {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5;
  width: min(calc(100% - 2 * var(--gutter)), 980px);
  padding: 12px; border-radius: 16px;
  background: rgba(15, 29, 18, .72); border: 1px solid rgba(247,245,240,.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.model-chooser-label { color: rgba(247,245,240,.6); font-size: 10.5px; margin: 0 4px 10px; }
.model-chooser-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.model-chooser-row::-webkit-scrollbar { display: none; }
.model-chooser button {
  flex: 1 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; min-height: 44px; border-radius: 10px;
  border: 1px solid rgba(247,245,240,.16); color: var(--bone); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s;
}
.model-chooser button .mono { color: var(--spark); font-size: 11px; }
.model-chooser button:hover { border-color: var(--spark); }
.model-chooser button.is-active { background: var(--spark); border-color: var(--spark); color: var(--ink); }
.model-chooser button.is-active .mono { color: var(--ink); }
/* keep the hero copy clear of the switcher */
.hero:has(.model-chooser) { padding-bottom: 140px; }
