/* ==========================================================================
   Leo Li Personal Website - Design System & Modern Responsive Stylesheet
   Geotechnical & Infrastructure Engineering
   ========================================================================== */

/* --- Custom Properties & Theme Variables --- */
:root {
  /* Light Theme (Warm Editorial Architecture) */
  --font-serif: "Newsreader", Iowan Old Style, "Palatino Linotype", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg-page: #f8f6f0;
  --bg-page-subtle: #f1ede3;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfcf9;
  --bg-elevated: #ffffff;
  --bg-header: rgba(248, 246, 240, 0.9);
  --bg-tab-bar: rgba(248, 246, 240, 0.95);

  --text-main: #141f1d;
  --text-muted: #53625f;
  --text-faint: #7e8e8b;
  --text-inverse: #ffffff;

  --border-subtle: rgba(20, 31, 29, 0.09);
  --border-medium: rgba(20, 31, 29, 0.16);
  --border-strong: rgba(20, 31, 29, 0.32);

  --brand-teal: #0c4e4b;
  --brand-teal-dark: #073b39;
  --brand-teal-light: #166b67;
  --brand-teal-subtle: rgba(12, 78, 75, 0.08);

  --accent-clay: #c2592d;
  --accent-clay-dark: #a1441e;
  --accent-clay-subtle: rgba(194, 89, 45, 0.1);

  --accent-gold: #c68a2c;
  --accent-gold-subtle: rgba(198, 138, 44, 0.12);

  --accent-blue: #1c4e80;
  --accent-blue-subtle: rgba(28, 78, 128, 0.1);

  --shadow-sm: 0 1px 3px rgba(12, 78, 75, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(12, 78, 75, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(12, 78, 75, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 24px rgba(12, 78, 75, 0.18);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --header-height: 72px;
  --tab-height: 58px;
  --pad: clamp(1.25rem, 4.5vw, 4.75rem);
  --transition-fast: 160ms cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 240ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme (Deep Geotechnical / CAD Blueprint) */
[data-theme="dark"] {
  --bg-page: #0a1114;
  --bg-page-subtle: #0f191d;
  --bg-card: #132025;
  --bg-card-hover: #17272d;
  --bg-elevated: #1a2d33;
  --bg-header: rgba(10, 17, 20, 0.9);
  --bg-tab-bar: rgba(10, 17, 20, 0.95);

  --text-main: #e8f0ed;
  --text-muted: #95a8a4;
  --text-faint: #637773;
  --text-inverse: #0a1114;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.3);

  --brand-teal: #1fc7b0;
  --brand-teal-dark: #128777;
  --brand-teal-light: #44e8d3;
  --brand-teal-subtle: rgba(31, 199, 176, 0.12);

  --accent-clay: #f27c49;
  --accent-clay-dark: #c95c2c;
  --accent-clay-subtle: rgba(242, 124, 73, 0.14);

  --accent-gold: #f4b644;
  --accent-gold-subtle: rgba(244, 182, 68, 0.15);

  --accent-blue: #38bdf8;
  --accent-blue-subtle: rgba(56, 189, 248, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 18px 42px -6px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 28px rgba(31, 199, 176, 0.22);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background-color: var(--bg-page);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

::selection {
  color: #ffffff;
  background-color: var(--brand-teal);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

[hidden] {
  display: none !important;
}

/* --- Accessibility Skip Link --- */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  background: var(--brand-teal);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Site Header --- */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--pad);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity var(--transition-fast);
}

.wordmark:hover {
  opacity: 0.88;
}

.wordmark-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(12, 78, 75, 0.12));
}

[data-theme="dark"] .wordmark-mark {
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.wordmark-text {
  display: grid;
  line-height: 1.15;
}

.wordmark-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wordmark-title {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Header Social Links */
.header-social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.header-icon-link:hover {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.header-icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-teal);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1.05rem;
  background: var(--brand-teal);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.header-contact-btn:hover {
  background: var(--brand-teal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- Masthead / Hero Section (Full-Width Panorama Architecture) --- */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.5rem, 2.6vw, 2.2rem);
  min-height: auto;
  padding: clamp(5.4rem, 6.8vw, 6.5rem) var(--pad) clamp(2.2rem, 3.8vw, 3.2rem);
  background: radial-gradient(circle at 10% 20%, var(--brand-teal-subtle) 0%, transparent 60%);
  position: relative;
}

.masthead-top-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.masthead-copy {
  max-width: 820px;
}

.masthead-lead-wrap {
  display: flex;
  align-items: flex-end;
}

.masthead-lead-wrap .masthead-lead {
  margin: 0;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--brand-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 2.2rem;
  height: 2px;
  background: var(--accent-clay);
  border-radius: 1px;
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.06;
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  color: var(--text-main);
  text-wrap: balance;
}

.masthead h1 em {
  font-style: italic;
  color: var(--brand-teal);
  font-weight: 400;
  background: linear-gradient(135deg, var(--brand-teal), var(--accent-clay));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.masthead-lead {
  margin: 0.95rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.6;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.4rem;
  background: var(--brand-teal);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.hero-btn-primary:hover {
  background: var(--brand-teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-btn-secondary:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  transform: translateY(-1px);
}

.identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.id-badge:hover {
  border-color: var(--brand-teal);
  transform: translateY(-1px);
}

.id-badge strong {
  color: var(--brand-teal);
  font-weight: 700;
}

/* --- Masthead Graphic & Interactive Inspector --- */
.masthead-graphic-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.masthead-graphic-container:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.graphic-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.78rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.graphic-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.15rem;
}

.graphic-coords {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--brand-teal);
  letter-spacing: 0.04em;
}

.graphic-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.graphic-zoom-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--brand-teal);
  min-width: 3.1rem;
  text-align: center;
  padding: 0.22rem 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.graphic-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 28px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.graphic-ctrl-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: var(--brand-teal-subtle);
}

.graphic-ctrl-expand {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.65rem;
}

.graphic-viewport {
  position: relative;
  background: #d6e8f4;
  aspect-ratio: 1280 / 520;
  min-height: 300px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.graphic-viewport.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.graphic-viewport.is-panning {
  cursor: grabbing;
}

[data-theme="dark"] .graphic-viewport {
  background: #0d1b24;
}

.graphic-viewport svg {
  width: 100%;
  height: 100%;
  display: block;
}

.masthead-graphic-container.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}

.masthead-graphic-container.is-fullscreen .graphic-viewport {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

.masthead-graphic-container.is-fullscreen .graphic-viewport svg {
  width: 100%;
  height: 100%;
}

/* SVG Custom Theme Styling */
.scene-sky { fill: url(#scene-sky); }
.scene-grid { fill: url(#scene-grid); }
.scene-glow { fill: url(#scene-glow); }

.sky-contours {
  fill: none;
  stroke: rgba(12, 78, 75, 0.12);
  stroke-width: 1.3;
}

[data-theme="dark"] .sky-contours {
  stroke: rgba(31, 199, 176, 0.15);
}

.tower, .crossarms {
  fill: none;
  stroke: #173f3b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  transition: stroke 0.2s, stroke-width 0.2s;
}

[data-theme="dark"] .tower, [data-theme="dark"] .crossarms {
  stroke: #48d8c3;
}

.tower-back { stroke-width: 1.4; opacity: 0.85; }
.tower-front { stroke-width: 1.8; }
.tower-leg { stroke-width: 2.8; }

.conductors {
  fill: none;
  stroke: rgba(23, 63, 59, 0.55);
  stroke-width: 1.3;
}

[data-theme="dark"] .conductors {
  stroke: rgba(72, 216, 195, 0.65);
}

.conductors .shield-wire {
  stroke: rgba(23, 63, 59, 0.4);
  stroke-dasharray: 4 4;
}

.insulators {
  fill: none;
  stroke: var(--accent-clay);
  stroke-width: 1.4;
}

.insulator-disc { stroke-width: 2.2; }

.soil-fill { fill: url(#soil-layer); }
.weathered-fill { fill: #9baa99; }
.bedrock-fill { fill: url(#rock-layer); }
.rock-strata { fill: url(#rock-strata); }

[data-theme="dark"] .weathered-fill { fill: #1f373d; }

.grade {
  fill: none;
  stroke: #173f3b;
  stroke-width: 2.8;
}

[data-theme="dark"] .grade {
  stroke: #1fc7b0;
}

.waterline {
  fill: none;
  stroke: rgba(36, 114, 122, 0.8);
  stroke-width: 1.5;
  stroke-dasharray: 8 5;
}

[data-theme="dark"] .waterline {
  stroke: #38bdf8;
}

.pedestal, .shaft {
  fill: #f5f3eb;
  stroke: #173f3b;
  stroke-width: 1.8;
  transition: all 0.2s;
}

[data-theme="dark"] .pedestal, [data-theme="dark"] .shaft {
  fill: #1a2e33;
  stroke: #48d8c3;
}

.rebar, .rebar-ties, .anchor-cage {
  fill: none;
  stroke: var(--accent-clay);
  stroke-width: 1.15;
}

.rebar-ties { stroke-dasharray: 2 2; }
.load-path { fill: none; stroke: var(--accent-clay); stroke-width: 2.4; }
#load-arrow path { fill: var(--accent-clay); }

.skin-friction, .base-resistance {
  fill: none;
  stroke: rgba(255, 253, 247, 0.75);
  stroke-width: 1.2;
}

[data-theme="dark"] .skin-friction, [data-theme="dark"] .base-resistance {
  stroke: #fcd34d;
}

.base-resistance { stroke-dasharray: 3 3; }

.borehole {
  fill: none;
  stroke: rgba(255, 253, 247, 0.85);
  stroke-width: 1.4;
}

[data-theme="dark"] .borehole {
  stroke: #cbd5e1;
}

.borehole circle {
  fill: var(--accent-clay);
  stroke: #fff;
}

.borehole-cap { stroke: #173f3b; stroke-width: 2; }
[data-theme="dark"] .borehole-cap { stroke: #1fc7b0; }

/* Interactive SVG Layer Highlights */
.svg-interactive-group {
  cursor: pointer;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.svg-interactive-group:hover,
.svg-interactive-group.is-active {
  filter: drop-shadow(0 0 6px var(--brand-teal));
}

.svg-dimmed {
  opacity: 0.28 !important;
}

/* Graphic Interactive Controls */
.graphic-toolbar {
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.graphic-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.graphic-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.graphic-filter-btn:hover {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
  background: var(--bg-card);
}

.graphic-filter-btn.is-active {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}

.graphic-filter-btn i {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  opacity: 0.8;
}

.graphic-readout {
  padding: 0.65rem 0.95rem;
  background: var(--bg-page-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-teal);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.graphic-readout strong {
  color: var(--text-main);
  margin-right: 0.35rem;
}

/* --- Profile Tabs Navigation --- */
.tab-shell {
  position: relative;
  border-top: 1px solid var(--border-medium);
  background: var(--bg-page);
}

.profile-tabs-wrapper {
  position: sticky;
  top: var(--header-height);
  z-index: 80;
  background: var(--bg-tab-bar);
  border-bottom: 1px solid var(--border-medium);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 var(--pad);
}

.profile-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.55rem 1.05rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.profile-tabs button:hover {
  color: var(--brand-teal);
  background: var(--border-subtle);
}

.profile-tabs button[aria-selected="true"] {
  color: #ffffff;
  background: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .profile-tabs button[aria-selected="true"] {
  color: #0a1114;
  background: var(--brand-teal);
  font-weight: 800;
}

.profile-tabs button:focus-visible {
  outline: 2px solid var(--accent-clay);
  outline-offset: 2px;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: var(--border-subtle);
  color: currentColor;
}

/* --- Tab Panels & Section Headings (REFACTORED FOR PERFECT LINE WRAPPING) --- */
.tab-panels {
  min-height: 650px;
}

.tab-panel {
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--pad);
  animation: panel-fade-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Full-Width Section Headers Across All Panels */
.panel-head {
  display: block;
  max-width: none;
  width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 3.8rem);
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-index {
  margin: 0 0 0.85rem;
  color: var(--accent-clay);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  font-size: clamp(1.65rem, 2.35vw, 2.25rem);
  color: var(--text-main);
  text-wrap: pretty;
}

.panel-head h2 em {
  font-style: italic;
  color: var(--brand-teal);
  font-weight: 400;
}

.panel-head-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.68;
  max-width: none;
  width: 100%;
}

/* --- Section 00: Overview --- */
.overview-paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-teal);
}

.path-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-clay);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.path-card strong {
  display: block;
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-main);
}

.path-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.path-card-footer {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
}

.path-card-footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-teal-subtle);
  transition: transform var(--transition-fast);
}

.path-card:hover .path-card-footer span {
  transform: translateX(4px);
}

/* Distinct styled path cards */
.path-dark {
  background: var(--brand-teal-dark);
  color: #ffffff;
  border-color: transparent;
}

.path-dark strong { color: #ffffff; }
.path-dark p { color: rgba(255, 255, 255, 0.75); }
.path-dark .path-tag { color: var(--accent-clay); }
.path-dark .path-card-footer { color: #ffffff; }
.path-dark .path-card-footer span { background: rgba(255, 255, 255, 0.15); }

.path-teal {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: transparent;
}

.path-teal strong { color: #ffffff; }
.path-teal p { color: rgba(255, 255, 255, 0.8); }
.path-teal .path-tag { color: #ffbc99; }
.path-teal .path-card-footer { color: #ffffff; }
.path-teal .path-card-footer span { background: rgba(255, 255, 255, 0.2); }

.path-clay {
  background: var(--accent-clay);
  color: #ffffff;
  border-color: transparent;
}

.path-clay strong { color: #ffffff; }
.path-clay p { color: rgba(255, 255, 255, 0.85); }
.path-clay .path-tag { color: #ffe1d4; }
.path-clay .path-card-footer { color: #ffffff; }
.path-clay .path-card-footer span { background: rgba(255, 255, 255, 0.2); }

/* Overview Metric Strip */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.metric-item {
  display: grid;
  gap: 0.35rem;
  padding: 0 1rem;
  border-right: 1px solid var(--border-subtle);
}

.metric-item:last-child {
  border-right: none;
}

.metric-item strong {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 400;
  color: var(--brand-teal);
  line-height: 1;
}

.metric-item strong sub {
  font-size: 0.55em;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent-clay);
  vertical-align: baseline;
  margin-left: 2px;
}

.metric-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Overview Spotlight Cards */
.overview-spotlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.spotlight-card {
  padding: 1.6rem;
  background: var(--bg-page-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.spotlight-card:hover {
  background: var(--bg-card);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.spotlight-tag {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.spotlight-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.spotlight-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Section 01: Projects (COMPREHENSIVE MULTI-SECTOR ENGINEERING) --- */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.project-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.project-filter-btn:hover {
  color: var(--brand-teal);
  background: var(--border-subtle);
}

.project-filter-btn.is-active {
  background: var(--brand-teal);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.project-filter-btn .badge-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.85;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-lg);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-transmission { background: var(--brand-teal-subtle); color: var(--brand-teal); }
.badge-hydro { background: var(--accent-blue-subtle); color: var(--accent-blue); }
.badge-mining { background: var(--accent-gold-subtle); color: var(--accent-gold); }
.badge-slopes { background: var(--accent-clay-subtle); color: var(--accent-clay); }

.project-role-tag {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 600;
}

.project-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-main);
}

.project-summary {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-points {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  flex-grow: 1;
}

.project-points li {
  margin-bottom: 0.45rem;
}

.project-points strong {
  color: var(--text-main);
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.project-tools span {
  padding: 0.2rem 0.6rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Section 02: Industry & Practice --- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.four-up {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: 2rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-lg);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-clay);
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: 1.5rem 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-main);
}

.service-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.service-tags span {
  padding: 0.2rem 0.55rem;
  background: var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-band {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: 3.5rem;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.detail-band h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-main);
}

.detail-band h3 span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--accent-clay);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.detail-band ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.detail-band li {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) 1.5fr;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-band li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-band li strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.detail-band li span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Section 03: Research (Dark Slate Theme) --- */
.tab-panel-dark {
  background: var(--brand-teal-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  margin: 0;
}

.tab-panel-dark .panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.tab-panel-dark .panel-head h2 {
  color: #ffffff;
}

.tab-panel-dark .panel-head h2 em {
  color: #e4a187;
  background: none;
  -webkit-text-fill-color: initial;
}

.tab-panel-dark .panel-head-lead {
  color: rgba(255, 255, 255, 0.72);
}

.tab-panel-dark .section-index {
  color: #e4a187;
}

.research-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  margin-top: 2rem;
}

.numbered-list ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.numbered-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(6px);
}

.numbered-list li span {
  color: #e4a187;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.research-statement blockquote {
  margin: 0 0 2.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.2;
  font-weight: 300;
  font-style: italic;
  color: #ffffff;
  border-left: 3px solid #e4a187;
  padding-left: 1.5rem;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  color: #ffffff;
  background: #e4a187;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.inline-action:hover {
  background: #ffffff;
  color: var(--brand-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* --- Section 04: Publications --- */
.publication-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pub-search-wrapper {
  position: relative;
  flex: 1 1 280px;
}

.pub-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.pub-search-input:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px var(--brand-teal-subtle);
}

.pub-search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  pointer-events: none;
}

.scholar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--brand-teal);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.scholar-btn:hover {
  background: var(--brand-teal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.publication-list {
  display: grid;
  gap: 1.25rem;
}

.pub-card {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.pub-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-clay);
}

.pub-details h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-main);
}

.pub-details p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  background: var(--brand-teal-subtle);
  border-radius: var(--radius-xs);
  color: var(--brand-teal);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
}

.pub-actions {
  display: flex;
  gap: 0.5rem;
}

.copy-citation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-citation-btn:hover {
  background: var(--bg-card);
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.pub-doi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--brand-teal-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--brand-teal);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pub-doi-btn:hover {
  background: var(--brand-teal);
  color: var(--text-inverse);
  border-color: var(--brand-teal);
}

.output-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.summary-card {
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.summary-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand-teal);
  margin-bottom: 0.4rem;
}

.summary-card span {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Section 05: Teaching --- */
.teaching-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.75rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  padding: 2.6rem;
  color: #ffffff;
  background: linear-gradient(145deg, var(--brand-teal), var(--brand-teal-dark));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.feature-tag {
  color: #e4a187;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 3.5rem 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
}

.stack-list {
  display: grid;
  gap: 1.25rem;
}

.stack-card {
  padding: 1.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.stack-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stack-tag {
  color: var(--accent-clay);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-card h3 {
  margin: 0.5rem 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-main);
}

.stack-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* --- Section 06 & 07: Experience & Education Timeline --- */
.timeline-container, .degree-container {
  display: grid;
  gap: 1.25rem;
  max-width: 980px;
}

.timeline-card, .degree-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.6rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-card:hover, .degree-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-time, .degree-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-clay);
}

.timeline-card h3, .degree-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-main);
}

.timeline-card p, .degree-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.honours-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 980px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.honours-label {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.honours-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.honour-pill {
  padding: 0.35rem 0.85rem;
  background: var(--accent-gold-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Section 08: Contact (MODERN DIRECT INQUIRY FORM + NO RAW EMAIL) --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card-info {
  padding: 2.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card-info h3 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-main);
}

.contact-card-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.contact-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-meta-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-meta-list svg {
  width: 17px;
  height: 17px;
  color: var(--brand-teal);
  flex-shrink: 0;
}

/* Professional Networks Box */
.professional-networks {
  padding: 2rem 2.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.professional-networks h4 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-clay);
}

.networks-grid {
  display: grid;
  gap: 0.85rem;
}

.network-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.network-link-card:hover {
  background: var(--bg-card);
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.network-link-card .net-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.network-link-card svg {
  width: 20px;
  height: 20px;
  fill: var(--brand-teal);
  flex-shrink: 0;
}

.network-link-card strong {
  font-size: 0.92rem;
  font-weight: 700;
  display: block;
}

.network-link-card span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.network-arrow {
  font-size: 0.85rem;
  color: var(--brand-teal);
  font-weight: 700;
}

/* Contact Form Box */
.contact-form-box {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-box h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.contact-form-box p.form-instruction {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-teal-subtle);
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.95rem 1.8rem;
  background: var(--brand-teal);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.contact-submit-btn:hover {
  background: var(--brand-teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-privacy-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.5;
  text-align: center;
}

.form-status-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-status-alert.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .form-status-alert.is-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

/* --- Site Footer --- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2.2rem var(--pad);
  color: var(--text-muted);
  background: var(--bg-card);
  border-top: 1px solid var(--border-medium);
  font-size: 0.78rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-teal);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 0.85rem 1.4rem;
  background: var(--text-main);
  color: var(--bg-page);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.toast-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1120px) {
  .overview-paths, .four-up, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .teaching-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }
  .header-meta .location-badge {
    display: none;
  }
  .masthead h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }
  .overview-paths, .four-up, .projects-grid, .overview-spotlights, .output-summary {
    grid-template-columns: 1fr;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .metric-item:nth-child(3), .metric-item:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-band {
    grid-template-columns: 1fr;
    padding: 1.8rem;
  }
  .detail-band li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .research-layout {
    grid-template-columns: 1fr;
  }
  .pub-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .timeline-card, .degree-card, .honours-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.4rem;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .metric-strip {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
  }
  .metric-item:last-child {
    border-bottom: none;
  }
  .path-card {
    min-height: auto;
  }
}

/* ==========================================================================
   ENHANCED DESIGN SYSTEM: LIFECYCLE RESEARCH, SYMMETRICAL PROJECTS,
   UNIFIED CREDENTIALS & FULL-RESOLUTION LIGHTBOX
   ========================================================================== */

/* --- Overview Practice Capabilities Band --- */
.overview-practice-band {
  margin-top: 2.25rem;
}
.band-sublead {
  margin: 0.85rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.band-code-tags {
  margin-top: 0.5rem;
}

/* --- Projects: Full-Width Featured Banner + Symmetrical 2x3 Illustrated Grid --- */
.project-card-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
  border: 1.5px dashed var(--brand-teal);
  background: linear-gradient(135deg, var(--brand-teal-subtle) 0%, var(--bg-card) 65%);
}
.project-card-banner .project-tools {
  margin-top: 0.5rem;
}
.project-reserved-notice {
  margin: 0;
  padding: 1.5rem 1.65rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.project-reserved-notice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}
.reserved-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

/* Flush Figure Frame + Click-to-Zoom Trigger */
.project-card.has-figure {
  display: flex;
  flex-direction: column;
}
.project-figure-wrapper {
  position: relative;
  width: calc(100% + 4.4rem);
  margin: -2.2rem -2.2rem 1.45rem -2.2rem;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
}
.project-figure-wrapper:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: -3px;
}
[data-theme="dark"] .project-figure-wrapper {
  background: #f5f7f6;
}
.project-figure-wrapper img {
  width: 100%;
  height: 225px;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  transition: transform var(--transition-slow);
}
[data-theme="dark"] .project-figure-wrapper img {
  background: #f5f7f6;
}
.project-figure-wrapper:hover img {
  transform: scale(1.025);
}
.zoom-hint {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(7, 59, 57, 0.86);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  pointer-events: none;
}
.project-figure-wrapper:hover .zoom-hint,
.project-figure-wrapper:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.figure-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 0.5rem 0.95rem;
  background: #073b39;
  color: #e8f3f1;
  text-align: left;
}
[data-theme="dark"] .figure-caption {
  background: #0d1a1e;
  color: #b7d8d3;
  border-top: 1px solid var(--border-subtle);
}

/* Project Structured Sections */
.project-sections {
  margin: 0.5rem 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex-grow: 1;
}
.project-sec strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-teal);
  margin-bottom: 0.25rem;
}
.project-sec p {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.project-sec ul {
  margin: 0.25rem 0 0 1.15rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.project-sec ul li {
  margin-bottom: 0.35rem;
}
.project-outcome {
  background: var(--brand-teal-subtle);
  border-left: 3px solid var(--brand-teal);
  padding: 0.65rem 0.9rem !important;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: var(--text-main) !important;
  font-size: 0.85rem !important;
}

/* --- Section 02: Full-Lifecycle Research (Unified Light/Dark Theme + 5 Phase Colors) --- */
.lifecycle-wrapper {
  margin-bottom: 2.25rem;
}
.lifecycle-banner-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.lifecycle-banner-label span:first-child {
  font-weight: 800;
  color: var(--brand-teal);
}

.lifecycle-flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.lifecycle-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-page-subtle);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lifecycle-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.lc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}
.lifecycle-step strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}
.lifecycle-step span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
}
.lc-arrow {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* 5 Distinct Phase Colors */
.lc-phase-1 { border-color: rgba(12, 124, 117, 0.28); background: rgba(12, 124, 117, 0.08); }
.lc-phase-1 .lc-num { background: #0c7c75; }
.lc-phase-1:hover { border-color: #0c7c75; }

.lc-phase-2 { border-color: rgba(37, 99, 235, 0.28); background: rgba(37, 99, 235, 0.08); }
.lc-phase-2 .lc-num { background: #2563eb; }
.lc-phase-2:hover { border-color: #2563eb; }

.lc-phase-3 { border-color: rgba(217, 119, 6, 0.3); background: rgba(217, 119, 6, 0.09); }
.lc-phase-3 .lc-num { background: #d97706; }
.lc-phase-3:hover { border-color: #d97706; }

.lc-phase-4 { border-color: rgba(124, 58, 237, 0.28); background: rgba(124, 58, 237, 0.08); }
.lc-phase-4 .lc-num { background: #7c3aed; }
.lc-phase-4:hover { border-color: #7c3aed; }

.lc-phase-5 { border-color: rgba(5, 150, 105, 0.28); background: rgba(5, 150, 105, 0.08); }
.lc-phase-5 .lc-num { background: #059669; }
.lc-phase-5:hover { border-color: #059669; }

.lc-card-phase-1 { border-top: 4px solid #0c7c75 !important; }
.lc-card-phase-1 .pillar-num { color: #0c7c75; }
.lc-card-phase-2 { border-top: 4px solid #2563eb !important; }
.lc-card-phase-2 .pillar-num { color: #2563eb; }
.lc-card-phase-3 { border-top: 4px solid #d97706 !important; }
.lc-card-phase-3 .pillar-num { color: #d97706; }
.lc-card-phase-4 { border-top: 4px solid #7c3aed !important; }
.lc-card-phase-4 .pillar-num { color: #7c3aed; }
.lc-card-phase-5 { border-top: 4px solid #059669 !important; }
.lc-card-phase-5 .pillar-num { color: #059669; }

[data-theme="dark"] .lc-card-phase-1 .pillar-num { color: #2dd4bf; }
[data-theme="dark"] .lc-card-phase-2 .pillar-num { color: #60a5fa; }
[data-theme="dark"] .lc-card-phase-3 .pillar-num { color: #fbbf24; }
[data-theme="dark"] .lc-card-phase-4 .pillar-num { color: #a78bfa; }
[data-theme="dark"] .lc-card-phase-5 .pillar-num { color: #34d399; }

.pillar-card.is-phase-highlighted {
  box-shadow: 0 0 0 3px var(--brand-teal), var(--shadow-lg);
}

/* 6-Column Balanced Grid: 3 Cards Top Row + 2 Cards Second Row */
.lifecycle-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.45rem;
  margin-bottom: 2.5rem;
}
.lc-span-2 {
  grid-column: span 2;
}
.lc-span-3 {
  grid-column: span 3;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-md);
}
.lc-card-top {
  margin-bottom: 0.55rem;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 0.7rem;
}
.pillar-card p {
  font-size: 0.87rem;
  line-height: 1.58;
  color: var(--text-muted);
  margin: 0 0 0.95rem;
}
.pillar-points {
  margin: 0 0 1.2rem 1.1rem;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex-grow: 1;
}
.pillar-points li {
  margin-bottom: 0.4rem;
}
.pillar-points strong {
  color: var(--text-main);
}
.lc-evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-subtle);
}
.lc-evidence-tags span {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  border-radius: var(--radius-xs);
}

/* Foundational Dual Ph.D. Dissertations (Unified Theme + Expanded Contributions) */
.dual-phd-spotlight {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.phd-spotlight-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.15rem;
}
.phd-spotlight-header .spotlight-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-clay);
  margin-bottom: 0.45rem;
}
.phd-spotlight-header h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text-main);
  margin: 0 0 0.45rem;
}
.phd-spotlight-header p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.phd-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.phd-card {
  background: var(--bg-page-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.phd-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-teal);
}
.phd-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.phd-inst {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--brand-teal);
  font-weight: 700;
}
.phd-field {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.phd-card h4 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--text-main);
  margin: 0 0 0.75rem;
}
.phd-desc {
  font-size: 0.87rem;
  line-height: 1.58;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.phd-contrib-box {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border-left: 3px solid var(--brand-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}
.phd-contrib-box > strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
  margin-bottom: 0.45rem;
}
.phd-contrib-box ul {
  margin: 0 0 0 1.05rem;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--text-muted);
}
.phd-contrib-box li {
  margin-bottom: 0.42rem;
}
.phd-contrib-box li strong {
  color: var(--text-main);
}
.phd-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.phd-highlights span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-xs);
}

/* Research Grants Banner (Unified Theme) */
.research-grants-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  background: linear-gradient(135deg, var(--brand-teal-subtle) 0%, var(--bg-card) 70%);
  border: 1px solid var(--brand-teal);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
}
.grants-stat {
  display: flex;
  flex-direction: column;
}
.grants-stat strong {
  font-size: 1.85rem;
  font-family: var(--font-mono);
  color: var(--brand-teal);
  line-height: 1.15;
}
.grants-stat span {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.grants-info {
  flex: 1 1 360px;
}
.grants-info h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}
.grants-info p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* --- Section 03: Publications --- */
.pub-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pub-count-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}
.pub-count-pill strong {
  color: var(--brand-teal);
}
.pub-card-reserved {
  border-style: dashed;
  background: var(--bg-page-subtle);
}
.pub-badge-special {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.16rem 0.5rem;
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  border-radius: var(--radius-xs);
  margin-bottom: 0.35rem;
}
.pub-status-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  font-weight: 600;
}
.pub-empty-msg {
  text-align: center;
  padding: 2.2rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
}
.output-summary-detailed {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.detailed-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  box-shadow: var(--shadow-sm);
}
.summary-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}
.summary-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.summary-card-header h4 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  margin: 0 0 0.15rem;
  color: var(--text-main);
}
.summary-card-header span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.summary-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.summary-list li {
  margin-bottom: 0.7rem;
}
.summary-list li:last-child {
  margin-bottom: 0;
}
.summary-list strong {
  color: var(--text-main);
}
.summary-list span {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* --- Section 04: Teaching Highlight --- */
.stack-card-highlight {
  border-left: 3px solid var(--accent-gold);
}

/* --- Section 05: Unified Background & Credentials (Executive Two-Column) --- */
.background-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  align-items: start;
}
.bg-col-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
}
.bg-col-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-clay);
  margin-bottom: 0.3rem;
}
.bg-col-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text-main);
}
.bg-card-stack {
  display: grid;
  gap: 1.1rem;
}
.bg-item-card {
  padding: 1.45rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.bg-item-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bg-domain-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--accent-clay-subtle);
  color: var(--accent-clay);
  margin-bottom: 0.55rem;
}
.bg-domain-pill.pill-teal {
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
}
.bg-item-card h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-main);
}
.bg-org {
  margin: 0 0 0.5rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--brand-teal);
}
.bg-org em {
  font-weight: 500;
  color: var(--text-muted);
}
.bg-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.bg-desc strong {
  color: var(--text-main);
}

/* Bottom Credentials Strip: Honours + Editorial & Peer Review */
.credentials-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.cred-panel {
  padding: 1.85rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cred-honours {
  border-color: var(--accent-gold);
}
.cred-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.cred-service .cred-label {
  color: var(--brand-teal);
}
.service-compact-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.service-compact-list strong {
  color: var(--text-main);
}

/* --- Section 06: Contact Advisory Focus Box --- */
.advisory-focus-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  box-shadow: var(--shadow-sm);
}
.advisory-focus-box h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--accent-clay);
}
.focus-domain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.55;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}
.focus-domain-list strong {
  color: var(--text-main);
}

/* --- Full-Resolution Figure Lightbox Modal --- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(6, 14, 16, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative;
  max-width: min(1240px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 22, 24, 0.85);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.lightbox-close-btn:hover {
  background: var(--accent-clay);
}
.lightbox-img-stage {
  background: #ffffff;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.lightbox-img-stage img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-caption {
  margin: 0;
  padding: 0.85rem 1.4rem;
  background: #073b39;
  color: #f0f8f7;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
}

.lightbox-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.875rem;
}
.lightbox-page-controls button {
  min-height: 2.75rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-page-subtle);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}
.lightbox-page-controls button:disabled {
  opacity: 0.5;
  cursor: default;
}
.lightbox-page-controls button:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}
#lightbox-page-status {
  min-width: 2.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --- Responsive Refinements for New Layouts --- */
@media (max-width: 1120px) {
  .project-card-banner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .lifecycle-flow-bar {
    flex-wrap: wrap;
    gap: 0.85rem;
  }
  .lc-arrow {
    display: none;
  }
  .lifecycle-step {
    flex: 1 1 180px;
  }
  .lifecycle-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lc-span-2,
  .lc-span-3 {
    grid-column: span 1;
  }
  .lifecycle-cards-grid .pillar-card:last-child {
    grid-column: 1 / -1;
  }
  .phd-cards-grid,
  .output-summary-detailed,
  .background-grid,
  .credentials-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lifecycle-cards-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-cards-grid .pillar-card:last-child {
    grid-column: span 1;
  }
  .dual-phd-spotlight {
    padding: 1.4rem;
  }
  .research-grants-banner {
    padding: 1.35rem;
  }
}

/* --- Top Header Unified Navigation Layout --- */
.site-header {
  gap: 1rem;
}
.header-nav-tabs {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0;
  min-width: 0;
}
.header-nav-tabs button {
  padding: 0.42rem 0.78rem;
  font-size: 0.72rem;
}
.site-header .wordmark,
.site-header .header-meta {
  flex-shrink: 0;
}

@media (max-width: 1260px) {
  .site-header .location-badge {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.55rem;
    padding-bottom: 0.5rem;
    gap: 0.45rem 0.85rem;
  }
  .header-nav-tabs {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.45rem;
  }
  .masthead {
    padding-top: 8.5rem;
  }
}

/* Full-Width Panel Headings (e.g., Research Full-Screen Header) */
.panel-head-full,
.panel-head-full h2,
.panel-head-full .panel-head-lead {
  max-width: none !important;
  width: 100%;
}

/* Full-Lifecycle Wrapper & Banner */
.lifecycle-wrapper {
  margin-bottom: 2.25rem;
}
.lifecycle-banner-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}
.lifecycle-banner-label span:first-child {
  font-weight: 800;
  color: #6ee7dc;
}

/* Research Card Paper Figures (Flush Frame + Lightbox Zoom) */
.pillar-card.has-paper-figure {
  overflow: hidden;
}
.research-figure-wrapper {
  position: relative;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
  overflow: hidden;
}
.research-figure-wrapper:focus-visible {
  outline: 3px solid #6ee7dc;
  outline-offset: -3px;
}
.research-figure-wrapper img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem 0.65rem;
  background: #ffffff;
  transition: transform var(--transition-slow);
}
.research-figure-wrapper.research-fig-wide img {
  height: 210px;
}
.research-figure-wrapper:hover img {
  transform: scale(1.025);
}
.research-figure-wrapper:hover .zoom-hint,
.research-figure-wrapper:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.research-fig-cap {
  display: block;
  padding: 0.42rem 0.9rem;
  background: rgba(7, 32, 34, 0.94);
  color: #cbece7;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
}

/* --- 5-Column Career Metric Strip --- */
.metric-strip.metric-strip-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1024px) {
  .metric-strip.metric-strip-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .metric-strip.metric-strip-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Research Dual Paper Figures Grid --- */
.research-dual-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  background: rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.research-dual-figures .research-figure-wrapper {
  width: 100%;
  margin: 0;
  border-bottom: none;
}
.research-dual-figures .research-figure-wrapper img {
  height: 165px;
}
.research-dual-figures .research-figure-wrapper.research-fig-wide img {
  height: 205px;
}
@media (max-width: 640px) {
  .research-dual-figures {
    grid-template-columns: 1fr;
  }
}

/* --- Publications Category Tabs, Books Showcase & Patents Grid --- */
.pub-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.pub-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pub-cat-btn span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.8;
}
.pub-cat-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}
.pub-cat-btn.is-active {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #ffffff;
}
[data-theme="dark"] .pub-cat-btn.is-active {
  color: #0a1114;
}

.pub-section-block {
  margin-top: 2.5rem;
}
.pub-section-block:first-of-type {
  margin-top: 0.5rem;
}
.pub-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-medium);
}
.pub-section-heading h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
}
.pub-section-heading span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Books Showcase Grid with Cover Screenshots */
.books-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.book-card {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 1.35rem;
  align-items: start;
  padding: 1.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.book-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.book-cover-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  cursor: zoom-in;
  aspect-ratio: 3 / 4.2;
}
.book-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}
.book-cover-frame:hover img {
  transform: scale(1.04);
}
.book-cover-frame:hover .zoom-hint,
.book-cover-frame:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.book-type-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-clay);
  margin-bottom: 0.35rem;
}
.book-meta h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-main);
}
.book-publisher {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-teal);
  font-weight: 600;
}
.book-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.52;
  color: var(--text-muted);
}

/* Patents & Design Code Grid */
.patent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.patent-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.patent-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}
.patent-card-standard {
  grid-column: 1 / -1;
  border-left: 4px solid var(--brand-teal);
  background: linear-gradient(90deg, var(--brand-teal-subtle) 0%, var(--bg-card) 60%);
}
.patent-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-clay);
  letter-spacing: 0.04em;
}
.patent-card-standard .patent-code {
  color: var(--brand-teal);
}
.patent-card h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-main);
}
.patent-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Background Technical Stack Panel --- */
.tech-stack-panel {
  margin-top: 1.75rem;
}
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.tech-stack-col h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
}

@media (max-width: 960px) {
  .books-showcase-grid,
  .patent-grid,
  .tech-stack-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .book-card {
    grid-template-columns: 1fr;
  }
  .book-cover-frame {
    max-width: 160px;
  }
}

/* --- Publications: Compact Search, Collapsible Abstracts & Multi-Page Book Proofs --- */
.pub-search-wrapper.pub-search-compact {
  flex: 0 1 260px;
}

.pub-abstract-details {
  margin-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.5rem;
}
.pub-abstract-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-teal);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}
.pub-abstract-details summary::-webkit-details-marker {
  display: none;
}
.pub-abstract-details summary::before {
  content: "▸";
  display: inline-block;
  transition: transform var(--transition-fast);
}
.pub-abstract-details[open] summary::before {
  transform: rotate(90deg);
}
.pub-abstract-details summary:hover {
  color: var(--accent-clay);
}
.pub-abstract-body {
  margin-top: 0.55rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-page-subtle);
  border-left: 3px solid var(--brand-teal);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.pub-abstract-body p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-main);
}
.pub-abstract-body p:last-child {
  margin-bottom: 0;
}
.pub-keywords {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}
.pub-keywords strong {
  color: var(--brand-teal);
}

/* Books Multi-Page Proof Cards (Stamp -> Color Cover -> Sales Certificate) */
.books-proof-grid {
  display: grid;
  gap: 1.5rem;
}
.book-proof-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.65rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.book-proof-card:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-md);
}
.book-proof-header h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-main);
}
.book-pages-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}
.book-page-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.book-page-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--brand-teal);
}
.book-page-thumb img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.book-page-thumb span {
  display: block;
  padding: 0.35rem 0.5rem;
  background: var(--brand-teal-dark);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
}
[data-theme="dark"] .book-page-thumb span {
  background: #0d1a1e;
  color: #b7d8d3;
}

/* --- Section 04: Teaching & Training (4-Card Balanced Layout) --- */
.teaching-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.teach-card {
  display: flex;
  flex-direction: column;
  padding: 1.85rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.teach-card:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-md);
}
.teach-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
}
.teach-card-wide-compact {
  grid-column: 1 / -1;
}
.teach-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.teach-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-clay);
}
.teach-award-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-gold-subtle);
  color: var(--text-main);
}
.teach-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-main);
}
.teach-role {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-teal);
}
.teach-desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-muted);
}
.teach-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.teach-courses span {
  padding: 0.26rem 0.7rem;
  border-radius: var(--radius-xs);
  background: var(--bg-page-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
}
.teach-evaluations {
  margin-top: auto;
  padding: 1rem;
  background: var(--bg-page-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
}
.teach-evaluations h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--text-main);
}
.teach-evaluations p,
.teach-feedback-details li {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.teach-evaluation-quote {
  margin: 0.85rem 0;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid var(--brand-teal);
}
.teach-evaluation-quote blockquote {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-main);
}
.teach-evaluation-quote figcaption {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.teach-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.85rem 0;
}
.teach-evidence-thumb {
  width: 100%;
  padding: 0;
  text-align: start;
}
.teach-evidence-thumb img {
  aspect-ratio: 16 / 10;
  object-position: top;
}
.teach-card-with-attachments .teach-evidence-grid {
  margin: 0;
  min-width: 0;
  align-items: stretch;
}
.teach-card-with-attachments .teach-evidence-thumb {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.teach-card-with-attachments .teach-evidence-thumb img {
  aspect-ratio: 4 / 3;
  object-position: center;
}
.teach-card-with-attachments .teach-cert-cap {
  flex: 1;
  display: grid;
  place-items: center;
}
.teach-card-with-attachments .teach-evidence-award {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 16rem;
}
.teach-evidence-thumb .teach-cert-cap {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.35;
}
.teach-feedback-details summary {
  cursor: pointer;
  color: var(--brand-teal);
  font-weight: 650;
  font-size: 0.875rem;
}
.teach-feedback-details[open] summary {
  margin-bottom: 0.5rem;
}
.teach-feedback-details ul {
  margin: 0.5rem 0;
  padding-inline-start: 1.25rem;
}
.teach-feedback-details li + li {
  margin-top: 0.3rem;
}
.teach-evidence-thumb:focus-visible,
.teach-feedback-details summary:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

.teach-cert-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.teach-cert-frame img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  padding: 0.4rem;
  display: block;
}
.teach-cert-frame:hover .zoom-hint,
.teach-cert-frame:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.teach-cert-cap {
  display: block;
  padding: 0.45rem 0.75rem;
  background: var(--brand-teal-dark);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
}
[data-theme="dark"] .teach-cert-cap {
  background: #0d1a1e;
  color: #b7d8d3;
}

@media (max-width: 960px) {
  .book-proof-card,
  .teaching-grid-4,
  .teach-card-wide {
    grid-template-columns: 1fr;
  }
}

/* --- Refined Harmonious Overview Path Cards (Subtle Accent Top Border, No Heavy Color Clash) --- */
.path-card.path-card-refined {
  min-height: 215px;
  justify-content: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-top-width: 3px;
}
.path-card.path-card-refined.path-accent-1 { border-top-color: #0c7c75; }
.path-card.path-card-refined.path-accent-2 { border-top-color: #1c6b82; }
.path-card.path-card-refined.path-accent-3 { border-top-color: #6b7f7b; }
.path-card.path-card-refined.path-accent-4 { border-top-color: var(--accent-clay); }

.path-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.15rem;
}
.path-card.path-card-refined strong {
  margin: 0 0 0.55rem;
}
.path-arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.path-card.path-card-refined:hover .path-arrow-badge {
  transform: translateX(3px);
  background: var(--brand-teal);
  color: #ffffff;
}
[data-theme="dark"] .path-card.path-card-refined:hover .path-arrow-badge {
  color: #0a1114;
}

/* --- 4-Tier Responsive Compact Layout & Centered Max-Width Shell (1440px) --- */
.masthead,
.tab-panel,
.site-footer {
  max-width: 1440px;
  margin-inline: auto;
}

.masthead {
  min-height: auto;
  padding-top: clamp(5.25rem, 6.2vw, 6.25rem);
  padding-bottom: clamp(2.1rem, 3.6vw, 3.1rem);
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}

.tab-panel {
  padding: clamp(2.4rem, 4.2vw, 3.6rem) var(--pad);
}

.panel-head {
  margin-bottom: clamp(1.75rem, 3.2vw, 2.5rem);
  padding-bottom: 1.35rem;
}

/* Tier 2: Laptops & Landscape Tablets (960px – 1280px) */
@media (max-width: 1280px) {
  .header-nav-tabs button {
    padding: 0.38rem 0.62rem;
    font-size: 0.69rem;
    letter-spacing: 0.03em;
  }
  .overview-paths {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    margin-bottom: 2.25rem;
  }
  .path-card.path-card-refined {
    min-height: 185px;
  }
}

/* Tier 3: Portrait Tablets (640px – 960px) */
@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.55rem;
    padding-bottom: 0.5rem;
    gap: 0.45rem 0.85rem;
  }
  .header-nav-tabs {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.45rem;
  }
  .masthead {
    padding-top: 7.8rem;
  }
  .masthead-top-band {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .detail-band {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.85rem;
    margin-top: 2.25rem;
  }
}

/* Tier 4: Mobile Phones (< 640px) */
@media (max-width: 640px) {
  .masthead {
    padding-top: 7.2rem;
    padding-bottom: 1.75rem;
    gap: 1.25rem;
  }
  .masthead h1 {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
  }
  .masthead-lead {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .graphic-viewport {
    min-height: 220px;
    max-height: none;
    aspect-ratio: 1280 / 560;
  }
  .graphic-viewport svg {
    max-height: none;
  }
  .overview-paths {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.75rem;
  }
  .path-card.path-card-refined {
    min-height: auto;
    padding: 1.35rem;
  }
  .metric-strip.metric-strip-5 {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem;
    gap: 0.9rem;
  }
  .metric-strip.metric-strip-5 .metric-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.85rem;
  }
  .detail-band {
    padding: 1.35rem;
    margin-top: 1.75rem;
  }
  .detail-band li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ============================================================
   RESEARCH & PATENT THEMATIC VISUAL MAP
   ============================================================ */
.research-visual-map {
  margin: 0 0 2.4rem;
  padding: 1.65rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.rvm-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem 1.5rem;
  margin-bottom: 0.75rem;
}

.rvm-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  margin-bottom: 0.25rem;
}

.rvm-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--text-main);
}

.rvm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.rvm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rvm-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rvm-dot-paper { background: var(--brand-teal); }
.rvm-dot-patent { background: #d97706; }
.rvm-dot-thesis { background: #7c3aed; }

.rvm-spine-svg {
  display: block;
  width: 100%;
  height: 26px;
  margin-bottom: 0.4rem;
}

.rvm-streams-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.rvm-stream {
  display: flex;
  flex-direction: column;
  padding: 0.95rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--phase-1, var(--brand-teal));
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rvm-stream:hover,
.rvm-stream:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
  outline: none;
}

.rvm-s1 { border-top-color: var(--phase-1); }
.rvm-s2 { border-top-color: var(--phase-2); }
.rvm-s3 { border-top-color: var(--phase-3); }
.rvm-s4 { border-top-color: var(--phase-4); }
.rvm-s5 { border-top-color: var(--phase-5); }

.rvm-stream-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
}

.rvm-phase-pill {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.rvm-count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.rvm-stream h4 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.28;
  color: var(--text-main);
}

.rvm-node-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.rvm-node {
  position: relative;
  padding: 0.34rem 0.45rem 0.34rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.32;
  color: var(--text-secondary);
}

.rvm-node::before {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.56rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
}

.rvm-node.rvm-patent::before { background: #d97706; }
.rvm-node.rvm-thesis::before { background: #7c3aed; }

.rvm-node strong {
  color: var(--text-main);
}

@media (max-width: 1180px) {
  .rvm-spine-svg { display: none; }
  .rvm-streams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rvm-streams-grid .rvm-stream:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   PANORAMIC INFRASTRUCTURE CORRIDOR SVG STYLING
   ============================================================ */
.infra-fill {
  fill: #f4f1e6;
  stroke: #173f3b;
  stroke-width: 1.35;
  stroke-linejoin: round;
}
[data-theme="dark"] .infra-fill {
  fill: #1b2f35;
  stroke: #48d8c3;
}

.infra-detail,
.cjr-columns,
.slope-profile,
.pit-benches,
.dump-profile {
  fill: none;
  stroke: #173f3b;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="dark"] .infra-detail,
[data-theme="dark"] .cjr-columns,
[data-theme="dark"] .slope-profile,
[data-theme="dark"] .pit-benches,
[data-theme="dark"] .dump-profile {
  stroke: #48d8c3;
}

.water-body {
  fill: url(#water-fill);
  stroke: none;
}

.water-surface {
  fill: none;
  stroke: #0d9488;
  stroke-width: 1.3;
}

.ssi-spring {
  fill: none;
  stroke: #b45309;
  stroke-width: 1.4;
}
[data-theme="dark"] .ssi-spring {
  stroke: #fbbf24;
}

.seismic-wave {
  fill: none;
  stroke: rgba(180, 83, 9, 0.55);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}
[data-theme="dark"] .seismic-wave {
  stroke: rgba(251, 191, 36, 0.55);
}

.flirs-curve {
  fill: none;
  stroke: #0f766e;
  stroke-width: 1.6;
}
[data-theme="dark"] .flirs-curve {
  stroke: #2dd4bf;
}

.slip-arc,
.phreatic-curve {
  fill: none;
  stroke: #d97706;
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
}

.flood-line {
  fill: none;
  stroke: #dc2626;
  stroke-width: 1.35;
  stroke-dasharray: 4 2;
}

.hydro-arrow,
.clearance-tick {
  fill: none;
  stroke: #0f766e;
  stroke-width: 1.3;
}
[data-theme="dark"] .hydro-arrow,
[data-theme="dark"] .clearance-tick {
  stroke: #2dd4bf;
}

.discontinuity-lines {
  fill: none;
  stroke: rgba(23, 63, 59, 0.5);
  stroke-width: 1.05;
  stroke-dasharray: 3 3;
}
[data-theme="dark"] .discontinuity-lines {
  stroke: rgba(72, 216, 195, 0.45);
}

.goaf-cavity {
  fill: #172a28;
  stroke: #48d8c3;
  stroke-width: 1.25;
}

.goaf-backfill {
  fill: url(#backfill-hatch);
  stroke: #d97706;
  stroke-width: 1.1;
}

.goaf-scan {
  fill: none;
  stroke: rgba(45, 212, 191, 0.55);
  stroke-width: 0.95;
  stroke-dasharray: 2 2;
}

.galloping-env {
  fill: rgba(13, 148, 136, 0.08);
  stroke: #0d9488;
  stroke-width: 1.25;
  stroke-dasharray: 5 3;
}

.thermal-sag {
  fill: none;
  stroke: #d97706;
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
}

.ai-sensor-node circle:first-child {
  fill: #0d9488;
}
.ai-sensor-node .ai-pulse {
  fill: none;
  stroke: #0d9488;
  stroke-width: 1.1;
  stroke-opacity: 0.55;
}
[data-theme="dark"] .ai-sensor-node circle:first-child {
  fill: #2dd4bf;
}
[data-theme="dark"] .ai-sensor-node .ai-pulse {
  stroke: #2dd4bf;
}

.svg-micro-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: #173f3b;
  opacity: 0.85;
}
[data-theme="dark"] .svg-micro-label {
  fill: #99f6e4;
}
.svg-micro-light {
  fill: #e2e8f0;
}

/* 3-Layer Atmospheric Panorama Enhancements */
.horizon-ridge-back {
  fill: url(#mountain-far);
  opacity: 0.85;
}
.horizon-ridge {
  fill: url(#mountain-mid);
  opacity: 0.75;
}
[data-theme="dark"] .horizon-ridge-back {
  fill: #0f2832;
  opacity: 0.90;
}
[data-theme="dark"] .horizon-ridge {
  fill: #162630;
  opacity: 0.85;
}

.npp-dome {
  fill: url(#npp-cylinder);
  stroke: #173f3b;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
[data-theme="dark"] .npp-dome {
  fill: #1d333a;
  stroke: #48d8c3;
}
.npp-buttress {
  fill: none;
  stroke: #173f3b;
  stroke-width: 1.85;
}
[data-theme="dark"] .npp-buttress {
  stroke: #5eead4;
}

.sv-wave-trace {
  fill: none;
  stroke: #b45309;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="dark"] .sv-wave-trace {
  stroke: #fbbf24;
}
#seismic-up-arrow path {
  fill: #b45309;
}
[data-theme="dark"] #seismic-up-arrow path {
  fill: #fbbf24;
}

.spillway-jet {
  fill: none;
  stroke: #0d9488;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.78;
}
[data-theme="dark"] .spillway-jet {
  stroke: #2dd4bf;
}

.dam-grout {
  fill: none;
  stroke: rgba(23, 63, 59, 0.52);
  stroke-width: 1.15;
  stroke-dasharray: 3 2;
}
[data-theme="dark"] .dam-grout {
  stroke: rgba(72, 216, 195, 0.55);
}

.pit-terrace-fill {
  fill: url(#pit-bench-shade);
  stroke: rgba(23, 63, 59, 0.25);
  stroke-width: 1;
}
[data-theme="dark"] .pit-terrace-fill {
  fill: #172b30;
  stroke: rgba(72, 216, 195, 0.25);
}

.pit-ramp {
  fill: none;
  stroke: rgba(180, 83, 9, 0.7);
  stroke-width: 1.15;
}
[data-theme="dark"] .pit-ramp {
  stroke: rgba(251, 191, 36, 0.75);
}

.tower-distant {
  fill: none;
  stroke: #173f3b;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.52;
}
[data-theme="dark"] .tower-distant {
  stroke: #48d8c3;
  opacity: 0.58;
}

.watertable-tri {
  fill: #0d9488;
  opacity: 0.85;
}
[data-theme="dark"] .watertable-tri {
  fill: #38bdf8;
}

.svg-label-sub {
  fill: #0f2c29;
  font-weight: 800;
}
[data-theme="dark"] .svg-label-sub {
  fill: #e2e8f0;
}

@media (max-width: 640px) {
  .research-visual-map {
    padding: 1.15rem;
  }
  .rvm-streams-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   Upstream TSF, Waste Rock Dump, Seismic Traces & Clearance Gauge
   ============================================================ */

.rockfill-dam {
  fill: url(#waste-rock-grad);
  stroke: #5a5248;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
[data-theme="dark"] .rockfill-dam {
  fill: #3a3530;
  stroke: #9b9280;
}

.subdam-berm {
  fill: url(#tailings-beach);
  stroke: #7a7260;
  stroke-width: 1.1;
  stroke-linejoin: round;
}
[data-theme="dark"] .subdam-berm {
  fill: #3d3828;
  stroke: #a09880;
}

.tailings-sand-fill {
  fill: url(#tailings-beach);
  stroke: rgba(100, 90, 60, 0.35);
  stroke-width: 0.8;
}
[data-theme="dark"] .tailings-sand-fill {
  fill: #3a3525;
  stroke: rgba(180, 170, 120, 0.3);
}

.dump-fill {
  fill: url(#waste-rock-grad);
  stroke: #6a6258;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
[data-theme="dark"] .dump-fill {
  fill: #2e2b26;
  stroke: #807870;
}

.seismic-th-trace {
  fill: none;
  stroke: #b45309;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="dark"] .seismic-th-trace {
  stroke: #fbbf24;
}

.clearance-gauge {
  fill: none;
  stroke: #0d9488;
  stroke-width: 1.4;
  stroke-linecap: round;
}
#dim-arrow path {
  fill: #0d9488;
}
[data-theme="dark"] .clearance-gauge {
  stroke: #2dd4bf;
}
[data-theme="dark"] #dim-arrow path {
  fill: #2dd4bf;
}

/* Concept overview and accessible mobile navigation */
.concept-overview {display:grid;grid-template-columns:1fr 1.4fr;gap:2rem;align-items:center;padding:2rem;margin:1rem 0 2rem;border:1px solid #376b68;border-radius:18px;background:#102d2e;color:#89d2c7}
.concept-overview h2 {margin:.5rem 0;font-size:1.6rem}.concept-overview p {line-height:1.6}.concept-overview a {color:inherit;text-decoration:underline}.concept-overview svg {width:100%;max-height:210px}.concept-label {font-size:.7rem;letter-spacing:.12em}
.corridor-detail {margin:2rem 0}.corridor-detail summary {cursor:pointer;font-weight:700;padding:1rem;border:1px solid #477b76;border-radius:10px}.corridor-detail .masthead-graphic-container {margin-top:1rem}
@media(max-width:760px){.concept-overview{grid-template-columns:1fr;padding:1.25rem}.header-nav-tabs{overflow-x:auto;scrollbar-width:thin}.masthead{scroll-margin-top:150px}}

.portfolio-domain { border-bottom:1px solid currentColor; padding:.35rem 0 }
.portfolio-domain > summary { font-size:clamp(1.05rem,2vw,1.45rem); padding:1rem .3rem; font-weight:650 }
.portfolio-domain summary { cursor:pointer }
.portfolio-domain summary:focus-visible { outline:2px solid currentColor; outline-offset:2px }
.portfolio-body { max-width:82ch; padding:.25rem 1rem 1.5rem; line-height:1.65 }
.portfolio-body h3 { margin:1rem 0 .3rem }.portfolio-body ul { padding-left:1.4rem; list-style:disc }.portfolio-body li { margin:.45rem 0 }
.portfolio-case { margin-top:1rem }.portfolio-case > summary { padding:.6rem 0; font-weight:650 }
.portfolio-case .project-figure-wrapper { margin:1rem 0; max-width:44rem }

.restored-projects { align-items: start; }
.restored-projects .project-card--featured {
  grid-column: 1 / -1;
}
.project-card--featured .project-primary-copy {
  min-width: 0;
}
@media (min-width: 961px) {
  .restored-projects .project-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
  }
  .project-card--featured > .project-figure-wrapper {
    width: 100%;
    margin: 0;
    border: 1px solid var(--border-medium);
    border-radius: calc(var(--radius-lg) - 1px);
    cursor: default;
  }
}
.restored-projects .portfolio-body { padding: 0; }
.restored-projects .project-card-banner .portfolio-body { grid-column: 1 / -1; }
.restored-projects h4 { margin: 1rem 0 .35rem; }
.restored-projects figure { margin: 0; }
@media (max-width: 760px) {
  .restored-projects, .restored-projects .project-card-banner { grid-template-columns: minmax(0, 1fr); }
}

/* Expandable research catalogues retain the existing five-card grid. */
.research-output-list {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.research-output-list summary {
  cursor: pointer;
  color: var(--brand-teal);
  font-weight: 650;
  font-size: 0.94rem;
}
.research-output-list summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.research-output-list h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.91rem;
}
.research-output-list ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  list-style: disc;
}
.research-output-list li {
  margin-bottom: 0.55rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.research-output-list small {
  display: block;
  color: var(--text-muted);
  font-size: 0.81rem;
}
.research-output-list a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Research overview, doctoral evidence and navigation. */
.research-statement .panel-head-lead { max-width: 76ch; }
.research-feature .phd-card { min-width: 0; }
.research-feature .phd-card h4 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.2;
}
.research-feature .phd-desc,
.research-feature-evidence dd,
.research-method-details p,
.research-directions p {
  font-size: 1rem;
  line-height: 1.6;
}
.research-feature-evidence {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.research-feature-evidence dt { color: var(--text-main); font-weight: 700; }
.research-feature-evidence dd { margin: 0.2rem 0 0; color: var(--text-muted); }
.research-method-details {
  border-top: 1px solid var(--border-medium);
  padding-top: 0.25rem;
}
.research-method-details summary {
  color: var(--brand-teal);
  cursor: pointer;
  min-height: 44px;
  padding-block: 0.65rem;
  font-weight: 650;
}
.research-method-details p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}
.research-feature-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}
.research-feature-sources a { font-size: 0.9rem; text-decoration: underline; }
.research-theme-index { margin: 2rem 0 1.5rem; }
.research-theme-index h3,
.research-directions h3 {
  margin: 0 0 0.45rem;
  font: 500 clamp(1.45rem, 2.4vw, 1.85rem)/1.2 var(--font-serif);
}
.research-theme-index p { margin: 0 0 0.85rem; color: var(--text-muted); }
.research-theme-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.research-theme-nav button {
  min-height: 44px;
  max-width: 100%;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
}
.research-theme-nav button:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}
.research-theme-nav button:focus-visible,
.research-method-details summary:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}
.research-directions {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
}
.research-direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem 1.5rem;
}
.research-direction-grid h4 { margin: 0.5rem 0 0; }
.research-directions p { color: var(--text-muted); margin-block: 0.4rem 0.9rem; }
@media (max-width: 540px) {
  .research-feature { padding: 1rem; }
  .research-feature .phd-card { padding: 1rem; }
  .research-theme-nav button { flex: 1 1 9rem; }
}

button.teach-cert-frame {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
}

/* ============================================================
   Single-Column Editorial Masthead & Domain Pills (Scheme 1)
   ============================================================ */
.masthead-top-band.masthead-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 100%;
}

.masthead-editorial h1 {
  font-size: clamp(1.95rem, 3.15vw, 2.95rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: none;
}

.masthead-editorial .masthead-lead {
  margin: 0;
  max-width: 82ch;
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  line-height: 1.62;
  color: var(--text-muted);
}

.masthead-domain-pills {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.masthead-domain-pills li {
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--brand-teal-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .masthead-domain-pills li {
  color: #99f6e4;
  background: rgba(15, 34, 38, 0.72);
  border-color: rgba(72, 216, 195, 0.25);
}

/* Structured indented sub-lists in Credentials Editorial & Peer Review */
.service-structured-list {
  list-style: none;
  padding-left: 0;
  gap: 0.85rem;
}

.service-structured-list > li > strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.service-sublist {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.3rem;
  list-style: disc;
}

.service-sublist li {
  line-height: 1.48;
}

/* Technical Stack compact photo gallery strip (equal height & bottom-aligned across columns) */
.tech-stack-col {
  display: flex;
  flex-direction: column;
}

.tech-gallery-strip {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.tech-gallery-btn {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.tech-gallery-btn img {
  height: 148px;
  max-height: 148px;
  object-fit: cover;
  padding: 0;
  flex-shrink: 0;
}

.tech-gallery-btn .teach-cert-cap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

@media (max-width: 640px) {
  .tech-gallery-strip {
    grid-template-columns: 1fr;
  }
}

/* Scannable 3-column intro pillars in Research header */
.research-intro-pillars {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.research-intro-pillar {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--brand-teal);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.research-intro-pillar strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.research-intro-pillar span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .research-intro-pillars {
    grid-template-columns: 1fr;
  }
}

/* Tighter letter-size portrait frame on Teaching wide cards */
@media (min-width: 961px) {
  .teach-card-wide {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 1.75rem;
  }
}

/* Subtle Dual-Track Color Differentiation in Credentials (Career = Teal, Academic = Warm Clay) */
.background-grid .bg-column:nth-child(2) .bg-col-tag {
  color: var(--accent-clay);
}

.background-grid .bg-column:nth-child(2) .bg-col-head {
  border-bottom-color: rgba(180, 83, 9, 0.22);
}

.bg-degree-item {
  border-left: 3px solid rgba(180, 83, 9, 0.45);
}

[data-theme="dark"] .bg-degree-item {
  border-left-color: rgba(245, 158, 11, 0.55);
}

/* Warm Gold Highlight for Official Teaching Award Pill */
.teach-award-pill.teach-award-pill-gold {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.38);
  font-weight: 700;
}

[data-theme="dark"] .teach-award-pill.teach-award-pill-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.4);
}

/* Force one tag per line on Sustainable Geomaterials evidence tags */
.lc-evidence-tags.lc-evidence-tags-stacked {
  flex-direction: column;
  align-items: flex-start;
}

/* Teaching score highlight pill group */
.teach-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.teach-award-pill.teach-score-pill {
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-teal-dark);
  border: 1px solid rgba(13, 148, 136, 0.32);
  font-weight: 700;
}

[data-theme="dark"] .teach-award-pill.teach-score-pill {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.35);
}

/* Balanced Featured Transmission Card Layout */
.project-featured-media {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.featured-transmission-svg {
  width: 100%;
  height: 360px;
  display: block;
  background: #e5f1f8;
}

[data-theme="dark"] .featured-transmission-svg {
  background: #0d1b24;
}

.featured-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.featured-scope-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: var(--brand-teal-subtle);
  color: var(--brand-teal-dark);
  border: 1px solid rgba(12, 78, 75, 0.14);
}

[data-theme="dark"] .featured-scope-tags span {
  color: #99f6e4;
  border-color: rgba(72, 216, 195, 0.22);
}

@media (min-width: 961px) {
  .restored-projects .project-card--featured {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    align-items: start;
  }
  .project-featured-media > .project-figure-wrapper {
    width: 100%;
    margin: 0;
    border: 1px solid var(--border-medium);
    border-radius: calc(var(--radius-lg) - 1px);
    cursor: default;
  }
}

/* Fix nested Representative Case figure width (override card-bleed negative margin/calc width) */
.portfolio-case .project-figure-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 0.25rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.portfolio-case .project-figure-wrapper img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

/* Two-column Representative Cases row spanning full width at bottom of Featured Transmission card */
.featured-cases-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.featured-cases-row .portfolio-case {
  margin-top: 0;
}

@media (max-width: 860px) {
  .featured-cases-row {
    grid-template-columns: 1fr;
  }
}

/* On-body labels & 3D tri-axial seismic bedrock triad in Hero SVG */
.svg-on-body {
  font-weight: 800;
  fill: #133633;
  opacity: 0.92;
}
.svg-on-body-sm {
  font-size: 7.5px;
  letter-spacing: 0.04em;
}
.svg-on-body-xs {
  font-size: 6.5px;
  letter-spacing: 0.03em;
}
.svg-on-body-light {
  fill: #f8fafc;
}
[data-theme="dark"] .svg-on-body {
  fill: #d5f5ef;
}

.seismic-plane {
  fill: rgba(251, 191, 36, 0.12);
  stroke: rgba(217, 119, 6, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 2;
}
.seismic-axis {
  stroke: #d97706;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.seismic-origin {
  fill: #d97706;
}
#seismic-axis-arrow path {
  fill: #d97706;
}
[data-theme="dark"] .seismic-plane {
  fill: rgba(251, 191, 36, 0.14);
  stroke: rgba(251, 191, 36, 0.6);
}
[data-theme="dark"] .seismic-axis {
  stroke: #fbbf24;
}
[data-theme="dark"] .seismic-origin,
[data-theme="dark"] #seismic-axis-arrow path {
  fill: #fbbf24;
}

/* High-contrast SVG labels on dark bedrock, soil, pit, and dump */
.svg-seismic-label {
  fill: #fde68a !important;
  font-weight: 800;
  opacity: 1 !important;
  paint-order: stroke;
  stroke: rgba(15, 28, 32, 0.78);
  stroke-width: 2.5px;
}

.seismic-mini-wave {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

.svg-borehole-label {
  fill: #0f2c29 !important;
  font-weight: 800;
  opacity: 1 !important;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 2.5px;
}

[data-theme="dark"] .svg-borehole-label {
  fill: #f1f5f9 !important;
  stroke: rgba(13, 27, 36, 0.8);
}

.svg-on-pit {
  fill: #1b2a28 !important;
  font-weight: 800;
  font-size: 9px;
  opacity: 1 !important;
  paint-order: stroke;
  stroke: rgba(255, 250, 240, 0.78);
  stroke-width: 2.5px;
}

[data-theme="dark"] .svg-on-pit {
  fill: #f8fafc !important;
  stroke: rgba(13, 27, 36, 0.85);
}

.svg-on-dump {
  fill: #ffffff !important;
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 0.04em;
  opacity: 1 !important;
  paint-order: stroke;
  stroke: rgba(38, 33, 28, 0.85);
  stroke-width: 2.8px;
}

/* Clean non-emoji bullet accent in Contact Advisory & Service Domains */
.focus-domain-list-clean {
  list-style: none;
  padding-left: 0;
}

.focus-domain-list-clean li {
  position: relative;
  padding-left: 1rem;
}

.focus-domain-list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
}

/* Unified dual-track domain pills in Credentials: Career = Teal, Academic = Warm Clay */
.background-grid .bg-column:nth-child(1) .bg-domain-pill {
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
}

.background-grid .bg-column:nth-child(2) .bg-domain-pill,
.background-grid .bg-column:nth-child(2) .bg-domain-pill.pill-teal {
  background: rgba(180, 83, 9, 0.11);
  color: #9a3412;
}

[data-theme="dark"] .background-grid .bg-column:nth-child(2) .bg-domain-pill,
[data-theme="dark"] .background-grid .bg-column:nth-child(2) .bg-domain-pill.pill-teal {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.research-collab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

/* Align all 5 metric-strip numbers and label first-lines strictly on the same horizontal axis */
.metric-strip .metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
}

.metric-strip .metric-item strong {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.metric-strip .metric-item strong sub {
  line-height: 0;
}

.metric-strip .metric-item span {
  line-height: 1.4;
}
