/* Clinic GHK-Cu — Liquid Glass Aesthetic
   Palette: deep-teal primary, midnight-indigo secondary, copper accent, iridescent quintet
   Typography: Manrope (display) + Inter (body) + JetBrains Mono (identifier chips)
   Surfaces: backdrop-filter frosted glass over aurora mesh gradient
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Primary palette */
  --primary:       #0E5C6E;
  --primary-50:    #E6F2F5;
  --primary-100:   #C2DFE6;
  --primary-300:   #5BA8B8;
  --primary-500:   #0E5C6E;
  --primary-700:   #08394A;
  --primary-900:   #031A24;

  /* Secondary palette */
  --secondary:     #1E3A8A;
  --secondary-400: #5B7BD9;
  --secondary-700: #152868;
  --secondary-900: #0A1742;

  /* Copper accent */
  --accent:        #C66A3D;
  --accent-50:     #FBEDE3;
  --accent-300:    #E2A47D;
  --accent-700:    #9A4C28;
  --accent-900:    #5C2A12;

  /* Iridescent quintet */
  --iri-cyan:      #5EEAD4;
  --iri-mint:      #A7F3D0;
  --iri-copper:    #FBA77A;
  --iri-violet:    #A78BFA;
  --iri-rose:      #FB7185;

  /* Aurora gradient stops */
  --aurora-start:  #073B4C;
  --aurora-mid:    #0E5C6E;
  --aurora-late:   #3B2A6B;
  --aurora-end:    #1A2E5C;

  /* Glass surface fills */
  --glass-8:       rgba(255, 255, 255, 0.08);
  --glass-12:      rgba(255, 255, 255, 0.12);
  --glass-18:      rgba(255, 255, 255, 0.18);
  --glass-28:      rgba(255, 255, 255, 0.28);
  --glass-42:      rgba(255, 255, 255, 0.42);
  --glass-dark-24: rgba(8, 24, 36, 0.24);
  --glass-dark-42: rgba(8, 24, 36, 0.42);
  --glass-dark-64: rgba(8, 24, 36, 0.64);

  /* Text */
  --text:          #F2F6F8;
  --text-strong:   #FFFFFF;
  --text-muted:    #C2D0D7;
  --text-dim:      #7E909A;
  --text-copper:   #FBA77A;

  /* Neutrals */
  --neutral-0:     #FFFFFF;
  --neutral-50:    #F2F6F8;
  --neutral-100:   #E1E9ED;
  --neutral-200:   #C2D0D7;
  --neutral-400:   #7E909A;
  --neutral-500:   #566773;
  --neutral-700:   #2B3940;
  --neutral-800:   #16222B;
  --neutral-900:   #0A1218;

  /* Structural */
  --rule-hairline: rgba(255, 255, 255, 0.10);
  --rule-strong:   rgba(255, 255, 255, 0.22);
  --iri-gradient:  linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);

  /* Typography */
  --font-display:  'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', monospace;

  /* Type scale */
  --h1:           clamp(2.125rem, 5vw, 3.875rem);
  --h2:           clamp(1.5rem, 3vw, 2.375rem);
  --h3:           1.375rem;
  --h4:           1.0625rem;
  --body:         1.0625rem;
  --lede:         1.1875rem;
  --small:        0.875rem;
  --eyebrow:      0.75rem;
  --stat-num:     clamp(1.625rem, 3.25vw, 2.5rem);

  /* Layout */
  --max-width:    74rem;
  --article-max:  44rem;
  --hero-slab:    40rem;
  --container-px: clamp(1.25rem, 3.5vw, 2.5rem);
  --radius-card:  16px;
  --radius-btn:   9999px;
  --radius-chip:  6px;
  --radius-callout: 12px;

  /* Shadow */
  --shadow-card:  0 18px 32px -12px rgba(8, 24, 36, 0.42), 0 4px 8px rgba(8, 24, 36, 0.18), inset 0 0 24px rgba(255, 255, 255, 0.04);
  --shadow-card-hover: 0 24px 40px -12px rgba(8, 24, 36, 0.52), 0 6px 12px rgba(8, 24, 36, 0.24), inset 0 0 24px rgba(255, 255, 255, 0.06);
  --shadow-hero:  0 18px 36px -8px rgba(21, 40, 104, 0.32);
  --shadow-stat:  0 12px 20px -8px rgba(3, 26, 36, 0.24);
  --shadow-btn:   0 12px 24px -8px rgba(21, 40, 104, 0.36);

  /* Transitions */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --duration:     400ms;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--aurora-start);
  overflow-x: hidden;
  min-height: 100vh;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   Aurora Ground — Page Background
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 18% 12%, rgba(94, 234, 212, 0.32), transparent 60%),
    radial-gradient(ellipse 70% 55% at 82% 28%, rgba(167, 139, 250, 0.30), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(251, 167, 122, 0.22), transparent 65%),
    linear-gradient(160deg, #073B4C 0%, #0E5C6E 35%, #1A2E5C 70%, #0A1742 100%);
  will-change: transform;
}

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3.75rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #5EEAD4, #A7F3D0, #FBA77A, #A78BFA) 1;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-cube {
  width: 16px;
  height: 16px;
  background: var(--glass-18);
  border: 1px solid var(--rule-strong);
  border-top-color: var(--iri-cyan);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.brand-cube::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.brand-slash {
  color: var(--iri-cyan);
  font-weight: 400;
  margin-inline: 0.125rem;
}

.header-meta {
  display: none;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

@media (min-width: 1024px) {
  .header-meta {
    display: flex;
  }
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--glass-8);
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(94,234,212,0.5), rgba(167,139,250,0.5)) 1;
  border-radius: var(--radius-chip);
  padding: 0.1875rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

/* ============================================================
   Site Navigation
   ============================================================ */
.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.625rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  position: relative;
  transition: color var(--duration) var(--ease-out);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.625rem;
  right: 0.625rem;
  height: 2px;
  background: linear-gradient(90deg, #5EEAD4, #FBA77A);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--iri-cyan);
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.35));
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-strong);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 3.75rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  padding: 2rem var(--container-px);
  transform: translateX(100%);
  transition: transform var(--duration) var(--ease-out);
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-strong);
  border-radius: 12px;
  transition: background var(--duration) var(--ease-out);
}

.nav-drawer a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
  transition: background var(--duration) var(--ease-out);
}

.nav-drawer a:hover {
  background: var(--glass-8);
  color: var(--iri-cyan);
}
.nav-drawer a:hover::before {
  background: var(--iri-cyan);
}

/* ============================================================
   Page Layout / Main
   ============================================================ */
main {
  padding-top: 3.75rem;
  min-height: calc(100vh - 3.75rem);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  padding-inline: var(--container-px);
  min-height: 100vh;
  overflow: hidden;
}

.hero-compact {
  min-height: 38vh;
}

.hero-standard {
  min-height: 42vh;
}

.hero-slab {
  position: relative;
  width: 100%;
  max-width: var(--hero-slab);
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
  box-shadow: var(--shadow-hero);
  z-index: 1;
}

.hero-slab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  font-weight: 600;
  color: var(--iri-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #5EEAD4, #FBA77A);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--text-strong);
  margin-bottom: 1rem;
  text-shadow:
    2px 2px 0 rgba(198, 106, 61, 0.5),
    -1px -1px 0 rgba(94, 234, 212, 0.35);
}

.hero-rule {
  width: 66.67%;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  margin-bottom: 1rem;
}

.subheadline {
  font-family: var(--font-body);
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.004em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* Breadcrumb chip */
.breadcrumb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: var(--radius-chip);
  padding: 0.3125rem 0.75rem;
  font-size: var(--small);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color var(--duration) var(--ease-out);
}

.breadcrumb-chip:hover {
  color: var(--iri-cyan);
}

.breadcrumb-chip::before {
  content: '←';
  font-size: 0.75rem;
}

/* Stat tiles cluster */
.stat-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 2.5rem;
  z-index: 1;
}

.stat-tile {
  position: relative;
  min-width: 7.5rem;
  min-height: 5rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: 12px;
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
  box-shadow: var(--shadow-stat);
  text-align: center;
}

.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.stat-tile::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.stat-numeral {
  display: block;
  font-family: var(--font-display);
  font-size: var(--stat-num);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text-strong);
}

.stat-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-caption::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--iri-cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    backdrop-filter var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
  transition: background var(--duration) var(--ease-out);
}

.btn-primary {
  position: relative;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: var(--text-strong);
  border: 1px solid var(--rule-strong);
  border-top-color: transparent;
  box-shadow: var(--shadow-btn);
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  pointer-events: none;
}

.btn-primary:hover {
  backdrop-filter: blur(18px) saturate(220%);
  -webkit-backdrop-filter: blur(18px) saturate(220%);
  box-shadow: var(--shadow-btn), 0 0 14px rgba(94, 234, 212, 0.32);
}

.btn-primary:hover::after {
  background: var(--iri-cyan);
}

.btn-secondary {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(94,234,212,0.7), rgba(167,139,250,0.7)) 1;
}

.btn-secondary:hover {
  background: var(--glass-8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.2);
}

/* ============================================================
   Reading Panel (inner page body)
   ============================================================ */
.reading-panel {
  max-width: var(--article-max);
  margin-inline: auto;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
  box-shadow: 0 16px 32px -8px rgba(3, 26, 36, 0.28);
  position: relative;
}

.reading-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.page-content {
  padding: clamp(2rem, 5vw, 3.5rem) var(--container-px) clamp(4rem, 8vw, 6rem);
}

/* ============================================================
   Typography — Headings
   ============================================================ */
h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-hairline);
}

h2:first-child,
.reading-panel h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-strong);
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

h3::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--iri-cyan);
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  flex-shrink: 0;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section index opener */
.section-index {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
  box-shadow: var(--shadow-stat);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  position: relative;
}

.section-num::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4, #FBA77A);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.section-num::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ============================================================
   Body Text
   ============================================================ */
p {
  margin-bottom: 1rem;
  color: var(--text);
}

strong {
  font-weight: 600;
  color: var(--text-strong);
}

em { font-style: italic; }

/* ============================================================
   Lists
   ============================================================ */
.reading-panel ul,
.reading-panel ol,
.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.reading-panel ul li,
.article-body ul li {
  list-style: none;
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.reading-panel ul li::before,
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--iri-cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.reading-panel ol,
.article-body ol {
  counter-reset: item;
  list-style: none;
}

.reading-panel ol li,
.article-body ol li {
  counter-increment: item;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.625rem;
}

.reading-panel ol li::before,
.article-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.375rem;
  height: 1.375rem;
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--iri-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

/* ============================================================
   Inline Citation Markers
   ============================================================ */
sup.cite {
  vertical-align: super;
  font-size: 0;
  line-height: 0;
}

.cite-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-8);
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(94,234,212,0.6), rgba(167,139,250,0.6)) 1;
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
  vertical-align: middle;
  line-height: 1.4;
  position: relative;
  top: -0.15em;
}

.cite-marker:hover {
  background: rgba(198, 106, 61, 0.8);
  color: var(--text-strong);
  box-shadow: 0 0 8px rgba(198, 106, 61, 0.4);
  border-image: none;
  border-color: var(--accent);
}

/* ============================================================
   Identifier Chips (JetBrains Mono inline tokens)
   ============================================================ */
.id-chip {
  display: inline-flex;
  align-items: center;
  background: var(--glass-8);
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(94,234,212,0.5), rgba(167,139,250,0.5)) 1;
  border-radius: 3px;
  padding: 0.125rem 0.4375rem;
  font-family: var(--font-mono);
  font-size: 0.9375em;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--duration) var(--ease-out);
}

.id-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 8px rgba(94, 234, 212, 0.15);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  font-weight: 500;
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: 3px;
  padding: 0.125rem 0.375rem;
  color: var(--text);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  position: relative;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
  box-shadow: var(--shadow-card);
  transition:
    backdrop-filter var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.card:hover {
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow: var(--shadow-card-hover);
}

.card-eyebrow {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  font-weight: 600;
  color: var(--iri-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.card-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #5EEAD4, #FBA77A);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Callouts
   ============================================================ */
.callout {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-callout);
  border: 1px solid var(--rule-hairline);
  margin: 1.5rem 0;
}

.callout-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.callout-context {
  border-left: 4px solid var(--primary);
}
.callout-context .callout-eyebrow { color: var(--primary-300); }

.callout-evidence {
  border-left: 4px solid var(--accent);
}
.callout-evidence .callout-eyebrow { color: var(--text-copper); }
.callout-evidence::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.callout-caution {
  border-left: 4px solid var(--iri-rose);
}
.callout-caution .callout-eyebrow { color: var(--iri-rose); }

.callout-gap {
  background: var(--glass-8);
  border-left: 4px solid var(--iri-violet);
}
.callout-gap .callout-eyebrow { color: var(--iri-violet); }

.callout-mb { margin-bottom: 2.5rem; }

/* ============================================================
   Pull Quote
   ============================================================ */
.pull-quote {
  position: relative;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--accent);
  border-top-color: transparent;
  box-shadow: var(--shadow-card);
}

.pull-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

.pull-quote::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.pull-quote blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}

.pull-quote cite {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iri-cyan);
  font-style: normal;
}

/* ============================================================
   Figure / Image Frames
   ============================================================ */
.figure-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 2rem 0;
}

.figure-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  z-index: 1;
  pointer-events: none;
}

.figure-frame::after {
  content: '';
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  z-index: 2;
}

.figure-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.figure-caption {
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid var(--rule-hairline);
}

.figure-caption .caption-eyebrow {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  font-weight: 600;
  color: var(--iri-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.figure-caption p {
  font-style: italic;
  font-size: var(--small);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-card);
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
}

.glass-table thead th {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #5EEAD4, #A7F3D0, #FBA77A, #A78BFA) 1;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.glass-table tbody tr {
  border-bottom: 1px solid var(--rule-hairline);
  transition: background var(--duration) var(--ease-out);
}

.glass-table tbody tr:hover {
  background: var(--glass-8);
}

.glass-table tbody tr:hover td:first-child::before {
  opacity: 1;
}

.glass-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  vertical-align: top;
}

.glass-table tbody td:first-child {
  position: relative;
  padding-left: 1.5rem;
}

.glass-table tbody td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease-out);
}

/* ============================================================
   References List
   ============================================================ */
.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.references-list li {
  position: relative;
  padding: 1rem 1.25rem 1rem 1.75rem;
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  counter-increment: refs;
  transition: background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.references-list li::before {
  content: counter(refs);
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.375rem;
  height: 1.375rem;
  background: var(--glass-12);
  border: 1px solid var(--rule-hairline);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--iri-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.references-list {
  counter-reset: refs;
}

.references-list li:hover {
  background: var(--glass-12);
  border-color: var(--rule-strong);
}

.ref-link {
  color: var(--iri-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(94, 234, 212, 0.4);
  transition: text-decoration-color var(--duration) var(--ease-out);
}

.ref-link:hover {
  text-decoration-color: var(--iri-cyan);
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-item {
  border: 1px solid var(--rule-hairline);
  border-radius: 12px;
  background: var(--glass-8);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: background var(--duration) var(--ease-out);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--duration) var(--ease-out);
}

.faq-question:hover {
  color: var(--iri-cyan);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.125rem;
  color: var(--iri-cyan);
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(94, 234, 212, 0.15);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer.is-open {
  display: block;
}

.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--text-strong);
  width: 100%;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-select option {
  background: var(--aurora-start);
  color: var(--text-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--iri-cyan);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

.form-textarea {
  min-height: 10rem;
  resize: vertical;
}

/* ============================================================
   Glass Status Chips (Regulatory)
   ============================================================ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.status-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  background: var(--glass-8);
  border: 1px solid var(--rule-hairline);
  border-radius: 10px;
  font-size: var(--small);
}

.status-chip-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-chip-value {
  font-weight: 600;
  color: var(--text-strong);
}

.status-chip-ok .status-chip-value { color: var(--iri-cyan); }
.status-chip-warn .status-chip-value { color: var(--text-copper); }
.status-chip-neutral .status-chip-value { color: var(--text-muted); }
.status-chip-phase .status-chip-value { color: var(--iri-mint); }

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 59, 76, 0.8) 30%, rgba(10, 23, 66, 0.95) 100%);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, #5EEAD4, #A7F3D0, #FBA77A, #A78BFA) 1;
}

.footer-columns {
  padding: 3.5rem var(--container-px) 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
}

.footer-col {
  position: relative;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: 18px;
  border: 1px solid var(--rule-hairline);
  border-top-color: transparent;
}

.footer-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.footer-col-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iri-cyan);
  padding-bottom: 0.75rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #5EEAD4, #A7F3D0, #FBA77A, #A78BFA) 1;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-strong);
  padding: 0.1875rem 0;
  transition: color var(--duration) var(--ease-out), filter var(--duration) var(--ease-out);
}

.footer-col a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
  transition: background var(--duration) var(--ease-out);
}

.footer-col a:hover {
  color: var(--iri-cyan);
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.3));
}

.footer-col a:hover::before {
  background: var(--iri-cyan);
}

.footer-bottom {
  padding: 1.5rem var(--container-px) 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-hairline);
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: var(--small);
  font-style: italic;
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  position: relative;
}

.footer-copyright::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   Internal Links
   ============================================================ */
.reading-panel a:not(.btn):not(.cite-marker):not(.id-chip):not(.breadcrumb-chip),
.article-body a:not(.btn):not(.cite-marker):not(.id-chip) {
  color: var(--iri-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(94, 234, 212, 0.4);
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.reading-panel a:not(.btn):not(.cite-marker):not(.id-chip):not(.breadcrumb-chip):hover,
.article-body a:not(.btn):not(.cite-marker):not(.id-chip):hover {
  color: var(--text-strong);
  text-decoration-color: var(--accent);
}

/* ============================================================
   Hero Figure / Composition
   ============================================================ */
.hero-bg-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* ============================================================
   Page Sections
   ============================================================ */
.page-section {
  padding: clamp(2.5rem, 6vw, 5rem) var(--container-px);
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ============================================================
   Glass Chip Variants
   ============================================================ */
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--glass-8);
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(94,234,212,0.5), rgba(167,139,250,0.5)) 1;
  border-radius: var(--radius-chip);
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-chip-cyan::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--iri-cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.glass-chip-copper::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.glass-chip-rose::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--iri-rose);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.glass-chip-violet::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--iri-violet);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 3.75rem);
  text-align: center;
  padding: 4rem var(--container-px);
}

.error-numeral {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #5EEAD4, #A7F3D0, #FBA77A, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-message {
  font-size: var(--lede);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   Responsive — Mobile First
   ============================================================ */
@media (min-width: 640px) {
  .hero-slab {
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .reading-panel {
    padding: 3rem 2.5rem;
  }

  h2 {
    margin-top: 3.5rem;
  }

  h3 {
    margin-top: 2.5rem;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .card:hover {
    backdrop-filter: none;
  }

  .card:hover {
    border-color: var(--rule-strong);
  }
}

/* ============================================================
   Utility Classes
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* Inline iridescent rule */
.iri-rule {
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4 0%, #A7F3D0 30%, #FBA77A 65%, #A78BFA 100%);
  border: none;
  margin: 2rem 0;
}
