@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  /* Backgrounds — neutral dark, orange is accent only */
  --bg:           #0a0a0a;
  --bg-surface:   #131313;
  --bg-card:      #1a1a1a;
  --bg-card-2:    #222222;

  /* Brand / fire */
  --fire:         #f97316;
  --ember:        #fb923c;
  --fire-dim:     rgba(249, 115, 22, 0.1);
  --fire-glow:    rgba(249, 115, 22, 0.22);
  --red:          #ef4444;
  --amber:        #f59e0b;
  --green:        #34d399;

  /* Text — neutral cool white */
  --text:         #eeeeee;
  --text-muted:   #dfb99f;
  --text-dim:     #444444;

  /* Borders — neutral with orange accent on hover/active */
  --border:       rgba(249, 115, 22, 0.22);
  --border-dim:   rgba(249, 115, 22, 0.14);
  --border-solid: #2a2a2a;

  /* Fonts */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Radii — sharper for editorial feel */
  --r-sm:  3px;
  --r-md:  6px;
  --r-lg:  10px;
  --r-xl:  16px;

  /* Effects */
  --glow:        0 0 48px rgba(249, 115, 22, 0.18);
  --glow-strong: 0 0 80px rgba(249, 115, 22, 0.28);
  --card-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --t:           0.2s ease;

  --wf-shell: 1200px;
}

/* =====================================================
   LIGHT MODE TOKEN OVERRIDES
   ===================================================== */
/* =====================================================
   LIGHT MODE — warm amber / golden hour palette
   ===================================================== */
[data-theme="light"] {
  --bg:           #fff7ed;   /* orange-50:  warm cream */
  --bg-surface:   #ffedd5;   /* orange-100: soft amber */
  --bg-card:      #ffffff;
  --bg-card-2:    #fff7ed;
  --text:         #431407;   /* orange-950: deep readable brown */
  --text-muted:   #9a3412;   /* orange-800 */
  --text-dim:     #c2825a;   /* warm mid-tone */
  --border:       rgba(249, 115, 22, 0.38);
  --border-dim:   rgba(249, 115, 22, 0.18);
  --border-solid: #fed7aa;   /* orange-200 */
  --fire-dim:     rgba(249, 115, 22, 0.14);
  --glow:         0 0 32px rgba(249, 115, 22, 0.2);
  --card-shadow:  0 2px 16px rgba(249, 115, 22, 0.1);
}

/* Nav */
[data-theme="light"] .wf-header {
  background: rgba(255, 252, 247, 0.98) !important;
  border-bottom-color: #fed7aa !important;
}
[data-theme="light"] .wf-nav > ul > li > a { color: #9a3412 !important; }
[data-theme="light"] .wf-nav > ul > li > a:hover { color: #431407 !important; background: rgba(249,115,22,0.08) !important; }
[data-theme="light"] .wf-nav .submenu { background: #fff7ed !important; border-color: #fed7aa !important; }
[data-theme="light"] .wf-nav .submenu a { color: #9a3412 !important; }
[data-theme="light"] .wf-nav .submenu a:hover { background: rgba(249,115,22,0.12) !important; color: var(--fire) !important; }
[data-theme="light"] .wf-brand { color: #431407 !important; }
[data-theme="light"] .wf-nav-toggle { border-color: #fed7aa !important; background: rgba(249,115,22,0.06) !important; }
[data-theme="light"] .wf-nav-toggle span { background: #9a3412 !important; }
[data-theme="light"] .wf-theme-toggle { background: rgba(255,255,255,0.88) !important; }

/* Buttons */
[data-theme="light"] .wf-btn-ghost { background: rgba(249,115,22,0.08) !important; color: #431407 !important; border-color: #fed7aa !important; }
[data-theme="light"] .wf-btn-ghost:hover { background: rgba(249,115,22,0.15) !important; border-color: var(--fire) !important; }

/* Surfaces & cards */
[data-theme="light"] .wf-surface { background: #ffedd5 !important; }
[data-theme="light"] .wf-tech-card { background: #fff !important; }
[data-theme="light"] .wf-tech-card:hover { background: #fff7ed !important; }
[data-theme="light"] .wf-tech-grid { background: #fed7aa !important; border-color: #fed7aa !important; }
[data-theme="light"] .wf-stats-row { background: #fff !important; border-color: #fed7aa !important; }
[data-theme="light"] .wf-stat-divider { background: #fed7aa !important; }
[data-theme="light"] .wf-hero-tags span { border-color: #fed7aa !important; color: #9a3412 !important; }
[data-theme="light"] .wf-hero-frame { border-color: #fed7aa !important; box-shadow: 0 12px 48px rgba(249,115,22,0.15) !important; }
[data-theme="light"] .wf-sim-card { border-color: #fed7aa !important; }

/* Footer */
[data-theme="light"] .wf-footer { background: #ffedd5 !important; border-top-color: #fed7aa !important; }
[data-theme="light"] .wf-footer-name { color: #431407 !important; }
[data-theme="light"] .wf-footer-links a { color: #c2825a !important; }
[data-theme="light"] .wf-footer-links a:hover { color: var(--fire) !important; }

/* Form inputs */
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: #fff !important; border-color: #fed7aa !important; color: #431407 !important;
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
  border-color: var(--fire) !important; box-shadow: 0 0 0 3px rgba(249,115,22,0.15) !important;
}
[data-theme="light"] .field label { color: #9a3412 !important; }
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder { color: #c2825a !important; }

/* Portal */
[data-theme="light"] .request-card { background: #fff7ed !important; border-color: #fed7aa !important; }
[data-theme="light"] .request-label { color: #431407 !important; }
[data-theme="light"] .request-id { color: var(--fire) !important; }
[data-theme="light"] .status-card { background: #fff !important; border-color: #fed7aa !important; }
[data-theme="light"] .panel { background: #fff !important; border-color: #fed7aa !important; }
[data-theme="light"] .globe-shell { background: #fff7ed !important; border-color: #fed7aa !important; }
[data-theme="light"] .globe-chip { background: rgba(67,20,7,0.82) !important; color: #fef0de !important; }
[data-theme="light"] .schema-card { background: #ffedd5 !important; border-color: #fed7aa !important; }
[data-theme="light"] .schema-card li { background: #fff !important; color: #9a3412 !important; }
[data-theme="light"] .portal-hero { background: linear-gradient(135deg, #fff7ed, #ffedd5) !important; border-bottom-color: #fed7aa !important; }
[data-theme="light"] .hero-badges span { background: rgba(249,115,22,0.08) !important; color: #9a3412 !important; border-color: #fed7aa !important; }
[data-theme="light"] .d3-globe-ocean { fill: #2b6cb0 !important; stroke: rgba(20,60,120,0.4) !important; }
[data-theme="light"] .d3-country { fill: #5a9e4a !important; stroke: #3d7a35 !important; }
[data-theme="light"] .d3-country.is-hover { fill: #6dbf58 !important; }

/* Articles */
[data-theme="light"] .article-body { color: #7c2d12 !important; }
[data-theme="light"] .article-header { border-bottom-color: #fed7aa !important; }
[data-theme="light"] .article-header h1 { color: #431407 !important; }
[data-theme="light"] .article-header time { color: #9a3412 !important; font-weight: 600; }
[data-theme="light"] .article-body,
[data-theme="light"] .article-body li,
[data-theme="light"] .article-body p { color: #7c2d12 !important; font-weight: 500; }
[data-theme="light"] .article-body h1,
[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .article-body h4 { color: #431407 !important; }
[data-theme="light"] .article-body strong { color: #431407 !important; }
[data-theme="light"] .article-body a { color: #c2410c !important; font-weight: 600; }
[data-theme="light"] .article-header { border-bottom-color: #fed7aa !important; }
[data-theme="light"] .article-body blockquote { background: rgba(249,115,22,0.08) !important; }
[data-theme="light"] .article-body code { background: #ffedd5 !important; border-color: #fed7aa !important; color: #c2410c !important; }
[data-theme="light"] .article-body pre { background: #ffedd5 !important; border-color: #fed7aa !important; }
[data-theme="light"] .article-body pre code { color: #7c2d12 !important; font-weight: 500; }
[data-theme="light"] .article-body .highlight {
  background: #ffedd5 !important;
  border: 1px solid #fed7aa !important;
  border-radius: var(--r-md);
  overflow: hidden;
}
[data-theme="light"] .article-body .highlight pre {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
}
[data-theme="light"] .article-body .highlight code {
  background: transparent !important;
  border: none !important;
  color: #7c2d12 !important;
}
[data-theme="light"] .article-body .highlight pre *,
[data-theme="light"] .article-body .highlight code * {
  color: #7c2d12 !important;
  background: transparent !important;
}

/* Team */
[data-theme="light"] .team-v2 { color: #431407 !important; }
[data-theme="light"] .team-v2-card,
[data-theme="light"] .team-v2__mentor,
[data-theme="light"] .team-v2__closing { background: #fff !important; border-color: #fed7aa !important; }
[data-theme="light"] .team-v2__stats > div { background: #fff !important; border-color: #fed7aa !important; }
[data-theme="light"] .team-v2-card__body h3 { color: #431407 !important; }
[data-theme="light"] .team-v2-card__body ul { color: #9a3412 !important; }

/* =====================================================
   THEME TOGGLE BUTTON
   ===================================================== */
.wf-theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(249,115,22,0.07);
  border: 1px solid var(--border-dim);
  cursor: pointer; color: var(--text-muted); font-size: 0.95rem; line-height: 1;
  transition: all var(--t); flex-shrink: 0;
}
.wf-theme-toggle:hover { background: var(--fire-dim); border-color: var(--border); color: var(--fire); }
[data-theme="light"] .wf-theme-toggle { background: rgba(249,115,22,0.08) !important; border-color: #fed7aa !important; color: #9a3412 !important; }
[data-theme="light"] .wf-theme-toggle:hover { background: rgba(249,115,22,0.18) !important; border-color: var(--fire) !important; color: var(--fire) !important; }
.wf-theme-icon--light { display: none; }
.wf-theme-icon--dark  { display: inline; }
[data-theme="light"] .wf-theme-icon--light { display: inline; }
[data-theme="light"] .wf-theme-icon--dark  { display: none; }

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease, color 0.25s ease;
}

main { padding: 0 !important; }

a { color: var(--fire); text-decoration: none; transition: color var(--t); }
a:hover, a:focus-visible { color: var(--ember); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Tachyons / Ananke overrides */
.avenir             { font-family: var(--font-body) !important; }
.bg-near-white      { background: var(--bg) !important; }
.bg-white           { background: var(--bg-card) !important; }
.near-white         { color: var(--text) !important; }
.mid-gray           { color: var(--text-muted) !important; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,0.22); }
.nested-copy-line-height { color: var(--text-muted) !important; font-weight: 500; text-shadow: 0 1px 1px rgba(0,0,0,0.22); }
.pb7                { padding-bottom: 0 !important; }

/* Scrollbar */
::-webkit-scrollbar              { width: 4px; }
::-webkit-scrollbar-track        { background: var(--bg); }
::-webkit-scrollbar-thumb        { background: rgba(249,115,22,0.28); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover  { background: var(--fire); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =====================================================
   LAYOUT SHELL
   ===================================================== */
.wf-shell {
  width: min(100% - 2.5rem, var(--wf-shell));
  margin-inline: auto;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.wf-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  background: rgba(18, 12, 8, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-solid);
  transition: border-color var(--t), box-shadow var(--t);
}
.wf-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 24px rgba(249,115,22,0.08);
}

.wf-nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 58px;
}

.wf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Brand */
.wf-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text) !important;
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: color var(--t); flex-shrink: 1; min-width: 0;
}
.wf-brand:hover, .wf-brand:focus-visible { color: var(--fire) !important; text-decoration: none !important; }
.wf-brand-fire { color: var(--fire); }
.wf-brand-text { color: inherit; min-width: 0; }

/* Hamburger */
.wf-nav-toggle {
  display: none;
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-sm);
  width: 38px; height: 38px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; transition: border-color var(--t), background var(--t);
}
.wf-nav-toggle:hover { border-color: var(--border); background: var(--fire-dim); }
.wf-nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text-muted); border-radius: 1px;
}

/* Nav links */
.wf-nav ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.wf-nav > ul > li { position: relative; }
.wf-nav > ul > li > a {
  display: block; padding: 0.4rem 0.75rem;
  color: var(--text-muted) !important;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  text-decoration: none !important;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t); white-space: nowrap;
}
.wf-nav > ul > li > a:hover,
.wf-nav > ul > li.has-children:hover > a {
  color: #ffd7bd !important; background: rgba(249,115,22,0.12); text-decoration: none !important;
}

/* Dropdown */
.wf-nav .has-children { position: relative; }
.wf-nav .submenu {
  display: none; position: absolute;
  top: calc(100% - 2px); left: 0; min-width: 230px;
  padding: 0.35rem; border-radius: var(--r-md);
  border: 1px solid var(--border-solid);
  background: rgba(20, 12, 8, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6); z-index: 100;
}
.wf-nav .has-children:hover > .submenu,
.wf-nav .has-children:focus-within > .submenu { display: block; }
.wf-nav .submenu li { display: block; }
.wf-nav .submenu a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--r-sm);
  color: var(--text-muted) !important; font-size: 0.9rem; font-weight: 700;
  text-decoration: none !important; transition: all var(--t);
}
.wf-nav .submenu a:hover { background: rgba(249,115,22,0.14); color: #ffd7bd !important; text-decoration: none !important; }

.wf-submenu-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border-dim);
  border-radius: var(--r-sm);
  background: rgba(249,115,22,0.08);
  color: var(--text-muted);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.wf-submenu-toggle:hover { background: rgba(249,115,22,0.14); border-color: var(--border); color: #ffd7bd; }
.wf-submenu-toggle span { display: block; transform: translateY(-1px); }
.wf-nav .has-children.is-expanded > .wf-submenu-toggle span { transform: rotate(45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .wf-nav-shell { gap: 0.75rem; }
  .wf-brand { font-size: 1rem; letter-spacing: 0.02em; }
  .wf-brand img { height: 22px !important; }
  .wf-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wf-nav-toggle { display: flex; }
  .wf-nav {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    background: rgba(20, 12, 8, 0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-solid);
    padding: 0.85rem 1.1rem 1.25rem;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .wf-header.is-open .wf-nav { display: block; }
  .wf-nav ul { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .wf-nav li { width: 100%; }
  .wf-nav > ul > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
  }
  .wf-nav > ul > li > a {
    padding: 0.8rem 0.9rem; font-size: 0.98rem;
    background: rgba(255,255,255,0.02);
  }
  .wf-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .wf-nav .has-children .submenu {
    display: none; position: static;
    border: none; box-shadow: none; backdrop-filter: none;
    background: rgba(249,115,22,0.05);
    padding: 0.15rem 0 0.35rem 0;
    border-radius: var(--r-sm); min-width: 0;
    grid-column: 1 / -1;
    margin-top: -0.1rem;
  }
  .wf-nav .has-children.is-expanded .submenu { display: block; }
  .wf-nav .submenu li { width: 100%; }
  .wf-nav .submenu a {
    font-size: 0.92rem;
    padding: 0.75rem 0.9rem 0.75rem 1.25rem;
    color: #f1c7aa !important;
  }
}

@media (max-width: 900px) {
  [data-theme="light"] .wf-nav {
    background: rgba(255, 251, 245, 0.99) !important;
    border-bottom-color: #fed7aa !important;
  }
  [data-theme="light"] .wf-nav > ul > li > a {
    background: rgba(249,115,22,0.05) !important;
  }
  [data-theme="light"] .wf-nav .has-children .submenu {
    background: rgba(249,115,22,0.08) !important;
  }
}

@media (max-width: 560px) {
  .wf-nav-shell { height: 60px; }
  .wf-header-actions { gap: 0.45rem; }
  .wf-theme-toggle, .wf-nav-toggle { width: 36px; height: 36px; }
  .wf-brand { font-size: 0.92rem; }
  .wf-nav { top: 60px; max-height: calc(100vh - 60px); }
}

/* =====================================================
   WILDFIRE TWIN
   ===================================================== */
.wt-page {
  position: relative;
  padding: 4.5rem 0 5rem;
}
.wt-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 26rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(249,115,22,0.16), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(251,146,60,0.12), transparent 24%);
  pointer-events: none;
}
.wt-hero,
.wt-section {
  position: relative;
  z-index: 1;
}
.wt-hero {
  margin-bottom: 3rem;
}
.wt-section {
  margin-top: 2rem;
}
.wt-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  color: var(--text);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.75rem 0 1rem;
}
.wt-lead {
  max-width: 52rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.wt-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 32rem);
  gap: 1.2rem;
  margin-top: 2rem;
}
.wt-intro-card,
.wt-card,
.wt-detail-card {
  background: linear-gradient(180deg, rgba(28,20,16,0.95), rgba(18,14,12,0.98));
  border: 1px solid var(--border-solid);
  box-shadow: var(--card-shadow);
}
.wt-intro-card {
  border-radius: var(--r-lg);
  padding: 1.2rem 1.25rem;
}
.wt-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fire);
}
.wt-intro-card p {
  color: var(--text-muted);
  line-height: 1.7;
}
.wt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.wt-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--r-lg);
  text-decoration: none !important;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}
.wt-card:hover,
.wt-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(38,24,18,0.98), rgba(24,16,12,1));
  box-shadow: 0 14px 36px rgba(0,0,0,0.48), 0 0 26px rgba(249,115,22,0.09);
}
.wt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wt-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd7bd;
}
.wt-jump {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.wt-logo-shell,
.wt-detail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--r-lg) - 2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,237,0.94));
  min-height: 9.5rem;
  padding: 1rem;
  border: 1px solid rgba(249,115,22,0.16);
}
.wt-logo-shell img,
.wt-detail-logo img {
  width: 100%;
  max-width: 13rem;
  max-height: 6rem;
  object-fit: contain;
}
.wt-logo-shell--text,
.wt-detail-logo--text {
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(251,146,60,0.06));
}
.wt-logo-shell--text span,
.wt-detail-logo--text span {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #ffe2ce;
}
.wt-card h3,
.wt-detail-card h3 {
  font-size: 1.35rem;
  margin: 0;
}
.wt-card p,
.wt-detail-card p {
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}
.wt-detail-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.15rem;
}
.wt-detail-card {
  border-radius: var(--r-lg);
  padding: 1.35rem;
}
.wt-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}
.wt-detail-head > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wt-detail-logo {
  min-height: 8.5rem;
  align-self: start;
}
.wt-detail-logo--brand {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,247,0.95));
  padding: 1.1rem;
}
.wt-detail-logo--brand img {
  max-width: 11rem;
  max-height: 4.8rem;
}
.wt-detail-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

[data-theme="light"] .wt-intro-card,
[data-theme="light"] .wt-card,
[data-theme="light"] .wt-detail-card {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}
[data-theme="light"] .wt-kicker,
[data-theme="light"] .wt-jump {
  color: #9a3412;
  font-weight: 700;
}
[data-theme="light"] .wt-chip {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.22);
  color: #9a3412;
  font-weight: 700;
}
[data-theme="light"] .wt-card h3,
[data-theme="light"] .wt-detail-card h3,
[data-theme="light"] .wt-title {
  color: #431407;
  font-weight: 800;
}
[data-theme="light"] .wt-card:hover,
[data-theme="light"] .wt-card:focus-visible {
  background: linear-gradient(180deg, #ffffff, #ffedd5);
}
[data-theme="light"] .wt-jump,
[data-theme="light"] .wt-card p,
[data-theme="light"] .wt-detail-card p,
[data-theme="light"] .wt-lead,
[data-theme="light"] .wt-intro-card p {
  color: #9a3412;
  font-weight: 600;
}

@media (max-width: 980px) {
  .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-detail-head { grid-template-columns: 1fr; }
  .wt-detail-logo {
    max-width: 14rem;
  }
}

@media (max-width: 720px) {
  .wt-page { padding: 3.2rem 0 4rem; }
  .wt-intro-grid,
  .wt-grid {
    grid-template-columns: 1fr;
  }
  .wt-title { font-size: clamp(2.2rem, 13vw, 3.2rem); }
  .wt-card,
  .wt-detail-card,
  .wt-intro-card { padding: 1.05rem; }
}

/* =====================================================
   HERO — Split: text left, simulation GIF right
   ===================================================== */
.wf-hero {
  position: relative;
  overflow: hidden;
}

/* Floating ember particles */
.wf-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.wf-ember {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  opacity: 0;
  background: var(--fire);
  box-shadow: 0 0 6px var(--fire), 0 0 12px rgba(249,115,22,0.4);
  animation: riseEmber var(--dur, 9s) var(--delay, 0s) ease-in infinite;
}
@keyframes riseEmber {
  0%   { opacity: 0;   transform: translateX(0)                  scale(1);    bottom: 0; }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translateX(var(--drift, 30px)) scale(0.15); bottom: 105vh; }
}
[data-theme="light"] .wf-ember {
  background: var(--fire);
  box-shadow: 0 0 6px var(--fire), 0 0 14px rgba(249,115,22,0.35);
}

/* Fire gradient background — rises from the bottom like real embers */
.wf-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 88% 55% at 50% 108%, rgba(249,115,22,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 58% 44% at 12% 96%,  rgba(239,68,68,0.16)  0%, transparent 56%),
    radial-gradient(ellipse 52% 38% at 88% 96%,  rgba(251,146,60,0.13) 0%, transparent 52%),
    radial-gradient(ellipse 32% 24% at 50% 118%, rgba(249,115,22,0.30) 0%, transparent 46%);
  animation: heroPulse 9s ease-in-out infinite alternate;
  pointer-events: none;
}
/* Dot-grid tech overlay on the hero */
.wf-hero-glow::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(249,115,22,0.11) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 25%, transparent 78%);
  pointer-events: none;
}
@keyframes heroPulse {
  0%   { opacity: 1; }
  100% { opacity: 0.72; }
}

/* Light mode: deeper amber gradient — bg is already warm so go stronger */
[data-theme="light"] .wf-hero-glow {
  background:
    radial-gradient(ellipse 88% 55% at 50% 108%, rgba(249,115,22,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 58% 44% at 12% 96%,  rgba(220,60,20,0.22)  0%, transparent 56%),
    radial-gradient(ellipse 52% 38% at 88% 96%,  rgba(251,146,60,0.20) 0%, transparent 52%),
    radial-gradient(ellipse 32% 24% at 50% 118%, rgba(249,115,22,0.42) 0%, transparent 46%) !important;
}
[data-theme="light"] .wf-hero-glow::after {
  background-image: radial-gradient(circle, rgba(249,115,22,0.14) 1px, transparent 1px) !important;
}

.wf-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - 58px);
  padding: 5rem 0 4.5rem;
}

/* Left side — text */
.wf-hero-text { padding: 1.5rem 0; }

.wf-eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fire);
  margin-bottom: 1.75rem;
}
.wf-eyebrow-dot {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--fire);
  box-shadow: 0 0 8px var(--fire);
  animation: markPulse 2.2s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 8px var(--fire), 0 0 3px var(--fire); }
  50%       { box-shadow: 0 0 3px var(--fire); }
}

.wf-hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.wf-title-fire { display: block; color: var(--fire); }
.wf-title-main { display: block; color: var(--text); }
.wf-title-sub  {
  display: block; color: var(--text-muted);
  text-transform: none; letter-spacing: -0.02em;
  font-weight: 700; font-size: 0.68em; margin-top: 0.15em;
}

.wf-hero-lead {
  font-family: var(--font-body);
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.72; max-width: 440px; margin-bottom: 2.5rem;
}

.wf-hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem;
}

.wf-hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.wf-hero-tags span {
  font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.06em; color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-dim); border-radius: var(--r-sm);
}

/* Right side — frame */
.wf-hero-visual { position: relative; }

.wf-hero-frame {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  overflow: hidden; background: #030303;
  box-shadow: 0 12px 56px rgba(0,0,0,0.65);
  transition: border-color 0.4s;
}
.wf-hero-frame:hover { border-color: var(--border); }

.wf-hero-gif {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}

.wf-hero-frame-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.wf-frame-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fire);
}
.wf-frame-name {
  font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.55);
}

@media (max-width: 900px) {
  .wf-hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 2rem; padding: 3.5rem 0 3rem; }
  .wf-hero-visual { order: -1; }
  .wf-hero-title { font-size: clamp(3.5rem, 14vw, 6rem); }
  .wf-hero-lead { max-width: 100%; }
}
@media (max-width: 480px) {
  .wf-hero-title { font-size: clamp(3rem, 18vw, 5rem); }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.wf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.78rem 1.75rem;
  font-family: var(--font-body); font-size: 0.93rem; font-weight: 700;
  border-radius: var(--r-md); text-decoration: none !important;
  transition: all 0.2s; letter-spacing: -0.01em;
}
.wf-btn-primary {
  background: var(--fire); color: #0c0c0c !important;
  box-shadow: 0 4px 22px rgba(249,115,22,0.36);
}
.wf-btn-primary:hover, .wf-btn-primary:focus-visible {
  background: var(--ember); box-shadow: 0 6px 32px rgba(249,115,22,0.52);
  transform: translateY(-2px); color: #0c0c0c !important; text-decoration: none !important;
}
.wf-btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text) !important;
  border: 1px solid var(--border-dim);
}
.wf-btn-ghost:hover, .wf-btn-ghost:focus-visible {
  background: rgba(255,255,255,0.09); border-color: var(--border);
  transform: translateY(-2px); color: var(--text) !important; text-decoration: none !important;
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.wf-admin-page {
  padding: 3.25rem 0 4.5rem;
}

.wf-admin-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-solid);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.16), transparent 28%),
    linear-gradient(180deg, rgba(28,20,16,0.97), rgba(14,12,11,0.99));
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.wf-admin-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(249,115,22,0.1), transparent 62%);
  pointer-events: none;
}

.wf-admin-hero-copy,
.wf-admin-controls,
.wf-admin-panel-head,
.wf-admin-card {
  position: relative;
  z-index: 1;
}

.wf-admin-hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0.35rem 0 0.7rem;
  text-transform: uppercase;
}

.wf-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wf-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wf-admin-stat {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border-solid);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24,18,14,0.95), rgba(16,14,13,0.98));
  box-shadow: var(--card-shadow);
}

.wf-admin-stat-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wf-admin-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--text);
}

.wf-admin-stat-fire .wf-admin-stat-value { color: var(--fire); }
.wf-admin-stat-amber .wf-admin-stat-value { color: var(--amber); }
.wf-admin-stat-green .wf-admin-stat-value { color: var(--green); }

.wf-card.wf-admin-card {
  padding: 1.4rem;
  border: 1px solid var(--border-solid);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24,18,14,0.96), rgba(14,12,11,0.99));
  box-shadow: var(--card-shadow);
}

.wf-admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wf-admin-panel-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.wf-message {
  min-height: 1.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.08);
  color: #b9f7de;
  font-size: 0.92rem;
  font-weight: 600;
}

.wf-message.is-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.wf-admin-jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wf-admin-job-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--border-solid);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(29,21,17,0.98), rgba(19,15,13,1));
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.wf-admin-job-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 24px rgba(249,115,22,0.08);
}

.wf-admin-job-card-pending {
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.wf-admin-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wf-admin-job-head h3 {
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.wf-admin-job-id {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
}

.wf-admin-job-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.wf-status,
.wf-admin-run-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.wf-status {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.wf-status-queued {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.25);
}

.wf-status-complete {
  background: rgba(52, 211, 153, 0.12);
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.24);
}

.wf-admin-run-pill {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border-color: var(--border-dim);
}

.wf-admin-job-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.wf-admin-job-meta > div {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.wf-admin-job-meta span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wf-admin-job-meta strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wf-row-actions.wf-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.wf-row-actions.wf-admin-actions button {
  appearance: none;
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.wf-row-actions.wf-admin-actions button:hover,
.wf-row-actions.wf-admin-actions button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border);
  background: rgba(249,115,22,0.1);
}

.wf-empty {
  padding: 2.25rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(249,115,22,0.04);
}

[data-theme="light"] .wf-admin-hero {
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #fff7ed);
  border-color: #fed7aa;
}

[data-theme="light"] .wf-admin-stat,
[data-theme="light"] .wf-card.wf-admin-card,
[data-theme="light"] .wf-admin-job-card {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border-color: #fed7aa;
}

[data-theme="light"] .wf-admin-stat-label,
[data-theme="light"] .wf-admin-job-meta span {
  color: #9a3412;
}

[data-theme="light"] .wf-admin-job-head h3,
[data-theme="light"] .wf-admin-panel-head h2,
[data-theme="light"] .wf-admin-hero-copy h1,
[data-theme="light"] .wf-admin-job-meta strong,
[data-theme="light"] .wf-admin-stat-value {
  color: #431407;
}

[data-theme="light"] .wf-message {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.18);
}

[data-theme="light"] .wf-message.is-error {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.16);
}

[data-theme="light"] .wf-admin-run-pill,
[data-theme="light"] .wf-row-actions.wf-admin-actions button,
[data-theme="light"] .wf-admin-job-meta > div {
  background: rgba(249,115,22,0.05);
  border-color: #fed7aa;
  color: #7c2d12;
}

[data-theme="light"] .wf-empty {
  background: rgba(249,115,22,0.05);
  border-color: #fdba74;
  color: #9a3412;
}

@media (max-width: 960px) {
  .wf-admin-stats,
  .wf-admin-jobs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .wf-admin-page {
    padding: 2.25rem 0 3.5rem;
  }

  .wf-admin-hero,
  .wf-admin-panel-head,
  .wf-admin-job-head {
    flex-direction: column;
  }

  .wf-admin-controls,
  .wf-admin-job-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .wf-admin-stats,
  .wf-admin-jobs-grid,
  .wf-admin-job-meta {
    grid-template-columns: 1fr;
  }

  .wf-card.wf-admin-card,
  .wf-admin-hero {
    padding: 1.1rem;
    border-radius: 20px;
  }
}

/* =====================================================
   SECTION STRUCTURE
   ===================================================== */
.wf-section-wrap { padding: 5.5rem 1.5rem; }
.wf-surface { background: var(--bg-surface); }

.wf-section-label {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.wf-label-rule { display: block; width: 28px; height: 2px; background: var(--fire); flex-shrink: 0; }
.wf-label-text {
  font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire);
}

.wf-section-header { margin-bottom: 3rem; }

.wf-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 0.9rem; line-height: 1.05;
}

.wf-section-sub {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--text-muted); max-width: 520px; line-height: 1.65;
}

.wf-section-cta { text-align: center; margin-top: 2.5rem; }

.wf-divider { border: none; height: 1px; background: var(--border-solid); margin: 0; }

/* =====================================================
   SIMULATION CARDS — Cinematic overlay style
   ===================================================== */
.wf-sims-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; margin-bottom: 0;
}
@media (max-width: 768px) { .wf-sims-grid { grid-template-columns: 1fr; } }

.wf-sim-card {
  position: relative; border: 1px solid var(--border-solid); border-radius: var(--r-md);
  overflow: hidden; background: #050505; transition: border-color 0.3s, box-shadow 0.3s;
}
.wf-sim-card:hover { border-color: var(--border); box-shadow: 0 0 32px rgba(249,115,22,0.1); }

.wf-sim-media { position: relative; aspect-ratio: 4/3; }
.wf-sim-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s ease;
}
.wf-sim-card:hover .wf-sim-media img { transform: scale(1.03); }

.wf-sim-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 0.875rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    transparent 35%,
    transparent 50%,
    rgba(0,0,0,0.85) 100%
  );
}
.wf-sim-overlay-top {}
.wf-sim-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fire);
  background: rgba(0,0,0,0.72); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.18rem 0.5rem;
}
.wf-sim-overlay-bottom {}
.wf-sim-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800; text-transform: uppercase; color: #fff;
  margin-bottom: 0.3rem; line-height: 1.05;
}
.wf-sim-desc {
  font-family: var(--font-body);
  font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.5;
}

/* =====================================================
   TECH CARDS — Joined grid, strong typography
   ===================================================== */
.wf-tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border-solid);
  border: 1px solid var(--border-solid); border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 768px) { .wf-tech-grid { grid-template-columns: 1fr; } }

.wf-tech-card {
  background: var(--bg-card); padding: 2.75rem 2.25rem;
  position: relative; transition: background 0.25s;
}
.wf-tech-card:hover { background: var(--bg-card-2); }
.wf-tech-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--fire), var(--ember));
  opacity: 0; transition: opacity 0.25s;
}
.wf-tech-card:hover::after { opacity: 1; }

.wf-tech-header { margin-bottom: 1.25rem; }
.wf-tech-kicker {
  display: block; font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fire); margin-bottom: 0.5rem;
}
.wf-tech-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800; text-transform: uppercase; color: var(--text); line-height: 1.05;
}
.wf-tech-desc {
  font-family: var(--font-body);
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.72; margin-bottom: 1.5rem;
}
.wf-tech-link {
  font-family: var(--font-body); font-size: 0.87rem; font-weight: 600; color: var(--fire);
  text-decoration: none !important; display: inline-flex; align-items: center;
  gap: 0.3rem; transition: gap 0.2s, color 0.2s;
}
.wf-tech-link:hover { gap: 0.6rem; color: var(--ember); text-decoration: none !important; }

/* =====================================================
   MISSION — Stats row + editorial split
   ===================================================== */
.wf-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--border-solid); border-radius: var(--r-lg);
  overflow: hidden; background: var(--bg-card); margin-bottom: 4rem;
}
.wf-stat-big { padding: 2.75rem 1.5rem; text-align: center; }
.wf-stat-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; text-transform: uppercase;
  color: var(--fire); line-height: 1; margin-bottom: 0.5rem;
}
.wf-stat-label {
  font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.wf-stat-divider { width: 1px; height: 56px; background: var(--border-solid); }

.wf-mission-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.wf-mission-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; text-transform: uppercase;
  line-height: 1.05; color: var(--text);
}
.wf-mission-right p {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--text-muted); line-height: 1.78; margin-bottom: 2rem;
}
.wf-mission-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 780px) {
  .wf-stats-row { grid-template-columns: 1fr 1fr; }
  .wf-stat-divider { display: none; }
  .wf-stat-big { border-bottom: 1px solid var(--border-solid); }
  .wf-mission-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.wf-footer { background: var(--bg-surface); border-top: 1px solid var(--border-solid); }
.wf-footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 2rem 0; color: var(--text-muted); font-size: 0.88rem;
}
.wf-footer-inner p { margin: 0; font-family: var(--font-body); }
.wf-footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.wf-footer-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.03em;
}
.wf-footer-name .fire { color: var(--fire); }
.wf-footer-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.wf-footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.wf-footer-links a { font-size: 0.85rem; color: var(--text-dim); transition: color var(--t); text-decoration: none !important; }
.wf-footer-links a:hover { color: var(--fire); text-decoration: none !important; }
@media (max-width: 600px) { .wf-footer-inner { flex-direction: column; align-items: flex-start; } }

/* =====================================================
   ARTICLE / SINGLE PAGE
   ===================================================== */
.article-content { max-width: 780px; margin: 0 auto; padding: 4.5rem 1.5rem 5rem; }
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-solid); }
.article-header h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: 0.75rem; color: var(--text);
}
.article-header time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.article-body { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.78; color: var(--text-muted); }
.article-body h1, .article-body h2,
.article-body h3, .article-body h4 { color: var(--text); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h2 { font-size: 1.65rem; font-weight: 700; }
.article-body h3 { font-size: 1.28rem; font-weight: 600; }
.article-body p  { margin-bottom: 1.3rem; }
.article-body a  { color: var(--fire); }
.article-body a:hover { color: var(--ember); text-decoration: underline; }
.article-body img { border-radius: var(--r-md); margin: 1.5rem 0; border: 1px solid var(--border-solid); box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.article-body blockquote { border-left: 3px solid var(--fire); padding: 0.9rem 1.4rem; margin: 1.5rem 0; background: rgba(249,115,22,0.06); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-muted); font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body code { font-family: var(--font-mono); font-size: 0.87em; background: rgba(255,255,255,0.06); border: 1px solid var(--border-dim); border-radius: 3px; padding: 0.1em 0.4em; color: var(--ember); }
.article-body pre { background: var(--bg-surface); border: 1px solid var(--border-solid); border-radius: var(--r-md); padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.article-body pre code { background: none; border: none; padding: 0; color: var(--text-muted); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0 2.2rem;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-solid);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.article-body table thead {
  background: linear-gradient(90deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08));
  border-bottom: 2px solid var(--border);
}
.article-body table th {
  padding: 0.75rem 1.1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fire);
  white-space: nowrap;
}
.article-body table td {
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border-solid);
  vertical-align: middle;
  color: var(--text-muted);
  line-height: 1.5;
}
.article-body table tbody tr:last-child td { border-bottom: none; }
.article-body table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.025); }
.article-body table tbody tr:hover { background: rgba(249,115,22,0.05); }
.article-body table code {
  font-family: var(--font-mono);
  font-size: 0.83em;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 3px;
  padding: 0.12em 0.45em;
  color: var(--ember);
  white-space: nowrap;
}

/* =====================================================
   TEAM PAGE
   ===================================================== */
.team-v2 {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.75rem 1.5rem 5rem;
  color: var(--text) !important;
}
.team-v2__hero {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 2.25rem;
  border: 1px solid var(--border-solid);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.14), transparent 28%),
    linear-gradient(180deg, rgba(28,20,16,0.96), rgba(14,12,11,0.98));
  overflow: hidden;
  text-align: center;
}
.team-v2__hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 62%);
  pointer-events: none;
}
.team-v2__hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.6rem, 7vw, 5.4rem) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.01em;
  color: var(--text) !important;
  margin-bottom: 0.85rem !important;
  line-height: 0.94;
}
.team-v2__hero > p {
  font-family: var(--font-body) !important;
  color: var(--text-muted) !important;
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.72;
}
.team-v2__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 0.85rem;
  display: inline-block;
}
.team-v2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 52rem;
  margin: 0 auto;
}
.team-v2__stats > div {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: 18px !important;
  padding: 1rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.team-v2__stats > div:hover {
  border-color: var(--border) !important;
  transform: translateY(-2px);
  background: rgba(249,115,22,0.06) !important;
}
.team-v2__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--fire) !important;
  line-height: 0.95;
  margin-bottom: 0.3rem;
}
.team-v2__stats span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.team-v2__topband {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.team-v2__group-image {
  margin: 0;
  border-radius: 22px !important;
  border: 1px solid var(--border-solid) !important;
  background: linear-gradient(180deg, rgba(26,22,20,0.96), rgba(15,13,12,1)) !important;
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--card-shadow);
}
.team-v2__group-image img {
  width: 100%;
  height: 100%;
  min-height: 23rem;
  max-height: 32rem;
  object-fit: cover;
  opacity: 0.94;
}
.team-v2__mentor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-content: start;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(26,22,20,0.98), rgba(15,13,12,1)) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: 22px !important;
  transition: border-color var(--t), transform var(--t);
  box-shadow: var(--card-shadow);
}
.team-v2__mentor:hover { border-color: var(--border) !important; transform: translateY(-2px); }
.team-v2__mentor-photo img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}
.team-v2__kicker { color: var(--fire) !important; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.55rem; }
.team-v2__mentor-copy h2,
.team-v2__closing h2 {
  color: var(--text) !important;
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.05;
}
.team-v2__mentor-copy p,
.team-v2__closing p { color: var(--text-muted) !important; margin: 0; line-height: 1.68; }
.team-v2__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem !important;
  margin-bottom: 2rem;
}
.team-v2-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28,22,18,0.98), rgba(14,13,12,1)) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: 20px !important;
  box-shadow: var(--card-shadow) !important;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.team-v2-card:hover {
  border-color: var(--border) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.42), 0 0 24px rgba(249,115,22,0.08) !important;
}
.team-v2-card__media {
  position: relative;
  background: #050505;
  overflow: hidden;
}
.team-v2-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.22));
}
.team-v2-card__media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  display: block;
}
.team-v2-card__body { padding: 1rem 1rem 1.05rem; }
.team-v2-card__body h3 {
  color: var(--text) !important;
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
  line-height: 1.15;
}
.team-v2-card__role {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(249,115,22,0.12) !important;
  border: 1px solid var(--border) !important;
  color: #ffd7bd !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.team-v2-card__body ul {
  color: var(--text-muted) !important;
  margin: 0;
  padding-left: 1.05rem;
}
.team-v2-card__body li { margin: 0.3rem 0; line-height: 1.5; }
.team-v2__closing {
  padding: 1.45rem 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.12), transparent 28%),
    linear-gradient(180deg, rgba(22,18,16,0.98), rgba(14,13,12,1)) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: 22px !important;
  text-align: center;
}

[data-theme="light"] .team-v2__hero {
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.14), transparent 28%),
    linear-gradient(180deg, #fffdf9, #fff7ed) !important;
  border-color: #fed7aa !important;
}
[data-theme="light"] .team-v2__hero h1,
[data-theme="light"] .team-v2__mentor-copy h2,
[data-theme="light"] .team-v2__closing h2,
[data-theme="light"] .team-v2-card__body h3 { color: #431407 !important; }
[data-theme="light"] .team-v2__hero > p,
[data-theme="light"] .team-v2__mentor-copy p,
[data-theme="light"] .team-v2__closing p,
[data-theme="light"] .team-v2-card__body ul { color: #9a3412 !important; }
[data-theme="light"] .team-v2__stats > div,
[data-theme="light"] .team-v2__group-image,
[data-theme="light"] .team-v2__mentor,
[data-theme="light"] .team-v2-card,
[data-theme="light"] .team-v2__closing {
  background: linear-gradient(180deg, #ffffff, #fff7ed) !important;
  border-color: #fed7aa !important;
}
[data-theme="light"] .team-v2__stats span { color: #c2825a !important; }
[data-theme="light"] .team-v2-card__role {
  color: #9a3412 !important;
  background: rgba(249,115,22,0.1) !important;
}

@media (max-width: 1080px) {
  .team-v2__topband { grid-template-columns: 1fr; }
  .team-v2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-v2-card { grid-column: auto; }
}
@media (max-width: 720px) {
  .team-v2 { padding: 3rem 1.25rem 4rem; }
  .team-v2__hero { padding: 1.5rem 1.25rem 1.6rem; }
  .team-v2__stats { grid-template-columns: 1fr; }
  .team-v2__grid { grid-template-columns: 1fr; }
  .team-v2-card { grid-column: auto; }
  .team-v2__group-image img { min-height: 16rem; }
}

/* =====================================================
   SOURCES PAGE
   ===================================================== */
.sources-page {
  padding: 3.8rem 0 5rem;
}
.sources-hero {
  margin-bottom: 2.4rem;
}
.sources-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
  margin: 0.7rem 0 0.9rem;
  color: var(--text);
}
.sources-lead {
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}
.sources-section {
  margin-top: 2.6rem;
}
.sources-overview,
.sources-grid,
.sources-columns,
.sources-ack-grid {
  margin-top: 1.35rem;
}
.sources-overview {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}
.sources-feature-card,
.sources-card,
.sources-column-card,
.sources-ack-card,
.sources-note {
  background: linear-gradient(180deg, rgba(26,21,18,0.98), rgba(14,13,12,1));
  border: 1px solid var(--border-solid);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.sources-feature-card,
.sources-card,
.sources-column-card,
.sources-note {
  padding: 1.2rem 1.2rem 1.25rem;
}
.sources-feature-card h2,
.sources-card h3,
.sources-column-card h3,
.sources-ack-card h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
}
.sources-feature-card h2 {
  font-size: 1.4rem;
}
.sources-feature-card p,
.sources-card p,
.sources-note p,
.sources-ack-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.68;
}
.sources-feature-card a,
.sources-card a,
.sources-column-card a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
}
.sources-inline-list,
.sources-column-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}
.sources-inline-list li,
.sources-column-card li {
  margin: 0.35rem 0;
  line-height: 1.55;
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sources-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sources-note {
  margin-top: 1rem;
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(40,24,16,0.95), rgba(18,14,12,1));
}
.sources-ack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.sources-ack-card {
  padding: 1.2rem;
  text-align: center;
}
.sources-ack-card--dark {
  background: linear-gradient(180deg, #1f2337, #171923);
  border-color: rgba(255,255,255,0.08);
}
.sources-ack-logo,
.sources-ack-stack {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.sources-ack-logo img {
  max-width: 8rem;
  max-height: 3.5rem;
  object-fit: contain;
}
.sources-ack-stack img {
  max-width: 4.6rem;
  max-height: 4.2rem;
  object-fit: contain;
}

[data-theme="light"] .sources-feature-card,
[data-theme="light"] .sources-card,
[data-theme="light"] .sources-column-card,
[data-theme="light"] .sources-ack-card,
[data-theme="light"] .sources-note {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border-color: #fed7aa;
}
[data-theme="light"] .sources-title,
[data-theme="light"] .sources-feature-card h2,
[data-theme="light"] .sources-card h3,
[data-theme="light"] .sources-column-card h3,
[data-theme="light"] .sources-ack-card h3 {
  color: #431407;
}
[data-theme="light"] .sources-lead,
[data-theme="light"] .sources-feature-card p,
[data-theme="light"] .sources-card p,
[data-theme="light"] .sources-column-card ul,
[data-theme="light"] .sources-inline-list,
[data-theme="light"] .sources-note p,
[data-theme="light"] .sources-ack-card p {
  color: #9a3412;
}
[data-theme="light"] .sources-ack-card--dark {
  background: linear-gradient(180deg, #2b344d, #1e2638);
  border-color: #44506c;
}
[data-theme="light"] .sources-ack-card--dark h3,
[data-theme="light"] .sources-ack-card--dark p {
  color: #fff7ed;
}

@media (max-width: 900px) {
  .sources-overview,
  .sources-grid,
  .sources-columns,
  .sources-ack-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   DYNAMICAL METHODS PAGE
   ===================================================== */
.methods-page {
  padding: 3.75rem 0 5rem;
}
.methods-shell {
  width: min(100% - 2.5rem, 1240px);
}
.methods-hero {
  margin-bottom: 2rem;
  padding: 1.8rem 1.9rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-solid);
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.14), transparent 28%),
    linear-gradient(180deg, rgba(24,20,17,0.98), rgba(12,11,10,1));
}
.methods-hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--text);
}
.methods-hero p {
  max-width: 48rem;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.72;
  margin: 0;
}
.methods-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.methods-sidebar {
  position: sticky;
  top: 78px;
}
.methods-panel {
  padding: 1rem 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid var(--border-solid);
  background: linear-gradient(180deg, rgba(24,20,17,0.98), rgba(12,11,10,1));
  box-shadow: var(--card-shadow);
}
.methods-panel + .methods-panel {
  margin-top: 1rem;
}
.methods-panel-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
}
.methods-panel #TableOfContents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.methods-panel #TableOfContents li {
  margin: 0;
}
.methods-panel #TableOfContents a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
}
.methods-panel #TableOfContents a:hover {
  background: rgba(249,115,22,0.08);
  color: #ffd7bd;
  text-decoration: none;
}
.methods-mini-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}
.methods-mini-list li {
  margin: 0.32rem 0;
  line-height: 1.5;
}
.methods-article {
  min-width: 0;
}
.methods-body {
  padding: 1.6rem 1.8rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-solid);
  background: linear-gradient(180deg, rgba(20,17,15,0.98), rgba(10,10,10,1));
  box-shadow: var(--card-shadow);
}
.methods-body > h2:first-child,
.methods-body > h3:first-child {
  margin-top: 0;
}
.methods-body h2 {
  padding-top: 0.4rem;
  font-size: 1.9rem;
}
.methods-body h3 {
  font-size: 1.35rem;
}
.methods-body h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fire);
}
.methods-body pre {
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.08);
}
.methods-body blockquote {
  margin-inline: 0;
}

/* ── Tables inside methods pages ── */
.methods-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0 2.2rem;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-solid);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.methods-body table thead {
  background: linear-gradient(90deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08));
  border-bottom: 2px solid var(--border);
}
.methods-body table th {
  padding: 0.75rem 1.1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fire);
  white-space: nowrap;
}
.methods-body table td {
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border-solid);
  vertical-align: middle;
  color: var(--text-muted);
  line-height: 1.5;
}
.methods-body table tbody tr:last-child td {
  border-bottom: none;
}
.methods-body table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.025);
}
.methods-body table tbody tr:hover {
  background: rgba(249,115,22,0.05);
}
/* code inside table cells */
.methods-body table code {
  font-family: var(--font-mono);
  font-size: 0.83em;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 3px;
  padding: 0.12em 0.45em;
  color: var(--ember);
  white-space: nowrap;
}

/* light-mode table overrides */
[data-theme="light"] .methods-body table {
  border-color: #fed7aa;
  box-shadow: 0 2px 12px rgba(249,115,22,0.08);
}
[data-theme="light"] .methods-body table thead {
  background: rgba(249,115,22,0.12);
  border-bottom-color: #fed7aa;
}
[data-theme="light"] .methods-body table th { color: #c2410c; }
[data-theme="light"] .methods-body table td { color: #7c2d12; border-bottom-color: #fed7aa; }
[data-theme="light"] .methods-body table tbody tr:nth-child(odd) { background: rgba(249,115,22,0.04); }
[data-theme="light"] .methods-body table tbody tr:hover { background: rgba(249,115,22,0.09); }
[data-theme="light"] .methods-body table code { background: #ffedd5; border-color: #fed7aa; color: #c2410c; }

[data-theme="light"] .methods-hero,
[data-theme="light"] .methods-panel,
[data-theme="light"] .methods-body {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border-color: #fed7aa;
}
[data-theme="light"] .methods-hero h1,
[data-theme="light"] .methods-body h2,
[data-theme="light"] .methods-body h3 {
  color: #431407;
}
[data-theme="light"] .methods-hero p,
[data-theme="light"] .methods-mini-list,
[data-theme="light"] .methods-panel #TableOfContents a {
  color: #9a3412;
}
[data-theme="light"] .methods-panel #TableOfContents a:hover {
  background: rgba(249,115,22,0.08);
  color: #7c2d12;
}

@media (max-width: 980px) {
  .methods-layout {
    grid-template-columns: 1fr;
  }
  .methods-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .methods-page {
    padding: 3rem 0 4rem;
  }
  .methods-hero,
  .methods-body {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

/* =====================================================
   SCROLL FADE-UP
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.in { opacity: 1; transform: translateY(0); }
  .fade-up:nth-child(2) { transition-delay: 0.1s; }
  .fade-up:nth-child(3) { transition-delay: 0.2s; }
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 600px) {
  .wf-section-wrap { padding: 3.5rem 1.25rem; }
  .wf-hero-actions { flex-direction: column; align-items: stretch; }
  .wf-btn { justify-content: center; }
  .wf-mission-actions { flex-direction: column; }
}

/* =====================================================
   MISC / COMPAT
   ===================================================== */
main article.cf { display: none !important; }
.wrfximg { max-width: 100%; height: auto; border-radius: var(--r-md); }
@keyframes wf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================
   SIMULATION PAGE — /dynamic-site/
   ===================================================== */
.ds-page { padding: 4rem 1.5rem 5rem; }

.ds-header { margin-bottom: 2.5rem; }
.ds-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; text-transform: uppercase;
  color: var(--text); line-height: 1.05; margin-bottom: 1rem;
}
.ds-lead {
  font-family: var(--font-body);
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.72; max-width: 680px;
}
.ds-lead code { font-family: var(--font-mono); font-size: 0.87em; background: var(--fire-dim); border: 1px solid var(--border-dim); border-radius: var(--r-sm); padding: 0.1em 0.4em; color: var(--ember); }

.ds-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; text-transform: uppercase;
  color: var(--text); margin-bottom: 1.5rem; margin-top: 0.5rem;
}

/* Gallery — 3-col on wide, 2-col on mid, 1-col on mobile */
.ds-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 3rem;
}
@media (max-width: 960px) { .ds-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ds-gallery { grid-template-columns: 1fr; } }

/* NASA tag variant */
.wf-sim-tag--nasa {
  background: rgba(30, 80, 180, 0.75) !important;
  border-color: rgba(80, 140, 255, 0.5) !important;
  color: #a8c4ff !important;
}

/* CTA strip */
.ds-cta {
  border: 1px solid var(--border-solid);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 1.75rem 2rem;
}
.ds-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.ds-cta-label {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800; text-transform: uppercase;
  color: var(--text); margin-bottom: 0.2rem;
}
.ds-cta-sub { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-muted); }

[data-theme="light"] .ds-cta { background: #fff !important; border-color: #fed7aa !important; }

.sim-live-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.sim-live-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--fire), var(--ember));
}
.sim-live-header {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
}
.sim-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--fire); box-shadow: 0 0 8px var(--fire);
  animation: markPulse 2s ease-in-out infinite;
}
.sim-live-kicker {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire);
}
.sim-live-desc {
  font-family: var(--font-body); font-size: 1rem; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 1rem;
}
.sim-live-link {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500;
  color: var(--fire) !important; text-decoration: none !important;
  background: var(--fire-dim); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.5rem 1rem;
  margin-bottom: 1.25rem; transition: all var(--t);
}
.sim-live-link:hover { background: rgba(249,115,22,0.2); text-decoration: none !important; }

.sim-live-tips {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.sim-live-tips li {
  font-family: var(--font-body); font-size: 0.93rem; color: var(--text-muted);
  padding-left: 1.2rem; position: relative; line-height: 1.55;
}
.sim-live-tips li::before {
  content: '→'; position: absolute; left: 0; color: var(--fire); font-size: 0.8rem;
}

.sim-vpn-notice {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--bg-surface); border: 1px solid var(--border-dim);
  border-radius: var(--r-md); padding: 1rem 1.1rem;
  margin-top: 0.25rem;
}
.sim-vpn-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.sim-vpn-notice p {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.6; margin: 0 0 0.4rem;
}
.sim-vpn-notice p strong { color: var(--text); }
.sim-vpn-notice a {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--fire) !important;
  text-decoration: none !important; transition: color var(--t);
}
.sim-vpn-notice a:hover { color: var(--ember) !important; text-decoration: underline !important; }
.sim-vpn-notice > div { flex: 1; }

/* Light mode overrides for sim live block */
[data-theme="light"] .sim-live-block { background: #fff !important; border-color: var(--border) !important; }
[data-theme="light"] .sim-live-link { background: rgba(249,115,22,0.1) !important; border-color: var(--border) !important; }
[data-theme="light"] .sim-vpn-notice { background: #ffedd5 !important; border-color: #fed7aa !important; }

/* =====================================================
   IGNITION PORTAL — dynamic-portal page
   ===================================================== */
.dynamic-page { padding: 0; }
.dynamic-portal {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); min-height: 100vh;
}

/* --- Hero --- */
.portal-hero {
  position: relative; overflow: hidden;
  padding: 3.5rem 2rem 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(249,115,22,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(239,68,68,0.1) 0%, transparent 50%),
    var(--bg-surface);
  border-bottom: 1px solid var(--border-solid);
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(249,115,22,0.06) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.5;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fire); margin: 0 0 0.9rem;
}
.hero-copy h1 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.1;
  margin: 0 0 0.9rem; max-width: 600px; color: var(--text); text-transform: uppercase;
}
.hero-copy .lede {
  font-family: var(--font-body); font-size: 1rem; color: var(--text-muted);
  line-height: 1.7; margin: 0 0 1.5rem; max-width: 540px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-actions .primary, .hero-actions button.primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.5rem; background: var(--fire); color: #0c0c0c;
  font-family: var(--font-body); font-size: 0.93rem; font-weight: 700;
  border: none; border-radius: var(--r-md); cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 18px rgba(249,115,22,0.35); transition: all 0.2s;
}
.hero-actions .primary:hover, .hero-actions button.primary:hover {
  background: var(--ember); box-shadow: 0 6px 26px rgba(249,115,22,0.5); transform: translateY(-1px);
}
.hero-actions .ghost, a.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.5rem; background: rgba(255,255,255,0.05); color: var(--text);
  font-family: var(--font-body); font-size: 0.93rem; font-weight: 600;
  border: 1px solid var(--border-dim); border-radius: var(--r-md);
  text-decoration: none; transition: all 0.2s;
}
.hero-actions .ghost:hover, a.ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--border); transform: translateY(-1px); text-decoration: none; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-badges span {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 0.26rem 0.65rem;
  background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2);
  border-radius: 999px; color: #f2c9ad; letter-spacing: 0.05em;
}

/* Status cards */
.hero-status { display: flex; flex-direction: column; gap: 0.75rem; min-width: 200px; position: relative; z-index: 1; }
.status-card {
  background: var(--bg-card); border: 1px solid var(--border-solid);
  border-radius: var(--r-md); padding: 0.9rem 1.1rem; transition: border-color 0.2s;
}
.status-card:hover { border-color: var(--border); }
.status-card .label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #b89e8d; margin: 0 0 0.3rem;
}
.status-card .value {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--fire); margin: 0 0 0.2rem; line-height: 1; text-transform: uppercase;
}
.status-card .value.good { color: var(--green); }
.status-card .meta { font-size: 0.78rem; color: #bfa999; margin: 0; font-family: var(--font-mono); }

/* --- Main grid --- */
.portal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 2rem 2rem; max-width: 1200px; margin: 0 auto;
}

/* Shared panel */
.panel {
  background: var(--bg-card); border: 1px solid var(--border-solid);
  border-radius: var(--r-lg); padding: 1.75rem; transition: border-color 0.2s;
}
.panel:hover { border-color: rgba(249,115,22,0.12); }
.panel-header { margin-bottom: 1.5rem; }
.panel-header h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin: 0 0 0.4rem; text-transform: uppercase;
}
.panel-header p { font-family: var(--font-body); font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* --- Form --- */
.request-form { display: flex; flex-direction: column; gap: 1rem; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.field input, .field select, .field textarea {
  background: var(--bg-surface); border: 1px solid var(--border-dim);
  border-radius: var(--r-sm); padding: 0.6rem 0.85rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%; -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--fire); box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.form-footer .pill {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-dim);
  border-radius: 999px; padding: 0.25rem 0.65rem;
}
.form-footer button.primary, .request-form button.primary {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.4rem;
  background: var(--fire); color: #0c0c0c; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 700; border: none; border-radius: var(--r-md);
  cursor: pointer; box-shadow: 0 4px 16px rgba(249,115,22,0.32); transition: all 0.2s;
}
.form-footer button.primary:hover, .request-form button.primary:hover {
  background: var(--ember); box-shadow: 0 6px 24px rgba(249,115,22,0.48); transform: translateY(-1px);
}
.helper { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin: 0; }
.toast {
  display: none; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.35);
  border-radius: var(--r-sm); padding: 0.7rem 1rem; color: var(--green);
  font-size: 0.9rem; font-weight: 600;
}
.toast.show, .toast.visible { display: block; }

/* --- Globe panel --- */
.globe-shell {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--border-solid); margin-bottom: 1rem;
}
.globe-map { width: 100%; min-height: 320px; }
.globe-map svg { display: block; }
.globe-tooltip {
  position: absolute; background: rgba(12,12,12,0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.5rem 0.75rem;
  font-size: 0.82rem; color: var(--text); pointer-events: none; z-index: 10; white-space: nowrap;
}
.globe-overlay { position: absolute; bottom: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.globe-chip {
  background: rgba(12,12,12,0.82); backdrop-filter: blur(6px); border: 1px solid var(--border-dim);
  border-radius: 999px; padding: 0.22rem 0.65rem; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted); display: flex; gap: 0.4rem; align-items: center;
}
.globe-chip button {
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-dim); border-radius: 3px;
  color: var(--text); padding: 0.1rem 0.45rem; font-size: 0.8rem; cursor: pointer; transition: background 0.15s; line-height: 1.4;
}
.globe-chip button:hover { background: var(--fire-dim); color: var(--fire); border-color: var(--border); }
.globe-legend { display: flex; gap: 1.25rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.globe-legend > div { display: flex; align-items: center; gap: 0.4rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.queued  { background: var(--amber); box-shadow: 0 0 5px var(--amber); }
.dot.running { background: var(--fire);  box-shadow: 0 0 5px var(--fire); }
.dot.complete { background: var(--green); box-shadow: 0 0 5px var(--green); }

/* Request list */
.request-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.request-card {
  display: flex !important; align-items: center; justify-content: space-between;
  gap: 0.75rem; background: var(--bg-card) !important; border: 1px solid var(--border-solid) !important;
  border-radius: var(--r-sm); padding: 0.65rem 0.9rem; font-size: 0.85rem;
  transition: border-color 0.2s; margin-bottom: 0 !important;
}
.request-card:hover { border-color: var(--border) !important; }
.request-card > div:first-child { flex: 1; min-width: 0; }
.request-id { font-family: var(--font-mono); font-size: 0.73rem; color: var(--fire); font-weight: 600; margin: 0 0 0.15rem !important; line-height: 1.3; }
.request-label { color: var(--text); font-weight: 500; font-size: 0.9rem; margin: 0 0 0.15rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.request-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin: 0 !important; line-height: 1.3; }
.request-tag { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }
.req-status  { font-family: var(--font-mono); font-size: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; }
.request-tag.queued,  .req-status.queued   { background: rgba(245,158,11,0.15); color: #f4b74a; border: 1px solid rgba(245,158,11,0.3); }
.request-tag.running, .req-status.running  { background: rgba(249,115,22,0.14); color: #ff6b3d; border: 1px solid rgba(249,115,22,0.3); }
.request-tag.complete,.req-status.complete { background: rgba(52,211,153,0.12); color: #38c172; border: 1px solid rgba(52,211,153,0.3); }

/* D3 Globe styles */
.d3-globe-ocean { fill: #0a1f3d !important; stroke: rgba(249,115,22,0.3) !important; stroke-width: 1.5; }
.d3-country { fill: #2d6a9f !important; stroke: #1a4a78 !important; stroke-width: 0.6; transition: fill 0.15s; }
.d3-country.is-hover { fill: #3a85c0 !important; }
.globe-map svg { width: 100% !important; max-width: 100%; display: block; }

/* --- Lower panels --- */
.portal-lower, .portal-notes { padding: 0 2rem 2rem; max-width: 1200px; margin: 0 auto; }
.plan-list { color: var(--text-muted); padding-left: 1.4rem; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.95rem; line-height: 1.6; }
.plan-list strong { color: var(--text); }
.schema-card { background: var(--bg-surface); border: 1px solid var(--border-solid); border-radius: var(--r-md); padding: 1.1rem 1.25rem; }
.schema-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fire); margin: 0 0 0.6rem; }
.schema-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.schema-card li { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); padding: 0.4rem 0.6rem; background: rgba(255,255,255,0.03); border-radius: var(--r-sm); border-left: 2px solid var(--fire); }
.note-panel h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.6rem; color: var(--text); text-transform: uppercase; }
.note-panel > p { font-family: var(--font-body); font-size: 0.93rem; color: var(--text-muted); margin: 0 0 1.25rem; line-height: 1.65; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.note-grid h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 0.35rem; text-transform: uppercase; }
.note-grid p { font-family: var(--font-body); font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Responsive portal */
@media (max-width: 900px) {
  .portal-hero  { grid-template-columns: 1fr; }
  .hero-status  { flex-direction: row; flex-wrap: wrap; }
  .portal-grid  { grid-template-columns: 1fr; }
  .note-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .portal-hero, .portal-grid, .portal-lower, .portal-notes { padding-left: 1.25rem; padding-right: 1.25rem; }
  .field-group  { grid-template-columns: 1fr; }
}
