@font-face { font-family: "Big Shoulders"; font-weight: 800; font-display: swap; src: url("/static/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders"; font-weight: 900; font-display: swap; src: url("/static/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #05070c;
  --ink: #e4ebf1;
  --muted: #8f9cab;
  --teal: #4ff0c8;
  --coral: #ff5a47;
  --amber: #ffb547;
  --line: rgba(79, 240, 200, .2);
  --glass: rgba(7, 11, 19, .82);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display: "Big Shoulders", Impact, "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
code { font-family: var(--mono); font-size: .9em; color: var(--teal); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 30; padding: .5rem 1rem; background: var(--teal); color: var(--bg); font-family: var(--mono); }
.skip:focus { top: 1rem; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: radial-gradient(ellipse at 70% 45%, #0d2029 0%, var(--bg) 62%); }
.crt { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .6) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px); }

/* Fixed chrome */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1.25rem, 3vw, 2.5rem); font: 400 .8rem var(--mono); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand span { color: var(--teal); }
.channel { color: var(--muted); }
.channel.secure { color: var(--teal); }
.channel.plain { color: var(--amber); }

.rail { position: fixed; right: clamp(.75rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: .35rem; font: 400 .72rem var(--mono); }
.rail a { display: flex; flex-direction: row-reverse; align-items: center; gap: .6rem; padding: .3rem 0; text-decoration: none; color: var(--muted); }
.rail i { display: block; width: 18px; height: 1px; background: currentColor; transition: width .25s, background .25s; }
.rail span { opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.rail a:hover span, .rail a:focus-visible span, .rail a.active span { opacity: 1; transform: none; }
.rail a.active { color: var(--teal); }
.rail a.active i { width: 34px; background: var(--teal); }
.rail a:hover { color: var(--ink); }

.simstat { position: fixed; left: clamp(1.25rem, 3vw, 2.5rem); bottom: 1rem; z-index: 10; font: 400 .7rem var(--mono); color: var(--muted); pointer-events: none; padding: .15rem .45rem; background: rgba(5, 7, 12, .78); }
.simstat:empty { display: none; }
.simstat b { font-weight: 600; color: var(--coral); }
.simstat em { font-style: normal; color: var(--teal); }

main { position: relative; z-index: 2; }
.station { min-height: 100vh; min-height: 100svh; padding: clamp(5rem, 11vh, 8rem) clamp(1.25rem, 6vw, 6rem); padding-right: clamp(3.5rem, 11vw, 11rem); display: flex; flex-direction: column; justify-content: center; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; }
.wrap-narrow { max-width: 860px; }

.tag { font: 400 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.tag b { color: var(--coral); font-weight: 600; margin-right: .5em; }
h2 { font: 900 clamp(3rem, 8vw, 6.5rem)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; margin-bottom: clamp(1.5rem, 4vh, 2.75rem); text-shadow: 0 0 44px rgba(5, 7, 12, .9); }
h3 { font: 800 1.6rem/1.1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.lede { max-width: 62ch; margin-bottom: 2rem; font-size: 1.15rem; text-shadow: 0 1px 14px var(--bg); }
.muted { color: var(--muted); }

/* Mouse parallax for DOM layers */
.depth-1, .depth-2, .depth-3, .ghost, .solid { transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0); will-change: transform; }
.depth-1 { --d: -6; }
.depth-2 { --d: -12; }
.depth-3 { --d: -20; }

/* Hero */
.hero { position: relative; }
.hero-copy { position: relative; max-width: 660px; }
.hero-copy .tag { margin-bottom: 1.75rem; }
.hero-name { position: relative; font: 900 clamp(5.25rem, 15.5vw, 13rem)/.84 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 1.5rem; }
.hero-name .solid { display: block; position: relative; --d: -22; color: var(--ink); }
.hero-name .ghost { position: absolute; inset: 0; display: block; opacity: .75; mix-blend-mode: screen; }
.ghost-coral { --d: -32; color: var(--coral); }
.ghost-teal { --d: -12; color: var(--teal); }
.hero-title { font: 600 .9rem var(--mono); color: var(--teal); margin-bottom: 1rem; }
.hero-headline { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 500; margin-bottom: .75rem; max-width: 24em; text-shadow: 0 1px 18px var(--bg); }
.hero-intro { color: #bcc7d2; max-width: 34em; margin-bottom: 1.75rem; text-shadow: 0 1px 14px var(--bg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.btn { display: inline-block; padding: .8rem 1.35rem; border: 1px solid var(--teal); font: 600 .82rem var(--mono); letter-spacing: .03em; text-decoration: none; color: var(--teal); background: rgba(5, 7, 12, .5); transition: background .2s, color .2s, box-shadow .2s; }
.btn:hover { background: rgba(79, 240, 200, .14); box-shadow: 0 0 24px rgba(79, 240, 200, .25); }
.btn-solid { background: var(--teal); color: var(--bg); }
.btn-solid:hover { background: #8cf7dc; }
.avail { display: flex; align-items: center; gap: .6rem; font: 400 .8rem var(--mono); color: var(--amber); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.scrollcue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); font: 400 .72rem var(--mono); color: var(--muted); text-decoration: none; white-space: nowrap; }
.scrollcue::after { content: ""; display: block; width: 1px; height: 26px; margin: .4rem auto 0; background: linear-gradient(var(--teal), transparent); animation: drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Panels */
.panel { position: relative; padding: clamp(1.25rem, 2.4vw, 2rem); border: 1px solid var(--line); background: var(--glass); }
.panel > * + * { margin-top: .9rem; }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.tilt.tilting { transition: border-color .25s; border-color: rgba(79, 240, 200, .6); }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(79, 240, 200, .1), transparent 70%); }
.tilt.tilting::after { opacity: 1; }
.tilt > * { transform: translateZ(22px); }

.panel-title { font: 600 .78rem var(--mono); letter-spacing: .1em; color: var(--teal); text-transform: uppercase; margin-bottom: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .16rem .55rem; border: 1px solid rgba(143, 156, 171, .3); font: 400 .73rem/1.5 var(--mono); color: #c0cad4; }

.points li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; font-size: 1rem; line-height: 1.55; color: #cdd6df; }
.points li::before { content: ">"; position: absolute; left: 0; font-family: var(--mono); color: var(--teal); }

/* Identity */
.side-right .wrap { max-width: 660px; margin-right: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: .75rem; }
.stat { position: relative; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--glass); }
.stat dt { font: 900 3rem/1 var(--display); color: var(--teal); }
.stat dd { font-size: .88rem; line-height: 1.4; color: #bcc7d2; margin-top: .3rem; }

/* Toolkit */
.skills { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.skill { grid-column: span 3; }
.skill:nth-child(3) { grid-column: span 2; }
.skill:nth-child(4) { grid-column: span 4; }
.skill:nth-child(5) { grid-column: span 6; }
.skill h3 span { display: block; font: 400 .7rem var(--mono); letter-spacing: .1em; color: var(--coral); margin-bottom: .3rem; }

/* Case files */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.case header { display: flex; justify-content: space-between; align-items: center; font: 400 .72rem var(--mono); }
.file-id { color: var(--muted); }
.stamp { padding: .05rem .45rem; border: 1px solid var(--coral); color: var(--coral); letter-spacing: .1em; text-transform: uppercase; font-size: .64rem; }
.case h3 { font-size: 2.1rem; }
.case-context { font: 400 .8rem var(--mono); color: var(--teal); margin-top: .35rem; }

/* Audit log */
.log { display: grid; gap: .6rem; }
.entry { padding: 0; }
.entry > * + * { margin: 0; }
.entry summary { display: grid; grid-template-columns: 11.5rem 1fr; column-gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary:hover .entry-role { color: var(--teal); }
.entry-time { grid-row: span 2; font: 400 .78rem/1.8 var(--mono); color: var(--muted); }
.entry-role { font: 800 1.45rem/1.15 var(--display); letter-spacing: .015em; text-transform: uppercase; transition: color .2s; }
.entry-role::after { content: "+"; float: right; font-family: var(--mono); font-weight: 400; color: var(--teal); }
.entry[open] .entry-role::after { content: "−"; }
.entry-org { font-size: .92rem; color: #bcc7d2; }
.entry .points { padding: 0 1.25rem 1rem; }
.entry .chips { padding: 0 1.25rem 1.25rem; }

/* Hardening */
.audit { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; margin-bottom: 1rem; }
.audit .panel > * + * { margin-top: 0; }
.headers li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .1rem .5rem; padding: .4rem 0; border-bottom: 1px solid rgba(143, 156, 171, .13); font: 400 .78rem/1.45 var(--mono); }
.headers li:last-child { border: 0; }
.headers .mark { color: var(--teal); }
.headers .miss .mark { color: var(--amber); }
.headers .val { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; font-size: .72rem; }
.telemetry div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(143, 156, 171, .13); font: 400 .8rem var(--mono); }
.telemetry div:last-child { border: 0; }
.telemetry dt { color: var(--muted); }
.telemetry dd { color: var(--teal); text-align: right; }

.terminal { padding: 1rem 1.25rem; font: 400 .84rem/1.6 var(--mono); }
.terminal > * + * { margin-top: 0; }
.term-output { height: 15rem; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.term-output .cmd { color: var(--teal); }
.term-output .err { color: var(--coral); }
.term-output .dim { color: var(--muted); }
.term-line { display: flex; align-items: baseline; gap: .6rem; margin-top: .4rem; color: var(--teal); }
.term-line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; caret-color: var(--coral); }

/* Core */
.core-station .wrap { max-width: 740px; margin-left: 0; }
.core-title { color: var(--teal); text-shadow: 0 0 44px rgba(79, 240, 200, .35); }
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 2rem; }
.contact { position: relative; display: block; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--glass); text-decoration: none; }
.contact span { display: block; font: 400 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact b { display: block; font: 600 clamp(.9rem, 1.6vw, 1.1rem) var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.contact:hover b { color: var(--teal); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.25rem; background: var(--glass); border: 1px solid var(--line); font-size: .92rem; line-height: 1.5; text-shadow: 0 1px 12px var(--bg); }
.meta > :first-child { grid-column: span 2; }
.meta p + p { margin-top: .6rem; }
.meta b { font-weight: 500; }
.foot { margin-top: 1.25rem; font: 400 .72rem/1.6 var(--mono); color: var(--muted); }

.noscript { position: fixed; bottom: 1rem; left: 1rem; z-index: 20; padding: .5rem .75rem; background: var(--bg); border: 1px solid var(--amber); font: 400 .75rem var(--mono); color: var(--amber); }

/* Scroll reveals only apply once JS has confirmed it can undo them. */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.seen { opacity: 1; translate: 0 0; }

@media (max-width: 960px) {
  .audit, .cases { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .skills .skill, .skills .skill:nth-child(n) { grid-column: span 1; }
  .skills .skill:nth-child(5) { grid-column: span 2; }
  .side-right .wrap { max-width: none; }
  .core-station .wrap { max-width: none; }
}

@media (max-width: 640px) {
  .station { padding-inline: 1.25rem; }
  .rail, .simstat { display: none; }
  .hero { justify-content: flex-end; padding-bottom: 5.5rem; }
  .skills, .contacts { grid-template-columns: 1fr; }
  .skills .skill:nth-child(n) { grid-column: auto; }
  .entry summary { grid-template-columns: 1fr; }
  .entry-time { grid-row: auto; }
  .channel { display: none; }
  .hero-title { font-size: .78rem; }
}

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