/* G.A.L.M.C. — site styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jbmono-latin.woff2") format("woff2");
  font-weight: 400 500; font-display: swap;
}

:root {
  --paper: #EFECE4;
  --paper-2: #E5E1D6;
  --ink: #0E120F;
  --ink-2: #4A4F4B;
  --line: rgba(14, 18, 15, .14);
  --green: #1F6B45;
  --green-2: #2C8A5B;
  --lime: #C9E265;
  --oxy: #E5482B;
  --night: #0E120F;
  --night-2: #171C18;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --sec: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.label { display: block; color: var(--ink-2); margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.dark .muted, .dark .label { color: rgba(239, 236, 228, .6); }

/* ---------- type ---------- */
.h2 {
  font-family: var(--display); font-stretch: 125%; font-weight: 720;
  font-size: clamp(34px, 5.2vw, 76px); line-height: .98; letter-spacing: -.025em;
  margin: 18px 0 0; text-wrap: balance;
}
.h2--xl { font-size: clamp(48px, 8vw, 128px); }
.h3 { font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 22px; margin: 0; letter-spacing: -.01em; }
.sec-num { color: var(--green); display: inline-block; }
.dark .sec-num { color: var(--lime); }
.sec-head { margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head--split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px 64px; align-items: end; }
.sec-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; margin: 0; max-width: 54ch; color: var(--ink-2); }
.dark .sec-lede { color: rgba(239, 236, 228, .72); }
.sec-lede strong, .hero__lede strong { color: var(--ink); font-weight: 650; }
.dark .sec-lede strong { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--bg); color: var(--fg); border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: -.005em;
  padding: 17px 24px; border-radius: 999px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--green); z-index: -1;
  transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--small { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(239,236,228,.35); }
.dark .btn { --bg: var(--lime); --fg: var(--ink); }
.dark .btn::before { background: var(--paper); }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, color .35s, transform .4s var(--ease), box-shadow .35s; }
.nav__inner { display: flex; align-items: center; gap: 32px; max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); }
.nav__logo { display: block; margin-right: auto; }
.nav__logo img { height: 28px; width: auto; }
.nav .logo-light { display: none; }
.nav--scrolled { background: rgba(239, 236, 228, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav--dark { color: var(--paper); }
.nav--dark.nav--scrolled { background: rgba(14, 18, 15, .78); box-shadow: 0 1px 0 rgba(239,236,228,.1); }
.nav--dark .logo-dark { display: none; }
.nav--dark .logo-light { display: block; }
.nav--dark .btn { --bg: var(--lime); --fg: var(--ink); }
.nav--hidden { transform: translateY(-100%); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .8; transition: opacity .2s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { padding: 8px var(--gutter) 28px; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-family: var(--display); font-stretch: 120%; font-weight: 650; font-size: 28px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- hero ---------- */
.hero { padding-top: 120px; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; flex: 1; padding-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 28px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,107,69,.15); }
.hero__title {
  font-family: var(--display); font-stretch: 125%; font-weight: 780;
  font-size: clamp(44px, 7.1vw, 116px); line-height: .9; letter-spacing: -.035em; margin: 0;
}
.hero__title .line > span { white-space: nowrap; }
@media (max-width: 1100px) { .hero__title { font-size: clamp(40px, 12vw, 120px); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.hero__title em { font-style: normal; color: var(--green); position: relative; }
.hero__title em::after { content: ""; position: absolute; right: -.27em; bottom: .07em; width: .19em; height: .19em; border-radius: 50%; background: var(--lime); }
@keyframes rise { to { transform: translateY(0); } }
.hero__lede { font-size: clamp(17px, 1.4vw, 20px); max-width: 52ch; color: var(--ink-2); margin: 36px 0 36px; opacity: 0; animation: fade .9s .45s var(--ease) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; opacity: 0; animation: fade .9s .6s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span, .hero__lede, .hero__ctas { animation: none; transform: none; opacity: 1; }
}

/* lab panel */
.lab { margin: 0; background: var(--night); color: var(--paper); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -40px rgba(14,18,15,.55); opacity: 0; animation: fade 1s .3s var(--ease) forwards; }
.lab__head { display: flex; justify-content: space-between; gap: 12px; color: rgba(239,236,228,.55); font-size: 11px; }
.lab__live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.lab__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.lab__canvas { width: 100%; aspect-ratio: 1; height: auto; border-radius: 14px; background: radial-gradient(circle at 50% 55%, #1b231d 0, var(--night-2) 70%); }
.lab__readout { display: grid; grid-template-columns: 1fr .6fr 1.3fr; gap: 12px; border-top: 1px solid rgba(239,236,228,.12); padding-top: 14px; }
.lab__readout .label { margin-bottom: 4px; font-size: 10.5px; }
.lab__value { font-family: var(--display); font-stretch: 110%; font-size: 15px; font-weight: 500; }
.lab__value b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; transition: color .3s; }

.seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(14,18,15,.06); box-shadow: inset 0 0 0 1px var(--line); gap: 2px; }
.lab .seg, .seg--dark { background: rgba(239,236,228,.06); box-shadow: inset 0 0 0 1px rgba(239,236,228,.12); }
.seg button { flex: 1; border: 0; background: none; cursor: pointer; padding: 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: .65; transition: background .3s, color .3s, opacity .3s; white-space: nowrap; }
.seg button:hover { opacity: 1; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); opacity: 1; }
.lab .seg button[aria-selected="true"], .seg--dark button[aria-selected="true"] { background: var(--lime); color: var(--ink); }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-left: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- problem ---------- */
.problem { padding: var(--sec) 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 28px 28px 40px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 760; font-size: clamp(56px, 7.5vw, 120px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat p { max-width: 30ch; color: var(--ink-2); margin: 18px 0 0; }
.fails { list-style: none; padding: 0; margin: clamp(64px, 8vw, 120px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fails li { background: var(--paper-2); border-radius: 18px; padding: 28px; position: relative; overflow: hidden; }
.fails li .mono { color: var(--oxy); }
.fails h3 { font-family: var(--display); font-stretch: 112%; font-weight: 680; font-size: 24px; line-height: 1.1; margin: 40px 0 12px; letter-spacing: -.015em; }
.fails p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- material (sticky) ---------- */
.material { padding: var(--sec) 0; background: var(--paper-2); }
.material__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.material__sticky { position: sticky; top: 12vh; height: 76vh; align-self: start; }
.material__steps { padding-top: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step p { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 24px 0 0; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 36px 0 0; border-top: 1px solid var(--ink); }
.kv div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.kv dd { margin: 6px 0 0; font-family: var(--display); font-stretch: 120%; font-weight: 700; font-size: 32px; letter-spacing: -.02em; }

.wall { position: relative; height: 100%; background: var(--night); border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wall__label { position: absolute; top: 20px; left: 22px; color: rgba(239,236,228,.55); font-size: 11px; }
.wall__stack { position: relative; width: 62%; height: 64%; display: flex; flex-direction: column; transition: transform .8s var(--ease); }
.ly { position: relative; display: flex; align-items: center; padding-left: 18px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; transition: flex-grow .9s var(--ease), opacity .6s, transform .9s var(--ease), border-radius .6s; overflow: hidden; white-space: nowrap; }
.ly--pet { flex: 34; background: #CFD8D2; color: var(--ink); }
.ly--tie { flex: 5; background: #E6B65A; color: var(--ink); }
.ly--bar { flex: 22; background: #7A5CC9; color: var(--paper); }
.ly--pef { flex: 0; background: var(--green); color: var(--paper); opacity: 0; font-size: 14px; }
.ly--pet:first-child { border-radius: 10px 10px 0 0; }
.wall__stack .ly:nth-child(5) { border-radius: 0 0 10px 10px; }
.wall__flakes { position: absolute; inset: 0; pointer-events: none; }
.wall__flakes i { position: absolute; width: 34px; height: 12px; border-radius: 3px; opacity: 0; transition: opacity .5s, transform 1.2s var(--ease); }
.wall__flakes i:nth-child(3n+1) { background: #CFD8D2; }
.wall__flakes i:nth-child(3n+2) { background: #7A5CC9; }
.wall__flakes i:nth-child(3n) { background: #E6B65A; }
.wall__ring { position: absolute; right: 22px; bottom: 22px; width: 64px; fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6) rotate(-30deg); transition: opacity .6s, transform .9s var(--ease); }
.wall__ring circle { fill: var(--lime); stroke: none; }

/* state 1: shredded */
.wall[data-state="1"] .wall__stack { opacity: 0; transform: scale(.94); transition: opacity .5s, transform .6s; }
.wall[data-state="1"] .wall__flakes i { opacity: 1; }
/* state 2: one layer */
.wall[data-state="2"] .ly--pet, .wall[data-state="2"] .ly--tie, .wall[data-state="2"] .ly--bar { flex-grow: 0; opacity: 0; padding: 0; }
.wall[data-state="2"] .ly--pef { flex-grow: 1; opacity: 1; border-radius: 10px; }
.wall[data-state="2"] .wall__ring { opacity: 1; transform: none; }

/* ---------- origin ---------- */
.origin { padding: var(--sec) 0; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); }
.chain li { padding: 28px 22px 32px 0; position: relative; }
.chain li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.chain li::after { content: "→"; position: absolute; right: -9px; top: 28px; font-family: var(--mono); font-size: 14px; background: var(--paper); color: var(--green); z-index: 1; padding: 2px 0; }
.chain li:last-child::after { display: none; }
.chain svg { width: 52px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 36px; transition: stroke .3s, transform .5s var(--ease); }
.chain svg circle { fill: var(--green); stroke: none; }
.chain li:hover svg { stroke: var(--green); transform: translateY(-4px); }
.chain .mono { color: var(--ink-2); }
.chain h3 { font-family: var(--display); font-stretch: 115%; font-weight: 680; font-size: 22px; margin: 6px 0 8px; letter-spacing: -.015em; }
.chain p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- dark sections ---------- */
.dark { background: var(--night); color: var(--paper); }

/* ---------- performance / simulator ---------- */
.perf { padding: var(--sec) 0; }
.sim { display: grid; grid-template-columns: 360px 1fr; gap: 24px; background: var(--night-2); border-radius: 24px; padding: 28px; box-shadow: inset 0 0 0 1px rgba(239,236,228,.06); }
.sim__controls { display: flex; flex-direction: column; gap: 28px; }
.field output { float: right; color: var(--lime); text-transform: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--fill, var(--green)) 0 var(--p, 50%), rgba(14,18,15,.18) var(--p, 50%)); border-radius: 3px; }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(14,18,15,.18); border-radius: 3px; }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--fill, var(--green)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 5px solid var(--fill, var(--green)); margin-top: -9.5px; transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 5px solid var(--fill, var(--green)); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.dark input[type="range"] { --fill: var(--lime); }
.dark input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--lime) 0 var(--p, 50%), rgba(239,236,228,.16) var(--p, 50%)); }
.dark input[type="range"]::-moz-range-track { background: rgba(239,236,228,.16); }
.dark input[type="range"]::-webkit-slider-thumb { background: var(--night); }
.range-ends { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 10.5px; margin-top: 4px; }
.dark .range-ends { color: rgba(239,236,228,.45); }
.sim__result { border-top: 1px solid rgba(239,236,228,.14); padding-top: 22px; }
.big { font-family: var(--display); font-stretch: 125%; font-weight: 760; font-size: clamp(48px, 5.5vw, 84px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.big-unit { font-family: var(--display); font-stretch: 110%; font-size: 22px; margin-left: 8px; opacity: .7; }
.sim__verdict { color: rgba(239,236,228,.72); margin: 14px 0 0; font-size: 15.5px; }
.sim__verdict b { color: var(--lime); }
.legend { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend b { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 13px; }
.sw { width: 18px; height: 3px; border-radius: 2px; }
.sw--pet { background: var(--oxy); }
.sw--multi { background: #9C86E0; }
.sw--pef { background: var(--lime); height: 8px; }
.sim__chart { background: var(--night); border-radius: 16px; padding: 14px 10px 6px; min-height: 340px; }
.sim__chart svg { width: 100%; height: 100%; overflow: visible; }
#chart text { font-family: var(--mono); font-size: 11px; fill: rgba(239,236,228,.5); }
#chart .grid { stroke: rgba(239,236,228,.07); }
#chart .axis { stroke: rgba(239,236,228,.25); }
#chart .limit { stroke: var(--paper); stroke-dasharray: 4 5; }
#chart .target { stroke: rgba(239,236,228,.3); stroke-dasharray: 2 4; }
#chart .l-pet { stroke: var(--oxy); }
#chart .l-multi { stroke: #9C86E0; }
#chart .l-pef { stroke: var(--lime); }
#chart path, #chart line.l { fill: none; stroke-width: 2.5; stroke-linecap: round; }
#chart .band { fill: rgba(201,226,101,.16); stroke: none; }
#chart .hit { fill: var(--night); stroke-width: 2.5; }
#chart .tag { font-size: 11px; fill: var(--paper); }

.spec { margin-top: 80px; }
.spec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid rgba(239,236,228,.9); padding-bottom: 14px; }
.spec__head .mono { color: rgba(239,236,228,.5); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 680px; }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(239,236,228,.1); vertical-align: top; }
th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(239,236,228,.5); }
td:first-child { color: rgba(239,236,228,.7); }
.hl { color: var(--lime) !important; font-weight: 600; }
th.hl { font-weight: 500; }

/* ---------- cost calculator ---------- */
.cost { padding: var(--sec) 0; }
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 24px; }
.calc__inputs { background: var(--paper-2); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 30px; }
.calc__inputs .field output { color: var(--green); }
.calc__out { background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 36px; box-shadow: 0 1px 0 var(--line); }
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 72px; gap: 16px; align-items: center; }
.bar-row .label { margin: 0; }
.bar { display: flex; height: 40px; border-radius: 8px; overflow: hidden; background: var(--paper); }
.bar i { display: block; height: 100%; width: 0; transition: width .6s var(--ease); }
.b-resin { background: #CFD8D2; }
.b-barrier { background: #7A5CC9; }
.b-levy { background: var(--oxy); }
.b-pef { background: var(--green); }
.bar-val { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-key { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 11px; }
.bar-key li { display: flex; align-items: center; gap: 8px; }
.bar-key i { width: 10px; height: 10px; border-radius: 2px; display: block; }
.calc__big { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.calc__big > div { padding: 20px 20px 0 0; }
.calc__big > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.calc__big .big { font-size: clamp(34px, 3.6vw, 56px); display: block; }
.calc__big .big.neg { color: var(--oxy); }
.calc__big > div:first-child .big:not(.neg) { color: var(--green); }
.fine { font-size: 13px; color: var(--ink-2); margin: 0; max-width: 80ch; }

/* ---------- recycling ---------- */
.recycle { padding: var(--sec) 0; }
.flow { display: grid; grid-template-columns: 1fr 60px 1fr 80px 1.2fr; align-items: center; }
.flow__node { border: 1px solid rgba(239,236,228,.2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; background: var(--night-2); }
.flow__node .mono { color: rgba(239,236,228,.45); }
.flow__node b { font-family: var(--display); font-stretch: 118%; font-weight: 680; font-size: 22px; letter-spacing: -.01em; }
.flow__node small { color: rgba(239,236,228,.65); font-size: 14.5px; }
.flow__node--hl { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.flow__node--hl .mono, .flow__node--hl small { color: rgba(14,18,15,.65); }
.flow__arrow { height: 1px; background: rgba(239,236,228,.4); position: relative; margin: 0 8px; }
.flow__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid rgba(239,236,228,.4); border-right: 0; }
.flow__split { height: 140px; position: relative; margin: 0 8px; }
.flow__split i { position: absolute; left: 0; right: 0; height: 50%; border: 1px solid rgba(239,236,228,.4); border-right: 0; }
.flow__split i:first-child { top: 25%; height: 0; border-width: 1px 0 0 0; }
.flow__split i:last-child { top: 25%; height: 50%; border-width: 0 0 1px 1px; border-radius: 0 0 0 12px; left: 50%; }
.flow__split::before { content: ""; position: absolute; left: 0; width: 50%; top: 50%; height: 1px; background: rgba(239,236,228,.4); }
.flow__split::after { content: ""; position: absolute; left: 50%; top: 25%; width: 1px; height: 25%; background: rgba(239,236,228,.4); }
.flow__ends { display: flex; flex-direction: column; gap: 16px; }
.quote { margin-top: clamp(64px, 8vw, 120px); border-left: 3px solid var(--lime); padding-left: 28px; max-width: 920px; }
.quote p { font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 18px; }
.quote .mono { color: rgba(239,236,228,.5); text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ---------- applications ---------- */
.apps { padding: var(--sec) 0; }
.apps__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.app { border-radius: 20px; padding: 26px; background: var(--paper-2); display: flex; flex-direction: column; min-height: 360px; transition: transform .5s var(--ease); }
.app:hover { transform: translateY(-6px); }
.app h3 { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; margin: auto 0 12px; }
.app p { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.app > .mono { color: var(--ink-2); font-size: 11px; border-top: 1px solid var(--line); padding-top: 14px; }
.app--feature { background: var(--green); color: var(--paper); }
.app--feature p, .app--feature > .mono { color: rgba(239,236,228,.78); border-color: rgba(239,236,228,.2); }
.app--feature h3 { font-size: 36px; }
.chip { align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.chip--go { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chip--dev { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- pilot form ---------- */
.pilot { padding: var(--sec) 0; background: var(--paper-2); }
.pilot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pilot .h2 { margin-bottom: 28px; }
.checks { list-style: none; padding: 0; margin: 36px 0 0; }
.checks li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.form { background: var(--paper); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -40px rgba(14,18,15,.4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: inherit; font-family: var(--body); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(14,18,15,.25); border-radius: 0; padding: 10px 0; width: 100%;
  transition: border-color .2s;
}
.form select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E120F' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; cursor: pointer; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); }
.form .is-invalid { border-color: var(--oxy) !important; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 14px; line-height: 1.4; }
.form .consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form__status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form__status.ok { color: var(--green); font-weight: 600; }
.form__status.err { color: var(--oxy); }

/* ---------- faq ---------- */
.faq { padding: var(--sec) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--display); font-stretch: 110%; font-weight: 620; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { margin: 0 0 28px; color: var(--ink-2); max-width: 62ch; }

/* ---------- footer ---------- */
.foot { padding: clamp(80px, 10vw, 140px) 0 28px; }
.foot__big img { width: min(100%, 1040px); height: auto; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; padding-top: 28px; border-top: 1px solid rgba(239,236,228,.16); }
.foot__cols p { margin: 0; color: rgba(239,236,228,.75); font-size: 15px; }
.foot__cols a, .foot__cols .linkish { display: block; text-decoration: none; color: rgba(239,236,228,.75); font-size: 15px; padding: 3px 0; }
.foot__cols a:hover, .foot__cols .linkish:hover { color: var(--lime); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 80px; color: rgba(239,236,228,.45); font-size: 11px; }

/* ---------- consent bar ---------- */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; background: var(--night); color: var(--paper); border-radius: 18px; padding: 16px 16px 16px 22px; display: flex; gap: 20px; align-items: center; justify-content: space-between; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); animation: fade .5s var(--ease); }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; font-size: 14px; color: rgba(239,236,228,.8); }
.consent-bar div { display: flex; gap: 8px; flex: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__inner > .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 24px; }
  .lab { max-width: 560px; }
  .sec-head--split { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain li:nth-child(4) { border-left: 0; padding-left: 0; }
  .chain li:nth-child(3)::after { display: none; }
  .sim, .calc { grid-template-columns: 1fr; }
  .apps__grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__arrow { width: 1px; height: 32px; margin: 0 0 0 40px; }
  .flow__arrow::after { right: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid rgba(239,236,228,.4); border-bottom: 0; }
  .flow__split { height: 32px; }
  .flow__split i, .flow__split::before { display: none; }
  .flow__split::after { left: 40px; top: 0; height: 100%; }
  .flow__ends { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding-top: 96px; min-height: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fails { grid-template-columns: 1fr; }
  .material__grid { grid-template-columns: 1fr; gap: 0; }
  .material__sticky { top: 70px; height: 42vh; z-index: 2; }
  .step { min-height: 64vh; justify-content: flex-start; padding-top: 48px; }
  .step:first-of-type { padding-top: 64px; }
  .step p { font-size: 17px; }
  .material__steps > .sec-num { margin-top: 32px; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li, .chain li + li { padding: 24px 16px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .chain li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .chain li::after { display: none; }
  .chain svg { margin-bottom: 20px; width: 44px; height: 44px; }
  .sim, .calc__inputs, .calc__out, .form { padding: 20px; border-radius: 18px; }
  .sim__chart { min-height: 0; padding: 10px 4px 4px; }
  #chart text, #chart .tag { font-size: 19px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .03em; }
  .bar-row { grid-template-columns: 1fr 64px; }
  .bar-row .label { grid-column: 1 / -1; margin-bottom: -8px; }
  .calc__big { grid-template-columns: 1fr; }
  .calc__big > div, .calc__big > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .apps__grid { grid-template-columns: 1fr; }
  .app { min-height: 260px; }
  .flow__ends { grid-template-columns: 1fr; }
  .pilot__grid, .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .consent-bar { flex-direction: column; align-items: stretch; }
  .consent-bar div .btn { flex: 1; }
  .lab__readout { grid-template-columns: 1fr 1fr; }
  .lab__readout > div:last-child { grid-column: 1 / -1; }
  .seg button { padding: 10px 6px; font-size: 13px; }
}
@media (max-width: 420px) {
  .chain { grid-template-columns: 1fr; }
  .chain li:nth-child(even) { padding-left: 0; border-left: 0; }
  .foot__cols { grid-template-columns: 1fr; }
}
