/*
Theme Name: Hallowell
Theme URI: https://hallowell.example
Author: Hallowell Watch Co.
Description: Independent mechanical watchmaking atelier theme. Strict two-color system (graphite + brass), oversized display type as the primary visual device, and a numbered-chapter narrative structure instead of interchangeable component sections. No custom cursor, no magnetic buttons, no gradient card glow — every interaction is drawn from watchmaking itself (a sweeping second hand, a chronograph count-up, a rotating movement diagram).
Version: 1.0
Requires PHP: 7.4
Text Domain: hallowell
*/

/* ============ Design tokens — exactly two colors: graphite + brass ============ */
:root {
  --bg: #131316;
  --bg-2: #1a1a1e;
  --bg-3: #202024;
  --panel: #17171b;
  --line: rgba(242,238,230,.10);
  --line-strong: rgba(242,238,230,.20);
  --ink: #f2eee6;
  --ink-dim: rgba(242,238,230,.66);
  --ink-mute: rgba(242,238,230,.40);
  --accent: #b08d57;
  --accent-soft: rgba(176,141,87,.14);
  --accent-strong: #c9a869;
  --ff-head: 'Archivo', 'Songti SC', sans-serif;
  --ff-body: 'Inter', 'Songti SC', sans-serif;
  --ff-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  --radius: 2px;
}

/* Native cross-document View Transitions (Chrome/Edge 126+) — a same-page cross-fade between full
   page loads, no JS router needed. Unsupported browsers simply ignore the at-rule and navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ff-body); font-size: 16.5px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
.mono { font-family: var(--ff-mono); letter-spacing: .04em; }
.eyebrow {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 780px) { .wrap { padding: 0 20px; } }

/* Fixed WebGL fog layer, sitewide — drifting brass-tinted haze + dust motes behind everything.
   Sits under the grain texture so the two combine into one atmosphere rather than fighting. */
#ambientFogCanvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; width: 100%; height: 100%; display: block; }

/* Fixed fine grain over the whole site — the one constant ambient texture, cheap and not a color wash */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ Progress / preloader ============ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 500; }
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader .pre-inner { font-size: 12px; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; font-family: var(--ff-mono); }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ Header ============ */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 22px 0; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.site-head.scrolled {
  background: rgba(19,19,22,.62); backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(242,238,230,.08), 0 20px 40px -30px rgba(0,0,0,.6);
  padding: 15px 0;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-head); font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.brand .brand-mark { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); }
.brand .brand-mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 1.5px; background: var(--accent); transform-origin: 0 50%; transform: rotate(-40deg); }
.brand .brand-mark::before { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 1.5px; background: var(--accent); transform-origin: 0 50%; transform: rotate(120deg); }
.head-nav { display: flex; align-items: center; gap: 34px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); position: relative; }
.main-nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--line-strong); color: var(--ink); position: relative; overflow: hidden;
}
.btn.primary { background: var(--accent); color: #16161a; border-color: var(--accent); font-weight: 600; z-index: 0; }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
/* Rotating conic-gradient border sweep, driven by an animatable custom property (CSS @property) — a real
   modern-CSS technique, not a pre-rendered gif or a JS-per-frame hack. */
@property --hw-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn.primary::before {
  content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--hw-angle), transparent 0 78%, var(--ink) 88%, var(--accent-strong) 94%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.btn.primary:hover::before { opacity: 1; animation: hw-spin 2.6s linear infinite; }
@keyframes hw-spin { to { --hw-angle: 360deg; } }
.btn:not(.primary) { transition: border-color .25s; }
.btn:not(.primary)::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 9px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.btn:not(.primary):hover { border-color: var(--line-strong); }
.btn:not(.primary):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 14px; height: 1px; background: var(--ink); position: relative; }
.nav-toggle span::before { position: absolute; top: -4px; }
.nav-toggle span::after { position: absolute; top: 4px; }
@media (max-width: 860px) { .main-nav { display: none; } .nav-toggle { display: flex; } }

.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav.open { visibility: visible; }
.mobile-nav .mn-scrim { position: absolute; inset: 0; background: rgba(10,10,11,.6); opacity: 0; transition: opacity .3s; }
.mobile-nav.open .mn-scrim { opacity: 1; }
.mobile-nav .mn-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86%); background: var(--bg-2); border-left: 1px solid var(--line); padding: 96px 28px 28px; transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.mobile-nav.open .mn-panel { transform: translateX(0); }
.mobile-nav a { display: block; padding: 15px 0; font-family: var(--ff-head); font-size: 22px; font-weight: 700; border-bottom: 1px solid var(--line); }

/* ============ Hero — watch face is the whole visual device, not a decorative add-on ============ */
.hero { padding: 168px 0 90px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.hero-kicker { margin-bottom: 24px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 108px); letter-spacing: -.02em; text-transform: uppercase; }
.hero h1 .line { overflow: hidden; display: block; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); transition: transform 1.05s cubic-bezier(.16,1,.3,1); }
.hero h1 .line span.in { transform: translateY(0); }
.hero-lede { font-size: 16.5px; color: var(--ink-dim); margin: 26px 0 32px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .hs-num { font-family: var(--ff-head); font-size: 30px; font-weight: 800; color: var(--accent); }
.hero-stats .hs-label { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; }

.watch-face { position: relative; aspect-ratio: 1/1; }
.watch-face svg { width: 100%; height: 100%; display: block; transition: opacity .6s; }
.watch-face .wf-hand { transform-origin: 100px 100px; }
.watch-face .wf-sec { animation: wf-tick 60s linear infinite; }
@keyframes wf-tick { to { transform: rotate(360deg); } }
.watch-face canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; pointer-events: none; }
.watch-face.wf-3d svg { opacity: 0; }
.watch-face.wf-3d canvas { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .watch-face { order: -1; max-width: 320px; margin: 0 auto; } }

/* ============ Chapter numerals — the recurring structural device across the whole site ============ */
.chapter { position: relative; }
.chapter-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-bottom: 48px; }
.chapter-num {
  font-family: var(--ff-head); font-weight: 800; font-size: clamp(64px, 9vw, 148px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none;
}
.chapter-head h2 { font-size: clamp(26px, 3.2vw, 40px); margin-top: 14px; max-width: 18ch; }
.chapter-head p { color: var(--ink-dim); max-width: 46ch; font-size: 14.5px; margin-top: 12px; }
@media (max-width: 700px) { .chapter-head { grid-template-columns: 1fr; gap: 6px; } .chapter-num { font-size: 56px; } }

/* ============ Spec ticker ============ */
.ticker-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 52px; will-change: transform; }
.ticker-track span { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 52px; }
.ticker-track span::after { content: '◆'; color: var(--accent); font-size: 7px; }

/* ============ Story split ============ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-media { position: relative; border: 1px solid var(--line-strong); overflow: hidden; aspect-ratio: 4/5; }
.story-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.08) brightness(.92); }
.story-media .badge { position: absolute; left: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); padding: 14px 20px; }
.story-media .badge .b-num { font-family: var(--ff-head); font-size: 26px; font-weight: 800; color: var(--accent); }
.story-media .badge .b-label { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.story-copy p { color: var(--ink-dim); margin: 18px 0; }
.story-list { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.story-list li { display: flex; gap: 12px; font-size: 13.5px; color: var(--ink-dim); }
.story-list li::before { content: '—'; color: var(--accent); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

/* ============ Standard sections ============ */
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 70px 0; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ============ Cursor-tracked glass spotlight + 3D tilt — applied to every card grid on the site,
   not just the hero. --hw-mx/--hw-my/--hw-rx/--hw-ry are set by main.js on pointermove; the CSS
   does the actual glass/light/perspective work so the JS stays a thin data feed. ============ */
.hw-tilt {
  --hw-mx: 50%; --hw-my: 50%; --hw-rx: 0deg; --hw-ry: 0deg;
  transform: perspective(900px) rotateX(var(--hw-rx)) rotateY(var(--hw-ry));
  transition: transform .5s cubic-bezier(.16,1,.3,1), background .3s;
  will-change: transform;
}
.hw-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--hw-mx) var(--hw-my), rgba(242,238,230,.10), transparent 60%);
}
.hw-tilt:hover .hw-glow { opacity: 1; }

/* ============ Reference (watch model) cards — movement diagram rotates on hover, no gradient glow ============ */
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reference-card { display: block; background: var(--bg); padding: 32px 28px; transition: background .3s; position: relative; overflow: hidden; }
.reference-card:hover { background: var(--bg-2); }
.ref-frame { position: relative; aspect-ratio: 1/1; margin-bottom: 22px; }
.ref-frame svg { width: 100%; height: 100%; }
.ref-frame .rf-gear { transform-origin: 100px 100px; transition: transform 3.5s cubic-bezier(.16,1,.3,1); }
.reference-card:hover .ref-frame .rf-gear { transform: rotate(140deg); }
.ref-code { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.reference-card h3 { font-size: 21px; margin-top: 10px; }
.reference-card .ref-price { font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; }
@media (max-width: 980px) { .reference-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reference-grid { grid-template-columns: 1fr; } }

/* ============ Collections ============ */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.collection-card { display: block; background: var(--bg); padding: 34px 30px; transition: background .3s; position: relative; overflow: hidden; }
.collection-card:hover { background: var(--bg-2); }
.coll-mark { width: 92px; margin: 0 auto 22px; }
.coll-mark svg { width: 100%; height: 100%; }
.collection-card h3 { font-size: 20px; margin: 14px 0 10px; text-align: center; }
.collection-card p { color: var(--ink-dim); font-size: 13.5px; text-align: center; }
.collection-card .eyebrow { justify-content: center; width: 100%; }
@media (max-width: 980px) { .collection-grid { grid-template-columns: 1fr; } }

/* ============ Stat band — a full-width chronograph readout, not three lonely hero numbers ============ */
.stat-band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-cell { background: var(--bg); padding: 34px 20px; text-align: center; }
.stat-cell .sc-num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(28px, 3vw, 40px); color: var(--accent); }
.stat-cell .sc-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; line-height: 1.4; }
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* ============ Owner notes — testimonials with a hairline grid, matching every other card block ============ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote-card { background: var(--bg); padding: 32px 28px; position: relative; overflow: hidden; }
.quote-card .qc-mark { font-family: var(--ff-head); font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; opacity: .5; }
.quote-card p { font-size: 15px; color: var(--ink-dim); margin: 14px 0 20px; font-style: italic; }
.quote-card .qc-name { font-size: 13.5px; font-weight: 600; }
.quote-card .qc-ref { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-mute); margin-top: 4px; }
@media (max-width: 980px) { .quote-grid { grid-template-columns: 1fr; } }

/* ============ Journal / notes cards ============ */
.notebook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 980px) { .notebook-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .notebook-grid { grid-template-columns: 1fr; } }
.notebook-card { display: block; background: var(--bg); padding: 28px 26px; transition: background .3s; position: relative; overflow: hidden; }
.notebook-card:hover { background: var(--bg-2); }
.notebook-card .nc-date { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.notebook-card h3 { font-size: 18px; margin: 12px 0 8px; font-weight: 700; }
.notebook-card p { font-size: 13.5px; color: var(--ink-dim); }

.cta-band { text-align: center; padding: 110px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 46px); max-width: 20ch; margin: 0 auto 22px; text-transform: uppercase; }
.cta-band p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-foot { padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--ink-mute); font-size: 13px; max-width: 32ch; }
.foot-col h4 { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--ink-dim); transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-bottom p { font-family: var(--ff-mono); font-size: 10.5px; color: var(--ink-mute); }

/* ============ Forms ============ */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 0; padding: 13px 14px; color: var(--ink); font-family: var(--ff-body); font-size: 14.5px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }

/* ============ Team, presented as a movement spec sheet ============ */
.team-list { max-width: 660px; margin: 0 auto; border-top: 1px solid var(--line); }
.team-row { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.team-row .tr-stamp {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-size: 14px; font-weight: 800; color: var(--accent);
}
.team-row h4 { font-size: 16.5px; }
.team-row .tr-role { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; }
.team-row .tr-note { margin-left: auto; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-align: right; white-space: nowrap; }

/* ============ Numbered process steps ============ */
.survey-steps { max-width: 700px; margin: 0 auto; }
.survey-step { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.survey-step:last-child { border-bottom: 1px solid var(--line); }
.survey-step .ss-num { font-family: var(--ff-head); font-weight: 800; font-size: 28px; color: var(--accent); flex-shrink: 0; width: 46px; }
.survey-step h3 { font-size: 18px; margin-bottom: 8px; }
.survey-step p { font-size: 14px; color: var(--ink-dim); }

/* ============ Inner pages ============ */
.page-hero { padding: 146px 0 60px; position: relative; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 54px); max-width: 20ch; text-transform: uppercase; }
.page-hero-lede { color: var(--ink-dim); max-width: 58ch; margin-top: 20px; font-size: 15.5px; }
.entry-content { max-width: 680px; margin: 0 auto; font-size: 16.5px; }
.entry-content p { margin: 0 0 20px; color: var(--ink-dim); }
.entry-content h2 { font-size: 24px; margin: 42px 0 16px; }
.entry-content h3 { font-size: 19px; margin: 30px 0 12px; }
.entry-content img { margin: 26px 0; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 2px solid var(--accent); padding-left: 18px; font-style: italic; margin: 26px 0; }

.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-card { padding: 30px; background: var(--bg); position: relative; overflow: hidden; }
.kit-card .kc-num { font-family: var(--ff-mono); color: var(--accent); font-size: 11px; }
.kit-card h3 { font-size: 17px; margin: 14px 0 8px; }
.kit-card p { color: var(--ink-dim); font-size: 13.5px; }

.log-list { display: flex; flex-direction: column; }
.log-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.log-list .log-row:last-child { border-bottom: 1px solid var(--line); }
.log-row .lr-date { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); }
.log-row h3 { font-size: 17px; font-weight: 700; transition: color .2s; }
.log-row:hover h3 { color: var(--accent); }
.log-row .lr-arrow { font-family: var(--ff-mono); color: var(--ink-mute); transition: transform .2s, color .2s; }
.log-row:hover .lr-arrow { transform: translateX(3px); color: var(--accent); }
@media (max-width: 700px) { .log-row { grid-template-columns: 1fr; gap: 6px; } }

.spec-sheet { border: 1px solid var(--line-strong); padding: 24px; background: var(--bg-2); }
.spec-sheet .ss-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.spec-sheet .ss-row:first-child { border-top: none; }
.spec-sheet .ss-row .ss-k { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.spec-sheet .ss-row .ss-v { text-align: right; }

.error-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 20px 60px; }
.error-404 .e4-num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(72px,15vw,150px); color: var(--accent); line-height: 1; }

/* Stat counter, animated on scroll — a chronograph count-up, not a gradient-text gimmick */
.counter { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
