/* Medicine Sermorelin — fractal-bioluminescence
   Dark luminescent scientific-visualization register.
   Palette: near-black ground, neon green primary, electric magenta signal,
   electric blue secondary, deep purple anchor. */

:root {
  --primary:            #00E676;
  --primary-700:        #00B85F;
  --primary-300:        #1A6B3D;
  --secondary:          #2979FF;
  --secondary-700:      #1E5BCC;
  --magenta:            #E040FB;
  --magenta-300:        #7B1FA2;
  --purple:             #4A148C;
  --purple-300:         #6A2BB8;

  --neutral-0:          #050005;
  --neutral-50:         #0A050C;
  --neutral-100:        #100815;
  --neutral-150:        #160B1D;
  --neutral-200:        #1F1028;
  --neutral-300:        #2A1638;
  --neutral-400:        #3A2148;
  --neutral-500:        #4A2D5C;
  --neutral-600:        #6A4A7A;
  --neutral-700:        #8A6A98;
  --neutral-800:        #B59CC2;
  --neutral-900:        #E0D0E8;
  --neutral-white:      #FFFFFF;

  --bg:                 #050005;
  --bg-panel:           #0A050C;
  --surface:            #100815;
  --surface-raised:     #160B1D;
  --surface-card:       #1F1028;

  --text:               #E0D0E8;
  --text-strong:        #FFFFFF;
  --text-muted:         #B59CC2;
  --text-dim:           #8A6A98;
  --text-on-glow:       #050005;

  --rule:               #2A1638;
  --rule-strong:        #3A2148;

  --glow-green:         rgba(0, 230, 118, 0.35);
  --glow-green-strong:  rgba(0, 230, 118, 0.55);
  --glow-blue:          rgba(41, 121, 255, 0.30);
  --glow-magenta:       rgba(224, 64, 251, 0.40);
  --glow-magenta-strong:rgba(224, 64, 251, 0.65);
  --glow-purple:        rgba(74, 20, 140, 0.40);

  --max-width:          72rem;
  --content-width:      52rem;
  --container-px:       clamp(1.25rem, 4vw, 2.5rem);

  --font-display:       'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:          'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
hr { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* Page ground — true dark with two radial-gradient blooms */
html { background: var(--bg); }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 30% 25%, rgba(224, 64, 251, 0.08), transparent 60%),
    radial-gradient(50vw 50vw at 80% 80%, rgba(0, 230, 118, 0.05), transparent 65%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(224, 64, 251, 0.45); color: var(--text-strong); }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.reading {
  width: 100%;
  max-width: var(--content-width);
  margin-left: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--primary);
  color: var(--text-on-glow);
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: rgba(5, 0, 5, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease-out;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-green);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}
.site-header.is-scrolled::after { opacity: 0.7; }

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--glow-green-strong), 0 0 20px var(--glow-green);
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Nav */
.site-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-nav a {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.25rem 0;
  transition: color 220ms ease-out;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow-green);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left center;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.site-nav a:hover { color: var(--text-strong); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--text-strong);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 600;
}
h1 {
  font-size: clamp(2.25rem, 4.75vw, 3.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 500;
}
h4 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 500;
}

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

a:not([class]) {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 230, 118, 0.45);
  transition: color 220ms ease-out, text-decoration-color 220ms ease-out;
}
a:not([class]):hover {
  color: var(--text-strong);
  text-decoration-color: var(--primary);
}

strong, b { color: var(--text-strong); font-weight: 600; }
em, i { color: var(--text); }

/* Eyebrow + ALL CAPS labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1rem 0;
}
.eyebrow .glow-mark {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-green-strong);
}
.eyebrow .glow-mark.blue { background: var(--secondary); box-shadow: 0 0 8px var(--glow-blue); }
.eyebrow .glow-mark.magenta { background: var(--magenta); box-shadow: 0 0 8px var(--glow-magenta-strong); }

/* Sections */
section { padding: 3rem 0; }
section + section { padding-top: 0; }

.section-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4rem 0 3rem 0;
  gap: 1rem;
}
.section-divider .line {
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
  box-shadow: 0 0 4px rgba(58, 33, 72, 0.5);
}
.section-divider .mark-square {
  width: 6px; height: 6px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-green-strong);
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  position: relative;
  color: var(--text-strong);
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
.hero h1::after {
  content: "";
  position: absolute;
  left: -30px; right: -10px;
  bottom: -60px;
  height: 180px;
  background: radial-gradient(60% 50% at 30% 0%, var(--glow-magenta-strong), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}
.hero .subheadline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}
.hero-figure {
  margin-top: 2rem;
  position: relative;
}
.hero-figure img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 32px rgba(224, 64, 251, 0.25));
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
  .hero-figure { margin-top: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 220ms ease-out, color 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-on-glow);
  box-shadow: 0 0 12px var(--glow-green), 0 0 28px rgba(0, 230, 118, 0.2);
}
.btn-primary:hover {
  background: #1AF286;
  box-shadow: 0 0 18px var(--glow-green-strong), 0 0 40px rgba(0, 230, 118, 0.35);
  color: var(--text-on-glow);
}
.btn-primary:active { background: var(--primary-700); }
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--glow-blue);
}
.btn-secondary:hover {
  color: #6FA4FF;
  border-color: #6FA4FF;
  box-shadow: 0 0 16px rgba(41, 121, 255, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: transparent;
  padding: 0.5rem 0;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow-green);
  opacity: 0;
  transition: opacity 220ms ease-out;
}
.btn-ghost:hover::after { opacity: 1; }

:focus-visible {
  outline: 2.5px solid var(--magenta);
  outline-offset: 3px;
  box-shadow: 0 0 12px var(--glow-magenta-strong);
}

/* Chip — typographic + glowing underline */
.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
  padding-bottom: 6px;
  position: relative;
}
.chip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--primary);
  box-shadow: 0 1px 4px var(--glow-green-strong);
}
.chip.blue::after { background: var(--secondary); box-shadow: 0 1px 4px var(--glow-blue); }
.chip.magenta::after { background: var(--magenta); box-shadow: 0 1px 4px var(--glow-magenta-strong); }
.chip.green::after { background: var(--primary); box-shadow: 0 1px 4px var(--glow-green-strong); }

/* Main + article */
main { display: block; }
article {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
article > section { padding: 2rem 0; }
article > section + section { padding-top: 0; }
article p, article ul, article ol { max-width: var(--content-width); }

article h2 {
  position: relative;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}
article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 1px 6px var(--glow-green-strong);
}
article h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-strong);
}
article h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-strong);
}
article ul, article ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
}
article li { margin-bottom: 0.4rem; }
article li::marker { color: var(--primary); }

/* Section index numeral § 01 etc baked into eyebrow */
.section-index {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--glow-blue);
}

/* Drop cap — first paragraph of index */
.drop-cap-paragraph::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  float: left;
  padding: 0.25rem 0.75rem 0.25rem 0;
  margin-bottom: -0.25rem;
  text-shadow:
    0 0 18px var(--glow-magenta-strong),
    0 0 36px rgba(224, 64, 251, 0.45),
    0 0 64px rgba(224, 64, 251, 0.25);
}

/* Lede */
.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}

/* Callouts */
.callout {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  background: transparent;
  box-shadow: -1px 0 8px var(--glow-green), inset 1px 0 0 rgba(0, 230, 118, 0.1);
  max-width: var(--content-width);
}
.callout-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 0.6rem;
}
.callout-eyebrow .glow-mark {
  width: 6px; height: 6px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-green-strong);
}
.callout p { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

.callout.mechanism {
  border-left-color: var(--secondary);
  box-shadow: -1px 0 8px var(--glow-blue), inset 1px 0 0 rgba(41, 121, 255, 0.1);
}
.callout.mechanism .callout-eyebrow .glow-mark {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--glow-blue);
}
.callout.pause {
  border-left-color: var(--magenta);
  background: var(--surface-card);
  background-image: radial-gradient(40% 60% at 0% 0%, rgba(224, 64, 251, 0.18), transparent 70%);
  box-shadow: -2px 0 16px var(--glow-magenta-strong);
  padding: 1.5rem 1.75rem;
}
.callout.pause .callout-eyebrow .glow-mark {
  background: var(--magenta);
  box-shadow: 0 0 8px var(--glow-magenta-strong);
}

/* Cards (research-finding etc) */
.card {
  background: var(--surface-card);
  border: 1px solid var(--neutral-400);
  border-radius: 0;
  padding: 1.75rem;
  margin: 1.5rem 0;
  position: relative;
}
.card.finding {
  border-left: 2px solid var(--primary);
  box-shadow: -2px 0 12px var(--glow-green);
}
.card.mechanism {
  border-left: 2px solid var(--secondary);
  box-shadow: -2px 0 12px var(--glow-blue);
}
.card.comparison {
  border: 1px solid var(--neutral-400);
}
.card .card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}
.card h3 { margin-top: 0; color: var(--text-strong); }

/* Citation chip — inline mono */
sup.cite { font-size: 0.75em; }
.cite-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  background: transparent;
  border: 1px solid var(--primary);
  box-shadow: 0 0 6px var(--glow-green);
  padding: 0.05rem 0.4rem;
  margin: 0 0.1rem;
  text-decoration: none;
  border-radius: 0;
  font-variant-numeric: tabular-nums;
  transition: box-shadow 220ms ease-out, border-color 220ms ease-out, color 220ms ease-out;
  line-height: 1.2;
  vertical-align: baseline;
}
.cite-chip:hover {
  border-color: #1AF286;
  color: var(--text-strong);
  box-shadow: 0 0 10px var(--glow-green-strong);
}

/* Figures */
figure {
  margin: 2rem 0;
}
figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
}
figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 32rem;
}
.fig-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.25rem;
  display: block;
}

/* References list */
.references-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: refs;
}
.references-list li {
  counter-increment: refs;
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  max-width: none;
}
.references-list li::before {
  content: "[" counter(refs, decimal-leading-zero) "]";
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-shadow: 0 0 6px var(--glow-green);
}
.references-list li a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 230, 118, 0.45);
  text-underline-offset: 3px;
}
.references-list li a:hover { color: var(--text-strong); text-decoration-color: var(--primary); }
.ref-meta {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  max-width: var(--content-width);
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}
th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  border-bottom: 1.5px solid var(--primary);
  box-shadow: 0 1px 4px var(--glow-green);
}
td { color: var(--text); }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-strong); }

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 1.5rem;
}
.contact-form label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--rule-strong);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--glow-green);
  outline: none;
}
.contact-form textarea { min-height: 10rem; resize: vertical; }

/* Footer */
.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, rgba(74, 20, 140, 0.35) 0%, var(--bg) 90%);
  padding: 4rem 0 2.5rem;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: var(--container-px); right: var(--container-px);
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-green);
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-col h4::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow-green-strong);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 220ms ease-out;
  position: relative;
  padding-bottom: 1px;
}
.footer-col a:hover {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary);
}
.footer-sub {
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .footer-sub { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
}
.footer-disclaimer {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text-dim);
  max-width: 56ch;
}
.footer-colophon {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Tippy theme — fractal-bioluminescent */
.tippy-box[data-theme~='med-bio'] {
  background-color: var(--surface-card);
  color: var(--text-strong);
  border: 1px solid var(--primary);
  box-shadow: 0 0 16px var(--glow-green), 0 12px 32px rgba(0, 0, 0, 0.55);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0;
  padding: 0.25rem 0.5rem;
}
.tippy-box[data-theme~='med-bio'] .tippy-arrow { color: var(--surface-card); }
.tippy-box[data-theme~='med-bio'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--primary);
}
.tippy-box[data-theme~='med-bio'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--primary);
}

/* 404 */
.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--container-px);
}
.notfound h1 { margin-bottom: 1rem; }

/* Responsive nav */
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 1px 12px var(--glow-green);
    padding: 1rem var(--container-px) 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
