/* ============================================
   OS AUDIT — Design tokens & base v3
   FIX: Proper z-index architecture so atmosphere is VISIBLE
   ============================================ */

:root {
  --bg-primary: #0A0A0B;
  --bg-secondary: #0F0F11;
  --bg-tertiary: #16161A;
  --bg-elevated: #1A1A1E;
  --bg-overlay: rgba(8, 8, 9, 0.92);

  --text-primary: #ECECEE;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;
  --text-disabled: #48484A;

  --border-subtle: #1F1F22;
  --border-default: #2A2A2E;
  --border-strong: #38383D;

  --accent-primary: #4F8AFF;
  --accent-hover: #6B9FFF;
  --accent-muted: rgba(79, 138, 255, 0.10);

  --level-amber: #E5A14F;
  --level-violet: #8B5CF6;
  --level-blue: #4F8AFF;
  --level-green: #4ADE80;

  --error: #EF4444;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}

/* ============================================
   AMBIENT BACKGROUND LAYER
   FIXED z-index 0, BEHIND all content, ABOVE solid body bg
   Sections must be transparent or semi-transparent to show this
   ============================================ */

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Orbs - now MUCH more visible */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.orb--1 {
  /* Blue orb - upper area */
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(79, 138, 255, 0.28) 0%, rgba(79, 138, 255, 0.10) 40%, transparent 70%);
  top: -180px;
  left: -120px;
  animation: orbFloat1 26s ease-in-out infinite;
}

.orb--2 {
  /* Violet orb - middle right */
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  top: 35%;
  right: -180px;
  animation: orbFloat2 30s ease-in-out infinite;
}

.orb--3 {
  /* Amber orb - lower left */
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(229, 161, 79, 0.18) 0%, rgba(229, 161, 79, 0.06) 40%, transparent 70%);
  bottom: -200px;
  left: 20%;
  animation: orbFloat3 34s ease-in-out infinite;
}

.orb--4 {
  /* Green orb - upper right (smaller) */
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.14) 0%, rgba(74, 222, 128, 0.04) 40%, transparent 70%);
  top: 18%;
  right: 5%;
  animation: orbFloat4 28s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  33% { transform: translate(80px, 60px) scale(1.12); opacity: 0.9; }
  66% { transform: translate(40px, 120px) scale(0.95); opacity: 1; }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate(-60px, 80px) scale(1.08); opacity: 1; }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(60px, -60px) scale(1.1); opacity: 0.85; }
}

@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.05); }
}

/* Grain texture overlay - subtle */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   GLOBAL: SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress__fill {
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  transition: width 80ms ease-out;
  opacity: 0.6;
}

/* ============================================
   SECTION INDICATOR (left margin)
   Editorial-magazine style section marker
   ============================================ */
.section-indicator {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-soft);
}

.section-indicator.is-visible {
  opacity: 1;
}

.si-num {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-weight: 400;
}

.si-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 4px;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .section-indicator { display: none; }
}

/* ============================================
   GLOBAL: LEVELS NAVIGATION (right side) — REMOVED
   ============================================ */

/* ============================================
   STICKY CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 80;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 400ms var(--ease-soft), transform 400ms var(--ease-soft);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta-btn {
  box-shadow: 0 12px 50px -10px rgba(79, 138, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  min-width: 240px;
  overflow: hidden;
  position: relative;
}

.sticky-cta-label {
  display: inline-block;
  transition: opacity 300ms ease;
}

.sticky-cta-label.is-fading {
  opacity: 0;
}

@media (max-width: 767px) {
  .sticky-cta { bottom: 16px; right: 16px; left: 16px; }
  .sticky-cta-btn { width: 100%; min-width: 0; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.serif { font-family: var(--font-serif); font-weight: 400; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.display {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}

h1.section-title, .h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 400;
}

h2.section-title, .h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.h3 {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  font-weight: 500;
}

.body-large {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.accent-highlight {
  background: var(--accent-muted);
  color: var(--text-primary);
  padding: 0 10px;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 100ms ease, box-shadow 200ms ease;
  user-select: none;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-primary);
  color: #FFFFFF;
  position: relative;
  box-shadow: 0 4px 20px -4px rgba(79, 138, 255, 0.4);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 28px -4px rgba(79, 138, 255, 0.55); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled, .btn-primary[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-tertiary); border-color: var(--text-tertiary); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-large {
  padding: 16px 28px;
  font-size: 16px;
  height: 52px;
}

/* ============================================
   LAYOUT
   Sections are semi-transparent so ambient bg shows through
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.section--full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

/* Section bgs are semi-transparent so orbs show through */
.section--secondary {
  background: rgba(17, 17, 20, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section--primary {
  background: rgba(11, 11, 13, 0.55);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head .intro {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

/* Asymmetric split header for editorial sections */
.section-head--split {
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head--split .intro {
  margin-top: 0;
  font-size: 16px;
  color: var(--text-tertiary);
  max-width: 420px;
  padding-bottom: 6px;
}

@media (max-width: 1023px) {
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .section-head--split .intro { padding-bottom: 0; }
}

.center { text-align: center; }
.center-flex { display: flex; justify-content: center; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo small {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: 4px;
  letter-spacing: 0.03em;
}

.logo-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 2px;
}
.logo-mark .lm {
  width: 18px;
  height: 2px;
  border-radius: 1px;
}
.logo-mark .lm[data-color="green"] { background: var(--level-green); }
.logo-mark .lm[data-color="blue"] { background: var(--level-blue); }
.logo-mark .lm[data-color="violet"] { background: var(--level-violet); }
.logo-mark .lm[data-color="amber"] { background: var(--level-amber); }

/* ============================================
   HERO BLOCK 1
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: rgba(8, 8, 9, 0.55);
  border-bottom: 1px solid var(--border-default);
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(229, 229, 231, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.hero-left {
  max-width: 640px;
  padding-bottom: 80px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-mono-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.hero-meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--text-disabled);
}

/* ============================================
   HERO PHOTO CAPTION (next to photo)
   Editorial document metadata style — small, mono,
   sits beside Richard's image like print caption.
   ============================================ */
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin-bottom: 0;
  gap: 24px;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 60px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero-photo-caption {
  align-self: flex-end;
  max-width: 200px;
  padding: 0 0 56px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.hero-photo-caption::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 64px;
  width: 1px;
  background: var(--border-default);
}

.hpc-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  font-weight: 400;
}

.hpc-role {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.hpc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hpc-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: baseline;
}

.hpc-num {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  font-weight: 400;
  line-height: 1;
}

.hpc-text {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .hero-photo-caption { max-width: 180px; }
  .hero-photo { max-width: 380px; }
}

@media (max-width: 1023px) {
  /* On tablet, caption goes BELOW the photo as horizontal strip */
  .hero-right {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hero-photo {
    max-width: 320px;
    max-height: 460px;
  }
  .hero-photo-caption {
    max-width: 100%;
    padding: 24px 0 0 0;
    width: 100%;
    border-top: 1px solid var(--border-subtle);
  }
  .hero-photo-caption::before { display: none; }
  .hpc-role { display: none; }
  .hpc-list {
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hpc-list li { grid-template-columns: auto 1fr; }
  .hpc-name { display: none; }
}

@media (max-width: 767px) {
  .hero-photo-caption {
    padding: 16px 0 0 0;
  }
  .hpc-list {
    gap: 12px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hpc-num { font-size: 15px; }
  .hpc-text { font-size: 10.5px; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  z-index: 2;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   BLOCK 2 — SYMPTOMS (editorial list, interactive)
   Premium magazine-style: large serif L-numbers,
   clean dividers, no card chrome, no colored dots
   ============================================ */
.symptoms-list {
  max-width: 1020px;
  margin: 0 auto;
  border-top: 1px solid var(--border-default);
}

.sym-row {
  display: grid;
  grid-template-columns: 100px 130px 1fr 40px;
  gap: 32px;
  align-items: baseline;
  width: 100%;
  padding: 32px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  appearance: none;
  transition: background 240ms ease;
  position: relative;
  box-sizing: border-box;
}

.sym-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sym-row:hover .sym-row-title {
  color: var(--text-primary);
}

/* Active row — subtle: just dimmed others and arrow rotation */
.symptoms-list[data-has-active="true"] .sym-row:not([aria-expanded="true"]) {
  opacity: 0.4;
}

.sym-row[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: transparent;
}

/* Large serif level number */
.sym-row-num {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 0.9;
  color: var(--text-tertiary);
  letter-spacing: -0.03em;
  font-weight: 400;
  align-self: start;
  transition: color 280ms ease;
}

.sym-row:hover .sym-row-num,
.sym-row[aria-expanded="true"] .sym-row-num {
  color: var(--text-primary);
}

/* Meta column — area name */
.sym-row-meta {
  align-self: start;
  padding-top: 10px;
}

.sym-row-area {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sym-row-area::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 12px;
  flex-shrink: 0;
}

.sym-row[data-symptom="L1"] .sym-row-area::before { background: var(--level-amber); }
.sym-row[data-symptom="L2"] .sym-row-area::before { background: var(--level-violet); }
.sym-row[data-symptom="L3"] .sym-row-area::before { background: var(--level-blue); }
.sym-row[data-symptom="L4"] .sym-row-area::before { background: var(--level-green); }

/* Body column */
.sym-row-body {
  align-self: start;
  padding-top: 4px;
}

.sym-row-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 240ms ease;
}

.sym-row-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-tertiary);
  max-width: 560px;
}

/* Toggle indicator (plus → minus on expand) */
.sym-row-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin-top: 6px;
  color: var(--text-tertiary);
  transition: border-color 280ms ease, color 280ms ease, background 280ms ease, transform 280ms var(--ease-soft);
}

.sym-row:hover .sym-row-toggle {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.sym-row[aria-expanded="true"] .sym-row-toggle {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Hide vertical line on expanded toggle (turns + into -) */
.sym-row[aria-expanded="true"] .sym-toggle-v {
  opacity: 0;
}

.sym-toggle-v {
  transition: opacity 240ms ease;
}

/* ============================================
   SYMPTOM DETAIL PANEL (premium expanded view)
   ============================================ */
.symptom-detail {
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  animation: detailFade 380ms var(--ease-soft);
  position: relative;
  background: rgba(255, 255, 255, 0.04);
}

@keyframes detailFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sd-inner {
  padding: 8px 20px 36px;
  max-width: 100%;
}

/* Only show currently-active content */
.sd-content { display: none; }
.symptom-detail[data-active="L1"] .sd-content[data-symptom="L1"],
.symptom-detail[data-active="L2"] .sd-content[data-symptom="L2"],
.symptom-detail[data-active="L3"] .sd-content[data-symptom="L3"],
.symptom-detail[data-active="L4"] .sd-content[data-symptom="L4"] {
  display: block;
}

.sd-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 180px;
}

.sd-tag::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 12px;
  flex-shrink: 0;
}

.symptom-detail[data-active="L1"] .sd-tag::before { background: var(--level-amber); }
.symptom-detail[data-active="L2"] .sd-tag::before { background: var(--level-violet); }
.symptom-detail[data-active="L3"] .sd-tag::before { background: var(--level-blue); }
.symptom-detail[data-active="L4"] .sd-tag::before { background: var(--level-green); }

.sd-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sd-col { position: relative; }

.sd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.sd-col--bad .sd-label { color: var(--text-secondary); }
.sd-col--good .sd-label { color: var(--text-secondary); }

.sd-col p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sd-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-col ul li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.sd-col--bad ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-tertiary);
}

.sd-col--good ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
}


.section-followup {
  max-width: 600px;
  margin: 36px auto 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ============================================
   BLOCK 3 — ARCHITECTURE
   ============================================ */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.arch-viz {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  position: relative;
}

.arch-tools {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-right: 32px;
  position: relative;
}

.arch-tool {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  cursor: default;
  white-space: nowrap;
  position: relative;
  height: 64px;
  transition: color 220ms ease;
}

.arch-tool .t-name { position: relative; z-index: 2; }

.arch-tool .t-line {
  position: absolute;
  right: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--border-default);
  transition: background 220ms ease;
}

.arch-tool:hover { color: var(--text-primary); }
.arch-tool:hover .t-line { background: var(--text-tertiary); }

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-module {
  border: 1px solid var(--border-default);
  background: rgba(15, 15, 17, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 14px 18px;
  transition: border-color 250ms ease, background 250ms ease, transform 250ms ease;
}

.arch-module .lvl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2px;
}

.arch-module .name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.arch-module .sep {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.arch-module .desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.arch-module.is-active {
  border-color: var(--text-secondary);
  background: rgba(26, 26, 30, 0.95);
  transform: translateX(4px);
}

.arch-module.is-active .lvl,
.arch-module.is-active .name {
  color: var(--text-primary);
}

.arch-text { max-width: 440px; }

.arch-text .body-large { margin-bottom: 18px; }
.arch-text .body { margin-bottom: 28px; }

/* ============================================
   BLOCK 4 — PROTOCOL TIMELINE
   ============================================ */
.protocol-timeline {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  position: relative;
}

/* Decorative flow line connecting zones */
.protocol-flow {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

@media (max-width: 1023px) {
  .protocol-flow { display: none; }
}

.protocol-zone {
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 200ms ease, background 200ms ease;
  position: relative;
  z-index: 1;
}

.protocol-zone:hover {
  border-color: var(--border-strong);
  background: rgba(26, 26, 30, 0.85);
}

/* Zone header: icon + label side by side */
.zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color 200ms ease;
}

.protocol-zone--diagnostic .zone-icon {
  color: var(--accent-primary);
}

.protocol-zone:hover .zone-icon {
  color: var(--text-primary);
}

.protocol-zone--diagnostic:hover .zone-icon {
  color: var(--accent-hover);
}

.zone-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  font-weight: 500;
}

.protocol-zone--diagnostic .zone-label { color: var(--accent-primary); }

.zone-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-step {
  position: relative;
  padding: 6px 0 6px 28px;
  display: block;
  transition: transform 200ms ease;
}

.p-step::before {
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-disabled);
  letter-spacing: 0.06em;
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.p-step:hover::before { opacity: 1; }

.p-step .dot {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.p-step .step-name {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

.p-step:hover .dot {
  background: var(--text-primary);
}

.p-step:hover { transform: translateX(2px); }

.protocol-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ============================================
   BLOCK 5 — OUTPUT 2x2
   ============================================ */
.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.output-card {
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease-soft);
}

.output-card:hover {
  border-color: var(--border-strong);
  background: rgba(26, 26, 30, 0.85);
  transform: translateY(-2px);
}

/* Card head: number + icon row */
.output-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.output-card .num {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}

.output-icon {
  color: var(--text-tertiary);
  margin-top: 8px;
  flex-shrink: 0;
  transition: color 240ms ease, transform 320ms var(--ease-soft);
}

.output-card:hover .output-icon {
  color: var(--text-primary);
  transform: translateX(2px) translateY(-1px);
}

.output-card--accent .output-icon {
  color: var(--accent-primary);
}

.output-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.output-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.output-card--accent {
  background: rgba(22, 22, 26, 0.7);
}

/* Subtle elevation for card 04 — slightly brighter number, that's all */
.output-card--accent .num {
  color: var(--text-primary);
}

/* ============================================
   COMPARISON TABLE — editorial horizontal table
   Rows = criteria, columns = tools
   No decorative dots, no chrome, proper editorial spacing
   ============================================ */
.compare-table {
  max-width: 1080px;
  margin: 56px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: 160px repeat(4, 1fr) 1.3fr;
  border-top: 1px solid var(--border-default);
}

.compare-row {
  display: contents;
}

.compare-cell {
  padding: 22px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  position: relative;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

/* Row label (first column) */
.compare-cell--label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* Column header row — bigger padding for breathing room */
.compare-row--head .compare-cell {
  padding: 28px 18px 22px;
  border-bottom: 1px solid var(--border-default);
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.compare-row--head .compare-cell--label { padding: 0; }

.cc-lvl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cc-lvl .lvl-dot {
  height: 10px;
}

.cc-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* OS Audit column — subtle distinction only */
.compare-cell--os {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.compare-cell--os::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-default);
}

.compare-row--head .compare-cell--os .cc-lvl { color: var(--text-secondary); }
.compare-row--head .compare-cell--os .cc-name { color: var(--text-primary); }

/* Last row clean close on OS col */
.compare-row:last-child .compare-cell--os {
  border-bottom-color: var(--border-default);
}

.compare-note {
  max-width: 680px;
  margin: 44px auto 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
}

/* ============================================
   REPORT PREVIEW BLOCK
   ============================================ */
.report-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.report-intro h2 { margin-bottom: 20px; }
.report-intro .body { margin-bottom: 28px; }

.report-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-features li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.rf-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.rf-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* The mock document */
.report-mockup {
  position: relative;
  perspective: 1500px;
}

.rm-frame {
  background: #FAF7F2;
  color: #1A1A1E;
  border-radius: 4px;
  padding: 28px 28px 24px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(-1deg);
  transition: transform 600ms var(--ease-soft);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.rm-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(26, 26, 30, 0.15);
}

.report-mockup:hover .rm-frame {
  transform: rotate(0deg);
}

.rm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26, 26, 30, 0.12);
  margin-bottom: 16px;
}

.rm-h-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rm-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #1A1A1E;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rm-brand .logo-mark .lm {
  width: 12px;
  height: 1.5px;
  background: #1A1A1E !important;
}

.rm-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #6E6E73;
}

.rm-h-right {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: baseline;
  text-align: right;
}

.rm-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #6E6E73;
}

.rm-meta-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #1A1A1E;
  letter-spacing: 0.02em;
}

.rm-section {
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(26, 26, 30, 0.08);
  position: relative;
}

.rm-section:last-of-type { border-bottom: none; }

.rm-section-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #6E6E73;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.rm-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: #1A1A1E;
  letter-spacing: 0.15em;
}

.rm-section-body {
  margin-top: 10px;
}

.rm-lead {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #1A1A1E;
  margin-bottom: 8px;
  line-height: 1.4;
}

.rm-lead strong {
  font-weight: 500;
}

.rm-text {
  font-size: 12px;
  line-height: 1.55;
  color: #2A2A2E;
}

.rm-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.rm-bar {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
}

.rm-bar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #6E6E73;
  letter-spacing: 0.05em;
}

.rm-bar-track {
  height: 4px;
  background: rgba(26, 26, 30, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.rm-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.rm-bar .rm-bar-fill { background: rgba(26, 26, 30, 0.4); }
.rm-bar[data-color="amber"] .rm-bar-fill { background: var(--level-amber); opacity: 0.85; }
.rm-bar[data-color="violet"] .rm-bar-fill { background: var(--level-violet); opacity: 0.9; }
.rm-bar[data-color="blue"] .rm-bar-fill { background: var(--level-blue); opacity: 0.8; }
.rm-bar[data-color="green"] .rm-bar-fill { background: var(--level-green); opacity: 0.85; }

.rm-bar--top .rm-bar-label { color: #1A1A1E; font-weight: 500; }

.rm-section--blurred {
  position: relative;
}

.rm-section--blurred .rm-section-body {
  filter: blur(0.4px);
  opacity: 0.55;
}

.rm-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  margin-bottom: 6px;
  align-items: baseline;
}

.rm-step-week {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #6E6E73;
}

.rm-step-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6E6E73;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.rm-redact-label {
  position: absolute;
  top: 14px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #6E6E73;
  background: rgba(26, 26, 30, 0.06);
  padding: 3px 8px;
  border-radius: 2px;
}

.rm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 26, 30, 0.08);
  margin-top: 4px;
}

.rm-sign-line {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: #1A1A1E;
}

.rm-page {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #6E6E73;
}

/* ============================================
   STATS BAND — visual break between Output and About
   Big typographic numbers, no card chrome
   ============================================ */
.stats-band {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  background: rgba(10, 10, 11, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79, 138, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(229, 161, 79, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  z-index: 1;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-primary);
  font-weight: 500;
  margin-top: 4px;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.stat-sep {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border-default), transparent);
  align-self: center;
}

@media (max-width: 767px) {
  .stats-band { padding: 48px 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .stat-sep { display: none; }
  .stat-num { font-size: 52px; }
}

.output-followup {
  max-width: 720px;
  text-align: center;
  margin: 28px auto 0;
  color: var(--text-tertiary);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .output-followup { white-space: normal; }
}

/* ============================================
   BLOCK 6 — ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.about-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  position: sticky;
  top: 80px;
}

.about-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: visible;
}

/* Subtle glow behind about photo */
.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at top left, rgba(229, 161, 79, 0.08) 0%, transparent 60%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

/* Diagnostic viewfinder corner brackets — feels "examined" rather than "pasted" */
.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
}
.frame-corner::before,
.frame-corner::after {
  content: "";
  position: absolute;
  background: var(--text-tertiary);
  transition: background 280ms ease;
}
.frame-corner--tl {
  top: -1px;
  left: -1px;
}
.frame-corner--tl::before {
  top: 0; left: 0; width: 100%; height: 1px;
}
.frame-corner--tl::after {
  top: 0; left: 0; width: 1px; height: 100%;
}
.frame-corner--tr {
  top: -1px;
  right: -1px;
}
.frame-corner--tr::before {
  top: 0; right: 0; width: 100%; height: 1px;
}
.frame-corner--tr::after {
  top: 0; right: 0; width: 1px; height: 100%;
}
.frame-corner--bl {
  bottom: -1px;
  left: -1px;
}
.frame-corner--bl::before {
  bottom: 0; left: 0; width: 100%; height: 1px;
}
.frame-corner--bl::after {
  bottom: 0; left: 0; width: 1px; height: 100%;
}
.frame-corner--br {
  bottom: -1px;
  right: -1px;
}
.frame-corner--br::before {
  bottom: 0; right: 0; width: 100%; height: 1px;
}
.frame-corner--br::after {
  bottom: 0; right: 0; width: 1px; height: 100%;
}

.about-photo-wrap:hover .frame-corner::before,
.about-photo-wrap:hover .frame-corner::after {
  background: var(--accent-primary);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.about-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.about-meta span { display: block; }

.about-text { max-width: 540px; }

.about-text h2 { margin-bottom: 32px; }

.about-block { margin-bottom: 24px; }

.about-block-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  font-weight: 500;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-list li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.about-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

.about-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-block p:last-child { margin-bottom: 0; }

.about-principles {
  margin: 32px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.principle-mark {
  width: 14px;
  height: 1px;
  background: var(--text-tertiary);
  flex-shrink: 0;
  display: inline-block;
  margin-top: 2px;
}

.principle-text { flex: 1; }

/* ============================================
   QUOTE DIVIDER
   ============================================ */
.quote-divider {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  background: url('assets/richard_5.png') center/cover no-repeat;
  overflow: hidden;
  z-index: 2;
}

.quote-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.6) 55%, rgba(10, 10, 11, 0.15) 100%);
}

.quote-divider::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 80px;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
  z-index: 1;
}

.quote-divider .bottom-feather {
  position: absolute;
  left: 0; right: 0;
  bottom: 0; height: 80px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.quote-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
  width: 100%;
}

.quote-block { max-width: 540px; }

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

/* ============================================
   BLOCK 7 — CASES
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.case-card {
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease-soft);
}

.case-card:hover {
  border-color: var(--border-strong);
  background: rgba(26, 26, 30, 0.85);
  transform: translateY(-2px);
}

.case-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-weight: 400;
}

.case-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 20px;
}

.case-card .roi {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   BLOCK 8 — PROFILES
   ============================================ */
.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.profile-card {
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 44px 56px 1fr;
  gap: 18px;
  align-items: start;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease-soft);
}

.profile-card:hover {
  border-color: var(--border-strong);
  background: rgba(26, 26, 30, 0.85);
  transform: translateX(2px);
}

.profile-card:hover .profile-icon {
  color: var(--accent-primary);
}

.profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color 240ms ease, border-color 240ms ease;
}

.profile-card .idx {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  padding-top: 8px;
}

.profile-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.profile-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.profiles-summary {
  text-align: center;
  margin-top: 32px;
  color: var(--text-secondary);
  font-size: 15px;
  font-style: italic;
}

/* ============================================
   BLOCK 9 — FILTER (now with X icons)
   ============================================ */
.filter-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item {
  display: grid;
  grid-template-columns: 32px 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 10px;
  transition: background 200ms ease;
  position: relative;
}

.filter-item + .filter-item {
  border-top: 1px solid var(--border-subtle);
}

.filter-item:hover {
  background: rgba(239, 68, 68, 0.04);
}

.filter-item:hover .filter-x {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.4);
}

.filter-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color 240ms ease, border-color 240ms ease;
  margin-top: 0;
}

.filter-item .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  padding-top: 6px;
}

.filter-item h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.filter-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ============================================
   BLOCK 10 — FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 400;
  transition: color 200ms ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .toggle { color: var(--accent-primary); }

.faq-item .toggle {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 20px;
  transition: color 200ms ease, transform 300ms ease;
  width: 18px;
  text-align: center;
}

.faq-item[open] .toggle::before { content: "−"; }
.faq-item .toggle::before { content: "+"; }

.faq-item .answer {
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
}

/* ============================================
   BLOCK 11 — FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.final-cta .display {
  margin-top: 20px;
  margin-bottom: 24px;
}

.final-cta .body-large {
  max-width: 540px;
  margin: 0 auto 36px;
}

.final-cta .hero-meta { margin-top: 24px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand .logo small { font-size: 10px; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  transition: color 200ms ease;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-sig {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

/* ============================================
   QUIZ POPUP MODAL
   ============================================ */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.modal-root.is-open {
  display: flex;
  animation: fadeIn 300ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: scaleIn 300ms var(--ease-spring);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@keyframes scaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 18px;
  border-radius: 6px;
  transition: color 200ms ease, background 200ms ease;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.quiz-header {
  margin-bottom: 24px;
  margin-top: 4px;
}

.quiz-levels-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  justify-content: space-between;
}

.quiz-level-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  transition: all 280ms var(--ease-soft);
  white-space: nowrap;
}

.qlp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 280ms ease;
  flex-shrink: 0;
}

.quiz-level-pill[data-color="amber"].is-active { border-color: var(--level-amber); color: var(--text-primary); }
.quiz-level-pill[data-color="amber"].is-active .qlp-dot { background: var(--level-amber); }
.quiz-level-pill[data-color="violet"].is-active { border-color: var(--level-violet); color: var(--text-primary); }
.quiz-level-pill[data-color="violet"].is-active .qlp-dot { background: var(--level-violet); }
.quiz-level-pill[data-color="blue"].is-active { border-color: var(--level-blue); color: var(--text-primary); }
.quiz-level-pill[data-color="blue"].is-active .qlp-dot { background: var(--level-blue); }
.quiz-level-pill[data-color="green"].is-active { border-color: var(--level-green); color: var(--text-primary); }
.quiz-level-pill[data-color="green"].is-active .qlp-dot { background: var(--level-green); }

@media (max-width: 580px) {
  .quiz-level-pill .qlp-name { display: none; }
  .quiz-level-pill { padding: 6px; }
}

.modal-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 1px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-primary);
  transition: width 400ms ease-out;
}

.progress-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.q-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.q-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-option {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 13px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  position: relative;
}

.q-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent-primary);
  transition: height 200ms var(--ease-soft);
  border-radius: 1px;
}

.q-option:hover {
  background: rgba(79, 138, 255, 0.06);
  border-color: rgba(79, 138, 255, 0.45);
  color: var(--text-primary);
}

.q-option:hover::before {
  height: 60%;
}

.q-option.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-muted);
  color: var(--text-primary);
}

.q-option.is-selected::before {
  height: 60%;
}

.q-option.is-selected::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.modal-nav .btn-ghost.is-hidden { visibility: hidden; }

.q-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.q-form .body { margin-bottom: 4px; font-size: 14px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.form-field input {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 200ms ease;
  width: 100%;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-field.is-error input {
  border-color: var(--error);
}

.form-field .err-msg {
  font-size: 11px;
  color: var(--error);
  display: none;
  margin-top: -2px;
}

.form-field.is-error .err-msg { display: block; }

.q-form .btn { margin-top: 6px; width: 100%; }

/* ============================================
   QUIZ RESULTS VISUALIZATION
   ============================================ */
.q-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: resultsFadeIn 500ms var(--ease-soft);
}

@keyframes resultsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.results-primary {
  position: relative;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  overflow: hidden;
}

.rp-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 8px;
}

.rp-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.rp-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.results-chart {
  margin-top: 4px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

.rc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 14px;
}

.rc-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.rc-bar-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.rc-bar.is-top .rc-bar-name { color: var(--text-primary); font-weight: 500; }

.rc-bar-score {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.rc-bar.is-top .rc-bar-score { color: var(--text-primary); }

.rc-bar-track {
  height: 4px;
  background: var(--bg-primary);
  border-radius: 2px;
  overflow: hidden;
}

.rc-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 900ms var(--ease-soft);
}

.rc-bar[data-color="amber"] .rc-bar-fill { background: var(--level-amber); }
.rc-bar[data-color="violet"] .rc-bar-fill { background: var(--level-violet); }
.rc-bar[data-color="blue"] .rc-bar-fill { background: var(--level-blue); }
.rc-bar[data-color="green"] .rc-bar-fill { background: var(--level-green); }

.rc-bar.is-top .rc-bar-fill {
  box-shadow: 0 0 8px currentColor;
}

.rc-bar.is-top[data-color="amber"] .rc-bar-fill { box-shadow: 0 0 8px rgba(229, 161, 79, 0.7); }
.rc-bar.is-top[data-color="violet"] .rc-bar-fill { box-shadow: 0 0 8px rgba(139, 92, 246, 0.7); }
.rc-bar.is-top[data-color="blue"] .rc-bar-fill { box-shadow: 0 0 8px rgba(79, 138, 255, 0.7); }
.rc-bar.is-top[data-color="green"] .rc-bar-fill { box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }

.results-note {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 4px;
  font-style: italic;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-soft), transform 600ms var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   IMAGE INTEGRATION
   Background images and decorative photography
   ============================================ */

/* r_1 — Architecture blueprint background */
.has-bg-architecture {
  position: relative;
  isolation: isolate;
}
.has-bg-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/bg-architecture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.has-bg-architecture > .container {
  position: relative;
  z-index: 1;
}

/* r_3-r_6 — Architecture module icons */
.arch-module {
  position: relative;
}
.arch-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  opacity: 0.7;
  transition: opacity 280ms ease, transform 280ms var(--ease-soft);
  /* Icons are white on black — use mix-blend to lighten cleanly */
  filter: brightness(1) contrast(1);
}
.arch-module:hover .arch-icon {
  opacity: 1;
  transform: scale(1.08);
}

/* r_7 — film grain texture on About photo */
.about-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/texture-grain.jpg');
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* r_8 — Stats Band grid background */
.has-bg-stats {
  position: relative;
}
.has-bg-stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/bg-stats.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 0;
}
.has-bg-stats > .container,
.has-bg-stats > * {
  position: relative;
  z-index: 1;
}

/* r_10 — Protocol schematic as section background */
.has-bg-protocol {
  position: relative;
  isolation: isolate;
}
.has-bg-protocol::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/bg-protocol.jpg');
  background-size: 120% auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.has-bg-protocol > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .has-bg-protocol::before {
    background-size: 200% auto;
    opacity: 0.08;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1023px) {
  .hero-grid,
  .arch-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-grid { gap: 32px; }
  .hero-grid {
    align-items: end;
  }
  .hero-left { padding-bottom: 32px; }
  .hero-right {
    justify-content: center;
    min-height: 420px;
  }
  .hero-photo {
    max-width: 380px;
    max-height: 540px;
  }

  .about-photo-wrap {
    max-width: 280px;
    position: static;
    margin: 0 auto;
    align-self: center;
  }

  .cases-grid { grid-template-columns: 1fr; }
  .protocol-timeline { grid-template-columns: 1fr; }

  /* Symptom rows: collapse meta into body column */
  .sym-row {
    grid-template-columns: 80px 1fr 36px;
    gap: 24px;
    padding: 26px 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
  .sym-row-meta { grid-column: 2; padding-top: 0; margin-bottom: 8px; }
  .sym-row-body { grid-column: 2; padding-top: 0; }
  .sym-row-toggle { grid-column: 3; }
  .sym-row-num { font-size: 44px; }
  .sym-row-title { font-size: 22px; }

  /* Symptom detail panel: 2 columns on tablet (insight stays wide, bad+good split) */
  .sd-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sd-col:first-child { grid-column: 1 / -1; }

  /* Comparison table — tablet: compact columns */
  .compare-table {
    grid-template-columns: 120px repeat(4, 1fr) 1.3fr;
  }
  .compare-cell {
    padding: 18px 12px;
    font-size: 13px;
  }
  .compare-row--head .compare-cell {
    padding: 24px 12px 18px;
  }
  .cc-name { font-size: 18px; }

  /* Report block stacks on tablet */
  .report-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .report-mockup { max-width: 540px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .site-header { padding: 18px 20px; }

  .section { padding: 64px 0; }
  .section--full { padding: 80px 0 64px; min-height: auto; }

  .hero {
    padding: 90px 0 0;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 20px;
    align-items: end;
  }
  .hero-left { padding-bottom: 0; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-right {
    display: flex;
    min-height: auto;
    margin: 0;
    justify-content: center;
    width: 100%;
  }
  .hero-photo {
    width: 100%;
    max-width: 100%;
    max-height: 60vh;
    margin-bottom: 0;
  }
  .hero-meta span + span::before { margin: 0 6px; }
  .scroll-cue { display: none; }

  .display { font-size: 36px; }
  h1.section-title, .h1 { font-size: 30px; }
  h2.section-title, .h2 { font-size: 24px; }

  .section-head { margin-bottom: 36px; }

  .symptoms-grid,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .output-card { min-height: 180px; }

  .arch-viz {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .arch-tools {
    flex-direction: row;
    flex-wrap: wrap;
    padding-right: 0;
    gap: 12px;
  }

  .arch-tool { height: auto; }
  .arch-tool .t-line { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .footer-links { flex-wrap: wrap; }

  /* Profile cards: stack icon+idx on one row, text below */
  .profile-card {
    grid-template-columns: 40px 44px 1fr;
    gap: 12px;
    padding: 18px;
  }
  .profile-icon {
    width: 40px;
    height: 40px;
  }
  .profile-icon svg {
    width: 22px;
    height: 22px;
  }
  .profile-card .idx {
    font-size: 18px;
    padding-top: 10px;
  }
  .profile-card h3 { font-size: 16px; }
  .profile-card p { font-size: 13px; }

  /* Filter items: tighter on mobile */
  .filter-item {
    grid-template-columns: 26px 30px 1fr;
    gap: 12px;
    padding: 14px 12px;
  }
  .filter-x { width: 22px; height: 22px; }
  .filter-x svg { width: 12px; height: 12px; }
  .filter-item h3 { font-size: 15px; }
  .filter-item p { font-size: 13px; }
  .filter-item .idx { font-size: 11px; padding-top: 7px; }

  /* Symptom rows: mobile — tighter columns */
  .sym-row {
    grid-template-columns: 56px 1fr 30px;
    gap: 14px;
    padding: 22px 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
  .sym-row-meta { grid-column: 2; padding-top: 0; margin-bottom: 6px; }
  .sym-row-body { grid-column: 2; padding-top: 0; }
  .sym-row-toggle { grid-column: 3; grid-row: 1; }
  .sym-row-num { font-size: 36px; }
  .sym-row-area { font-size: 10px; letter-spacing: 0.14em; }
  .sym-row-title { font-size: 19px; margin-bottom: 6px; }
  .sym-row-desc { font-size: 14px; }
  .sym-row-toggle { width: 26px; height: 26px; margin-top: 4px; }

  /* Symptom detail panel: stack columns vertically on mobile */
  .sd-inner { padding: 4px 16px 24px; }
  .sd-grid { grid-template-columns: 1fr; gap: 28px; }
  .sd-tag { margin-bottom: 20px; padding-bottom: 14px; }
  .sd-col p { font-size: 14px; }
  .sd-col ul li { font-size: 13.5px; }

  /* Output cards padding */
  .output-card { padding: 22px; }
  .output-card .num { font-size: 40px; }

  /* Cases */
  .case-card { padding: 22px; }
  .case-card h3 { font-size: 22px; }

  /* About */
  .about-grid { gap: 32px; }
  .about-text h2 { margin-bottom: 24px; }

  /* Section heads */
  .section-head { margin-bottom: 32px; }

  /* Hero credentials compact */
  .hero-credentials { padding: 16px 14px; }
  .hc-grid { gap: 14px 12px; }
  .hc-item { padding-left: 12px; }
  .hc-num { font-size: 22px; }
  .hc-label { font-size: 9px; letter-spacing: 0.14em; margin-top: 4px; }
  .hc-sub { font-size: 9.5px; }

  .modal {
    max-height: 100vh;
    border-radius: 0;
    padding: 20px 18px;
    border: none;
  }
  .modal-root { padding: 0; }
  .q-title { font-size: 20px; }

  /* === Quiz RESULTS stage — must fit in one screen === */
  .q-results { gap: 12px; }
  .q-results .q-step-label { margin-bottom: 8px; }
  .q-results .q-title { font-size: 22px; margin-bottom: 10px; }
  .results-intro { font-size: 13px; margin-bottom: 2px; }
  .results-primary { padding: 14px 16px; }
  .rp-tag { font-size: 9px; margin-bottom: 4px; }
  .rp-name { font-size: 20px; margin-bottom: 2px; }
  .rp-desc { font-size: 12px; line-height: 1.45; }
  .results-chart { padding: 14px 16px; }
  .rc-title { margin-bottom: 10px; font-size: 9px; }
  .rc-bars { gap: 8px; }
  .rc-bar-head { margin-bottom: 4px; }
  .rc-bar-name { font-size: 9px; }
  .rc-bar-score { font-size: 10px; }
  .rc-bar-track { height: 3px; }
  .results-note { display: none; }

  /* Hide level pills row when in results to save vertical space */
  .modal-root.is-results .quiz-levels-row { display: none; }
  .modal-root.is-results .quiz-header { margin-bottom: 16px; }

  /* Comparison table — mobile: linearize cleanly */
  .compare-table {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    border-top: none;
    gap: 0;
    margin-top: 24px;
  }

  /* Hide header row entirely */
  .compare-row--head { display: none !important; }

  /* Each criterion row = one block */
  .compare-row {
    display: flex !important;
    flex-direction: column;
    border-top: 1px solid var(--border-default);
    padding: 16px 0 10px;
    gap: 0;
  }
  .compare-row:last-child { border-bottom: 1px solid var(--border-default); }

  /* Reset desktop cell styles */
  .compare-cell {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-secondary);
  }
  .compare-cell::before,
  .compare-cell::after {
    content: none !important;
    position: static !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
  }

  /* Criterion label = section header */
  .compare-cell--label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  /* Tool rows show as label + value pairs */
  .compare-row .compare-cell:not(.compare-cell--label) {
    display: grid !important;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 6px 0;
    align-items: baseline;
  }

  .compare-row .compare-cell:not(.compare-cell--label)::before {
    content: "";
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    display: block;
  }

  .compare-row .compare-cell:nth-child(2)::before { content: "БИОХАКИНГ" !important; }
  .compare-row .compare-cell:nth-child(3)::before { content: "ТЕРАПИЯ" !important; }
  .compare-row .compare-cell:nth-child(4)::before { content: "КОУЧИНГ" !important; }
  .compare-row .compare-cell:nth-child(5)::before { content: "КОНСАЛТИНГ" !important; }
  .compare-row .compare-cell:nth-child(6)::before {
    content: "OS AUDIT" !important;
    color: var(--accent-primary);
  }

  .compare-row .compare-cell--os {
    color: var(--text-primary);
    font-weight: 500;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    padding-top: 12px;
  }

  /* Report mockup: smaller on mobile */
  .report-mockup { max-width: 100%; }
  .rm-frame { padding: 20px 18px; transform: rotate(-0.6deg); }
  .rm-h-right { display: none; }
  .rm-section-num, .rm-section-label { font-size: 9px; }
  .rm-lead { font-size: 13px; }
  .rm-text { font-size: 11px; }
  .rm-step { grid-template-columns: 70px 1fr; gap: 8px; }

  /* Architecture icons: smaller on mobile */
  .arch-icon { width: 22px; height: 22px; margin-bottom: 10px; }

  /* Reduce orb sizes on mobile for perf */
  .orb--1, .orb--2, .orb--3, .orb--4 {
    transform: scale(0.7);
  }
}
