/*
Theme Name: Fathom
Theme URI: https://fathom.example
Author: Fathom Research Institute
Description: Independent deep-sea research institute theme. Scroll depth drives ambient color, sonar-ping reveals, bioluminescent particle field.
Version: 1.0
Requires PHP: 7.4
Text Domain: fathom
*/

/* ============ Design tokens ============ */
:root {
  --bg-surface: #d9f2ef;
  --bg-shallow: #0e5266;
  --bg-mid: #0a2f42;
  --bg-deep: #041521;
  --bg: #02090f;
  --panel: rgba(255,255,255,.035);
  --panel-2: rgba(255,255,255,.06);
  --panel-3: rgba(255,255,255,.09);
  --line: rgba(148,214,214,.14);
  --line-strong: rgba(148,214,214,.28);
  --ink: #eaf8f6;
  --ink-dim: rgba(234,248,246,.68);
  --ink-mute: rgba(234,248,246,.42);
  --accent: #5eead4;
  --accent-soft: rgba(94,234,212,.16);
  --accent-2: #ff8a5c;
  --accent-2-soft: rgba(255,138,92,.16);
  --grad: #4fd1ff;
  --ff-head: 'Fraunces', Georgia, 'Songti SC', serif;
  --ff-body: 'IBM Plex Sans', 'PingFang SC', -apple-system, sans-serif;
  --ff-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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; }
::selection { background: var(--accent); color: var(--bg-deep); }

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

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

/* ============ Depth background system ============ */
/* --depth (0..1) is driven by ScrollTrigger scrub across the whole document.
   0 = surface light, 1 = abyssal black. Everything reads this one variable. */
:root { --depth: 0; }

#depth-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 60% at 50% calc(-10% + var(--depth) * -20%), rgba(217,242,239, calc(.35 - var(--depth) * .35)), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-shallow) calc(100% - var(--depth) * 100%), var(--bg-mid) calc(var(--depth) * 100%)) 0%,
      color-mix(in srgb, var(--bg-mid) calc(100% - var(--depth) * 100%), var(--bg-deep) calc(var(--depth) * 100%)) 55%,
      color-mix(in srgb, var(--bg-deep) calc(100% - var(--depth) * 100%), var(--bg) calc(var(--depth) * 100%)) 100%
    );
  transition: background .4s linear;
}
#depth-rays {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: calc(.5 - var(--depth) * .48);
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 2px, transparent 2px, transparent 90px);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* GPU-rendered drifting fog — a single fixed WebGL layer shows through every
   section since sections have no opaque background of their own, which reads
   as "fog behind each block" without paying for a WebGL context per section. */
#fog-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -3;
  pointer-events: none; mix-blend-mode: screen;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
#biolume-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; pointer-events: none;
  opacity: var(--depth);
  transition: opacity .5s linear;
}

/* ============ Depth gauge (fixed HUD) ============ */
.depth-gauge {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  font-family: var(--ff-mono);
  background: rgba(2,9,15,.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  backdrop-filter: blur(6px);
  min-width: 128px;
}
.depth-gauge .dg-label {
  font-size: 10px; letter-spacing: .16em; color: var(--ink-mute); text-transform: uppercase;
}
.depth-gauge .dg-value {
  font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 4px;
}
.depth-gauge .dg-unit { font-size: 12px; color: var(--ink-dim); }
.depth-gauge .dg-bar {
  margin-top: 8px; height: 3px; background: var(--panel-2); border-radius: 2px; overflow: hidden;
}
.depth-gauge .dg-bar span {
  display: block; height: 100%; width: calc(var(--depth) * 100%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
@media (max-width: 780px) { .depth-gauge { right: 14px; bottom: 14px; padding: 9px 12px; min-width: 100px; } .depth-gauge .dg-value { font-size: 17px; } }

/* ============ Preloader ============ */
.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: .2em; color: var(--accent); text-transform: uppercase; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ Progress bar ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
}

/* ============ Header ============ */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(2,9,15,.72);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 14px 0;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-size: 20px; }
.brand .brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
}
.brand .brand-mark::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim); position: relative; padding: 4px 0;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent);
  transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }
.head-right { display: flex; align-items: center; gap: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  position: relative; overflow: hidden; background: transparent; color: var(--ink);
}
.btn.primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); font-weight: 600; }
.btn .shine {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .5s;
}
.btn:hover .shine { left: 130%; }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform .25s;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .head-right .btn.primary { display: none; }
}

/* Mobile drawer */
.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(2,9,15,.7); 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, 84%);
  background: var(--bg-deep); border-left: 1px solid var(--line);
  padding: 90px 28px 28px; transform: translateX(100%); transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.open .mn-panel { transform: translateX(0); }
.mobile-nav a { display: block; padding: 14px 0; font-family: var(--ff-head); font-size: 22px; border-bottom: 1px solid var(--line); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 92px);
  max-width: 15ch;
}
.hero h1 .line { overflow: hidden; display: block; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); }
.hero-lede { margin: 28px 0 40px; font-size: 18px; color: var(--ink-dim); max-width: 52ch; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .hs-num { font-family: var(--ff-head); font-size: 34px; color: var(--accent); }
.hero-stats .hs-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute);
}
.scroll-cue .line-drop { width: 1px; height: 34px; background: linear-gradient(180deg, var(--accent), transparent); animation: dropPulse 2s ease-in-out infinite; }
@keyframes dropPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ============ Sections generic ============ */
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 14px; max-width: 18ch; }
.section-head p { color: var(--ink-dim); max-width: 42ch; font-size: 15px; }

/* reveal-on-scroll with sonar-ping */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-ping] { position: relative; }
[data-ping].in::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border: 1px solid var(--accent); border-radius: 50%; pointer-events: none;
  animation: sonarPing 1.1s cubic-bezier(.2,.6,.3,1) forwards;
  z-index: 5;
}
@keyframes sonarPing {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(22); }
}

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

/* ============ About / story split ============ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(94,234,212,.35);
}
.story-media img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85);
  transform: scale(1.06); transition: transform 6s cubic-bezier(.19,1,.22,1);
}
[data-reveal].in .story-media img { transform: scale(1); }
.story-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(120% 90% at 18% 100%, rgba(94,234,212,.4), transparent 60%),
              radial-gradient(90% 70% at 100% 0%, rgba(94,234,212,.18), transparent 65%);
}
.story-media .badge {
  position: absolute; left: 20px; bottom: 20px; background: rgba(2,9,15,.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 18px;
}
.story-media .badge .b-num { font-family: var(--ff-head); font-size: 26px; color: var(--accent); }
.story-media .badge .b-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.story-copy p { color: var(--ink-dim); margin: 20px 0; }
.story-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.story-list li { display: flex; gap: 12px; font-size: 14px; color: var(--ink-dim); }
.story-list li::before { content: '—'; color: var(--accent); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

/* ============ Porthole grid (expeditions) ============ */
.porthole-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
@media (max-width: 980px) { .porthole-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .porthole-grid { grid-template-columns: 1fr; } }
.porthole {
  display: block; text-align: center;
}
.porthole-frame {
  position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--panel-3);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0,0,0,.6);
  transition: border-color .35s, transform .35s;
}
.porthole:hover .porthole-frame { border-color: var(--accent); transform: translateY(-6px); }
.porthole-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.14), transparent 45%);
  pointer-events: none;
}
.porthole-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.78); transition: transform .6s ease, filter .6s; }
.porthole:hover .porthole-frame img { transform: scale(1.08); filter: saturate(1) brightness(.9); }
.porthole-frame .ph-depth {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent);
  background: rgba(2,9,15,.55); padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.porthole-meta { margin-top: 20px; }
.porthole-meta .pm-code { font-family: var(--ff-mono); font-size: 11px; color: var(--accent-2); letter-spacing: .1em; }
.porthole-meta h3 { font-size: 19px; margin-top: 8px; }
.porthole-meta .pm-loc { font-size: 13px; color: var(--ink-mute); margin-top: 6px; }
.porthole-meta .pm-status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim);
}
.porthole-meta .pm-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); }
.porthole-meta .pm-status.active::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.porthole-meta .pm-status.completed::before { background: #6b9bd1; }
.porthole-meta .pm-status.planned::before { background: var(--accent-2); }

/* ============ Sonar log / dispatches ============ */
.log-list { display: flex; flex-direction: column; }
.log-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 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: 12px; color: var(--ink-mute); }
.log-row h3 { font-size: 19px; font-weight: 500; transition: color .25s; }
.log-row:hover h3 { color: var(--accent); }
.log-row .lr-tag { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.log-row .lr-arrow { font-family: var(--ff-mono); color: var(--ink-mute); transition: transform .25s, color .25s; }
.log-row:hover .lr-arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 700px) { .log-row { grid-template-columns: 1fr; gap: 8px; } }

/* ============ Depth timeline (hadal zones) ============ */
.zone-strip { position: relative; }
.zone-track { position: relative; padding-left: 40px; border-left: 1px solid var(--line-strong); }
.zone {
  position: relative; padding: 0 0 64px 28px;
}
.zone:last-child { padding-bottom: 0; }
.zone::before {
  content: ''; position: absolute; left: -46px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.zone .z-range { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.zone h3 { font-size: 24px; margin: 10px 0 8px; }
.zone p { color: var(--ink-dim); max-width: 56ch; font-size: 14.5px; }

/* ============ Crew ============ */
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 980px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .crew-grid { grid-template-columns: 1fr; } }
.crew-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--panel);
  transition: border-color .3s, transform .3s;
}
.crew-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.crew-badge {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 16px; color: var(--accent);
  margin-bottom: 18px;
}
.crew-card h3 { font-size: 16.5px; }
.crew-card .cc-role { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); margin-top: 6px; letter-spacing: .04em; }
.crew-card .cc-note { font-size: 12px; color: var(--ink-mute); margin-top: 12px; opacity: .7; }

/* ============ Stats band ============ */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 48px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: none; }
.stat-cell .stat-num { font-family: var(--ff-head); font-size: 44px; color: var(--accent); }
.stat-cell .stat-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } .stat-cell { border-top: 1px solid var(--line); } .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-top: none; } .stat-cell:nth-child(even) { border-left: 1px solid var(--line); } .stat-cell:nth-child(odd) { border-left: none; } }

/* ============ CTA band ============ */
.cta-band {
  position: relative; text-align: center; padding: 130px 0; overflow: hidden;
}
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); max-width: 18ch; margin: 0 auto 30px; }
.cta-band p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 40px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-foot { border-top: 1px solid var(--line); padding: 76px 0 36px; position: relative; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@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: 13.5px; max-width: 34ch; }
.foot-col h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.foot-col a { display: block; padding: 7px 0; font-size: 14px; 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: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-bottom p { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); }

/* ============ Forms ============ */
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  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: 130px; resize: vertical; }

/* ============ Cursor ============ */
.cursor-sonar {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 200; transform: translate(-50%,-50%);
  transition: transform .12s, opacity .3s;
  box-shadow: 0 0 10px var(--accent);
}
.cursor-sonar.hovering { transform: translate(-50%,-50%) scale(2.4); }
@media (hover: none), (max-width: 900px) { .cursor-sonar { display: none; } }

/* ============ Article / single ============ */
.page-hero { padding: 150px 0 70px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); max-width: 20ch; }
.page-hero-lede { color: var(--ink-dim); max-width: 60ch; margin-top: 22px; font-size: 16px; }
.entry-content { max-width: 720px; margin: 0 auto; font-size: 17px; }
.entry-content p { margin: 0 0 22px; color: var(--ink-dim); }
.entry-content h2 { font-size: 26px; margin: 46px 0 18px; }
.entry-content h3 { font-size: 20px; margin: 34px 0 14px; }
.entry-content img { border-radius: var(--radius); margin: 30px 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: 20px; color: var(--ink); font-style: italic; margin: 30px 0; }
.meta-strip { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; margin-top: 24px; }

.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--panel); }
.kit-card .kc-num { font-family: var(--ff-mono); color: var(--accent); font-size: 12px; }
.kit-card h3 { font-size: 19px; margin: 14px 0 10px; }
.kit-card p { color: var(--ink-dim); font-size: 14px; }

.case-list { border-top: 1px solid var(--line); }
.case-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 16px; flex-wrap: wrap; }
.case-row .cr-code { font-family: var(--ff-mono); color: var(--accent-2); font-size: 12px; }

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

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