/* ============================================================
   KEN'S OLFACTORY ODYSSEY
   Design system — jewel-toned editorial luxe
   Three switchable directions: Oud Noir / Atelier / Vitrine
   ============================================================ */

/* ---------- Direction: OUD NOIR (default) ---------- */
:root {
  --bg:      oklch(0.165 0.022 340);
  --bg-2:    oklch(0.205 0.026 340);
  --bg-3:    oklch(0.255 0.030 340);
  --fg:      oklch(0.945 0.012 85);
  --fg-soft: oklch(0.820 0.015 85);
  --fg-mute: oklch(0.660 0.020 80);
  --line:    oklch(0.330 0.025 340);
  --line-2:  oklch(0.420 0.030 340);

  --gold:    oklch(0.800 0.110 80);
  --plum:    oklch(0.680 0.140 350);
  --emerald: oklch(0.730 0.110 165);

  --accent:   var(--gold);
  --on-accent: oklch(0.17 0.02 80);

  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  --shadow: 0 30px 80px -30px oklch(0 0 0 / 0.7);
  --grain-opacity: 0.05;
  --photo-tint: color-mix(in oklch, var(--plum) 14%, transparent);
}

/* ---------- Direction: ATELIER (warm paper editorial) ---------- */
[data-theme="atelier"] {
  --bg:      oklch(0.953 0.012 85);
  --bg-2:    oklch(0.982 0.008 85);
  --bg-3:    oklch(0.910 0.016 80);
  --fg:      oklch(0.215 0.022 340);
  --fg-soft: oklch(0.380 0.022 340);
  --fg-mute: oklch(0.520 0.020 340);
  --line:    oklch(0.840 0.018 80);
  --line-2:  oklch(0.760 0.022 80);

  --gold:    oklch(0.560 0.110 65);
  --plum:    oklch(0.470 0.150 350);
  --emerald: oklch(0.460 0.105 165);

  --accent:   var(--plum);
  --on-accent: oklch(0.97 0.01 85);

  --shadow: 0 26px 60px -32px oklch(0.30 0.05 340 / 0.45);
  --grain-opacity: 0.04;
  --photo-tint: transparent;
}

/* ---------- Direction: VITRINE (cool smoky glass) ---------- */
[data-theme="vitrine"] {
  --bg:      oklch(0.200 0.012 250);
  --bg-2:    oklch(0.248 0.016 250);
  --bg-3:    oklch(0.300 0.018 250);
  --fg:      oklch(0.952 0.005 240);
  --fg-soft: oklch(0.820 0.010 240);
  --fg-mute: oklch(0.660 0.012 240);
  --line:    oklch(0.360 0.020 250);
  --line-2:  oklch(0.450 0.024 250);

  --gold:    oklch(0.820 0.090 85);
  --plum:    oklch(0.720 0.130 320);
  --emerald: oklch(0.760 0.105 175);

  --accent:   var(--emerald);
  --on-accent: oklch(0.18 0.02 250);

  --shadow: 0 30px 80px -34px oklch(0 0 0 / 0.6);
  --grain-opacity: 0.05;
  --photo-tint: color-mix(in oklch, var(--emerald) 12%, transparent);
}

/* ---------- Direction: LAB (olfactory laboratory — clinical specimen sheet) ---------- */
[data-theme="lab"] {
  --bg:      oklch(0.967 0.006 95);
  --bg-2:    oklch(0.987 0.004 95);
  --bg-3:    oklch(0.926 0.008 90);
  --fg:      oklch(0.235 0.010 260);
  --fg-soft: oklch(0.400 0.012 260);
  --fg-mute: oklch(0.555 0.010 260);
  --line:    oklch(0.880 0.006 90);
  --line-2:  oklch(0.795 0.010 90);

  --gold:    oklch(0.585 0.120 62);   /* amber — distillation / amber glass */
  --plum:    oklch(0.470 0.140 300);  /* specimen violet */
  --emerald: oklch(0.500 0.100 190);  /* reactive teal */

  --accent:   var(--gold);
  --on-accent: oklch(0.985 0.005 95);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  --shadow: 0 24px 56px -34px oklch(0.30 0.02 260 / 0.32);
  --grain-opacity: 0.025;
  --photo-tint: transparent;
}
/* Lab is grotesk, not Didone — relax the Didone-specific optical treatment */
[data-theme="lab"] .display,
[data-theme="lab"] h1,
[data-theme="lab"] h2,
[data-theme="lab"] h3,
[data-theme="lab"] h4 { font-optical-sizing: auto; letter-spacing: -0.02em; font-weight: 600; }
[data-theme="lab"] .stat .n,
[data-theme="lab"] .hero-stat .n { letter-spacing: -0.03em; font-weight: 600; }
/* Scientific touch: monospaced, technical superscripts on the big figures */
[data-theme="lab"] .stat .n sup { font-family: var(--font-mono); font-weight: 700; }

/* ---------- Lead-accent overrides ---------- */
[data-accent="gold"]    { --accent: var(--gold);    --on-accent: oklch(0.17 0.02 80); }
[data-accent="plum"]    { --accent: var(--plum);    --on-accent: oklch(0.98 0.01 350); }
[data-accent="emerald"] { --accent: var(--emerald); --on-accent: oklch(0.16 0.02 165); }

/* ---------- Display face swap (overrides theme display) ---------- */
[data-display="playfair"]   { --font-display: "Playfair Display", Georgia, serif; }
[data-display="spectral"]   { --font-display: "Spectral", Georgia, serif; }
[data-display="newsreader"] { --font-display: "Newsreader", Georgia, serif; }
[data-display="cormorant"]  { --font-display: "Cormorant", Georgia, serif; }
[data-display="bodoni"]     { --font-display: "Bodoni Moda", Georgia, serif; }

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Film-grain + vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 50%, color-mix(in oklch, var(--bg) 70%, black) 130%);
  mix-blend-mode: multiply;
  opacity: 0.6;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap { width: min(1280px, 100% - 10vw); margin-inline: auto; position: relative; z-index: 3; }
.section { padding-block: clamp(80px, 12vh, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vh, 100px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.8em; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.0; letter-spacing: -0.01em; color: var(--fg); font-optical-sizing: none; }
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--fg);
  font-optical-sizing: none;
}
.ital { font-style: italic; }
.accent-text { color: var(--accent); }
.plum-text { color: var(--plum); }
.emerald-text { color: var(--emerald); }
.gold-text { color: var(--gold); }
.soft { color: var(--fg-soft); }
.mute { color: var(--fg-mute); }

.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--fg-soft); text-wrap: pretty; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px color-mix(in oklch, var(--accent) 60%, transparent);
}
.btn--solid:hover { box-shadow: 0 16px 40px -12px color-mix(in oklch, var(--accent) 70%, transparent); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.brand .monogram {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  flex: none;
}
.brand .brand-name { font-size: 17px; line-height: 1.05; }
.brand .brand-name small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-mute); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 132px; padding-bottom: clamp(40px, 6vh, 80px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero-eyebrow { margin-bottom: clamp(20px, 3vh, 36px); }
.hero-title { font-size: clamp(52px, 10.5vw, 154px); margin-bottom: 0.18em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.13em; }
.hero-title .line > span { display: inline-block; }
.hero-title .l2 { margin-left: 0.06em; }
.hero-title .l3 { color: var(--accent); }
.hero-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--fg-soft);
  font-weight: 420;
  margin-bottom: 1.4em;
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(28px, 4vh, 44px); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat .n { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1; font-weight: 600; color: var(--fg); }
.hero-stat .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-top: 6px; }

.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 0;
}
.hero-photo .frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  min-height: 440px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero-photo .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, color-mix(in oklch, var(--bg) 75%, transparent)),
              var(--photo-tint);
  pointer-events: none;
}
.hero-photo .caption {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: color-mix(in oklch, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--fg) 20%, transparent);
}
.hero-sign {
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--accent);
  text-align: right;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo .frame { aspect-ratio: 3/4; height: auto; }
  .hero-photo img { object-position: 68% 50%; }
  .hero-sign { text-align: left; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  z-index: 3;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 18px;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 38px);
  white-space: nowrap;
  padding-inline: 0.5em;
  color: var(--fg-soft);
}
.marquee-track .dot { color: var(--accent); font-style: normal; padding-inline: 0.1em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-media { position: sticky; top: 100px; }
.about-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; display: block; }
.about-portrait .ab-grade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, oklch(0.10 0.02 60 / 0.05) 40%, oklch(0.08 0.02 60 / 0.42) 100%); }
.about-portrait .ab-grade::after { content: ""; position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.6) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px; }
.about-portrait .ab-brackets i { position: absolute; width: 15px; height: 15px; z-index: 2; border: 1.5px solid oklch(1 0 0 / 0.6); }
.about-portrait .ab-brackets i:nth-child(1) { top: 11px; left: 11px; border-right: 0; border-bottom: 0; }
.about-portrait .ab-brackets i:nth-child(2) { top: 11px; right: 11px; border-left: 0; border-bottom: 0; }
.about-portrait .ab-brackets i:nth-child(3) { bottom: 11px; left: 11px; border-right: 0; border-top: 0; }
.about-portrait .ab-brackets i:nth-child(4) { bottom: 11px; right: 11px; border-left: 0; border-top: 0; }
.about-portrait .about-fig { position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: oklch(0.16 0.01 60 / 0.5); backdrop-filter: blur(6px); border: 1px solid oklch(1 0 0 / 0.2); padding: 5px 9px; border-radius: 3px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-soft);
}
.about-head { font-size: clamp(34px, 5vw, 68px); margin-bottom: 0.5em; }
.about-body p { margin-bottom: 1.3em; color: var(--fg-soft); font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }
.about-body p:first-of-type { color: var(--fg); }
.about-body .drop::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.78;
  float: left;
  padding: 0.04em 0.12em 0 0;
  color: var(--accent);
  font-weight: 600;
}
.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.18;
  color: var(--fg);
  margin: 1em 0 1.1em;
  padding-left: 0.8em;
  border-left: 2px solid var(--accent);
  text-wrap: balance;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; }
  .about-portrait { aspect-ratio: 3/4; max-width: 400px; }
}

/* ============================================================
   WATCH (shorts)
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vh, 60px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(34px, 5.5vw, 76px); }
.section-head .head-meta { max-width: 360px; }

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.short { grid-column: span 1; }
.short--feature { grid-column: span 2; grid-row: span 1; }
.short-card {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), border-color 0.45s, box-shadow 0.45s;
}
.short-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.short-thumb { position: relative; aspect-ratio: 9/16; overflow: hidden; }
.short--feature .short-thumb { aspect-ratio: 9/11; }
.short-thumb image-slot { width: 100%; height: 100%; }
.short-thumb .yt-thumb { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; background: var(--bg-3); transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.short-card:hover .yt-thumb { transform: scale(1.04); }
.short-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--bg) 88%, transparent) 6%, transparent 46%);
  pointer-events: none;
  z-index: 1;
}
.short-play {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in oklch, var(--bg) 50%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in oklch, var(--fg) 26%, transparent);
  transition: background 0.35s, transform 0.35s;
}
.short-card:hover .short-play { background: var(--accent); transform: scale(1.08); }
.short-play svg { width: 14px; height: 14px; fill: var(--fg); transition: fill 0.35s; margin-left: 2px; }
.short-card:hover .short-play svg { fill: var(--on-accent); }
.short-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 88%, transparent);
  color: var(--on-accent);
}
.short-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 14px;
}
.short-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.1;
  font-weight: 600;
  text-wrap: balance;
  color: var(--fg);
}
.short--feature .short-title { font-size: clamp(22px, 2.6vw, 34px); }
.short-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); margin-top: 6px; }
.short-sub .hl { color: var(--emerald); }
@media (max-width: 1000px) { .shorts-grid { grid-template-columns: repeat(2, 1fr); } .short--feature { grid-column: span 2; } }
@media (max-width: 560px) { .shorts-grid { grid-template-columns: repeat(2, 1fr); } .short--feature { grid-column: span 2; } .short--feature .short-thumb { aspect-ratio: 9/12; } }

/* ============================================================
   MEDIA KIT
   ============================================================ */
.kit { background: var(--bg-2); border-block: 1px solid var(--line); }
.kit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.stat {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(20px, 2vw, 30px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.stat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.stat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--bar, var(--accent));
  opacity: 0.85;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.stat .n sup { font-size: 0.4em; vertical-align: super; color: var(--bar, var(--accent)); }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg); margin-top: 12px; }
.stat .d { font-size: 14px; color: var(--fg-mute); margin-top: 4px; }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 2.2vw, 34px);
  background: var(--bg);
}
.panel h3 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 0.3em; }
.bars { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 14px; }
.bar-row .age { font-family: var(--font-mono); font-size: 13px; color: var(--fg-soft); }
.bar-track { height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--plum), var(--accent)); width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar-row .pct { font-family: var(--font-display); font-size: 18px; text-align: right; font-weight: 600; color: var(--fg); }

/* ---- Age distribution: single proportional bar (the 35–54 bulge) ---- */
.agestack { display: flex; gap: 3px; height: 88px; margin-top: 22px; }
.agestack i { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 10px; border-radius: 3px; font-style: normal; min-width: 0; overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.agestack.in i { opacity: 1; transform: none; }
.agestack i:nth-child(2) { transition-delay: .06s; }
.agestack i:nth-child(3) { transition-delay: .12s; }
.agestack i:nth-child(4) { transition-delay: .18s; }
.agestack i .p { font-family: var(--font-display); font-size: clamp(20px, 2vw, 30px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.agestack i .a { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.agestack i.hot { background: var(--accent); color: var(--on-accent); }
.agestack i.muted { background: var(--bg-3); color: var(--fg-soft); }
.agecap { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.agecap .big { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); font-weight: 600; color: var(--accent); }
.agecap .txt { font-size: 14px; color: var(--fg-soft); text-wrap: pretty; }

/* ============================================================
   HERO — ANNOTATED FIELD PLATE
   ============================================================ */
.heroplate { position: relative; }
.heroplate::after { display: none; }              /* kill the paper-wash gradient */
.heroplate img { object-position: 56% 42%; }
.plate-grade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, oklch(0.12 0.02 60 / 0.10) 0%, oklch(0.10 0.02 60 / 0.42) 78%, oklch(0.08 0.02 60 / 0.62) 100%),
    radial-gradient(130% 90% at 70% 28%, transparent 42%, oklch(0.08 0.02 60 / 0.40));
}
.plate-grade::after {                              /* faint instrument grid over the image */
  content: ""; position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.6) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
}
.plate-brackets i { position: absolute; width: 18px; height: 18px; z-index: 3; border: 1.5px solid oklch(1 0 0 / 0.72); }
.plate-brackets i:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.plate-brackets i:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.plate-brackets i:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.plate-brackets i:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.plate-scan {
  position: absolute; left: 12px; right: 12px; top: 8%; height: 2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--accent) 92%, white), transparent);
  opacity: 0.55; mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) { .plate-scan { animation: platescan 6.5s ease-in-out infinite; } }
@keyframes platescan { 0% { top: 7%; } 50% { top: 92%; } 100% { top: 7%; } }

.plate-note {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.hero.in .plate-note { opacity: 1; transform: none; }
.hero.in .plate-note.pn1 { transition-delay: 0.5s; }
.hero.in .plate-note.pn2 { transition-delay: 0.72s; }
.hero.in .plate-note.pn3 { transition-delay: 0.94s; }
.plate-note .pdot {
  width: 10px; height: 10px; border-radius: 50%; flex: none; position: relative;
  border: 1px solid oklch(1 0 0 / 0.85); box-shadow: 0 0 0 4px oklch(0 0 0 / 0.18);
}
.plate-note .pdot::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--accent); }
.plate-note .plabel {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; white-space: nowrap; padding: 5px 9px; border-radius: 3px;
  background: oklch(0.16 0.01 60 / 0.55); backdrop-filter: blur(7px); border: 1px solid oklch(1 0 0 / 0.2);
}
.plate-note.pn3 { flex-direction: row-reverse; }
.heroplate .caption { left: auto; right: 14px; bottom: 14px; }
@media (max-width: 560px) { .plate-note .plabel { font-size: 9px; padding: 4px 7px; } }

/* Geography split bar reuses .aud-split; metros list reuses .cities */
.geo-metros { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- Daily-views instrument chart (real TikTok 28-day series) ---- */
.viewchart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.viewchart-head .legend { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.viewchart-head .legend b { color: var(--accent); font-weight: 700; }
.viewchart { display: flex; align-items: flex-end; gap: 2.5px; height: 150px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; }
.viewchart .vbar { flex: 1 1 0; align-self: flex-end; height: 0; border-radius: 2px 2px 0 0; background: color-mix(in oklch, var(--accent) 38%, var(--bg-3)); transition: height 0.9s cubic-bezier(.2,.7,.2,1); position: relative; }
.viewchart .vbar.peak { background: var(--accent); }
.viewchart .vbar:hover { background: var(--accent); }
.viewchart .vbar::after { content: attr(data-views); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); white-space: nowrap; font-family: var(--font-mono); font-size: 10px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 3; }
.viewchart .vbar:hover::after { opacity: 1; }
.viewchart-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); margin-top: 10px; }

/* ---- Audience composition panel ---- */
.aud-block { margin-top: 18px; }
.aud-block + .aud-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.aud-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
[data-theme="lab"] .aud-split { border-radius: 3px; }
.aud-split i { height: 100%; display: block; }
.aud-split .f { background: var(--accent); }
.aud-split .m { background: var(--bg-3); }
.aud-legend { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); }
.aud-legend b { font-family: var(--font-display); font-size: 16px; color: var(--fg); }
.aud-big { display: flex; align-items: baseline; gap: 10px; }
.aud-big .nn { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 0.9; color: var(--fg); letter-spacing: -0.02em; }
.aud-big .ll { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }

.cities { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.city-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.city-row:last-child { border-bottom: 1px solid var(--line); }
.city-row .rank { font-family: var(--font-mono); font-size: 11px; color: var(--accent); width: 28px; }
.city-row .city { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 24px); flex: 1; color: var(--fg); }
.city-row .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }

.kit-note {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: space-between;
}
.kit-note .q { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); color: var(--fg); max-width: 720px; text-wrap: balance; }

@media (max-width: 900px) {
  .span-3 { grid-column: span 6; }
  .span-4, .span-5, .span-7 { grid-column: span 12; }
  .span-6, .span-8 { grid-column: span 12; }
}
@media (max-width: 560px) { .span-3 { grid-column: span 12; } }

/* ============================================================
   PARTNERSHIPS
   ============================================================ */
.part-intro { max-width: 880px; }
.part-intro .big {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
  margin-bottom: 0.5em;
  color: var(--fg);
  font-optical-sizing: none;
}
.part-intro .big em { font-style: italic; color: var(--accent); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(40px, 5vh, 64px); }
.step {
  border-top: 2px solid var(--line-2);
  padding-top: 18px;
  transition: border-color 0.4s;
}
.step:hover { border-color: var(--accent); }
.step .no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h4 { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--fg-mute); }
.process-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--fg-mute); max-width: 760px; text-wrap: pretty; padding-left: 14px; border-left: 2px solid var(--line-2); }
@media (max-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .process { grid-template-columns: 1fr; } }

.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vh, 80px); align-items: start; }
.terms-list { list-style: none; padding: 0; }
.terms-list li {
  display: flex; gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  font-size: 16px;
}
.terms-list li::before { content: "—"; color: var(--accent); flex: none; }
.coverage { display: flex; flex-direction: column; gap: 0; }
.cov-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s, color 0.35s;
}
.cov-row:hover { padding-left: 8px; }
.cov-row .t { font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 24px); color: var(--fg); }
.cov-row .m { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); white-space: nowrap; }
.cov-row .m.hl { color: var(--emerald); }
@media (max-width: 760px) { .terms-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 0.7fr 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.contact h2 { font-size: clamp(40px, 7vw, 104px); margin-bottom: 0.3em; }
.contact .sign { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 1.8vw, 24px); color: var(--accent); margin-top: 1em; }
.contact-card { display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: color 0.3s;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); }
.contact-row .v { font-family: var(--font-display); font-size: clamp(16px, 1.5vw, 21px); color: var(--fg); }
.contact-row:hover .v { color: var(--accent); }
.contact-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .contact-portrait { aspect-ratio: 3/4; max-width: 360px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: clamp(40px, 6vh, 70px) 0 40px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.foot-bottom a { color: var(--fg-soft); }
.foot-bottom a:hover { color: var(--accent); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero line entrance — keyframe (robust; resting state is fully visible) */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero.in .hero-title .line > span { animation: lineUp 0.95s cubic-bezier(.2,.8,.2,1) both; }
  html.js .hero.in .hero-title .line:nth-child(2) > span { animation-delay: 0.09s; }
  html.js .hero.in .hero-title .line:nth-child(3) > span { animation-delay: 0.18s; }
}
@keyframes lineUp { from { transform: translateY(112%); } to { transform: translateY(0); } }

/* ============================================================
   LABORATORY SYSTEM
   Components (register, instrument, specimen, coords, reticle)
   work in every direction; heavy texture is scoped to [data-theme="lab"].
   ============================================================ */

/* ---- Section register (lab-report TOC bar) ---- */
.register { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(28px, 4vh, 44px); border-bottom: 1px solid var(--line); }
.register .reg-no { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); white-space: nowrap; }
.register .reg-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.register .reg-rule { flex: 1; height: 7px; align-self: center; min-width: 30px;
  background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 8px);
  background-position: 0 50%; background-repeat: repeat-x; background-size: 100% 1px; }
.register .reg-code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); white-space: nowrap; }
@media (max-width: 620px) { .register .reg-code { display: none; } }

/* ---- Hero instrument readout ---- */
.instrument { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: clamp(18px, 3vh, 28px); }
.instrument .seg { position: relative; padding-left: 20px; }
.instrument .seg::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 1px; background: var(--line-2); }
.instrument .seg:first-child { padding-left: 0; }
.instrument .seg:first-child::before { display: none; }
.instrument .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.instrument .dotpulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .instrument .dotpulse { animation: pulse 1.8s ease-out infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- Specimen slide label inside watch cards ---- */
.spec-line { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-soft); margin-bottom: 9px; padding-top: 9px;
  border-top: 1px solid color-mix(in oklch, var(--fg) 16%, transparent); }
.spec-line .sid { color: var(--accent); }

/* ---- City geo-coordinate readout ---- */
.city-row .tag { font-variant-numeric: tabular-nums; }

/* ---- Count-up figures keep stable width ---- */
.stat .n { font-variant-numeric: tabular-nums; }

/* ---- Corner reticle (viewport framing) — lab only ---- */
.lab-reticle { display: none; }
[data-theme="lab"] .lab-reticle { display: block; position: fixed; inset: 14px; z-index: 4; pointer-events: none; }
.lab-reticle i { position: absolute; width: 15px; height: 15px; border: 1.5px solid var(--line-2); opacity: 0.85; }
.lab-reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.lab-reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.lab-reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.lab-reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ============================================================
   LAB DIRECTION — TEXTURE OVERRIDES
   ============================================================ */
/* Graph-paper substrate replaces the dark vignette */
[data-theme="lab"] body::before {
  mix-blend-mode: normal;
  opacity: 0.55;
  background-color: transparent;
  background-image:
    linear-gradient(color-mix(in oklch, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in oklch, var(--line) 95%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--line) 95%, transparent) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
}

/* Data-ticker marquee */
[data-theme="lab"] .marquee { background: var(--bg-2); }
[data-theme="lab"] .marquee-track span { font-family: var(--font-mono); font-style: normal; font-weight: 400; font-size: clamp(12px, 1.3vw, 15px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-soft); padding-inline: 1.1em; }
[data-theme="lab"] .marquee-track .dot { color: var(--accent); font-size: 0.7em; }

/* Spectrum-analyzer audience bars */
[data-theme="lab"] .bar-track {
  background-color: var(--bg-3);
  background-image: repeating-linear-gradient(90deg, color-mix(in oklch, var(--line-2) 80%, transparent) 0 1px, transparent 1px 10%);
  border: 1px solid var(--line);
}
[data-theme="lab"] .bar-fill { background: var(--accent); }

/* Specimen cards: hairline frame + technical badge */
[data-theme="lab"] .short-card { border-radius: 3px; }
[data-theme="lab"] .short-badge { border-radius: 3px; font-family: var(--font-mono); }
[data-theme="lab"] .short-play { border-radius: 3px; }
[data-theme="lab"] .stat, [data-theme="lab"] .panel { border-radius: 3px; }
[data-theme="lab"] .monogram { border-radius: 3px; }

/* Stat cards read like instrument tiles */
[data-theme="lab"] .stat::before { width: 100%; height: 3px; top: 0; bottom: auto; }
.register .reg-no::before { content: "§ "; }

/* ============================================================
   SPECIMEN VIEWER (inline reel lightbox)
   ============================================================ */
.reel { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.reel.open { display: flex; }
.reel-overlay { position: absolute; inset: 0; background: color-mix(in oklch, var(--bg) 24%, black); backdrop-filter: blur(8px); }
.reel-dialog { position: relative; z-index: 1; width: min(400px, 92vw); max-height: 94vh; overflow: auto; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--shadow); }
.reel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.reel-head .sid { color: var(--accent); }
.reel-close { font-family: var(--font-mono); font-size: 14px; line-height: 1; color: var(--fg); width: 28px; height: 28px; flex: none;
  border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.reel-close:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.reel-note a { color: var(--accent); }
.short-card { cursor: pointer; }

/* ============================================================
   SPECIMEN ANALYSIS — olfactive readout (the method, applied)
   ============================================================ */
.method-applied { margin-top: clamp(44px, 7vh, 80px); }
.method-applied .intro { font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 31px); line-height: 1.22; color: var(--fg); max-width: 760px; text-wrap: balance; margin-bottom: clamp(22px, 3vh, 32px); }
.method-applied .intro em { font-style: italic; color: var(--accent); }

.analysis { border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-2); overflow: hidden; box-shadow: var(--shadow); }
[data-theme="lab"] .analysis { border-radius: 3px; }
.ax-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.ax-head .ax-id { color: var(--accent); }
.ax-head .ax-meta { color: var(--fg-mute); }
.ax-body { display: grid; grid-template-columns: 0.92fr 1.04fr 1.04fr; }
.ax-col { padding: clamp(20px, 2vw, 28px); border-right: 1px solid var(--line); }
.ax-col:last-child { border-right: 0; }
.ax-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 14px; }

.ax-bottle { width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 16px; }
.ax-name { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); font-weight: 600; color: var(--fg); line-height: 1; }
.ax-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 8px 0 20px; }
.ax-field .ax-k { margin-bottom: 8px; }
.ax-field p { font-size: 15px; color: var(--fg-soft); line-height: 1.5; text-wrap: pretty; }

.tier { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start; }
.tier:first-of-type { border-top: 0; padding-top: 0; }
.tier-l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); padding-top: 5px; }
.tier .notes { display: flex; flex-wrap: wrap; gap: 7px; }
.tier .notes i { font-style: normal; font-size: 13px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); }
[data-theme="lab"] .tier .notes i { border-radius: 3px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

.accords, .meters { display: flex; flex-direction: column; gap: 13px; }
.ax-row { display: grid; grid-template-columns: 82px 1fr 40px; gap: 10px; align-items: center; }
.meters .ax-row { grid-template-columns: 82px 1fr auto; }
.ax-row .lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-soft); text-transform: uppercase; }
.ax-track { height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
[data-theme="lab"] .ax-track { border-radius: 2px; background-image: repeating-linear-gradient(90deg, color-mix(in oklch, var(--line-2) 80%, transparent) 0 1px, transparent 1px 12.5%); }
.ax-fill { height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--accent)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.ax-row .val { font-family: var(--font-mono); font-size: 11px; color: var(--fg); text-align: right; white-space: nowrap; }
.ax-divider { height: 1px; background: var(--line); margin: 22px 0; }

.ax-foot { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-top: 1px solid var(--line); }
.ax-foot .ax-k { margin-bottom: 0; flex: none; align-self: center; }
.ax-foot p { flex: 1; min-width: 240px; font-size: 15px; color: var(--fg-soft); margin: 0; }
.ax-foot .sign { font-family: var(--font-display); font-style: italic; color: var(--accent); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .ax-fill { transition: none; } }
@media (max-width: 860px) {
  .ax-body { grid-template-columns: 1fr; }
  .ax-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .ax-col:last-child { border-bottom: 0; }
}
