/* Layout: full-bleed 3D hero, then a centered 1180px column of sections.
   Single dark "red team ops" look: void black, signal red for offense, terminal green for output. */
:root {
  --bg: #05070a;
  --bg-2: #0a0e14;
  --panel: rgba(13, 18, 26, 0.72);
  --panel-solid: #0d121a;
  --line: #1a222d;
  --line-bright: #2a3542;
  --fg: #eef2f6;
  --fg-2: #bcc6d1;
  --muted: #8592a1;
  --red: #ff2a4f;
  --red-dim: color-mix(in srgb, var(--red) 14%, transparent);
  --green: #3dffa2;
  --green-dim: color-mix(in srgb, var(--green) 12%, transparent);
  --amber: #ffb547;
  --white: #f4f7fa;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(2.1rem, 4.4vw, 3.4rem);
  --step-hero: clamp(3rem, 9.4vw, 7.2rem);

  --radius: 10px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); font-size: 0.88em; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.green { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -40px; background: var(--red); color: #fff; padding: 6px 12px; z-index: 50; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Page-wide faint grid + scanlines */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  opacity: 0.35;
}

/* ── Header ───────────────────────────────────────── */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 21;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-mono); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--red-dim); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  font-size: 0.85rem;
}
.brand-name { letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--muted); padding-block: 4px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a:not(.nav-cta)::before { content: "/"; color: var(--red); opacity: 0; margin-right: 4px; transition: opacity 0.15s; }
.nav-links a:not(.nav-cta):hover::before, .nav-links a[aria-current="page"]::before { opacity: 1; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav-links .nav-cta { color: var(--fg); padding: 7px 14px; border: 1px solid var(--line-bright); border-radius: 8px; }
.nav-links .nav-cta:hover { border-color: var(--red); color: var(--red); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-bright); border-radius: 8px;
  background: transparent; color: var(--fg); cursor: pointer;
}
.menu-btn { display: none; margin-left: auto; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--panel-solid); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 14px var(--gutter-l);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding-block: 12px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { border: 0; border-radius: 0; padding-inline: 0; color: var(--red); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--red); }
}

/* ── Buttons, chips, tags ─────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red {
  background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 75%, #ff7a3d)); color: #fff; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-red:hover { color: #fff; filter: brightness(1.12); }
.btn-red::after { content: "→"; transition: transform 0.15s; }
.btn-red:hover::after { transform: translateX(3px); }
.btn-ghost { background: color-mix(in srgb, var(--green) 6%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.btn-ghost:hover { color: var(--green); border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--green) 60%, transparent); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: 6px 12px; border: 1px solid var(--line-bright); border-radius: 6px;
  background: var(--panel); transition: border-color 0.15s, color 0.15s;
}
.chips li:hover { border-color: var(--green); color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--green); text-decoration: none; }
.text-link { color: var(--red); text-decoration: none; font-size: 0.88rem; }
.text-link:hover { text-decoration: underline; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 11vw, 140px) clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: center;
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 32%, transparent 60%),
              linear-gradient(0deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, transparent 22%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.prompt { font-size: 0.85rem; }
.hero-name {
  position: relative; display: inline-block; align-self: flex-start;
  font-size: var(--step-hero); font-weight: 700; letter-spacing: -0.04em;
  text-transform: uppercase; line-height: 0.9;
  background: linear-gradient(180deg, #ffffff 20%, #aab4bf 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(-3px 0 0 color-mix(in srgb, var(--red) 75%, transparent)) drop-shadow(3px 0 0 color-mix(in srgb, var(--green) 45%, transparent)) drop-shadow(0 0 30px color-mix(in srgb, var(--red) 30%, transparent));
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch::before, .glitch::after { -webkit-text-fill-color: currentColor; }
.glitch::before { color: var(--red); transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); }
.glitch::after { color: var(--green); transform: translate(3px, 0); clip-path: inset(60% 0 8% 0); }
.glitch.is-glitching::before { opacity: 0.85; animation: glitch-a 0.35s steps(2) 2; }
.glitch.is-glitching::after { opacity: 0.85; animation: glitch-b 0.35s steps(2) 2; }
@keyframes glitch-a { 0% { clip-path: inset(5% 0 70% 0); } 50% { clip-path: inset(40% 0 30% 0); transform: translate(-5px, 1px); } 100% { clip-path: inset(75% 0 5% 0); } }
@keyframes glitch-b { 0% { clip-path: inset(70% 0 5% 0); } 50% { clip-path: inset(20% 0 55% 0); transform: translate(5px, -1px); } 100% { clip-path: inset(5% 0 80% 0); } }

.hero-role { font-size: clamp(0.92rem, 2vw, 1.12rem); max-width: 100%; }
.hero-role .sep { color: var(--muted); margin-inline: 4px; }
.rotator { color: var(--red); }
.caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.18em; margin-left: 2px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline { max-width: 54ch; color: var(--fg-2); font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-dim), 0 0 12px var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 3%, transparent), 0 0 18px var(--green); } }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 28px 0 0; max-width: 760px;
  border: 1px solid var(--line-bright); border-radius: var(--radius);
  background: rgba(10, 14, 20, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); line-height: 1; font-variant-numeric: tabular-nums; }
.stat:nth-child(1) dd { color: var(--red); text-shadow: 0 0 22px color-mix(in srgb, var(--red) 45%, transparent); }
.stat:nth-child(2) dd { color: var(--green); text-shadow: 0 0 22px color-mix(in srgb, var(--green) 40%, transparent); }
.stat:nth-child(3) dd { color: var(--white); text-shadow: 0 0 22px rgba(255, 255, 255, 0.3); }
.stat:nth-child(4) dd { color: var(--red); text-shadow: 0 0 22px color-mix(in srgb, var(--red) 45%, transparent); }
.stat dt { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.06em; }
.scroll-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 0.72rem; color: var(--muted); text-decoration: none; letter-spacing: 0.15em; text-transform: uppercase;
}

/* ── Ticker ───────────────────────────────────────── */
.ticker { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(10, 14, 20, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; }
.ticker-label { flex: none; padding: 16px 20px 16px var(--gutter-l); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; border-right: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; }
.ticker-track { display: flex; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-list { display: flex; flex: none; gap: 48px; padding-inline: 24px; animation: marquee 32s linear infinite; }
.ticker-list li { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; color: #c3ccd6; }
.ticker-list li:nth-child(even):not(.muted) { color: var(--green); }
.ticker-list li.muted { color: var(--muted); }
.ticker:hover .ticker-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── Sections ─────────────────────────────────────── */
.section { position: relative; padding-block: clamp(80px, 11vw, 136px); }
.section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-bright) 20%, color-mix(in srgb, var(--red) 45%, transparent) 50%, var(--line-bright) 80%, transparent);
}
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head.row { flex-direction: row; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.74rem; color: var(--red); letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.section h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 20ch; }
.section h2 {
  text-shadow: 1px 1px 0 #1b2430, 2px 2px 0 #151c26, 3px 3px 0 #10161e, 4px 4px 0 #0c1117, 6px 8px 18px rgba(0, 0, 0, 0.7);
}
h2 .red, .page-title .red {
  text-shadow: none;
  filter: drop-shadow(1px 1px 0 color-mix(in srgb, var(--red) 45%, #000)) drop-shadow(2px 2px 0 color-mix(in srgb, var(--red) 25%, #000)) drop-shadow(0 0 22px color-mix(in srgb, var(--red) 40%, transparent));
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 55%, #ffb3c1)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D tilt (driven by main.js) */
.tilt { transform-style: preserve-3d; transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s; will-change: transform; }
.tilt.tilting { transition: transform 0.06s linear, border-color 0.2s, box-shadow 0.25s; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy .section-head { margin-bottom: 8px; }
.about-copy > p { color: var(--fg-2); max-width: 62ch; font-size: 1.06rem; }
.edu { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 20px; border-top: 1px dashed var(--line-bright); }
.edu li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; font-size: 0.95rem; }

.term {
  min-width: 0; border-radius: var(--radius); overflow: hidden;
  background: rgba(6, 9, 13, 0.92); border: 1px solid var(--line-bright);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px color-mix(in srgb, var(--red) 5%, transparent), 0 0 60px -20px color-mix(in srgb, var(--red) 25%, transparent);
}
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 0.75rem; border-bottom: 1px solid var(--line); background: var(--panel-solid); }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-bright); }
.term-dots i:first-child { background: var(--red); }
.term-body {
  height: 330px; overflow-y: auto; padding: 16px 18px 6px; font-size: 0.82rem; line-height: 1.7;
  overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: var(--line-bright) transparent;
}
.term-body p { white-space: pre-wrap; }
.term-body a { color: var(--green); }
.term-input { display: flex; align-items: center; gap: 10px; padding: 6px 18px 16px; font-size: 0.82rem; }
.term-input label { flex: none; }
.term-input input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--green); font: inherit; caret-color: var(--green);
}
.term-input input::placeholder { color: #3a4654; }

/* Arsenal */
.arsenal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 27, 37, 0.85), rgba(9, 12, 17, 0.9));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-idx { position: absolute; top: 18px; right: 20px; font-size: 0.68rem; color: #4a5664; letter-spacing: 0.08em; transition: color 0.2s; }
/* Cards cycle through red / green / white accents */
.card { --accent: var(--red); }
.arsenal-grid .card:nth-child(3n+3), .identity-grid .card:nth-child(3n+2) { --accent: var(--green); }
.arsenal-grid .card:nth-child(3n+4), .identity-grid .card:nth-child(3n+3) { --accent: var(--white); }
.card:hover .card-idx { color: var(--accent); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 20px 50px -25px color-mix(in srgb, var(--accent) 50%, transparent); }
.card h3 { transition: color 0.2s; }
.card:hover h3 { color: var(--accent); }
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.card:hover .card-glow { opacity: 1; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(30px);
}
.card h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em; transform: translateZ(20px); }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; transform: translateZ(10px); }

.identity { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.sub-head { display: flex; align-items: center; gap: 16px; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.025em; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-bright), transparent); }
.identity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
@media (max-width: 1100px) { .identity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .identity-grid { grid-template-columns: minmax(0, 1fr); } }
.card-wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; row-gap: 6px; align-items: center;
  padding: 28px 30px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--red) 12%, transparent), rgba(13, 18, 26, 0.85) 55%);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}
.card-wide .card-icon { grid-row: span 2; width: 64px; height: 64px; }
.card-wide .card-icon .icon { width: 32px; height: 32px; }
.card-wide h3 { font-size: 1.7rem; letter-spacing: -0.03em; }
.card-wide p { max-width: 80ch; font-size: 1.02rem; color: var(--fg-2); }
@media (max-width: 600px) { .card-wide { grid-template-columns: minmax(0, 1fr); } .card-wide .card-icon { grid-row: auto; } }
.skills { display: flex; flex-direction: column; gap: 18px; margin-top: 48px; padding-top: 32px; border-top: 1px dashed var(--line-bright); }
.skill-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.skill-row h3 { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; color: var(--green); padding-top: 6px; }

/* Research */
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.research {
  display: flex; flex-direction: column; gap: 14px; padding: 26px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.research:hover { border-color: var(--line-bright); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); }
.research-featured {
  grid-column: 1 / -1;
  background: linear-gradient(170deg, color-mix(in srgb, var(--red) 12%, transparent), rgba(13, 18, 26, 0.8) 45%);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}
.research-featured h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; }
.research-featured > p { max-width: 75ch; font-size: 1.05rem; }
.research-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sev { padding: 3px 10px; border-radius: 4px; border: 1px solid currentColor; font-size: 0.7rem; }
.sev-critical { color: var(--red); background: var(--red-dim); }
.sev-research { color: var(--amber); }
.sev-tools, .sev-blog { color: var(--green); }
.research h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.research > p { color: #aab5c1; flex: 1; }
.research-links { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.research-links a { color: var(--red); text-decoration: none; }
.research-links a:hover { text-decoration: underline; }

/* Experience */
.timeline { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), var(--line-bright) 30%, var(--line)); }
.job { position: relative; }
.job-node { position: absolute; left: -31px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-bright); }
.job.current .job-node { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px var(--red-dim), 0 0 16px var(--red); }
.job-card { padding: 20px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.job-card:hover { border-color: var(--line-bright); transform: translateX(4px); }
.job.current .job-card { border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.job-head h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.job-head p { font-size: 0.78rem; }
.job-roles { display: flex; flex-direction: column; gap: 8px; }
.job-roles li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-left: 16px; position: relative; }
.job-roles li::before { content: "›"; position: absolute; left: 0; color: var(--red); font-family: var(--font-mono); }
.role-title { font-weight: 500; }
.job-roles .mono { font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 0.66rem; padding: 1px 7px; margin-left: 6px; border-radius: 4px; color: var(--green); background: var(--green-dim); vertical-align: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Certifications */
#certs { overflow: hidden; }
.cert-stage {
  position: relative; height: 300px; perspective: 1500px; perspective-origin: 50% 35%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --cw: 210px; --ch: 150px;
}
.cert-stage.dragging { cursor: grabbing; }
.cert-ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; padding: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r, 380px) * -1)) rotateX(-6deg) rotateY(var(--rot, 0deg));
}
.cert-ring .cert {
  position: absolute; width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  transform-style: preserve-3d; cursor: inherit;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r, 380px));
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.cert-ring .cert.front .cert-front { border-color: color-mix(in srgb, var(--red) 70%, transparent); box-shadow: 0 0 40px -10px color-mix(in srgb, var(--red) 60%, transparent); }
.cert-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.cert-controls .icon-btn { font-family: var(--font-mono); font-size: 1rem; }
.cert-controls .icon-btn:hover { border-color: var(--red); color: var(--red); }
.cert-caption { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; width: min(420px, 100%); gap: 2px; }
.cert-caption strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.cert-caption .mono { font-size: 0.75rem; }
@media (max-width: 600px) { .cert-stage { --cw: 170px; --ch: 130px; height: 250px; } }
.cert { perspective: 900px; outline: none; }
.cert-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(.2,.8,.2,1); }
.cert.front:hover .cert-inner, .cert.flipped .cert-inner { transform: rotateY(180deg); }
.cert:focus-visible .cert-face { outline: 2px solid var(--green); outline-offset: 2px; }
.cert-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border-radius: var(--radius); border: 1px solid var(--line-bright);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(20, 27, 37, 0.92), rgba(8, 11, 16, 0.95));
}
.cert-back {
  transform: rotateY(180deg); justify-content: center;
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: linear-gradient(160deg, rgba(14, 40, 30, 0.95), rgba(6, 12, 10, 0.97));
  box-shadow: 0 0 30px -10px color-mix(in srgb, var(--green) 50%, transparent) inset;
}
.cert-idx { font-size: 0.7rem; color: var(--red); }
.cert-code { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.02em; color: var(--fg); margin-top: auto; }
.cert-check { font-size: 0.7rem; color: var(--green); letter-spacing: 0.1em; }
.cert-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; color: var(--fg); }
.cert-issuer { font-size: 0.72rem; color: var(--muted); }
.section-sub { font-size: 0.9rem; }

/* Post list (home + blog) */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line); transition: background 0.2s;
}
.post-item:first-child { border-top: 1px solid var(--line); }
.post-item:hover { background: linear-gradient(90deg, var(--red-dim), transparent 60%); }
.post-item-meta { font-size: 0.76rem; padding-top: 4px; padding-left: 8px; font-variant-numeric: tabular-nums; }
.post-item-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-right: 8px; }
.post-item h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.post-item h3 a { text-decoration: none; }
.post-item h3 a:hover { color: var(--red); }
.post-item p.muted { max-width: 70ch; }

/* Contact */
.contact { background: radial-gradient(ellipse 50% 80% at 85% 50%, color-mix(in srgb, var(--red) 8%, transparent), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-grid .section-head { margin-bottom: 0; }
.contact-lede { color: var(--fg-2); max-width: 46ch; font-size: 1.05rem; }
.contact-body { display: flex; flex-direction: column; gap: 22px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email { font-size: 0.95rem; padding: 9px 14px; background: var(--panel-solid); border: 1px solid var(--line-bright); border-radius: 8px; user-select: all; word-break: break-all; }
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.socials a {
  display: block; padding: 12px 16px; border: 1px solid var(--line-bright); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.84rem; text-decoration: none; background: var(--panel);
  transition: border-color 0.15s, transform 0.15s;
}
.socials a:hover { border-color: var(--green); color: var(--fg); transform: translateY(-2px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.78rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Reveal on scroll: content is visible by default; JS adds a gentle entrance */
.reveal-ready .reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-ready .reveal.pre { opacity: 0.001; transform: translateY(24px); }

/* ── Blog index ───────────────────────────────────── */
.page-title { font-size: var(--step-hero); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.95; }
.page-lede { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.search {
  width: 100%; max-width: 440px; padding: 11px 14px;
  background: var(--panel-solid); color: var(--green);
  border: 1px solid var(--line-bright); border-radius: 8px; font-size: 0.88rem;
}
.search:focus { border-color: var(--green); outline: none; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn {
  font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer;
  padding: 5px 12px; border-radius: 6px;
  background: transparent; color: var(--fg); border: 1px solid var(--line-bright);
}
.tag-btn:hover { border-color: var(--green); }
.tag-btn[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.tag-btn[aria-pressed="true"] .muted { color: inherit; opacity: 0.75; }

/* ── Post page ────────────────────────────────────── */
.post { max-width: 800px; padding-block: 48px 80px; }
.back-link { display: inline-block; font-size: 0.82rem; text-decoration: none; color: var(--muted); margin-bottom: 32px; }
.back-link:hover { color: var(--red); }
.post-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.post-title { font-size: clamp(2.2rem, 5.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.post-lede { font-size: var(--step-1); color: var(--muted); }

.prose { font-size: 1.1rem; line-height: 1.8; color: #cdd5de; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.85rem; letter-spacing: -0.025em; margin-top: 2em; color: var(--fg); }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; color: var(--fg); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--green); }
.prose blockquote { margin-inline: 0; padding: 12px 18px; border-left: 3px solid var(--red); background: var(--red-dim); border-radius: 0 8px 8px 0; color: var(--fg); }
.prose hr { border: 0; border-top: 1px dashed var(--line-bright); margin-block: 2.2em; }
.prose img { border-radius: 8px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.prose :not(pre) > code {
  font-family: var(--font-mono); font-size: 0.85em; color: var(--green);
  padding: 2px 6px; border-radius: 4px; background: var(--panel-solid); border: 1px solid var(--line);
}
.prose .highlighter-rouge, .prose pre { position: relative; }
.prose pre {
  margin: 0; overflow-x: auto; padding: 18px 20px;
  background: #06090d; border: 1px solid var(--line-bright); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; color: var(--fg);
}
.prose pre code { font-family: inherit; }
.copy-code {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; cursor: pointer;
  padding: 4px 10px; border-radius: 4px;
  background: var(--panel-solid); color: var(--muted); border: 1px solid var(--line-bright);
  opacity: 0; transition: opacity 0.15s ease;
}
.prose .highlighter-rouge:hover .copy-code, .copy-code:focus-visible { opacity: 1; }
@media (hover: none) { .copy-code { opacity: 1; } }

/* Rouge syntax colors */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #5d6b7a; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .nt { color: var(--red); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sh, .highlight .se, .highlight .dl { color: var(--green); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh { color: var(--amber); }
.highlight .nf, .highlight .nb, .highlight .na, .highlight .nv, .highlight .vi { color: #7cc4f8; }
.highlight .o, .highlight .p { color: var(--muted); }
.highlight .gp { color: var(--red); user-select: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line-bright); border-radius: 8px; text-decoration: none; background: var(--panel); }
.post-nav-link:hover { border-color: var(--red); }
.post-nav-link span:last-child { font-family: var(--font-display); font-weight: 600; }
.post-nav-link.next { text-align: right; grid-column: 2; }

.notfound { display: flex; flex-direction: column; gap: 16px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1020px) {
  .arsenal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .research-grid { grid-template-columns: minmax(0, 1fr); }
  .research-featured { grid-row: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-vignette { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 60%, color-mix(in srgb, var(--bg) 35%, transparent) 100%); }
}
@media (max-width: 600px) {
  .arsenal-grid { grid-template-columns: minmax(0, 1fr); }
  .post-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link.next { grid-column: auto; }
  .skill-row, .edu li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .term-body { height: 300px; }
  .ticker-label { display: none; }
  .scroll-hint { display: none; }
}


/* 3D skill sphere */
.arsenal-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 32px; align-items: center; margin-bottom: 40px; }
.arsenal-head .section-head { margin-bottom: 0; }
.arsenal-lede { color: #b6c1cd; max-width: 46ch; font-size: 1.05rem; }
.sphere { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: end; cursor: grab; touch-action: pan-y; }
.sphere-tags { position: absolute; inset: 0; }
.sphere-tags li {
  position: absolute; left: 50%; top: 50%; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.82rem; color: #9fb0c2;
  will-change: transform, opacity; pointer-events: none;
}
.sphere-tags li.hot { color: var(--red); font-weight: 500; }
.sphere-tags li.id { color: var(--green); }
.sphere-core {
  position: absolute; inset: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--red) 18%, transparent), transparent 65%);
  border: 1px dashed color-mix(in srgb, var(--red) 18%, transparent);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .arsenal-head { grid-template-columns: minmax(0, 1fr); }
  .sphere { justify-self: center; max-width: 340px; }
  .sphere-tags li { font-size: 0.72rem; }
}

/* Globe drag hint */
.drag-hint { position: absolute; z-index: 1; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 28px; margin-right: 40px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.hero.dragging { cursor: grabbing; }
@media (max-width: 960px) { .drag-hint { display: none; } }

/* Timeline draws itself with scroll */
.timeline::after {
  content: ""; position: absolute; left: 9px; top: 6px; width: 2px; height: var(--fill, 0px);
  background: linear-gradient(var(--red), var(--green)); box-shadow: 0 0 12px var(--red);
}
.job.lit .job-node { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-dim); }

/* ── 3D backdrop layers ───────────────────────────── */
.bg3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -3; display: block; opacity: 0; transition: opacity 1.2s ease; }
.has-3d .bg3d { opacity: 1; }
.bg-dim { position: fixed; inset: 0; z-index: -2; background: var(--bg); opacity: 0; pointer-events: none; }
.bg-grid { z-index: -1; }
.section { background: transparent; }
.card, .research, .job-card, .socials a, .email, .chips li, .post-nav-link { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* HUD corner brackets */
.hud { position: absolute; z-index: 1; width: 64px; height: 64px; pointer-events: none; border-color: color-mix(in srgb, var(--red) 55%, transparent); border-style: solid; border-width: 0; }
.hud-tl { top: 24px; left: 24px; border-top-width: 2px; border-left-width: 2px; }
.hud-br { bottom: 24px; right: 24px; border-bottom-width: 2px; border-right-width: 2px; }
.card::before, .card::after, .research::before, .research::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--accent, var(--red)); border-style: solid; border-width: 0; opacity: 0; transition: opacity 0.2s, transform 0.25s;
}
.research { position: relative; }
.card::before, .research::before { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; transform: translate(4px, 4px); }
.card::after, .research::after { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(-4px, -4px); }
.card:hover::before, .card:hover::after, .research:hover::before, .research:hover::after { opacity: 1; transform: none; }

/* Crosshair cursor ring (fine pointers only, set up by main.js) */
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid color-mix(in srgb, var(--red) 80%, transparent); border-radius: 50%; pointer-events: none;
  opacity: 0; transition: width 0.2s, height 0.2s, margin 0.2s, border-color 0.2s, opacity 0.3s, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring::before, .cursor-ring::after { content: ""; position: absolute; background: color-mix(in srgb, var(--red) 90%, transparent); }
.cursor-ring::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 100% 22%, 0 22%, 0 78%, 100% 78%, 100% 100%, 0 100%); }
.cursor-ring::after { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%, 0 0, 78% 0, 100% 0, 100% 100%, 78% 100%); }
.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, transparent); }
.cursor-ring.hot::before, .cursor-ring.hot::after { background: var(--green); }

/* Boot sequence */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #030406; transition: opacity 0.5s ease, visibility 0.5s;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.boot.done { opacity: 0; visibility: hidden; }
.booting body { overflow: hidden; }
.boot-inner { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; }
.boot-log { margin: 0; min-height: 11.5em; font-size: 0.8rem; line-height: 1.6; color: var(--green); white-space: pre-wrap; }
.boot-log .r { color: var(--red); }
.boot-log .m { color: var(--muted); }
.boot-bar { height: 3px; background: var(--line); overflow: hidden; border-radius: 2px; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green)); box-shadow: 0 0 12px var(--red); }
.boot-skip { font-size: 0.68rem; color: #3a4654; text-transform: uppercase; letter-spacing: 0.15em; }

@media (max-width: 860px) {
  .hud { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Hero is draggable empty space for the globe */
.has-globe .hero { touch-action: pan-y; }
@media (min-width: 961px) { .has-globe .hero { cursor: grab; } .has-globe .hero-inner > * { cursor: auto; } }

/* Optional layouts when features are switched off in the admin panel */
.about-grid.no-term { grid-template-columns: minmax(0, 1fr); }
.arsenal-head.no-sphere { grid-template-columns: minmax(0, 1fr); }
.research-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.job-summary { margin-top: 12px; font-size: 0.92rem; max-width: 80ch; }
.cert-link { font-size: 0.72rem; color: var(--green); text-decoration: none; margin-top: auto; }
.sev-high { color: #ff7a45; }
.sev-medium { color: var(--amber); }
.sev-low { color: #7cc4f8; }
.post-cover { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 36px; }

/* Alternate section accents: green on every other section label */
#arsenal .eyebrow, #experience .eyebrow, #writing .eyebrow { color: var(--green); }
