/* =============================================================
   GOLDEN SUNFLOWER — Professional Tech-Minimalism Stylesheet
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg-primary:   #0D0D0D;
  --bg-secondary: #111111;
  --bg-card:      #141414;
  --bg-card-hover:#181818;
  --accent:       #FFD700;
  --accent-dim:   #a07800;
  --accent-hover: #ffe033;
  --accent-glow:  rgba(255, 215, 0, 0.06);
  --accent-glow-btn: rgba(255, 215, 0, 0.25);
  --cta-border:   rgba(255, 215, 0, 0.4);
  --cta-glow:     rgba(255, 215, 0, 0.15);
  --card-hover-border: rgba(255, 215, 0, 0.3);
  --text-primary: #e0e0e0;
  --text-secondary:#a0a0a0;
  --text-muted:   #606060;
  --border:       #262626;
  --border-accent:#FFD700;
  --font-mono:    'JetBrains Mono', 'Roboto Mono', 'Courier New', ui-monospace, monospace;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
  --radius:       0px;
  --transition:   0.25s ease;
  --container-gutter: 1.5rem;
  /* Component-specific tokens */
  --nav-bg:            rgba(13, 13, 13, 0.94);
  --nav-mobile-bg:     rgba(13, 13, 13, 0.98);
  --body-dot:          rgba(255, 255, 255, 0.035);
  --grid-line:         rgba(255, 255, 255, 0.025);
  --terminal-bg:       #0a0a0a;
  --terminal-bar-bg:   #161616;
  --terminal-output-color: #4ade80;
  --footer-bg:         #090909;
  /* Derived tokens for previously-hardcoded RGBA values */
  --nav-border-scrolled:   rgba(255, 215, 0, 0.25);
  --status-glow:           rgba(255, 215, 0, 0.7);
  --status-glow-dim:       rgba(255, 215, 0, 0.35);
  --blueprint-line-strong: rgba(255, 215, 0, 0.55);
  --blueprint-line-light:  rgba(255, 215, 0, 0.2);
  --card-bar-bg:           rgba(255, 215, 0, 0.5);
  --node-glow:             rgba(255, 215, 0, 0.1);
  --spine-color:           rgba(255, 215, 0, 0.4);
  --spine-glow:            rgba(255, 215, 0, 0.2);
  --nebula-hover:          #FFC107;
  --nebula-hover-glow:     rgba(255, 193, 7, 0.4);
}

/* ── Light Mode Overrides ───────────────────────────────────── */
[data-theme="light"] {
  --bg-primary:   #FFFFFF;
  --bg-secondary: #F8F8F8;
  --bg-card:      #F2F2F2;
  --bg-card-hover:#EBEBEB;
  --accent:       #C5A059;
  --accent-dim:   #8a6d3b;
  --accent-hover: #d4af70;
  --accent-glow:  rgba(197, 160, 89, 0.08);
  --accent-glow-btn: rgba(197, 160, 89, 0.25);
  --cta-border:   rgba(197, 160, 89, 0.45);
  --cta-glow:     rgba(197, 160, 89, 0.15);
  --card-hover-border: rgba(197, 160, 89, 0.4);
  --text-primary: #1A1A1A;
  --text-secondary:#444444;
  --text-muted:   #777777;
  --border:       #DDDDDD;
  --border-accent:#C5A059;
  --nav-bg:            rgba(255, 255, 255, 0.94);
  --nav-mobile-bg:     rgba(255, 255, 255, 0.98);
  --body-dot:          rgba(0, 0, 0, 0.05);
  --grid-line:         rgba(0, 0, 0, 0.04);
  --terminal-bg:       #F5F5F5;
  --terminal-bar-bg:   #E8E8E8;
  --terminal-output-color: #166534;
  --footer-bg:         #F0F0F0;
  /* Derived tokens – light overrides */
  --nav-border-scrolled:   rgba(197, 160, 89, 0.35);
  --status-glow:           rgba(197, 160, 89, 0.7);
  --status-glow-dim:       rgba(197, 160, 89, 0.35);
  --blueprint-line-strong: rgba(197, 160, 89, 0.55);
  --blueprint-line-light:  rgba(197, 160, 89, 0.2);
  --card-bar-bg:           rgba(197, 160, 89, 0.5);
  --node-glow:             rgba(197, 160, 89, 0.1);
  --spine-color:           rgba(197, 160, 89, 0.4);
  --spine-glow:            rgba(197, 160, 89, 0.2);
}

/* ── Blueprint Theme (Theme 3 – Engineering Blueprint) ──────── */
[data-theme="blueprint"] {
  --bg-primary:   #003366;
  --bg-secondary: #002855;
  --bg-card:      rgba(0, 40, 100, 0.65);
  --bg-card-hover:rgba(0, 55, 120, 0.7);
  --accent:       #FFD700;
  --accent-dim:   #a07800;
  --accent-hover: #ffe033;
  --accent-glow:  rgba(255, 215, 0, 0.06);
  --accent-glow-btn: rgba(255, 215, 0, 0.25);
  --cta-border:   rgba(255, 215, 0, 0.4);
  --cta-glow:     rgba(255, 215, 0, 0.15);
  --card-hover-border: rgba(0, 255, 255, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary:#B0C8E8;
  --text-muted:   #6A8EB0;
  --border:       #1a4a80;
  --border-accent:#FFD700;
  --nav-bg:            rgba(0, 30, 80, 0.94);
  --nav-mobile-bg:     rgba(0, 30, 80, 0.98);
  --body-dot:          transparent;
  --grid-line:         rgba(0, 100, 200, 0.2);
  --terminal-bg:       rgba(0, 20, 60, 0.55);
  --terminal-bar-bg:   rgba(0, 30, 80, 0.65);
  --terminal-output-color: #00FFFF;
  --footer-bg:         #002244;
  --nav-border-scrolled:   rgba(255, 215, 0, 0.25);
  --status-glow:           rgba(255, 215, 0, 0.7);
  --status-glow-dim:       rgba(255, 215, 0, 0.35);
  --blueprint-line-strong: rgba(0, 150, 255, 0.45);
  --blueprint-line-light:  rgba(0, 100, 200, 0.2);
  --card-bar-bg:           rgba(0, 200, 255, 0.4);
  --node-glow:             rgba(0, 150, 255, 0.15);
  --spine-color:           rgba(100, 180, 255, 0.55);
  --spine-glow:            rgba(0, 150, 255, 0.2);
  --nebula-hover:          #00FFFF;
  --nebula-hover-glow:     rgba(0, 255, 255, 0.35);
}

/* ── Editorial Theme (Theme 4 – Claude-Inspired) ────────────── */
[data-theme="editorial"] {
  --bg-primary:   #F9F8F6;
  --bg-secondary: #FFFFFF;
  --bg-card:      #FFFFFF;
  --bg-card-hover:#F5F4F2;
  --accent:       #854D0E;
  --accent-dim:   #5c3609;
  --accent-hover: #a36012;
  --accent-glow:  rgba(133, 77, 14, 0.06);
  --accent-glow-btn: rgba(133, 77, 14, 0.18);
  --cta-border:   rgba(133, 77, 14, 0.4);
  --cta-glow:     rgba(133, 77, 14, 0.08);
  --card-hover-border: rgba(0, 0, 0, 0.16);
  --text-primary: #1D1D1D;
  --text-secondary:#666666;
  --text-muted:   #999999;
  --border:       rgba(0, 0, 0, 0.08);
  --border-accent:#854D0E;
  --font-heading: 'Source Serif 4', 'Georgia', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --nav-bg:            rgba(249, 248, 246, 0.94);
  --nav-mobile-bg:     rgba(249, 248, 246, 0.98);
  --body-dot:          transparent;
  --grid-line:         rgba(0, 0, 0, 0.03);
  --terminal-bg:       #F0EEE9;
  --terminal-bar-bg:   #E8E6E0;
  --terminal-output-color: #166534;
  --footer-bg:         #F0EEE9;
  --nav-border-scrolled:   rgba(133, 77, 14, 0.25);
  --status-glow:           rgba(133, 77, 14, 0.6);
  --status-glow-dim:       rgba(133, 77, 14, 0.3);
  --blueprint-line-strong: rgba(133, 77, 14, 0.35);
  --blueprint-line-light:  rgba(133, 77, 14, 0.15);
  --card-bar-bg:           rgba(133, 77, 14, 0.4);
  --node-glow:             rgba(133, 77, 14, 0.08);
  --spine-color:           rgba(133, 77, 14, 0.35);
  --spine-glow:            rgba(133, 77, 14, 0.15);
  --nebula-hover:          #a36012;
  --nebula-hover-glow:     rgba(133, 77, 14, 0.25);
}

/* Editorial: apply serif font to headings */
[data-theme="editorial"] h1,
[data-theme="editorial"] h2,
[data-theme="editorial"] h3 {
  font-family: var(--font-heading);
}

/* Editorial: cards use no glow, soft shadow only */
[data-theme="editorial"] .pixel-card,
[data-theme="editorial"] .talent-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition),
              background var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
}

[data-theme="editorial"] .pixel-card:hover,
[data-theme="editorial"] .talent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.06);
  border-color: var(--card-hover-border);
}

/* Blueprint: body uses a solid grid instead of dots */
[data-theme="blueprint"] body {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(0, 100, 200, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 100, 200, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Blueprint: hide the hero dot-grid overlay (full-page grid already covers it) */
[data-theme="blueprint"] .hero-grid-bg {
  display: none;
}

/* Blueprint: main heading – pure white with a subtle cyan outer glow */
[data-theme="blueprint"] .hero-title {
  color: #FFFFFF;
  text-shadow:
    0 0 18px rgba(0, 255, 255, 0.45),
    0 0 40px rgba(0, 200, 255, 0.18);
}

/* Blueprint: terminal – semi-transparent navy with dashed white border */
[data-theme="blueprint"] .hero-terminal {
  background: rgba(0, 20, 60, 0.55);
  border: 1px dashed #FFFFFF;
}

[data-theme="blueprint"] .terminal-bar {
  background: rgba(0, 30, 80, 0.65);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

/* Blueprint: vertical spine with ruler tick marks (large-screen) */
@media (min-width: 1200px) {
  [data-theme="blueprint"] .hero-inner::before {
    width: 11px;
    left: calc(var(--spine-offset) - 5px);
    background:
      /* center vertical data line */
      linear-gradient(to right,
        transparent 5px, var(--spine-color) 5px,
        var(--spine-color) 6px, transparent 6px),
      /* horizontal tick marks every 50 px */
      repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 47px,
        var(--spine-color) 47px,
        var(--spine-color) 50px
      );
    box-shadow: none;
  }
}

/* Blueprint: vertical spine with ruler tick marks (small-screen) */
@media (max-width: 1199.98px) {
  [data-theme="blueprint"] .hero-content::before {
    width: 11px;
    left: calc(50% - 5px);
    background:
      linear-gradient(to right,
        transparent 5px, var(--spine-color) 5px,
        var(--spine-color) 6px, transparent 6px),
      repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 47px,
        var(--spine-color) 47px,
        var(--spine-color) 50px
      );
    opacity: 0.5;
  }
}

/* Blueprint: tech tags – monospace, cyan text, cyan border, no fill */
[data-theme="blueprint"] .shadow-tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #00FFFF;
  border-color: #00FFFF;
  background: transparent;
  text-shadow: none;
  opacity: 0.65;
}

[data-theme="blueprint"] .shadow-tag.secondary {
  opacity: 0.5;
}

[data-theme="blueprint"] .shadow-tag:hover {
  opacity: 1;
  border-color: #00FFFF;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

[data-theme="blueprint"] .tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #00FFFF;
  border: 1px solid #00FFFF;
  background: transparent;
}

/* Blueprint: theme toggle icon visibility — show editorial icon → clicking switches to editorial */
[data-theme="blueprint"] .theme-icon-sun  { display: none; }
[data-theme="blueprint"] .theme-icon-moon { display: none; }
[data-theme="blueprint"] .theme-icon-blueprint { display: none; }
[data-theme="blueprint"] .theme-icon-editorial { display: inline; }

/* Editorial: show moon → clicking switches back to dark */
[data-theme="editorial"] .theme-icon-sun       { display: none; }
[data-theme="editorial"] .theme-icon-moon      { display: inline; }
[data-theme="editorial"] .theme-icon-blueprint { display: none; }
[data-theme="editorial"] .theme-icon-editorial { display: none; }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle, var(--body-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ── Scanline Overlay ───────────────────────────────────────── */
.scanline { display: none; }

/* ── Pixel Loading Screen ───────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.loader-logo svg {
  width: 64px;
  height: 64px;
}

.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: var(--border);
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* ── Typography ─────────────────────────────────────────────── */
.pixel-text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.accent { color: var(--accent); }
.accent-small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ── Pixel Cards (shared) ───────────────────────────────────── */
.pixel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition),
              background var(--transition);
  cursor: default;
}

.pixel-card:hover {
  border-color: var(--card-hover-border);
  background: var(--bg-card-hover);
}

/* ── Pixel Badge ────────────────────────────────────────────── */
.pixel-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.25rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition),
              border-color var(--transition),
              color var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0D0D0D;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow-btn);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--nav-border-scrolled);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--text-secondary); }
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.cta-link {
  color: var(--accent) !important;
  border: 1px solid var(--cta-border);
  padding: 0.3rem 0.8rem;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cta-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--cta-glow);
}

.cta-link::after { display: none; }

/* System Status */
.nav-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 1.5rem;
}

.nav-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-loc {
  font-size: 0.48rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  opacity: 0.75;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--status-glow);
  animation: status-pulse 2.5s ease infinite;
  flex-shrink: 0;
}

.status-text {
  color: var(--accent);
}

.status-divider {
  color: var(--border);
  margin: 0 0.15rem;
}

.nav-clock {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-secondary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Each icon shows the *next* theme in the cycle: dark→light→blueprint→editorial→dark */
/* dark (default): show sun → clicking switches to light */
.theme-icon-sun       { display: inline; }
.theme-icon-moon      { display: none; }
.theme-icon-blueprint { display: none; }
.theme-icon-editorial { display: none; }

/* light: show blueprint icon → clicking switches to blueprint */
[data-theme="light"] .theme-icon-sun       { display: none; }
[data-theme="light"] .theme-icon-moon      { display: none; }
[data-theme="light"] .theme-icon-blueprint { display: inline; }
[data-theme="light"] .theme-icon-editorial { display: none; }

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.hero-blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--blueprint-line-strong) 0px,
      var(--blueprint-line-strong) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      var(--blueprint-line-light) 0px,
      var(--blueprint-line-light) 1px,
      transparent 1px,
      transparent 80px
    );
  opacity: 0.05;
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, black 46%, black 54%, transparent 72%);
  mask-image: linear-gradient(90deg, transparent 28%, black 46%, black 54%, transparent 72%);
}

/* ── Shadow Safety Zone Tags (desktop-only, inside hero-decoration) ── */
.shadow-tags {
  display: none;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  z-index: 1;
  width: 550px;
}

.shadow-tags-upper,
.shadow-tags-lower {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shadow-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
  user-select: none;
  opacity: 0.35;
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.shadow-tag.secondary {
  font-size: 10px;
  opacity: 0.28;
}

.shadow-tag:hover {
  opacity: 0.8;
  border-color: var(--nebula-hover);
  box-shadow: 0 0 8px var(--nebula-hover-glow);
}

@media (min-width: 1200px) {
  .shadow-tags {
    display: flex;
  }
}

/* Hero Inner – flex row wrapper for content + terminal */
.hero-inner {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

/* Digital Spine – vertical gold gradient connector
   Use this implementation only below the large-screen breakpoint,
   where .hero-inner::before (inside @media (min-width: 1200px))
   takes over for the spine. */
@media (max-width: 1199.98px) {
  .hero-content::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 1px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, var(--spine-color, var(--accent)), transparent);
    opacity: 0.3;
    z-index: -1;
  }
}

.hero-title {
  font-size: clamp(2rem, 8vw, 7rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.title-line {
  display: block;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}

.hero-tagline.typing-active::after {
  content: '_';
  color: var(--accent);
  animation: blink 0.8s steps(1) infinite;
}

.hero-description {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.stat-divider {
  color: var(--border);
  font-size: 1.5rem;
}

/* Hero Terminal Decoration */
.hero-decoration {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-terminal {
  width: 300px;
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.terminal-bar {
  background: var(--terminal-bar-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.t-title {
  margin-left: 0.4rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex: 1;
}

.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.t-line {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.t-prompt {
  color: var(--accent);
  flex-shrink: 0;
}

.t-output {
  color: var(--terminal-output-color);
  padding-left: 1.2rem;
}

.t-cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

/* ── Talent Section ─────────────────────────────────────────── */
.talent-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.talent-card {
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1;
}

.card-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.8;
}

.card-tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.card-tags li::before {
  content: '> ';
  color: var(--text-muted);
}

.card-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--card-bar-bg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.talent-card:hover .card-accent-bar {
  transform: scaleX(1);
}

/* ── Industries Section ─────────────────────────────────────── */
.industries-section {
  background: var(--bg-primary);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.industry-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.industry-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.25;
  color: var(--text-primary);
}

.industry-icon {
  font-size: 2.5rem;
  opacity: 0.8;
  filter: grayscale(0.3);
}

.industry-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.industry-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.8;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  background: rgba(255,255,255,0.02);
}

/* ── Partners Section ───────────────────────────────────────── */
.partners-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.partners-text {
  padding: 2.5rem;
}

.partners-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.partners-text p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.partners-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pillar-icon {
  font-size: 0.5rem;
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Network Diagram */
.partners-visual {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.network-diagram {
  position: relative;
  width: 220px;
  height: 220px;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-lines line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dash 2s linear infinite;
}

.node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
}

.node-center {
  width: 44px; height: 44px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card-hover);
  color: var(--accent);
  border-color: var(--cta-border);
  font-size: 0.7rem;
  box-shadow: 0 0 12px var(--node-glow);
  animation: none;
}

.node-a { width: 36px; height: 36px; top:  -2px; left: 50%; transform: translate(-50%, 0); }
.node-b { width: 36px; height: 36px; top:  30px; right:  0; }
.node-c { width: 36px; height: 36px; bottom: 10px; right: 20px; }
.node-d { width: 36px; height: 36px; bottom: 10px; left: 20px; }
.node-e { width: 36px; height: 36px; top:  30px; left:  0; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.footer-motto {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-location {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  transition: color var(--transition);
  word-break: break-all;
}

.contact-link:hover { color: var(--text-primary); }

.contact-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--status-glow); }
  50%       { opacity: 0.65; box-shadow: 0 0 3px var(--status-glow-dim); }
}

@keyframes dash {
  to { stroke-dashoffset: -16; }
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Large Desktop (Cockpit Layout) ────────────────────────── */
@media (min-width: 1200px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 7rem 3rem 4rem;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 80vh;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    --spine-offset: 50%; /* center of the gap between the two grid columns */
  }

  /* Digital Spine – vertical gold data line */
  .hero-inner::before {
    content: "";
    position: absolute;
    left: var(--spine-offset);
    top: 10%;
    width: 1px;
    height: 80%;
    background: linear-gradient(to bottom,
      transparent,
      var(--spine-color),
      var(--spine-color),
      transparent);
    box-shadow: 0 0 15px var(--spine-glow);
    z-index: 0;
    pointer-events: none;
  }

  /* BNE_HQ vertical text decor – sits in center gap, behind the Terminal */
  .hero-inner::after {
    content: "[ BNE_HQ // DATA_LINK ]";
    position: absolute;
    left: var(--spine-offset);
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    opacity: 0.3;
    letter-spacing: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    background-color: var(--bg-color);
    padding: 15px 0;
  }

  .hero-content {
    margin: 0;
    max-width: 640px;
    z-index: 2;
  }

  .hero-decoration {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 2;
  }

  .hero-terminal {
    width: 100%;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-glow);
  }

  .hero-terminal:hover {
    transform: translateY(-5px) scale(1.02);
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav-loc { display: none; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero-inner {
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-content {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  .hero-decoration {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-shrink: 0;
  }

  .hero-terminal {
    width: 280px;
  }
}

@media (max-width: 900px) {
  .hero-decoration { display: none; }
  .hero-blueprint { display: none; }
  .hero-aunz-map { display: none; }

  .partners-content {
    grid-template-columns: 1fr;
  }

  .partners-visual {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .cta-link {
    border: none;
    box-shadow: none;
    padding: 0.75rem 0;
    margin-top: 0.25rem;
  }

  .nav-toggle { display: flex; }

  .nav-status { display: none; }

  .theme-toggle { margin-right: 0.25rem; }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .partners-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .talent-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile Landscape (short screens / rotated phones) ─────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 3rem);
  }

  .hero-decoration {
    display: none;
  }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  :root {
    --transition: 0s;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Explicitly disable the Brisbane pulse ring */
  .brisbane-ring {
    animation: none;
  }
}
