/* =========================================================
   Akash Anand — portfolio
   Editorial system: ink, paper, one signal colour.
   No third-party requests. Strict-CSP friendly.
   ========================================================= */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #121212;
  --bg-3: #181817;
  --ink: #f2efe9;
  --muted: #a29d93;
  --dim: #8a857c;
  --line: rgba(242, 239, 233, 0.1);
  --line-2: rgba(242, 239, 233, 0.18);
  --accent: #ff5a1f;
  --accent-2: #ff7c4d;
  --ok: #7fd1a0;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.reduced { scroll-behavior: auto; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 17px; color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal;
}
html.booting body { overflow: hidden; }
main { overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 16px; }

/* ---------- background layers ---------- */
.aegis { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 45% at 78% 32%, rgba(255, 90, 31, 0.045), transparent 70%), var(--bg); }
html.no-webgl .ambient { background: radial-gradient(38% 38% at 72% 42%, rgba(255, 90, 31, 0.1), transparent 70%), var(--bg); }
html.no-webgl .aegis { display: none; }
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- boot sequence ---------- */
.boot { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--bg); font-family: var(--mono); clip-path: inset(0 0 0 0); }
html.booting .boot, .boot.done { display: grid; }
.boot.done { animation: bootOut 0.9s var(--ease-io) forwards; }
@keyframes bootOut { to { clip-path: inset(0 0 100% 0); } }
.boot__inner { width: min(540px, 100% - 48px); }
.boot__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.boot__mark { width: 28px; height: 28px; }
.boot__lines { min-height: 150px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 13px; line-height: 2; color: var(--muted); }
.boot__lines li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: bootLine 0.25s var(--ease) both; }
.boot__lines .ok { color: var(--ink); }
.boot__lines .grant { color: var(--accent); font-weight: 500; letter-spacing: 0.14em; }
@keyframes bootLine { from { opacity: 0; transform: translateX(-6px); } }
.boot__bar { height: 1px; overflow: hidden; background: var(--line); }
.boot__bar span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: 0 50%; animation: bootBar 1.4s var(--ease-io) forwards; }
@keyframes bootBar { from { transform: scaleX(0); } }
.boot__skip { margin: 18px 0 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* ---------- layout + type ---------- */
.wrap { width: min(var(--maxw), 100% - 2 * var(--pad)); margin-inline: auto; }
.section { position: relative; z-index: 2; padding: clamp(96px, 15vh, 170px) 0; }
.eyebrow { display: flex; align-items: baseline; gap: 14px; margin: 0 0 26px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--accent); }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; align-self: center; background: var(--line-2); }
.h-section { max-width: 16ch; margin: 0 0 26px; font-size: clamp(2.5rem, 6vw, 5.4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; }
.h-section em { letter-spacing: -0.01em; color: var(--muted); }
.lede { max-width: 54ch; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

html.js .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: none; }
html.reduced .rv { transform: none !important; transition: opacity 0.2s !important; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; font: 500 15px/1 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-2); }
.btn--glass { background: transparent; border-color: var(--line-2); }
.btn--glass:hover { border-color: var(--ink); }
.btn--icon { width: var(--h); padding: 0; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn[hidden] { display: none; }

.status { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.live { position: relative; display: inline-block; width: 7px; height: 7px; flex: none; background: var(--accent); }
.live::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--accent); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 18px 0 0; padding: 0; list-style: none; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.tags li + li::before { content: "/"; margin: 0 9px; color: var(--dim); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1240px, 100% - 24px); padding: 8px 8px 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 11, 12, 0.62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.nav.scrolled { background: rgba(11, 11, 12, 0.86); border-color: var(--line-2); }
html.booting .nav { transform: translate(-50%, -140%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.nav__logo svg { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { position: relative; padding: 9px 13px; font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color 0.25s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px; background: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 10px; }


.nav__menu { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; }
.nav__menu span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__menu span:first-child { top: 16px; }
.nav__menu span:last-child { top: 22px; }
.nav__menu[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px var(--pad) 40px; background: rgba(11, 11, 12, 0.96); }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 4px 0; font-size: clamp(1.9rem, 8vw, 3.2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; text-decoration: none; opacity: 0; transform: translateY(16px); animation: menuIn 0.55s var(--ease) forwards; }
.menu nav a i { font: 500 12px var(--mono); font-style: normal; color: var(--accent); }
.menu nav a:nth-child(2) { animation-delay: 0.04s; } .menu nav a:nth-child(3) { animation-delay: 0.08s; } .menu nav a:nth-child(4) { animation-delay: 0.12s; } .menu nav a:nth-child(5) { animation-delay: 0.16s; }
.menu nav a:nth-child(6) { animation-delay: 0.2s; } .menu nav a:nth-child(7) { animation-delay: 0.24s; } .menu nav a:nth-child(8) { animation-delay: 0.28s; } .menu nav a:nth-child(9) { animation-delay: 0.32s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

.hud { position: fixed; left: 22px; bottom: 28px; z-index: 40; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.hud__idx { color: var(--accent); }
.hud__sep { width: 1px; height: 28px; background: var(--line-2); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 120px 0 110px; }
.hero__inner { position: relative; z-index: 2; }
.hero__name { display: flex; flex-direction: column; margin: 30px 0 26px; font-size: clamp(4rem, 12.5vw, 11.2rem); line-height: 0.86; }
.hero__first { font-weight: 600; letter-spacing: -0.055em; }
.hero__last { padding-left: 0.4em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1em; letter-spacing: -0.02em; line-height: 0.95; }
.hero__claim { margin: 0 0 18px; font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.rotator { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.br-sm { display: none; }
.hero__sub { max-width: 590px; margin: 0 0 34px; font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: absolute; top: 17%; bottom: 15%; left: 51%; right: 4%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease) 0.6s; }
.hero.ready .hero__stage { opacity: 1; }
.hb { position: absolute; width: 18px; height: 18px; border: 0 solid var(--line-2); }
.hb--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hb--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hb--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hb--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero__tag { position: absolute; display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.hero__tag b { font-weight: 500; color: var(--ink); }
.hero__tag--tl { top: -24px; left: 0; }
.hero__tag--tr { top: -24px; right: 0; color: var(--muted); }
.hero__tag--bl { bottom: -24px; left: 0; }
.hero__tag--bl b { color: var(--accent); }
.hero__tag--br { bottom: -24px; right: 0; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateX(-50%); font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.scroll-cue__line { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--line); }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 24px 0; border-block: 1px solid var(--line); background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marq 50s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; color: var(--muted); white-space: nowrap; }
.marquee__track i { font-style: normal; font-weight: 400; color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 64px; }
.scrub { margin: 0 0 40px; font-size: clamp(1.65rem, 3.2vw, 2.9rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.028em; }
.scrub em { color: var(--accent); }
.about__lede { max-width: 60ch; margin: 0; font-size: 1.1rem; color: var(--muted); }
html.js .scrub .w { opacity: 0.16; transition: opacity 0.4s var(--ease); }
html.js .scrub .w.on { opacity: 1; }

.lanyard { position: relative; height: 640px; }
.lanyard__strap { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.badge {
  position: absolute; left: 0; top: 0; width: 270px; height: 392px; padding: 34px 24px 20px; overflow: hidden;
  border-radius: 16px; background: var(--ink); color: var(--bg); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform-origin: 50% 12px; will-change: transform;
}
.badge:active { cursor: grabbing; }
.badge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--accent); }
.badge__slot { position: absolute; top: 14px; left: 50%; width: 52px; height: 10px; margin-left: -26px; border-radius: 6px; background: var(--bg); }
.badge__holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.5; background: linear-gradient(115deg, transparent 30%, rgba(0, 0, 0, 0.06) 45%, transparent 60%); background-size: 260% 260%; background-position: var(--hx, 50%) 50%; }
.badge__top { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font: 500 10px/1 var(--mono); letter-spacing: 0.1em; color: #6d6860; }
.badge__chip { width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #d9b25c, #a9823a 50%, #e6c97c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.badge__avatar { display: block; width: 108px; height: 108px; margin: 22px auto 14px; overflow: hidden; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px rgba(11, 11, 12, 0.18); }
.badge__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); pointer-events: none; }
.badge__name { margin: 0; text-align: center; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.badge__role { margin: 2px 0 16px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: #5a564f; }
.badge__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid rgba(11, 11, 12, 0.14); text-align: center; }
.badge__meta dt { font: 500 9px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8a857c; }
.badge__meta dd { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; }
.badge__barcode { display: block; height: 30px; margin: 16px 0 10px; background: repeating-linear-gradient(90deg, var(--bg) 0 2px, transparent 2px 4px, var(--bg) 4px 5px, transparent 5px 9px, var(--bg) 9px 12px, transparent 12px 14px, var(--bg) 14px 15px, transparent 15px 19px); }
.badge__foot { display: flex; justify-content: space-between; margin: 0; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; color: #6d6860; }
.badge__hint { color: var(--accent); }

/* ---------- impact ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line-2); }
.stat { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.stat__num { display: flex; align-items: flex-start; margin: 0 0 12px; font-size: clamp(3.2rem, 6vw, 5.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__num sup { margin-left: 4px; font-size: 0.42em; line-height: 1.25; color: var(--accent); }
.stat__label { max-width: 26ch; margin: 0; font-size: 0.98rem; color: var(--muted); }


/* ---------- expertise cards ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; border: 1px solid var(--line); background: var(--line); }
.card { position: relative; display: flex; flex-direction: column; min-height: 290px; padding: 26px; background: var(--bg-2); transition: background 0.35s; }
.card:hover { background: var(--bg-3); }
.card h3 { margin: auto 0 8px; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card .tags { margin-top: 14px; }
.card--xl { grid-column: span 2; grid-row: span 2; min-height: 580px; padding: 34px; }
.card--xl h3 { margin-top: 0; font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -0.035em; }
.card--xl .card__body { margin-top: auto; }
.card--xl p { max-width: 46ch; font-size: 1.04rem; }
.card__k { margin: 0 0 10px !important; font: 500 12px/1 var(--mono) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent) !important; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding-bottom: 3px; border-bottom: 1px solid var(--accent); font-weight: 500; font-size: 0.98rem; color: var(--ink); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* mini visualisations */
.viz { position: relative; height: 112px; margin-bottom: 20px; }
.card:not(.in) .viz, .card:not(.in) .viz * { animation-play-state: paused !important; }
html.reduced .viz, html.reduced .viz * { animation: none !important; }

.viz-orbit { display: grid; flex: 1; place-items: center; height: auto; min-height: 260px; margin: -8px 0 16px; }
.viz-orbit span { position: absolute; border: 1px solid var(--line-2); border-radius: 50%; animation: spin 20s linear infinite; }
.viz-orbit span:nth-child(1) { width: 120px; height: 120px; }
.viz-orbit span:nth-child(2) { width: 210px; height: 210px; border-style: dashed; animation-duration: 32s; animation-direction: reverse; }
.viz-orbit span:nth-child(3) { width: 300px; height: 300px; animation-duration: 46s; }
.viz-orbit span::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; background: var(--ink); }
.viz-orbit span:nth-child(2)::after { top: auto; bottom: -3px; background: var(--accent); }
.viz-orbit b { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); animation: breathe 3.2s ease-in-out infinite; }
.viz-orbit i { position: absolute; padding: 5px 9px; border: 1px solid var(--line-2); background: var(--bg-2); font: 400 11px/1 var(--mono); font-style: normal; color: var(--muted); animation: float 6s ease-in-out infinite; }
.viz-orbit i:nth-of-type(1) { top: 12%; left: 8%; } .viz-orbit i:nth-of-type(1)::before { content: "agent"; }
.viz-orbit i:nth-of-type(2) { top: 22%; right: 6%; animation-delay: -2s; } .viz-orbit i:nth-of-type(2)::before { content: "gateway: allow"; color: var(--ink); }
.viz-orbit i:nth-of-type(3) { bottom: 10%; left: 18%; animation-delay: -4s; } .viz-orbit i:nth-of-type(3)::before { content: "tool: denied"; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(0.82); } }
@keyframes float { 50% { transform: translateY(-7px); } }

.viz-stride { display: flex; align-items: center; gap: 6px; }
.viz-stride span { display: grid; place-items: center; width: 34px; height: 42px; border: 1px solid var(--line-2); font: 500 14px/1 var(--mono); color: var(--dim); animation: stride 3.6s infinite; }
.viz-stride span:nth-child(2) { animation-delay: 0.6s; } .viz-stride span:nth-child(3) { animation-delay: 1.2s; } .viz-stride span:nth-child(4) { animation-delay: 1.8s; } .viz-stride span:nth-child(5) { animation-delay: 2.4s; } .viz-stride span:nth-child(6) { animation-delay: 3s; }
@keyframes stride { 0%, 22% { color: var(--bg); background: var(--accent); border-color: var(--accent); } 35%, 100% { color: var(--dim); } }

.viz-pipe { display: flex; align-items: center; justify-content: space-between; }
.viz-pipe::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--line-2); }
.viz-pipe span { position: relative; padding: 6px 7px; border: 1px solid var(--line-2); background: var(--bg-2); font: 400 10.5px/1 var(--mono); color: var(--muted); animation: gate 3s infinite; }
.viz-pipe span:nth-child(2) { animation-delay: 0.55s; } .viz-pipe span:nth-child(3) { animation-delay: 1.1s; } .viz-pipe span:nth-child(4) { animation-delay: 1.65s; } .viz-pipe span:nth-child(5) { animation-delay: 2.2s; }
.viz-pipe b { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; background: var(--accent); animation: packet 3s linear infinite; }
@keyframes gate { 0%, 14% { color: var(--ink); border-color: var(--accent); } 30%, 100% { color: var(--muted); } }
@keyframes packet { to { left: calc(100% - 7px); } }

.viz-hex { display: flex; flex-wrap: wrap; align-content: center; width: 200px; gap: 4px; }
.viz-hex span { width: 34px; height: 30px; background: rgba(242, 239, 233, 0.08); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); animation: hex 4s ease-in-out infinite; }
.viz-hex span:nth-child(n+6) { transform: translate(19px, -3px); }
.viz-hex span:nth-child(11) { display: none; }
.viz-hex span:nth-child(3n) { animation-delay: -1.3s; } .viz-hex span:nth-child(3n+1) { animation-delay: -2.6s; } .viz-hex span:nth-child(4) { animation: hexHot 4s ease-in-out infinite; }
@keyframes hex { 50% { background: rgba(242, 239, 233, 0.32); } }
@keyframes hexHot { 50% { background: var(--accent); } }

.viz-radar span { position: absolute; left: 0; top: 0; width: 112px; height: 112px; border: 1px solid var(--line-2); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 17px, rgba(242, 239, 233, 0.08) 17px 18px), conic-gradient(from 0deg, rgba(242, 239, 233, 0.22), transparent 22%); animation: spin 3.6s linear infinite; }
.viz-radar i { position: absolute; width: 6px; height: 6px; background: var(--ink); animation: blip 3.6s infinite; }
.viz-radar i:nth-of-type(1) { left: 74px; top: 30px; } .viz-radar i:nth-of-type(2) { left: 30px; top: 70px; animation-delay: 1.4s; background: var(--accent); } .viz-radar i:nth-of-type(3) { left: 82px; top: 82px; animation-delay: 2.4s; }
@keyframes blip { 0%, 100% { opacity: 0; } 10%, 40% { opacity: 1; } }

.viz-checks { display: flex; flex-wrap: wrap; align-content: center; gap: 7px; }
.viz-checks span { position: relative; padding: 6px 10px 6px 24px; border: 1px solid var(--line-2); font: 400 10.5px/1 var(--mono); color: var(--muted); }
.viz-checks span::before { content: "✓"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--accent); opacity: 0; animation: tick 5s infinite; }
.viz-checks span:nth-child(2)::before { animation-delay: 0.5s; } .viz-checks span:nth-child(3)::before { animation-delay: 1s; } .viz-checks span:nth-child(4)::before { animation-delay: 1.5s; } .viz-checks span:nth-child(5)::before { animation-delay: 2s; } .viz-checks span:nth-child(6)::before { animation-delay: 2.5s; }
@keyframes tick { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }

.viz-deal { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.viz-deal__bar { display: block; height: 4px; overflow: hidden; background: var(--line); }
.viz-deal__bar b { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: 0 50%; animation: fill 4s var(--ease-io) infinite; }
.viz-deal__stamp { align-self: flex-start; padding: 6px 12px; border: 1.5px solid var(--accent); font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); transform: rotate(-5deg); animation: stamp 4s var(--ease) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
@keyframes stamp { 0%, 55% { opacity: 0; transform: rotate(-5deg) scale(1.7); } 65%, 92% { opacity: 1; transform: rotate(-5deg) scale(1); } 100% { opacity: 0; } }

.viz-term { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); font: 400 11px/1 var(--mono); }
.viz-term span { width: 0; overflow: hidden; white-space: nowrap; animation: type 6s steps(26) infinite; }
.viz-term span:nth-child(1) { color: var(--muted); }
.viz-term span:nth-child(2) { color: var(--accent); animation-delay: 1.2s; }
.viz-term span:nth-child(3) { color: var(--ink); animation-delay: 2.4s; }
@keyframes type { 0% { width: 0; } 18%, 88% { width: 100%; } 100% { width: 0; } }

.viz-team { display: grid; place-items: center; }
.viz-team span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--dim); animation: team 3s ease-in-out infinite; }
.viz-team span:nth-child(1) { transform: rotate(0deg) translate(46px); } .viz-team span:nth-child(2) { transform: rotate(40deg) translate(46px); animation-delay: 0.33s; }
.viz-team span:nth-child(3) { transform: rotate(80deg) translate(46px); animation-delay: 0.66s; } .viz-team span:nth-child(4) { transform: rotate(120deg) translate(46px); animation-delay: 1s; }
.viz-team span:nth-child(5) { transform: rotate(160deg) translate(46px); animation-delay: 1.33s; } .viz-team span:nth-child(6) { transform: rotate(200deg) translate(46px); animation-delay: 1.66s; }
.viz-team span:nth-child(7) { transform: rotate(240deg) translate(46px); animation-delay: 2s; } .viz-team span:nth-child(8) { transform: rotate(280deg) translate(46px); animation-delay: 2.33s; }
.viz-team span:nth-child(9) { transform: rotate(320deg) translate(46px); animation-delay: 2.66s; }
.viz-team b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem; }
@keyframes team { 50% { background: var(--accent); } }

/* ---------- projects: poster wall ---------- */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; margin: 56px 0 0; padding: 0; list-style: none; }
.poster { display: flex; flex-direction: column; }
.poster__art { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: #121211; }
.poster__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.poster:hover .poster__art img { transform: scale(1.035); }
.poster__cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px 24px; pointer-events: none; }
.poster__top { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.poster__top span:first-child { color: var(--ink); }
.poster__title { max-width: 11ch; margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.35rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.poster__title em { display: block; font-size: 1.08em; color: var(--accent); }
.poster--inverse .poster__art { background: var(--accent); }
.poster--inverse .poster__top, .poster--inverse .poster__top span:first-child, .poster--inverse .poster__title { color: var(--bg); }
.poster--inverse .poster__title em { color: var(--ink); }
.poster__desc { margin: 18px 0 0; font-size: 0.98rem; color: var(--muted); }
.poster .tags { margin-top: 12px; }
.poster::after { content: ""; display: block; height: 1px; margin-top: 18px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease); }
.poster:hover::after { transform: scaleX(1); }

/* ---------- AI gate ---------- */
.ai__head { display: grid; gap: 26px; max-width: 760px; }
.ai__head .h-section { margin-bottom: 0; max-width: 15ch; }
.gate { position: relative; margin-top: 56px; padding: 34px 32px 32px; border: 1px solid var(--line); background: rgba(18, 18, 18, 0.92); }
.gate__track { position: absolute; top: 61px; left: calc(32px + (100% - 64px) * 0.1); right: calc(32px + (100% - 64px) * 0.1); height: 1px; background: var(--line-2); }
.gate__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--g, 0) * 100%); background: var(--accent); transition: width 0.8s var(--ease); }
.gate__track i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; background: var(--ink); animation: flow 4.5s linear infinite; }
.gate__track i:nth-of-type(2) { animation-delay: -1.5s; } .gate__track i:nth-of-type(3) { animation-delay: -3s; }
@keyframes flow { 0% { left: 0; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.gate__stages { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.gate__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 6px; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.gate__num { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-2); font: 500 13px/1 var(--mono); transition: all 0.45s var(--ease); }
.gate__name { font-size: 0.95rem; font-weight: 500; text-align: center; line-height: 1.25; transition: color 0.3s; }
.gate__stage:hover .gate__num { border-color: var(--ink); }
.gate__stage.passed .gate__num { border-color: var(--accent); color: var(--accent); }
.gate__stage[aria-selected="true"] .gate__num { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.gate__stage[aria-selected="true"] .gate__name { color: var(--ink); }
.gate__panels { position: relative; min-height: 168px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.gate__panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6px 48px; }
.gate__panel[hidden] { display: none; }
.gate__panel.enter { animation: panelIn 0.55s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.gate__kicker { grid-column: 1; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.gate__panel h3 { grid-column: 1; margin: 8px 0 0; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.gate__panel p:not(.gate__kicker) { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.05rem; color: var(--muted); }
.gate__panel .tags { grid-column: 2; margin-top: 8px; }
html:not(.js) .gate__panel[hidden] { display: grid; margin-top: 30px; }

.threats { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px 28px; margin-top: 30px; }
.threats__k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.threats__k svg { width: 15px; height: 15px; color: var(--accent); }
.threats ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font: 400 13px/1.5 var(--mono); color: var(--ink); }
.threats li { display: inline-flex; align-items: center; gap: 9px; }
.threats li::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--accent); }

/* ---------- journey ---------- */
.tl { position: relative; margin-top: 64px; }
.tl__rail { position: absolute; top: 8px; bottom: 8px; left: 180px; width: 1px; background: var(--line-2); }
.tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.tl__list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.tl__item { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 0 48px; }
.tl__item::before { content: ""; position: absolute; top: 30px; left: 175px; width: 11px; height: 11px; border: 1px solid var(--line-2); background: var(--bg); transition: all 0.5s var(--ease); }
.tl__item.lit::before { border-color: var(--accent); background: var(--accent); }
.tl__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 24px 30px 0 0; text-align: right; }
.tl__chapter { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tl__when { font-size: 0.98rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__card { padding: 28px 32px; border: 1px solid var(--line); background: rgba(18, 18, 18, 0.9); transition: border-color 0.4s; }
.tl__item.lit .tl__card { border-color: var(--line-2); }
.tl__card h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -0.025em; }
.tl__org { margin: 6px 0 0; font-weight: 500; }
.tl__org span { font-weight: 400; color: var(--muted); }
.tl__scope { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.tl__card ul:not(.tags) { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tl__card ul:not(.tags) li { position: relative; padding-left: 22px; color: var(--muted); }
.tl__card ul:not(.tags) li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 10px; height: 1px; background: var(--accent); }

/* ---------- how I work ---------- */
.how__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.how__photo { margin: 0; }
.how__photo picture { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.how__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.92); transition: filter 0.9s var(--ease), transform 1.2s var(--ease); }
.how__photo:hover img { filter: none; transform: scale(1.02); }
.how__photo figcaption { margin-top: 12px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.pr { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.pr__row { position: relative; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; gap: 14px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pr__row::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease); }
.pr__row:hover::after { transform: scaleX(1); }
.pr__n { font: 500 13px/1 var(--mono); color: var(--accent); }
.pr__row h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; transition: transform 0.5s var(--ease); }
.pr__row:hover h3 { transform: translateX(10px); }
.pr__row p { grid-column: 2; margin: -6px 0 0; color: var(--muted); }

/* ---------- credentials ---------- */
.holo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; border: 1px solid var(--line); background: var(--line); }
.holo { position: relative; display: flex; flex-direction: column; min-height: 140px; padding: 22px 24px; background: var(--bg-2); transition: background 0.3s; }
.holo:hover { background: var(--bg-3); }
.holo__issuer { margin: 0 0 auto; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.holo h3 { margin: 22px 0 4px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.holo__sub { margin: 0; font-size: 0.9rem; color: var(--muted); }
.holo--feature { background: var(--bg-3); }
.holo--feature h3 { font-size: 2rem; }
.holo--feature .holo__sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }

.edu { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 28px 0; border-block: 1px solid var(--line); }
.edu__k { margin: 0 0 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.edu h3 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.edu p { margin: 0; color: var(--muted); }
.edu__gpa { display: flex; flex-direction: column; align-items: flex-end; }
.edu__gpa span { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; }
.edu__gpa small { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--muted); }

.toolbox { margin-top: 56px; }
.marquee--chips { padding: 6px 0; border: 0; background: none; }
.marquee--chips .marquee__row + .marquee__row { margin-top: 10px; }
.marquee--chips .marquee__track { gap: 0; padding-right: 0; font: 400 15px/1 var(--mono); color: var(--muted); }
.marquee--chips .marquee__track span { padding: 8px 0; }
.marquee--chips .marquee__track span::after { content: "/"; margin: 0 18px; color: var(--accent); }

/* ---------- contact ---------- */
.contact { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow::after { display: none; }
.contact__title { margin: 0 0 26px; font-size: clamp(3.6rem, 12vw, 10rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.055em; }
.contact__title em { color: var(--accent); letter-spacing: -0.015em; }
.contact__face { display: inline-block; width: 1.18em; height: 0.74em; margin: 0 0.04em; overflow: hidden; vertical-align: 0.02em; border-radius: 999px; background: var(--bg-2); }
.contact__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.06); transition: filter 0.8s var(--ease); }
.contact__title:hover .contact__face img { filter: none; }
.contact .lede { margin-inline: auto; }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.contact__alt { margin: 30px 0 0; font: 400 13px/1 var(--mono); color: var(--muted); }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: none; font: inherit; color: var(--ink); cursor: pointer; transition: border-color 0.3s; }
.kbd-btn:hover { border-color: var(--ink); }
kbd { padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 4px; font: 500 12px/1.4 var(--mono); color: var(--accent); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; padding: 28px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; font: 400 12px/1.6 var(--mono); color: var(--muted); }
.footer p { margin: 0; }
.footer__posture { display: flex; align-items: center; gap: 10px; max-width: 760px; }
.footer__posture svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.footer__posture a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- terminal ---------- */
.term-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(11, 11, 12, 0.85); color: var(--ink); cursor: pointer; transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s; }
.term-fab svg { width: 20px; height: 20px; }
.term-fab:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
html.booting .term-fab { opacity: 0; }

.term {
  position: fixed; right: 22px; bottom: 84px; z-index: 80; display: flex; flex-direction: column;
  width: min(580px, 100vw - 32px); height: min(440px, 70vh); overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 12px; background: #0e0e0f;
  box-shadow: 0 40px 90px -10px rgba(0, 0, 0, 0.85); font: 13px/1.6 var(--mono); animation: termIn 0.35s var(--ease);
}
.term[hidden] { display: none; }
@keyframes termIn { from { opacity: 0; transform: translateY(14px); } }
.term__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.term__bar p { flex: 1; margin: 0; text-align: center; }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3936; }
.term__dots i:first-child { background: var(--accent); }
.term__close { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.term__close:hover { background: rgba(242, 239, 233, 0.08); color: var(--ink); }
.term__out { flex: 1; overflow-y: auto; padding: 14px 16px 4px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.term__out p { margin: 0; }
.term__out .c-cmd { color: var(--ink); }
.term__out .c-cmd::before { content: "visitor@aa:~$ "; color: var(--accent); }
.term__out .c-acc { color: var(--ink); }
.term__out .c-dim { color: var(--dim); }
.term__out .c-ok { color: var(--ok); }
.term__out .c-err { color: var(--accent); }
.term__out .c-warn { color: #e8c07a; }
.term__in { display: flex; align-items: center; gap: 10px; padding: 8px 16px 14px; }
.term__prompt { color: var(--accent); white-space: nowrap; }
.term__in input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; color: var(--ink); caret-color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .hud { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl { grid-row: auto; min-height: 520px; }
  .posters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero { align-items: flex-end; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to top, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.72) 58%, rgba(11, 11, 12, 0) 80%); }
  .hero__stage { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .lanyard { width: 100%; max-width: 520px; height: 600px; margin-inline: auto; }
  .holo-grid { grid-template-columns: repeat(2, 1fr); }
  .holo--feature { grid-column: span 2; }
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat, .stat:nth-child(4n + 1) { padding: 26px 20px 28px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .how__grid { grid-template-columns: 1fr; }
  .how__photo { max-width: 460px; }
  .gate { padding: 26px 18px 24px; }
  .gate__track { top: 47px; left: calc(18px + (100% - 36px) * 0.1); right: calc(18px + (100% - 36px) * 0.1); }
  .gate__num { width: 44px; height: 44px; font-size: 12px; }
  .gate__name { font-size: 0.78rem; }
  .gate__panel { grid-template-columns: 1fr; }
  .gate__panel p:not(.gate__kicker), .gate__panel .tags { grid-column: 1; grid-row: auto; }
  .gate__panel p:not(.gate__kicker) { margin-top: 10px; }
  .threats { grid-template-columns: 1fr; }
  .tl__rail { left: 5px; }
  .tl__item { grid-template-columns: 1fr; padding-left: 34px; }
  .tl__item::before { left: 0; top: 4px; }
  .tl__meta { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 0 0 12px; text-align: left; }
  .pr__row { padding: 24px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 10px; gap: 8px; padding: 6px 6px 6px 12px; }
  .nav__name { display: none; }
  .hero { padding: 110px 0 80px; }
  .hero__name { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .hero__last { padding-left: 0.3em; }
  .br-sm { display: inline; }
  .hero__cta .btn--primary { flex: 1 1 100%; }
  .hero__cta .btn--glass:not(.btn--icon) { flex: 1; }
  .scroll-cue { display: none; }
  .section { padding: 88px 0; }
  .stat__label { font-size: 0.9rem; }
  .bento { grid-template-columns: 1fr; }
  .card--xl { grid-column: auto; min-height: 0; padding: 26px; }
  .viz-orbit { min-height: 230px; transform: scale(0.85); }
  .card { min-height: 0; }
  .posters { display: flex; gap: 16px; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .posters::-webkit-scrollbar { display: none; }
  .poster { flex: 0 0 82%; scroll-snap-align: center; }
  .gate__name { display: none; }
  .holo-grid { grid-template-columns: 1fr 1fr; }
  .holo { min-height: 110px; padding: 16px; }
  .holo h3 { margin-top: 16px; font-size: 1.02rem; }
  .holo__sub { font-size: 0.8rem; }
  .holo--feature h3 { font-size: 1.6rem; }
  .edu { flex-direction: column; align-items: flex-start; }
  .edu__gpa { align-items: flex-start; }
  .lanyard { height: 560px; }
  .contact__cta .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .term { left: 8px; right: 8px; bottom: 8px; width: auto; height: 62vh; }
  .term__in input { font-size: 16px; }
  .term-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
