/* ==========================================================================
   LAKSHAY SHARMA — RESEARCH JOURNAL & FINANCIAL PORTFOLIO
   Design System & Editorial Styling
   ========================================================================== */

/* --- Custom Properties & Theme Variables --- */
:root {
  /* Color Palette: Warm Alabaster / Editorial Ivory */
  --bg-page: #fbf9f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f4efe6;
  --bg-muted: #ece6da;
  --bg-card-hover: #faf7f0;
  
  /* Ink & Typography */
  --ink-primary: #121316;
  --ink-secondary: #3c3f47;
  --ink-muted: #6f737d;
  --ink-faint: #9ea2ac;
  
  /* Hairline Borders */
  --line-light: #e6e0d2;
  --line-subtle: #ece7db;
  --line-strong: #121316;
  
  /* Financial Data Accents */
  --emerald: #0b6a48;
  --emerald-bg: #eaf5f0;
  --emerald-border: #bfe5d5;
  --crimson: #a82a2a;
  --crimson-bg: #fbeded;
  --crimson-border: #f5c4c4;
  --navy: #1a3b68;
  --navy-bg: #eef4fc;
  --navy-border: #c6dcfa;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --amber-border: #fde68a;
  
  /* Dark Section Palette (The Numbers Lab) */
  --dark-bg: #0d0f14;
  --dark-surface: #151821;
  --dark-surface-elevated: #1d212d;
  --dark-border: #262b3a;
  --dark-ink: #f5f4ef;
  --dark-muted: #8e95a5;
  
  /* Typography Scale */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 19, 22, 0.04), 0 1px 2px rgba(18, 19, 22, 0.02);
  --shadow-md: 0 4px 16px rgba(18, 19, 22, 0.06), 0 2px 4px rgba(18, 19, 22, 0.03);
  --shadow-lg: 0 16px 40px rgba(18, 19, 22, 0.08), 0 4px 12px rgba(18, 19, 22, 0.04);
  --shadow-glow: 0 0 24px rgba(11, 106, 72, 0.15);
  
  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Layout */
  --container-max: 1280px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

input, select {
  font-family: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Subtle editorial paper grain */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Tabular figures for financial numbers */
.num, .metric-val, .table-num, .bridge-val, .data-pill {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --- Container & Grid --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* --- Typography Helpers --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-bg);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: var(--ink-muted);
}

.section-title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 620px;
}

/* --- Badges & Chips --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.badge-crimson {
  background: var(--crimson-bg);
  color: var(--crimson);
  border-color: var(--crimson-border);
}

.badge-navy {
  background: var(--navy-bg);
  color: var(--navy);
  border-color: var(--navy-border);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.badge-neutral {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border-color: var(--line-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-primary);
  color: var(--bg-surface);
  border: 1px solid var(--ink-primary);
  box-shadow: 0 2px 8px rgba(18, 19, 22, 0.12);
}

.btn-primary:hover {
  background: #2b2e36;
  border-color: #2b2e36;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 19, 22, 0.18);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-text {
  padding: 0;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text:hover {
  color: var(--emerald);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.brand-monogram {
  width: 38px;
  height: 38px;
  background: var(--ink-primary);
  color: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: transform 0.2s ease;
}

.brand:hover .brand-monogram {
  transform: rotate(-3deg) scale(1.04);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--ink-primary);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--ink-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(11, 106, 72, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(11, 106, 72, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(11, 106, 72, 0); }
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: clamp(48px, 6vh, 80px);
  padding-bottom: clamp(60px, 8vh, 100px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(44px, 5.5vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 24px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  color: var(--ink-primary);
}

.hero-lead {
  font-size: clamp(17px, 1.35vw, 20.5px);
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ==========================================================================
   SECTION 01: THE 4 ANALYTICAL LENSES (FRAMEWORKS)
   ========================================================================== */
.frameworks-section {
  padding: clamp(80px, 10vh, 120px) 0;
  border-top: 1px solid var(--line-light);
  background: var(--bg-page);
}

.section-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: clamp(40px, 6vh, 64px);
  align-items: flex-end;
}

.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.framework-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line-light);
  transition: background 0.25s ease;
}

.framework-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-md);
}

.framework-card:hover::before {
  background: var(--emerald);
}

.framework-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.framework-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.framework-icon-svg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 16px;
}

.framework-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.framework-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.framework-mini-chart {
  background: var(--bg-subtle);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xs);
  padding: 10px;
  margin-bottom: 16px;
}

.framework-rule {
  border-top: 1px solid var(--line-light);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.framework-rule strong {
  display: block;
  color: var(--ink-primary);
  font-size: 11px;
  margin-top: 2px;
}

.framework-summary {
  margin-top: 28px;
  padding: 22px 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.framework-summary .section-label {
  margin-bottom: 0;
}

.framework-summary p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 02: RESEARCH CASES (DEEP DIVES)
   ========================================================================== */
.research-section {
  padding: clamp(80px, 10vh, 120px) 0;
  border-top: 1px solid var(--line-light);
  background: #f7f4ed;
}

.research-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.filter-btn.active {
  background: var(--ink-primary);
  color: var(--bg-surface);
  border-color: var(--ink-primary);
}

.research-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* Research Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-lg);
}

.case-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.case-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.case-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-primary);
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.case-card:hover .case-arrow-btn {
  background: var(--ink-primary);
  color: var(--bg-surface);
  border-color: var(--ink-primary);
  transform: translate(2px, -2px);
}

.case-card-title {
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.case-card-core-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--emerald);
}

.case-card-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Case Metrics Strip */
.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 18px;
}

.case-metric-box {
  display: flex;
  flex-direction: column;
}

.case-metric-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.case-metric-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 2px;
}

.case-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.case-action-prompt {
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SECTION 03: THE NUMBERS LAB (INTERACTIVE FINANCIAL WATERFALL)
   ========================================================================== */
.dark-section {
  background-color: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(80px, 10vh, 120px) 0;
  position: relative;
  overflow: hidden;
}

.dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

.lab-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: flex-end;
}

.dark-section .section-title {
  color: var(--dark-ink);
}

.dark-section .section-desc {
  color: var(--dark-muted);
}

.dark-section .section-label {
  color: var(--dark-muted);
}

.dark-section .section-label::before {
  background-color: var(--dark-muted);
}

.lab-selector-nav {
  display: flex;
  gap: 8px;
  background: var(--dark-surface);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dark-border);
  margin-bottom: 32px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.lab-nav-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--dark-muted);
  white-space: nowrap;
}

.lab-nav-btn:hover {
  color: var(--dark-ink);
}

.lab-nav-btn.active {
  background: var(--dark-surface-elevated);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #373f52;
}

/* Lab Display Card */
.lab-display-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lab-display-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark-border);
}

.lab-title-group h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.lab-title-group p {
  font-size: 14px;
  color: var(--dark-muted);
  margin-top: 4px;
}

.lab-headline-kpi {
  text-align: right;
}

.kpi-main-number {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.kpi-main-number.green { color: #34d399; }
.kpi-main-number.amber { color: #fbbf24; }
.kpi-main-number.blue { color: #60a5fa; }

.kpi-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-top: 4px;
}

/* Interactive Visual Waterfall Container */
.waterfall-canvas-wrap {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
}

.waterfall-svg {
  width: 100%;
  min-width: 600px;
  height: 240px;
}

/* Forensic Bridge Table */
.bridge-table-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.bridge-item {
  background: var(--dark-surface-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.bridge-item:hover {
  border-color: #4b5563;
}

.bridge-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.bridge-item-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.bridge-item-impact {
  font-size: 11.5px;
  color: var(--dark-muted);
  margin-top: 4px;
}

/* Lab Forensic Insight Box */
.lab-takeaway-box {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.4);
  border-left: 3px solid #34d399;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.takeaway-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: #34d399;
}

.takeaway-content {
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
}

/* ==========================================================================
   SECTION 04: THINKING (MENTAL MODEL MEMOS)
   ========================================================================== */
.thinking-section {
  padding: clamp(80px, 10vh, 120px) 0;
  border-top: 1px solid var(--line-light);
  background: var(--bg-page);
}

.memos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.memo-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.memo-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-md);
}

.memo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.memo-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.memo-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.memo-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.memo-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  flex-grow: 1;
}

.memo-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--emerald);
  font-weight: 600;
}

/* ==========================================================================
   SECTION 05: THE POST-MORTEM LOG (INTELLECTUAL HONESTY)
   ========================================================================== */
.wrong-section {
  padding: clamp(80px, 10vh, 120px) 0;
  border-top: 1px solid var(--line-light);
  background: #f4eee2;
}

.postmortem-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.postmortem-lead-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-top: 16px;
  margin-bottom: 24px;
}

.postmortem-rules-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.postmortem-rules-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.postmortem-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.postmortem-rules-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.postmortem-rules-list li::before {
  content: '→';
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

/* Post-Mortem Ledger Table */
.postmortem-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.postmortem-table-head {
  padding: 16px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.postmortem-table-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.postmortem-ledger-items {
  display: flex;
  flex-direction: column;
}

.ledger-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-light);
  transition: background 0.2s ease;
}

.ledger-item:last-child {
  border-bottom: none;
}

.ledger-item:hover {
  background: var(--bg-card-hover);
}

.ledger-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ledger-entity {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.ledger-thesis {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.ledger-invalidation {
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crimson);
  border-left: 2px solid var(--crimson);
  line-height: 1.4;
}

/* ==========================================================================
   SECTION 06: ABOUT & METHODOLOGY
   ========================================================================== */
.about-section {
  padding: clamp(80px, 10vh, 120px) 0;
  border-top: 1px solid var(--line-light);
  background: var(--bg-page);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

.about-bio-copy {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.about-bio-copy p {
  margin-bottom: 20px;
}

.about-bio-copy strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.pillar-box {
  display: flex;
  flex-direction: column;
}

.pillar-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Methodology Autopsy Timeline */
.methodology-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}

.about-photo-frame {
  width: min(100%, 320px);
  height: 280px;
  min-height: 0;
  justify-self: end;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
}

.about-photo-column {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(100%, 320px);
  margin-top: 16px;
}

.about-social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: var(--bg-surface);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.about-social-links a:hover {
  color: var(--emerald);
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.about-social-links a:nth-child(1):hover {
  color: #ea4335;
  border-color: #ea4335;
}

.about-social-links a:nth-child(2):hover {
  color: #0a66c2;
  border-color: #0a66c2;
}

.about-social-links a:nth-child(3):hover {
  color: #111111;
  border-color: #111111;
}

.about-social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  .about-photo-column {
    width: 100%;
    align-items: center;
  }

  .about-social-links {
    justify-content: center;
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .about-photo-frame {
    width: 100%;
    max-width: 360px;
    height: 280px;
    justify-self: start;
  }
}

.methodology-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.methodology-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.autopsy-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.autopsy-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 15px;
  width: 1px;
  background: var(--line-light);
}

.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-primary);
  flex-shrink: 0;
  z-index: 2;
}

.step-body {
  display: flex;
  flex-direction: column;
}

.step-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.step-detail {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-top: 2px;
}

/* Contact Strip */
.contact-banner {
  margin-top: clamp(60px, 8vh, 80px);
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-info-block h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.contact-info-block p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-top: 4px;
}

.contact-links-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-light);
  padding: 32px 0;
  background: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-motto {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
  font-weight: 600;
}

.back-to-top-btn:hover {
  color: var(--emerald);
}

/* ==========================================================================
   INTERACTIVE CASE TEARDOWN SLIDE-OVER DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 22, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.case-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(800px, 92vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--line-light);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.15);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 28px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-secondary);
}

.drawer-close-btn:hover {
  background: var(--ink-primary);
  color: var(--bg-surface);
}

.drawer-content {
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 36px);
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-case-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.drawer-question-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--emerald);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.drawer-question-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 4px;
}

.drawer-question-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-primary);
  line-height: 1.45;
}

.drawer-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.drawer-metric-item {
  display: flex;
  flex-direction: column;
}

.drawer-metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.drawer-metric-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 4px;
}

.drawer-section-block {
  margin-bottom: 28px;
}

.drawer-section-h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-section-h4::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-primary);
}

.drawer-p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.drawer-takeaway-card {
  background: #fbf7ee;
  border: 1px solid #ebd9b5;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 20px;
}

.drawer-takeaway-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink-primary);
  color: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .memos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    max-width: 720px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--line-light);
    padding: 24px clamp(20px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 39;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav-link {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-primary);
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-subtle);
  }
  
  .section-intro-grid,
  .lab-header-grid,
  .postmortem-container,
  .about-grid,
  .framework-summary {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .bridge-table-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .case-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .drawer-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .frameworks-grid,
  .memos-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
  
  .status-pill {
    display: none;
  }
  
  .bridge-table-grid {
    grid-template-columns: 1fr;
  }
  
  .about-pillars {
    grid-template-columns: 1fr;
  }
  
  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Visual refresh: financial dossier / live research desk --- */
:root {
  --bg-page: #f1eee6;
  --bg-surface: #fbfaf6;
  --bg-subtle: #e5e1d7;
  --bg-muted: #d6d2c7;
  --bg-card-hover: #f6f3eb;
  --ink-primary: #111820;
  --ink-secondary: #39434b;
  --ink-muted: #66727a;
  --ink-faint: #929b9d;
  --line-light: #c9c9bf;
  --line-subtle: #deddd3;
  --line-strong: #111820;
  --emerald: #587400;
  --emerald-bg: #edf3cf;
  --emerald-border: #c4d281;
  --crimson: #c54c3d;
  --crimson-bg: #f8e2dc;
  --crimson-border: #e9aaa0;
  --navy: #075b78;
  --navy-bg: #dceef2;
  --navy-border: #9bcbd2;
  --amber: #b56c00;
  --amber-bg: #f8e8c2;
  --amber-border: #e6c477;
  --dark-bg: #111820;
  --dark-surface: #18232b;
  --dark-surface-elevated: #22323a;
  --dark-border: #35464c;
  --dark-ink: #f5f2e9;
  --dark-muted: #9eafb0;
  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 0 rgba(17, 24, 32, 0.12);
  --shadow-md: 8px 8px 0 rgba(17, 24, 32, 0.08);
  --shadow-lg: 12px 12px 0 rgba(17, 24, 32, 0.12);
}

body {
  background-color: var(--bg-page);
  background-image: linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 32, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.site-header {
  background: rgba(241, 238, 230, 0.94);
  border-bottom: 2px solid var(--ink-primary);
}

.brand-monogram {
  background: var(--emerald);
  color: #f7f6ee;
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink-primary);
}

.nav-link::after,
.framework-card::before {
  background-color: var(--emerald);
}

.hero {
  min-height: min(720px, calc(100vh - var(--nav-height)));
  display: flex;
  align-items: center;
  background-color: var(--bg-page);
  background-image: linear-gradient(135deg, rgba(88, 116, 0, 0.1), transparent 36%), linear-gradient(90deg, transparent 0 69%, rgba(197, 76, 61, 0.1) 69% 69.15%, transparent 69.15%);
}

.hero-title {
  max-width: 840px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-title em {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.hero-lead {
  max-width: 620px;
  padding-left: 18px;
  border-left: 3px solid var(--emerald);
}

.hero-stats-row {
  max-width: 760px;
  border-top: 2px solid var(--ink-primary);
}

.btn,
.filter-btn,
.lab-nav-btn {
  border-radius: 2px;
}

.btn-primary {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  box-shadow: 4px 4px 0 var(--crimson);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 4px 4px 0 var(--emerald);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--ink-primary);
  box-shadow: 4px 4px 0 var(--bg-muted);
}

.frameworks-section,
.thinking-section,
.about-section {
  background-color: var(--bg-surface);
}

.frameworks-section,
.research-section,
.thinking-section,
.wrong-section,
.about-section {
  border-top: 2px solid var(--ink-primary);
}

.frameworks-grid {
  gap: 14px;
}

.framework-card,
.case-card,
.memo-card,
.methodology-card,
.contact-banner,
.postmortem-rules-card,
.postmortem-table-card {
  border-color: var(--ink-primary);
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--bg-muted);
}

.framework-card:hover,
.case-card:hover,
.memo-card:hover {
  border-color: var(--emerald);
  box-shadow: 8px 8px 0 rgba(88, 116, 0, 0.24);
}

.framework-icon-svg,
.framework-mini-chart {
  border-radius: 2px;
  background: var(--bg-subtle);
}

.research-section {
  background-color: #e7e4db;
}

.research-toolbar {
  border-bottom: 2px solid var(--ink-primary);
}

.filter-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
}

.case-card-core-q {
  border-left-color: var(--crimson);
}

.dark-section {
  background-color: var(--dark-bg);
  background-image: linear-gradient(rgba(158, 175, 176, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(158, 175, 176, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 2px solid var(--emerald);
}

.lab-display-card {
  border-radius: 2px;
  border-color: var(--emerald);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.32);
}

.lab-selector-nav {
  border-radius: 2px;
  border-color: var(--dark-muted);
}

.lab-nav-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
}

.wrong-section {
  background-color: #f0e3d9;
}

.contact-banner {
  background: var(--ink-primary);
  color: var(--dark-ink);
  border-color: var(--ink-primary);
  box-shadow: 7px 7px 0 var(--crimson);
}

.contact-info-block h3,
.contact-info-block p {
  color: var(--dark-ink);
}

.contact-banner .btn-secondary {
  color: var(--dark-ink);
  border-color: var(--dark-ink);
  box-shadow: none;
}

.site-footer {
  background: var(--ink-primary);
  border-top-color: var(--emerald);
  color: var(--dark-muted);
}

.back-to-top-btn {
  color: var(--dark-ink);
}

.case-drawer {
  border-left: 2px solid var(--emerald);
}

.drawer-header {
  background: var(--ink-primary);
  border-bottom-color: var(--emerald);
}

.drawer-header .badge-neutral {
  background: transparent;
  color: var(--dark-ink);
  border-color: var(--dark-muted);
}

.drawer-close-btn {
  border-radius: 2px;
}

.drawer-question-box {
  border-left-color: var(--crimson);
}

.toast-msg {
  border-radius: 2px;
  background: var(--emerald);
  color: #f7f6ee;
}

@media (max-width: 580px) {
  .lab-selector-nav {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(48px, 15vw, 76px);
  }
}

/* --- Premium portfolio refinement --- */
:root {
  --container-max: 1320px;
  --nav-height: 78px;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(23, 37, 49, 0.08);
  --shadow-md: 0 12px 30px rgba(23, 37, 49, 0.1);
  --shadow-lg: 0 20px 50px rgba(23, 37, 49, 0.14);
}

body {
  font-size: 16px;
  line-height: 1.65;
}

.grain-overlay {
  opacity: 0.018;
}

.site-header {
  height: var(--nav-height);
  border-bottom: 1px solid rgba(23, 37, 49, 0.18);
  box-shadow: 0 4px 18px rgba(23, 37, 49, 0.04);
}

.nav-container {
  max-width: 1320px;
}

.brand {
  gap: 14px;
}

.brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(194, 107, 67, 0.62);
}

.brand-name {
  font-size: 15px;
  letter-spacing: -0.035em;
}

.nav-links {
  gap: 34px;
}

.nav-link {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  color: var(--ink-secondary);
}

.nav-link::after {
  height: 2px;
}

.hero {
  min-height: min(800px, calc(100vh - var(--nav-height)));
  padding-top: clamp(88px, 12vh, 150px);
  padding-bottom: clamp(88px, 12vh, 150px);
}

.hero-content {
  max-width: 980px;
}

.hero-title {
  max-width: 920px;
  font-size: clamp(52px, 7.4vw, 106px);
  line-height: 0.96;
}

.hero-lead {
  max-width: 590px;
  margin-top: 34px;
  margin-bottom: 36px;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  gap: 18px;
  margin-bottom: 60px;
}

.btn {
  min-height: 46px;
  padding: 12px 20px;
  font-size: 12.5px;
  letter-spacing: 0;
}

.hero .btn-primary {
  box-shadow: 0 8px 18px rgba(194, 107, 67, 0.28);
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(194, 107, 67, 0.3);
}

.hero-stats-row {
  max-width: 820px;
  gap: 0;
  padding-top: 28px;
}

.hero-stat-item {
  min-height: 54px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(195, 208, 215, 0.35);
}

.hero-stat-item:last-child {
  border-right: 0;
}

.hero-stat-num {
  font-size: 20px;
}

.section-intro-grid,
.lab-header-grid {
  gap: clamp(48px, 8vw, 120px);
}

.section-label {
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.section-title {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1;
}

.section-desc {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
}

.frameworks-section,
.research-section,
.dark-section,
.thinking-section,
.wrong-section,
.about-section {
  padding-top: clamp(96px, 12vh, 150px);
  padding-bottom: clamp(96px, 12vh, 150px);
}

.framework-card,
.case-card,
.memo-card,
.methodology-card,
.contact-banner,
.postmortem-rules-card,
.postmortem-table-card {
  box-shadow: var(--shadow-sm);
}

.framework-card:hover,
.case-card:hover,
.memo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.framework-card::before {
  height: 3px;
}

.case-card {
  padding: clamp(28px, 3.2vw, 38px);
}

.case-arrow-btn {
  border-radius: 6px;
}

.research-toolbar {
  margin-bottom: 38px;
  padding-bottom: 22px;
}

.filter-btn {
  padding: 8px 14px;
}

.dark-section {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.lab-display-card {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.contact-banner {
  box-shadow: 0 18px 40px rgba(23, 37, 49, 0.18);
}

.case-drawer {
  box-shadow: -20px 0 60px rgba(23, 37, 49, 0.2);
}

@media (max-width: 580px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .hero-actions {
    margin-bottom: 48px;
  }

  .hero-stat-item {
    min-height: auto;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(195, 208, 215, 0.28);
  }

  .hero-stat-item:last-child {
    border-bottom: 0;
  }
}

/* --- Final polish: restrained editorial portfolio --- */
:root {
  --bg-page: #f2f1ed;
  --bg-surface: #fcfcfa;
  --bg-subtle: #e9e8e3;
  --bg-muted: #d8d8d1;
  --bg-card-hover: #ffffff;
  --ink-primary: #1e2529;
  --ink-secondary: #4e5a5f;
  --ink-muted: #748087;
  --ink-faint: #9ba3a5;
  --line-light: #d3d6d2;
  --line-subtle: #e4e5e0;
  --line-strong: #1e2529;
  --emerald: #9b7048;
  --emerald-bg: #f0e6db;
  --emerald-border: #d8c2aa;
  --crimson: #8f5b5b;
  --crimson-bg: #f0e3e0;
  --crimson-border: #d6b9b4;
  --navy: #506a78;
  --navy-bg: #e2eaed;
  --navy-border: #bdcdd3;
  --amber: #96733f;
  --amber-bg: #f1e9d8;
  --amber-border: #d9c69f;
  --dark-bg: #20292d;
  --dark-surface: #283438;
  --dark-surface-elevated: #334145;
  --dark-border: #4a585b;
  --dark-ink: #f5f5f1;
  --dark-muted: #bdc6c6;
  --shadow-sm: 0 2px 12px rgba(30, 37, 41, 0.06);
  --shadow-md: 0 12px 28px rgba(30, 37, 41, 0.09);
  --shadow-lg: 0 18px 46px rgba(30, 37, 41, 0.12);
}

body {
  background: var(--bg-page);
  background-image: none;
}

.site-header {
  background: rgba(242, 241, 237, 0.96);
  border-bottom: 1px solid var(--line-light);
  box-shadow: none;
}

.brand-monogram {
  background: var(--ink-primary);
  border-radius: 4px;
  box-shadow: none;
}

.nav-link::after {
  background: var(--emerald);
}

.hero {
  min-height: min(760px, calc(100vh - var(--nav-height)));
  background: var(--dark-bg);
}

.hero::before {
  color: #aeb8b8;
}

.hero::after {
  opacity: 0.16;
  background: linear-gradient(90deg, transparent 0 75%, #a78a68 75% 75.1%, transparent 75.1%);
}

.hero::before {
  content: none;
}

.hero-title {
  font-size: clamp(50px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-title em {
  color: #c6d0cf;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.035em;
}

.hero-lead {
  color: #d8dfdd;
  border-left-color: var(--emerald);
}

.hero .btn-primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fffdf8;
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: #ad8358;
  border-color: #ad8358;
  box-shadow: none;
}

.hero .btn-secondary {
  border-color: #869497;
}

.hero-stats-row {
  border-top-color: #566568;
}

.section-label {
  color: var(--navy);
}

.section-label::before {
  background: var(--emerald);
}

.section-title {
  letter-spacing: -0.06em;
}

.section-title em {
  color: var(--navy);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.research-section-title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.frameworks-section,
.thinking-section,
.about-section {
  background: var(--bg-surface);
}

.research-section {
  background: #e9ebe8;
}

.framework-card,
.case-card,
.memo-card,
.methodology-card,
.postmortem-rules-card,
.postmortem-table-card {
  border-color: var(--line-light);
  box-shadow: var(--shadow-sm);
}

.framework-card:hover,
.case-card:hover,
.memo-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
}

.framework-card::before {
  background: var(--line-light);
}

.framework-card:hover::before {
  background: var(--emerald);
}

.filter-btn.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
}

.case-card-core-q {
  border-left-color: var(--emerald);
}

.dark-section {
  background-color: #20292d;
  background-image: none;
  border-top-color: var(--emerald);
}

.lab-display-card {
  border-color: #637375;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.lab-nav-btn.active {
  background: var(--emerald);
  color: #fffdf8;
  border-color: var(--emerald);
}

.wrong-section {
  background: #ede7df;
}

.contact-banner {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-md);
}

.site-footer {
  background: var(--ink-primary);
  border-top-color: var(--line-strong);
}

.toast-msg {
  background: var(--ink-primary);
  color: #fffdf8;
}

@media (max-width: 580px) {
  .hero-title {
    font-size: clamp(48px, 14vw, 74px);
  }
}

/* --- Distinctive direction: market terminal / signal board --- */
:root {
  --bg-page: #e9ecef;
  --bg-surface: #fafbf9;
  --bg-subtle: #dce2e7;
  --bg-muted: #c4cdd4;
  --bg-card-hover: #ffffff;
  --ink-primary: #172531;
  --ink-secondary: #3d4f5c;
  --ink-muted: #637582;
  --ink-faint: #8e9da8;
  --line-light: #b8c5ce;
  --line-subtle: #d1d9df;
  --line-strong: #172531;
  --emerald: #c26b43;
  --emerald-bg: #f5e1d8;
  --emerald-border: #e2b39e;
  --crimson: #88485d;
  --crimson-bg: #f0dfe5;
  --crimson-border: #d3aab8;
  --navy: #285d8f;
  --navy-bg: #dce8f3;
  --navy-border: #a9c4dc;
  --amber: #9a6e1f;
  --amber-bg: #f3e8c9;
  --amber-border: #dfc889;
  --dark-bg: #172531;
  --dark-surface: #213746;
  --dark-surface-elevated: #2d4a5c;
  --dark-border: #4a687a;
  --dark-ink: #f5f6f4;
  --dark-muted: #c3d0d7;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 5px;
  --shadow-sm: 3px 3px 0 rgba(16, 34, 45, 0.12);
  --shadow-md: 7px 7px 0 rgba(16, 34, 45, 0.12);
  --shadow-lg: 12px 12px 0 rgba(16, 34, 45, 0.15);
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-page);
  background-image: linear-gradient(90deg, rgba(16, 34, 45, 0.055) 1px, transparent 1px), linear-gradient(rgba(16, 34, 45, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.site-header {
  background: rgba(233, 236, 239, 0.96);
  border-bottom: 2px solid var(--ink-primary);
}

.brand-monogram {
  background: var(--ink-primary);
  border-radius: 3px;
  box-shadow: 4px 4px 0 var(--emerald);
}

.brand-name,
.nav-link,
.section-title,
.hero-title,
.case-card-title,
.framework-title,
.memo-title,
.methodology-title,
.contact-info-block h3 {
  font-family: var(--font-sans);
}

.nav-link::after {
  background-color: var(--emerald);
  height: 3px;
}

.hero {
  min-height: min(760px, calc(100vh - var(--nav-height)));
  padding-top: clamp(64px, 9vh, 120px);
  padding-bottom: clamp(72px, 10vh, 140px);
  background: var(--dark-bg);
  color: var(--dark-ink);
  isolation: isolate;
}

.hero::before {
  content: 'RESEARCH / 2026';
  position: absolute;
  top: 28px;
  right: clamp(20px, 5vw, 64px);
  color: var(--dark-muted);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.hero::before {
  content: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent 0 72%, var(--emerald) 72% 72.2%, transparent 72.2%), linear-gradient(0deg, transparent 0 78%, var(--navy) 78% 78.2%, transparent 78.2%);
}

.hero-title {
  max-width: 900px;
  color: var(--dark-ink);
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.93;
  letter-spacing: -0.075em;
  font-weight: 700;
}

.hero-title em {
  color: #f0c36b;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.08em;
}

.hero-lead {
  color: #e0e8e5;
  border-left: 3px solid var(--emerald);
}

.hero-stats-row {
  border-top-color: #53717a;
}

.hero-stat-num {
  color: var(--dark-ink);
}

.hero-stat-label {
  color: var(--dark-muted);
}

.hero .btn-primary {
  background: #c26b43;
  border-color: #c26b43;
  color: #f8f7f1;
  box-shadow: 5px 5px 0 #718dad;
}

.hero .btn-primary:hover {
  background: #d18359;
  border-color: #d18359;
}

.hero .btn-secondary,
.hero .btn-text {
  color: var(--dark-ink);
}

.hero .btn-secondary {
  border-color: #759198;
  box-shadow: none;
}

.hero .btn-secondary:hover {
  background: var(--dark-surface);
  border-color: #9fb9d1;
}

.frameworks-section,
.thinking-section,
.about-section {
  background: var(--bg-surface);
}

.frameworks-section,
.research-section,
.thinking-section,
.wrong-section,
.about-section {
  border-top: 2px solid var(--ink-primary);
}

.section-label {
  color: var(--navy);
}

.section-label::before {
  width: 28px;
  height: 3px;
  background: var(--emerald);
}

.section-title {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.07em;
}

.section-title em {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--navy);
  font-weight: 400;
}

.frameworks-grid {
  gap: 14px;
}

.framework-card,
.case-card,
.memo-card,
.methodology-card,
.contact-banner,
.postmortem-rules-card,
.postmortem-table-card {
  border-color: var(--ink-primary);
  border-radius: 3px;
  box-shadow: 5px 5px 0 var(--bg-muted);
}

.framework-card::before {
  height: 5px;
  background: var(--navy);
}

.framework-card:hover::before {
  background: var(--emerald);
}

.framework-card:hover,
.case-card:hover,
.memo-card:hover {
  border-color: var(--emerald);
  box-shadow: 8px 8px 0 rgba(242, 100, 58, 0.26);
}

.research-section {
  background: #cfdce1;
}

.research-toolbar {
  border-bottom: 2px solid var(--ink-primary);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
}

.case-card-core-q {
  border-left-color: var(--emerald);
}

.dark-section {
  background-color: var(--dark-bg);
  background-image: linear-gradient(rgba(169, 192, 195, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 192, 195, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 2px solid var(--emerald);
}

.lab-display-card {
  border-radius: 3px;
  border-color: var(--emerald);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
}

.lab-nav-btn.active {
  background: var(--emerald);
  color: #1a2020;
  border-color: var(--emerald);
}

.wrong-section {
  background: #e5d5d2;
}

.contact-banner {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 7px 7px 0 var(--emerald);
}

.contact-banner .btn-primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #f8f7f1;
  box-shadow: none;
}

.contact-banner .btn-secondary {
  color: var(--dark-ink);
  border-color: #9bc7ca;
  box-shadow: none;
}

.site-footer {
  background: var(--dark-bg);
  border-top-color: var(--emerald);
}

.case-drawer {
  border-left: 3px solid var(--emerald);
}

.drawer-header {
  background: var(--dark-bg);
  border-bottom-color: var(--emerald);
}

.toast-msg {
  border-radius: 3px;
  background: var(--emerald);
  color: #f8f7f1;
}

@media (max-width: 580px) {
  .hero {
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(48px, 15vw, 76px);
  }
}

/* --- Final cascade for the clean portfolio direction --- */
:root {
  --bg-page: #f2f1ed;
  --bg-surface: #fcfcfa;
  --bg-subtle: #e9e8e3;
  --bg-muted: #d8d8d1;
  --ink-primary: #1e2529;
  --ink-secondary: #4e5a5f;
  --ink-muted: #748087;
  --line-light: #d3d6d2;
  --line-strong: #1e2529;
  --emerald: #9b7048;
  --emerald-bg: #f0e6db;
  --emerald-border: #d8c2aa;
  --crimson: #8f5b5b;
  --crimson-bg: #f0e3e0;
  --crimson-border: #d6b9b4;
  --navy: #506a78;
  --navy-bg: #e2eaed;
  --navy-border: #bdcdd3;
  --amber: #96733f;
  --amber-bg: #f1e9d8;
  --amber-border: #d9c69f;
  --dark-bg: #20292d;
  --dark-surface: #283438;
  --dark-surface-elevated: #334145;
  --dark-border: #4a585b;
  --dark-ink: #f5f5f1;
  --dark-muted: #bdc6c6;
  --shadow-sm: 0 2px 12px rgba(30, 37, 41, 0.06);
  --shadow-md: 0 12px 28px rgba(30, 37, 41, 0.09);
  --shadow-lg: 0 18px 46px rgba(30, 37, 41, 0.12);
}

body {
  background: var(--bg-page);
  background-image: none;
}

.site-header {
  background: rgba(242, 241, 237, 0.96);
  border-bottom: 1px solid var(--line-light);
  box-shadow: none;
}

.brand-monogram {
  background: var(--ink-primary);
  border-radius: 4px;
  box-shadow: none;
}

.hero {
  min-height: min(760px, calc(100vh - var(--nav-height)));
  background: var(--dark-bg);
}

.hero::after {
  opacity: 0.16;
  background: linear-gradient(90deg, transparent 0 75%, #a78a68 75% 75.1%, transparent 75.1%);
}

.hero-title {
  font-size: clamp(50px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-title em {
  color: #c6d0cf;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.035em;
}

.hero-lead {
  color: #d8dfdd;
  border-left-color: var(--emerald);
}

.hero .btn-primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fffdf8;
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: #ad8358;
  border-color: #ad8358;
  box-shadow: none;
}

.hero .btn-secondary {
  border-color: #869497;
}

.section-label {
  color: var(--navy);
}

.section-label::before {
  background: var(--emerald);
}

.section-title em {
  color: var(--navy);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.frameworks-section,
.thinking-section,
.about-section {
  background: var(--bg-surface);
}

.research-section {
  background: #e9ebe8;
}

.framework-card,
.case-card,
.memo-card,
.methodology-card,
.postmortem-rules-card,
.postmortem-table-card {
  border-color: var(--line-light);
  box-shadow: var(--shadow-sm);
}

.framework-card:hover,
.case-card:hover,
.memo-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
}

.framework-card::before {
  height: 3px;
  background: var(--line-light);
}

.framework-card:hover::before {
  background: var(--emerald);
}

.filter-btn.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
}

.case-card-core-q {
  border-left-color: var(--emerald);
}

.dark-section {
  background-color: var(--dark-bg);
  background-image: none;
  border-top-color: var(--emerald);
}

.lab-display-card {
  border-color: #637375;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.lab-nav-btn.active {
  background: var(--emerald);
  color: #fffdf8;
  border-color: var(--emerald);
}

.wrong-section {
  background: #ede7df;
}

.contact-banner {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-md);
}

.site-footer {
  background: var(--ink-primary);
  border-top-color: var(--line-strong);
}

.toast-msg {
  background: var(--ink-primary);
  color: #fffdf8;
}

@media (max-width: 580px) {
  .lab-selector-nav {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(48px, 14vw, 74px);
  }
}
