/* Endocarb Materials: a fictional example site by Loomwest.
   Layout and motion language are Loomwest's own, written for this site; type, palette, words, film and images
   are Endocarb's own (brand-brief.md). Palette (2026-10-12): graphite, lab white, pale steel and deep cobalt, with the
   sodium D-line amber as the one warm accent. Corners: cards and frames 8 px, panels 10 px, pills and buttons round. */

:root {
  --carbon: #0e1318;   /* graphite: dark bands, text on light */
  --ground: #f3f5f7;   /* lab white: the page ground */
  --husk: #e3e9ef;     /* pale steel: light bands, card fills (token name kept from the first palette) */
  --orchard: #123a5a;  /* deep cobalt: the deep band, buttons (token name kept) */
  --shell: #1f5f86;    /* cobalt steel: accent text on light, fills (token name kept) */
  --sodium: #f0a202;   /* the 589 nm sodium D-line: accents on dark only */
  --sodium-ink: #8a5b00; /* the same amber, deepened: accent text on light only */
  --muted: #4a5562;
  --line: rgba(14, 19, 24, .16);
  --line-dark: rgba(243, 245, 247, .28);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* 0.4 s spring, bounce 0.2 (the study's small-UI spring) as a CSS easing */
  --ease-ui: linear(0, 0.0224, 0.0794, 0.1581, 0.2486, 0.3435, 0.4375, 0.5269, 0.6093, 0.6833, 0.7483, 0.8044, 0.8517, 0.8911, 0.9231, 0.9487, 0.9688, 0.9841, 0.9954, 1.0035, 1.0091, 1.0125, 1.0144, 1.0151, 1.015, 1.0142, 1.0131, 1.0118, 1.0104, 1.0089, 1.0075, 1.0063, 1.0051, 1.0041, 1.0032, 1.0024, 1.0018, 1.0013, 1.0009, 1.0006, 1);
  --dur-ui: 400ms;
  --ease-tween: cubic-bezier(.44, 0, .56, 1);

  --t-xl: 72px; --t-l: 40px; --t-m: 24px; --t-s: 20px;
  --b-l: 20px; --b-m: 16px; --b-s: 14px;
  --pad-x: 80px; --pad-y: 144px;
}
@media (max-width: 1279.98px) { :root { --t-xl: 56px; --t-l: 32px; --t-m: 22px; --b-l: 18px; --pad-x: 48px; --pad-y: 96px; } }
@media (max-width: 809.98px) { :root { --t-xl: 40px; --t-l: 28px; --t-m: 21px; --t-s: 19px; --b-l: 17px; --b-m: 16px; --pad-x: 24px; --pad-y: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--carbon); color: var(--carbon); font: 400 var(--b-m)/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ground); color: var(--carbon); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
main { display: block; background: var(--ground); }

/* type */
.d-xl { font: 800 var(--t-xl)/1.0 var(--display); letter-spacing: -0.03em; }
.d-l { font: 700 var(--t-l)/1.08 var(--display); letter-spacing: -0.02em; }
.d-m { font: 700 var(--t-m)/1.15 var(--display); letter-spacing: -0.01em; }
.d-s { font: 700 var(--t-s)/1.15 var(--display); }
.b-l { font: 400 var(--b-l)/1.45 var(--body); }
.b-s { font: 400 var(--b-s)/1.5 var(--body); }
.mono { font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.mono-s { font: 400 12px/1.3 var(--mono); letter-spacing: .04em; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.amber-ink { color: var(--sodium-ink); }
.husk .amber-ink { color: var(--shell); }  /* amber ink is 4.3:1 on husk, below AA: shell instead (5.5:1) */

/* appear on scroll (only while the script runs) */
.js [data-appear] { opacity: 0; }
.js [data-appear="text"], .js [data-appear="cards"], .js [data-appear="hero"] { transform: scale(.9); }
.js [data-appear="rise"] { transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) { .js [data-appear] { opacity: 1; transform: none; } }

/* ---------- header: the Loomwest nav standard ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: var(--ground); transition: background-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui); }
.site-header.solid { background: var(--carbon); box-shadow: 0 1px 0 rgba(243, 245, 247, .08); }  /* solid: a see-through bar let headings ghost through it */
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(14, 19, 24, .55), rgba(14, 19, 24, 0)); pointer-events: none; transition: opacity var(--dur-ui) var(--ease-ui); }
.site-header.solid::before { opacity: 0; }
.hdr { position: relative; display: flex; align-items: center; gap: 16px; height: 84px; padding: 0 var(--pad-x); }
.tog { position: relative; width: 44px; height: 44px; flex: none; border-radius: 2px; border: 1px solid var(--line-dark); background: rgba(14, 19, 24, .28); order: -1; }
.tog:hover { background: rgba(243, 245, 247, .16); }
.tog span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 0; background: currentColor; transition: transform .6s var(--ease-ui), opacity .3s; }
.tog span:nth-child(1) { top: 14px; } .tog span:nth-child(2) { top: 20px; right: 18px; background: var(--sodium); } .tog span:nth-child(3) { top: 26px; }
.tog[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tog[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tog[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 800 22px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.pills { display: flex; gap: 6px; margin: 0 auto; }
/* Page tabs as boxed lot labels: a sample code (EC.01 to EC.04) in sodium amber beside the page name, square corners, a
   hairline box, monospace caps. Hover and the current page fill at once with the lab-white ground. (Andre 2026-10-12: the
   box headers fit Endocarb's vibe; every site's tabs, pills and icons are designed for that site.) */
.pills a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 2px; border: 1px solid var(--line-dark);
  background: rgba(14, 19, 24, .28); text-decoration: none; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: inherit; white-space: nowrap; }
.pills a .tc { color: var(--sodium); letter-spacing: .04em; }
.pills a:hover { background: var(--ground); color: var(--carbon); border-color: var(--ground); }
.pills a:hover .tc, .pills a.on .tc { color: var(--sodium-ink); }
.pills a.on { background: var(--ground); color: var(--carbon); border-color: var(--ground); }
@media (max-width: 1279.98px) { .site-header .pills a .tc { display: none; } }
.hdr-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 2px; background: var(--sodium); color: var(--carbon); text-decoration: none;
  font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--sodium); }
.hdr-cta::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, 1px); }
.hdr-cta:hover { background: var(--ground); border-color: var(--ground); }
.pills + .hdr-cta { margin-left: 0; }
#menu-scrim { position: fixed; inset: 0; z-index: 64; background: rgba(14, 19, 24, .5); opacity: 0; pointer-events: none; transition: opacity .35s; touch-action: none; }
#menu-scrim.open { opacity: 1; pointer-events: auto; }
#menu-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 65; width: min(340px, 86vw); padding: 24px 22px 30px; background: var(--ground); color: var(--carbon); border-right: 1px solid var(--line); transform: translateX(-103%); visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
  transition: transform .42s cubic-bezier(.33, .02, .2, 1), visibility 0s linear .42s; }
#menu-panel.open { transform: none; visibility: visible; transition-delay: 0s; }
.menu-x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 2px; }
.menu-x:hover { border-color: var(--shell); }
#menu-panel .sub { margin: 22px 0 10px 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sodium-ink); }
#menu-panel .sub:first-of-type { margin-top: 0; }
#menu-panel a.p { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 13px 16px; margin: 0 0 8px; border-radius: 2px; border: 1px solid var(--line); text-decoration: none; font: 700 19px/1.1 var(--display);
  opacity: 0; transform: translateY(-20px); transition: opacity .6s var(--ease-tween), transform .6s var(--ease-tween), background-color .3s, color .3s; }
#menu-panel.open a.p { opacity: 1; transform: none; }
#menu-panel.open a.p:nth-of-type(2) { transition-delay: .1s; } #menu-panel.open a.p:nth-of-type(3) { transition-delay: .2s; } #menu-panel.open a.p:nth-of-type(4) { transition-delay: .3s; } #menu-panel.open a.p:nth-of-type(5) { transition-delay: .35s; }
#menu-panel a.p:hover { border-color: var(--shell); }
#menu-panel a.p.here { background: var(--carbon); color: var(--ground); border-color: var(--carbon); }
#menu-panel a.p .pl { display: inline-flex; align-items: baseline; gap: 12px; }
#menu-panel a.p .tc { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--sodium-ink); }
#menu-panel a.p.here .tc { color: var(--sodium); }
#menu-panel :focus-visible { outline-color: var(--shell); }
#menu-panel a.small { display: block; padding: 12px 16px; margin: 0 0 6px; border-radius: 2px; border: 1px solid var(--line); text-decoration: none; font: 500 14px/1.2 var(--body); }
#menu-panel a.small.go { background: var(--orchard); color: var(--ground); border-color: var(--orchard); }
#menu-panel .mh { margin-top: 22px; padding: 16px 16px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 979.98px) {
  .pills { display: none; }
  .tog { order: 1; }
  .brand { margin-right: auto; }
  .hdr-cta { margin-left: 0; }
  #menu-panel { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); transform: translateX(103%); }
}
.hdr-call { display: none; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 2px; background: var(--sodium); color: var(--carbon); text-decoration: none; font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 809.98px) { .hdr { height: 72px; gap: 10px; } .hdr-cta { display: none; } .hdr-call { display: inline-flex; } .brand { font-size: 20px; } }

/* ---------- home hero: plays once, scroll is never held ---------- */
.hero { position: relative; height: min(100vh, 980px); height: min(100svh, 980px); overflow: clip; background: var(--carbon); color: var(--ground); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; background: var(--carbon); }
.hero .grain { position: absolute; inset: 0; pointer-events: none; background: url(media/grain.png?v=0252f521) repeat 0 0 / 256px 256px; }   /* technical grain over the film (2026-10-12); the stills carry theirs baked in */
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(14, 19, 24, .62), rgba(14, 19, 24, .22) 75%), linear-gradient(180deg, rgba(14, 19, 24, .3) 0%, rgba(14, 19, 24, .12) 40%, rgba(14, 19, 24, .66)); pointer-events: none; }
.hero-center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--pad-x); text-align: center; pointer-events: none; }
.hero-copy { opacity: 0; max-width: 980px; }
.hero-copy h1, .hero-copy h2 { font: 800 clamp(34px, 5.4vw, 76px)/1.0 var(--display); letter-spacing: -0.03em; white-space: pre-line; text-shadow: 0 2px 30px rgba(14, 19, 24, .45); }
.hero-copy p { margin: 20px auto 0; max-width: 34em; font: 400 clamp(16px, 1.5vw, 20px)/1.45 var(--body); color: rgba(243, 245, 247, .92); text-shadow: 0 1px 14px rgba(14, 19, 24, .6); }
.dline { position: absolute; z-index: 2; left: var(--pad-x); right: var(--pad-x); top: 116px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.dline i { flex: 1; height: 1px; background: var(--sodium); transform-origin: left; transform: scaleX(0); }
.dline span { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--sodium); }
.hero-bottom { position: absolute; z-index: 3; left: var(--pad-x); right: var(--pad-x); bottom: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; }
.hero-cap { font: 500 13px/1.45 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: pre; }
.hero-skip { justify-self: center; padding: 10px 18px; border-radius: 8px; border: 1px solid rgba(243, 245, 247, .5); font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: background-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui); }
.hero-skip:hover { background: var(--ground); color: var(--carbon); }
.hero-chips { justify-self: end; display: inline-grid; }
.hero-chip { grid-area: 1 / 1; justify-self: end; display: inline-flex; opacity: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(243, 245, 247, .7); }
.hero-chip span { padding: 7px 12px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hero-chip span:first-child { background: var(--ground); color: var(--carbon); }
@media (max-width: 809.98px) {
  .hero-center { padding-bottom: 120px; }
  .dline { top: 92px; }
  .hero-bottom { bottom: max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .hero-cap { text-align: center; }
  .hero-skip { order: 1; }
  .hero-chips { justify-items: center; }
  .hero-chip { justify-self: center; }
}
@media (max-width: 809.98px), (pointer: coarse) { .hero-copy, .hero-chip { transition: opacity 220ms ease-out; } }

/* inner-page hero (one still, one screen) */
.hero-static { position: relative; height: min(100vh, 980px); height: min(100svh, 980px); display: flex; align-items: center; justify-content: center; padding: 120px var(--pad-x) 80px; overflow: clip; background: var(--carbon); color: var(--ground); text-align: center; }
.hero-static > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-static::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(14, 19, 24, .5), rgba(14, 19, 24, 0) 80%), linear-gradient(180deg, rgba(14, 19, 24, .5), rgba(14, 19, 24, .38) 50%, rgba(14, 19, 24, .62)); }
.hero-static .inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 900px; }
.hero-static h1 { text-shadow: 0 2px 30px rgba(14, 19, 24, .5); }
.hero-static .b-l { max-width: 680px; color: rgba(243, 245, 247, .94); }
.hero-short { height: auto; min-height: 520px; }

/* ---------- section shells ---------- */
.sec { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--pad-y) var(--pad-x); }
.sec > * { position: relative; z-index: 1; width: 100%; max-width: 1280px; }
.sec > .fill { position: absolute; inset: 0; z-index: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; }
.sec.dark { background: var(--carbon); color: var(--ground); }
.sec.green { background: var(--orchard); color: var(--ground); }
.sec.husk { background: var(--husk); }
.kicker { display: flex; align-items: center; gap: 14px; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .kicker, .green .kicker, .on-image .kicker { color: var(--sodium); }
.split { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.split > .head { flex: 1 0 0; max-width: 640px; }
.split > .copy { width: 44%; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 809.98px) { .split { flex-direction: column; gap: 20px; } .split > .head, .split > .copy { width: 100%; max-width: none; } }

/* the D-line divider (signature) */
.dl-rule { display: flex; align-items: center; gap: 14px; }
.dl-rule i { flex: 1; height: 1px; background: currentColor; opacity: .35; }
.dl-rule b { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--sodium-ink); font-weight: 500; }
.dark .dl-rule b, .green .dl-rule b, .on-image .dl-rule b { color: var(--sodium); }
.dl-rule em { font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; }

/* ---------- home: why sodium needs this ---------- */
.why { gap: 96px; background: var(--ground); }
.why-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.why-head h2 { max-width: 980px; }
.why-head p { max-width: 760px; color: var(--muted); }
.cards3 { display: flex; gap: 20px; }
.cards3 > * { flex: 1 0 0; width: 1px; min-height: 420px; }
.cards3 > * > .ncard { height: 100%; }
.ncard { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px; border-radius: 8px; overflow: clip; color: var(--carbon); background: linear-gradient(180deg, #fafbfc 0%, #eef2f6 55%, var(--husk) 120%); border: 1px solid var(--line); cursor: default;
  transition: color var(--dur-ui) var(--ease-ui); }
.ncard::before { content: ""; position: absolute; inset: 0; background: var(--fill); opacity: 0; }  /* the fill snaps, the text colour springs */
.ncard > * { position: relative; }
.ncard .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid currentColor; font: 500 12px/1 var(--mono); letter-spacing: .08em; }
.ncard .stat { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.ncard h3 { margin-bottom: 14px; }
.ncard .note { font: 400 12px/1.3 var(--mono); letter-spacing: .04em; opacity: .85; }
@media (hover: hover) and (min-width: 810px) { .ncard:hover { color: var(--ground); } .ncard:hover::before { opacity: 1; } }
@media (max-width: 1279.98px) { .cards3 { flex-direction: column; } .cards3 > * { width: 100%; flex: none; min-height: 340px; } }
@media (max-width: 809.98px) {
  .why { gap: 40px; }
  .ncard { background: var(--fill); color: var(--ground); border: 0; }
  .cards3 > * { min-height: 0; }
}

/* ---------- home: the material (glass panel on an image) ---------- */
.material { gap: 24px; color: var(--ground); }
.material::after { content: ""; position: absolute; inset: 0; background: rgba(14, 19, 24, .35); z-index: 0; }
.glass { display: flex; flex-direction: column; gap: 40px; padding: 40px; border-radius: 10px; background: rgba(14, 19, 24, .42); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); border: 1px solid rgba(243, 245, 247, .14); }
.glass .copy { color: rgba(243, 245, 247, .92); }
.grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gcard { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 8px; border: 1px solid rgba(243, 245, 247, .4); color: var(--ground); transition: background-color 0s, color 0s; }
.gcard:hover { background: var(--ground); color: var(--carbon); }
.gcard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gcard .code { font: 500 14px/1 var(--mono); letter-spacing: .06em; }
.gcard .state { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; border: 1px solid currentColor; }
.curve { width: 100%; height: auto; aspect-ratio: 2.2 / 1; }
.curve .axis { stroke: currentColor; stroke-opacity: .35; stroke-width: 1; fill: none; }
.curve .plot { stroke: var(--sodium); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.gcard:hover .curve .plot { stroke: var(--sodium-ink); }
.curve text { font: 400 9px var(--mono); fill: currentColor; fill-opacity: .7; }
.gcard .spec { font: 400 13px/1.5 var(--mono); }
.gcard p.b-s { opacity: .9; }
@media (max-width: 1279.98px) { .glass { padding: 24px; } .grades { grid-template-columns: 1fr; } }
@media (max-width: 809.98px) { .glass { padding: 20px; gap: 28px; } .material { gap: 20px; } }

/* ---------- home: scale with count-up numbers ---------- */
.scale { gap: 72px; background: var(--ground); }
.scale-row { display: flex; justify-content: space-between; }
.scard { position: relative; height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 24px; border-radius: 8px; overflow: clip; border: 1px solid var(--line); color: var(--orchard);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f4f7 50%, #d5e0ea 120%); transition: color var(--dur-ui) var(--ease-ui); }
.scard::before { content: ""; position: absolute; inset: 0; background: var(--fill); opacity: 0; }
.scard > * { position: relative; }
.scard:nth-child(1) { width: 24%; } .scard:nth-child(2) { width: 33%; } .scard:nth-child(3) { width: 41%; }
.count { position: relative; display: inline-block; font: 800 96px/1 var(--display); letter-spacing: -0.04em; }
.count-size { visibility: hidden; } .count-live { position: absolute; left: 0; top: 0; }
.scard .unit { margin-top: 18px; max-width: 240px; }
@media (hover: hover) and (min-width: 810px) { .scard:hover { color: var(--ground); } .scard:hover::before { opacity: 1; } }
@media (max-width: 1279.98px) { .scard { height: 360px; } .count { font-size: 72px; } }
@media (max-width: 809.98px) { .scale { gap: 40px; } .scale-row { flex-direction: column; gap: 16px; } .scard, .scard:nth-child(n) { width: 100%; height: 300px; } .count { font-size: 64px; } }

/* ---------- image band ---------- */
.band { position: relative; height: clamp(520px, 72vh, 760px); display: flex; align-items: center; justify-content: center; padding: 96px var(--pad-x); overflow: clip; color: var(--ground); text-align: center; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(14, 19, 24, .38); }
.band .inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 960px; }
.anchor { height: 1px; scroll-margin-top: 110px; }

/* micrograph scale bar (signature) */
.scalebar { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.scalebar i { display: block; height: 3px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* ---------- footer ---------- */
.site-footer { display: flex; flex-direction: column; gap: 72px; padding: 80px var(--pad-x) 40px; background: var(--carbon); color: var(--ground); }
.foot-form { display: flex; justify-content: space-between; gap: 40px; }
.foot-form h2 { flex: 1 0 0; white-space: pre-line; }
.foot-form .lead { margin-top: 18px; color: rgba(243, 245, 247, .8); max-width: 380px; }
.form { width: 56%; display: flex; flex-direction: column; gap: 10px; }
.form-pair { display: flex; gap: 10px; }
.form-pair > * { flex: 1 0 0; width: 1px; }
.field { display: block; width: 100%; height: 52px; padding: 14px 16px; border: 1px solid rgba(243, 245, 247, .55); border-radius: 8px; background: transparent; color: var(--ground); font: 400 16px/1.3 var(--body); outline: none; transition: border-color .3s cubic-bezier(.25, 0, .5, 1), background-color .3s; resize: vertical; }
.field::placeholder { color: rgba(243, 245, 247, .72); }
.field:focus { border-color: var(--sodium); background: rgba(243, 245, 247, .05); }
textarea.field { height: 180px; }
label.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.consent { font-size: 13px; line-height: 1.5; color: rgba(243, 245, 247, .78); }
.consent a { color: var(--ground); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 8px; font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease-tween), color .2s var(--ease-tween), border-color .2s var(--ease-tween); }
.btn-amber { background: var(--sodium); color: var(--carbon); }
.btn-amber:hover { background: transparent; color: var(--ground); border-color: var(--ground); }
.btn-green { background: var(--orchard); color: var(--ground); }
.btn-green:hover { background: transparent; color: var(--orchard); border-color: var(--orchard); }
.form-sent { display: none; font-size: 15px; color: var(--sodium); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.foot-bar .pills { margin: 0; flex-wrap: wrap; }
.foot-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(243, 245, 247, .74); }
.foot-meta a { color: var(--ground); }
@media (max-width: 1279.98px) { .foot-form { flex-direction: column; } .form { width: 100%; } }
@media (max-width: 809.98px) { .site-footer { gap: 48px; padding: 56px 24px 32px; } .form-pair { flex-direction: column; } .form-pair > * { width: 100%; } .foot-bar .pills { display: flex; } .btn { width: 100%; } }

/* ---------- process page ---------- */
.steps { gap: 72px; background: var(--ground); }
.col2 { display: flex; gap: 20px; }
.col2 > * { flex: 1 0 0; width: 1px; }
.frame { position: relative; border-radius: 8px; overflow: clip; background: var(--husk); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 630 / 400; }
.frame figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 6px 12px; border-radius: 8px; background: rgba(14, 19, 24, .72); color: var(--ground); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.streams { gap: 80px; }
.routes { display: flex; gap: 20px; }
.route { flex: 1 0 0; width: 1px; min-height: 400px; display: flex; gap: 24px; border-radius: 8px; overflow: clip; background: var(--ground); }
.route > img { width: 44%; height: auto; object-fit: cover; flex: none; }
.route .txt { flex: 1 0 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 28px 28px 0; }
.route .num { display: flex; justify-content: space-between; align-items: flex-start; }
.route .num b { font: 800 44px/1 var(--display); color: var(--shell); }
.route ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.route li { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.line-sec { gap: 64px; }
.flow { width: 100%; height: auto; }
.flow .box { fill: rgba(243, 245, 247, .06); stroke: rgba(243, 245, 247, .55); stroke-width: 1.2; }
.flow .lnk { stroke: var(--sodium); stroke-width: 2; fill: none; }
.flow .t1 { font: 700 19px var(--display); fill: var(--ground); }
.flow .t2 { font: 400 13px var(--mono); fill: rgba(243, 245, 247, .82); letter-spacing: .04em; }
.flow .t3 { font: 500 12px var(--mono); fill: var(--sodium); letter-spacing: .1em; }
.flow-v { display: none; }
@media (max-width: 809.98px) { .flow-h { display: none; } .flow-v { display: block; } }
.loop { gap: 20px; color: var(--ground); }
.loop::after { content: ""; position: absolute; inset: 0; background: rgba(14, 19, 24, .45); z-index: 0; }
.loop-cards { display: flex; gap: 20px; }
.loop-card { flex: 1 0 0; width: 1px; min-height: 260px; display: flex; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 10px; background: rgba(14, 19, 24, .45); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid rgba(243, 245, 247, .14); }
.loop-card .n { font: 500 30px/1 var(--mono); color: var(--sodium); }
.loop-card .t { width: 64%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
@media (max-width: 1279.98px) { .routes, .loop-cards { flex-direction: column; } .route, .loop-card { width: 100%; flex: none; } }
@media (max-width: 809.98px) {
  .steps, .streams { gap: 40px; } .col2 { flex-direction: column; } .col2 > * { width: 100%; }
  .route { flex-direction: column; } .route > img { width: 100%; height: 220px; } .route .txt { padding: 0 20px 24px; gap: 32px; }
  .loop-card .t { width: 70%; }
}

/* ---------- careers page ---------- */
.statement { min-height: 560px; justify-content: center; background: var(--ground); }
.statement h2 { text-align: center; color: var(--orchard); white-space: pre-line; }
.approach { gap: 64px; background: var(--husk); }
.principles { gap: 24px; padding-left: 0; padding-right: 0; background: var(--ground); align-items: stretch; }
.principles > * { max-width: none; }
.principles .wrap { padding: 0 var(--pad-x); max-width: none; }
[data-carousel] { overflow: hidden; }
.carousel-track { display: flex; gap: 20px; width: max-content; padding: 0 var(--pad-x); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; }
.carousel-track.is-dragging { cursor: grabbing; }
.pcard { width: 600px; height: 400px; display: flex; border-radius: 8px; overflow: clip; background: #fafbfc; border: 1px solid var(--line); }
.pcard > img { width: 270px; height: 100%; object-fit: cover; flex: none; pointer-events: none; }
.pcard .t { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.pcard .top { display: flex; justify-content: space-between; align-items: center; color: var(--shell); }
.arrows { display: flex; justify-content: center; gap: 16px; padding: 0 var(--pad-x); }
.arrow { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--carbon); display: grid; place-items: center; transition: background-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui); }
.arrow:hover { background: var(--carbon); color: var(--ground); }
.roles { gap: 48px; background: var(--ground); align-items: center; }
.roles-table { border: 1px solid var(--line); border-radius: 8px; overflow: clip; background: #fafbfc; }
.role-row { display: grid; grid-template-columns: 52% 1fr 1fr 44px; gap: 20px; align-items: center; min-height: 76px; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; transition: background-color var(--dur-ui) var(--ease-ui); }
.role-row:first-child { border-top: 0; min-height: 56px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
a.role-row:hover { background: var(--husk); }
.role-row .go { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; }
.role-row .r { font: 600 17px/1.3 var(--body); }
.role-row .m { font: 400 14px/1.3 var(--mono); color: var(--muted); }
@media (max-width: 809.98px) {
  .statement { min-height: 440px; }
  .approach { gap: 40px; }
  .pcard { width: 300px; height: 540px; flex-direction: column; }
  .pcard > img { width: 100%; height: 220px; }
  .pcard .t { width: 100%; }
  .role-row { grid-template-columns: 1fr 36px; gap: 6px 14px; }
  .role-row .m { grid-column: 1; }
  .role-row .go { grid-column: 2; grid-row: 1 / span 3; }
  .role-row:first-child { display: none; }
}

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list dt { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sodium-ink); margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 18px; line-height: 1.45; }
.contact-list a { color: var(--carbon); text-underline-offset: 3px; }
.maplinks { display: flex; gap: 14px; margin-top: 6px; font-size: 14px; }
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kit { padding: 24px; border-radius: 8px; border: 1px solid var(--line); background: #fafbfc; display: flex; flex-direction: column; gap: 10px; }
.kit b { font: 800 34px/1 var(--display); color: var(--shell); }
:root { --lw-map-accent: #8a5b00; --lw-map-ink: #0e1318; --lw-map-paper: #fff; --lw-map-panel: #f3f5f7; --lw-map-line: #0e1318; --lw-map-muted: #4a5562; --lw-map-font: var(--mono); --lw-map-radius: 8px; --lw-map-tiles: grayscale(.6) contrast(1.02); }
.contact-grid .lw-map { height: 100%; min-height: 380px; border-radius: 8px; }
@media (max-width: 1279.98px) { .contact-grid { grid-template-columns: 1fr; } .kits { grid-template-columns: 1fr; } }

/* privacy */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 18px; }
.prose a { color: var(--orchard); }

/* ---------- Cards respond (Andre 2026-10-12: click a picture to zoom or interact with the card) ----------
   Problem cards open the process page and grade cards open the sample request. Hover and keyboard focus share the
   instant fill (the studied snap), and a press settles the card. Photos in frames open in the shared lightbox
   (assets/lightbox.js + lightbox.css?v=74aa00bd, copied from tools/lwkit), skinned here in graphite and sodium amber. */
a.ncard, a.gcard { text-decoration: none; cursor: pointer; }
a.ncard:focus-visible { color: var(--ground); outline: 2px solid var(--sodium); outline-offset: 3px; }
a.ncard:focus-visible::before { opacity: 1; }
a.gcard:focus-visible { background: var(--ground); color: var(--carbon); outline: 2px solid var(--sodium); outline-offset: 3px; }
a.ncard:active, a.gcard:active { transform: scale(.99); transition: transform .08s; }
.gcard .go { margin-top: auto; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.frame img.lwlb-zoom { transition: transform .8s var(--ease-tween); }
.frame:hover img.lwlb-zoom, .frame img.lwlb-zoom:focus-visible { transform: scale(1.03); }
:root { --lwlb-bg: rgba(14, 19, 24, .95); --lwlb-focus: var(--sodium); --lwlb-radius: 8px; --lwlb-btn-radius: 2px; --lwlb-font: var(--mono); }
@media (prefers-reduced-motion: reduce) { a.ncard:active, a.gcard:active, .frame:hover img.lwlb-zoom { transform: none; } }

/* 10. the lot gauge (2026-10-13, Andre: "the mouse follower thing thats unique to that site"): a pointer made from
   Endocarb's own lot labels. Four sodium corner marks frame the spot like a sample gauge and trail the pointer; a
   boxed mono readout gives the position in micrometres, and over anything you can use it opens and names the action
   (EC > OPEN, SEND, DRAG, ZOOM). Desktop pointers only; the native cursor stays. */
.gauge { position: fixed; left: 0; top: 0; z-index: 9990; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease-tween); }
.gauge.on { opacity: 1; }
.gauge.on.off { opacity: 0; }
.gauge-box { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; will-change: transform; }
.gauge-box i { position: absolute; width: 9px; height: 9px; border: 0 solid var(--sodium); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.gauge-box i:nth-child(1) { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.gauge-box i:nth-child(2) { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.gauge-box i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.gauge-box i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.gauge.hot .gauge-box i:nth-child(1) { transform: translate(-7px, -7px); }
.gauge.hot .gauge-box i:nth-child(2) { transform: translate(7px, -7px); }
.gauge.hot .gauge-box i:nth-child(3) { transform: translate(-7px, 7px); }
.gauge.hot .gauge-box i:nth-child(4) { transform: translate(7px, 7px); }
.gauge.press .gauge-box i:nth-child(1) { transform: translate(4px, 4px); }
.gauge.press .gauge-box i:nth-child(2) { transform: translate(-4px, 4px); }
.gauge.press .gauge-box i:nth-child(3) { transform: translate(4px, -4px); }
.gauge.press .gauge-box i:nth-child(4) { transform: translate(-4px, -4px); }
.gauge-read { position: absolute; left: 30px; top: 30px; padding: 5px 7px; border: 1px solid var(--sodium); border-radius: 6px; background: var(--carbon); color: var(--sodium); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background-color .18s, color .18s; }
.gauge.hot .gauge-read { background: var(--sodium); color: var(--carbon); }
.gauge-dot { position: fixed; left: 0; top: 0; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--sodium); box-shadow: 0 0 0 1px var(--carbon); will-change: transform; }
.gauge.hot .gauge-dot { opacity: 0; }
@media print { .gauge { display: none; } }
