/* Tokens */
:root {
  color-scheme: dark;
  --night: #07070d;
  --panel: #0d0e17;
  --panel-raised: #12131d;
  --panel-soft: #171822;
  --text: #f3f2ed;
  --muted: #bbbcc7;
  --dim: #858796;
  --line: rgba(224, 225, 238, .16);
  --line-bright: rgba(252, 238, 10, .45);
  --yellow: #fcee0a;
  --cyan: #00f0ff;
  --magenta: #ff2a6d;
  --red: #ff5964;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --container: 1180px;
  --nav-height: 72px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  background: var(--night);
}

body {
  position: relative;
  min-width: 360px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 75% 4%, rgba(0, 240, 255, .055), transparent 35rem),
    var(--night);
  color: var(--text);
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, .13) 4px);
  content: "";
}

body::after {
  position: fixed;
  z-index: 19;
  inset: 0;
  pointer-events: none;
  background: #fff;
  opacity: .14;
  filter: url(#grain-filter);
  mix-blend-mode: soft-light;
  content: "";
}

.visual-filters { position: absolute; width: 0; height: 0; }
.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.mono { font-family: var(--mono); }
.skip-link {
  position: fixed;
  z-index: 60;
  top: .7rem;
  left: .7rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--night);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

/* Components: navigation */
.site-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 13, .94);
  backdrop-filter: blur(14px);
}
.nav-inner, .brand, .nav-links, .nav-tools { display: flex; align-items: center; }
.nav-inner { min-height: var(--nav-height); justify-content: space-between; gap: 1rem; }
.brand { gap: .65rem; font-family: var(--display); font-size: .95rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.brand b { color: var(--yellow); }
.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 0 100%);
  background: var(--yellow);
  color: var(--night);
  font-size: 1.1rem;
}
.nav-links { gap: clamp(.65rem, 1.45vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; color: var(--muted); font-family: var(--mono); font-size: .62rem; transition: color .18s ease; }
.nav-links a::after { position: absolute; right: 0; bottom: -.45rem; left: 0; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--yellow); content: ""; transition: transform .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--yellow); }
.nav-links a:hover::after, .nav-links a[aria-current="location"]::after { transform: scaleX(1); }
.nav-links .nav-cta { padding: .55rem .7rem; border: 1px solid var(--line-bright); color: var(--yellow); }
.nav-links .nav-cta::after { content: none; }
.menu-toggle { display: none; }
.nav-tools { gap: .55rem; }
.audio-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .4rem .55rem;
  border: 1px solid rgba(0, 240, 255, .25);
  background: rgba(0, 240, 255, .045);
  color: var(--cyan);
  font-size: .53rem;
  letter-spacing: .06em;
}
.audio-toggle:disabled { border-color: var(--line); color: var(--dim); cursor: not-allowed; }
.audio-glyph { color: var(--yellow); font-size: .85rem; }
.audio-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

/* Components: typography and shared section furniture */
.eyebrow, .section-code, .project-category, .micro-label, .fact-label, .slot-label,
.mission-index, .mission-details dt, .id-card-data dt, .contact-kind, .filter-label {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 .7rem; color: var(--yellow); }
.section-code { margin: 0 0 2.2rem; color: var(--dim); }
.section-heading h2, .contact-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.section-heading h2 em, .contact-copy h2 em { color: var(--yellow); font-style: normal; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading-row .section-code { margin-bottom: 1.8rem; }
.section-aside { margin: 0 0 .3rem; color: var(--muted); font-size: .78rem; text-align: right; }
.section-number { position: absolute; z-index: -1; top: -.5em; right: 0; color: rgba(252, 238, 10, .07); font-family: var(--display); font-size: clamp(7rem, 20vw, 14rem); font-weight: 700; line-height: 1; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section::before { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(252, 238, 10, .55) 9px 13px, transparent 13px 22px); opacity: .25; content: ""; }
.section-muted { background: #0a0a11; }

/* Components: hero and identity HUD */
.hero {
  position: relative;
  min-height: min(810px, calc(100svh - var(--nav-height)));
  padding: clamp(3.2rem, 8vw, 7.3rem) 0 2rem;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 60%, rgba(255, 42, 109, .045) 60.2% 60.5%, transparent 60.7%),
    radial-gradient(ellipse at 24% 40%, rgba(252, 238, 10, .075), transparent 39rem);
}
.hero::before { position: absolute; top: 9%; right: 4%; width: 30vw; height: 30vw; border: 1px solid rgba(0, 240, 255, .12); transform: rotate(45deg); content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .7fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: .55rem; }
.status-light { width: .45rem; height: .45rem; flex: 0 0 auto; background: var(--yellow); box-shadow: 0 0 12px rgba(252, 238, 10, .7); }
.eyebrow-divider { color: var(--dim); }
.hero-index { margin: 2.4rem 0 .7rem; color: var(--dim); font-size: .6rem; letter-spacing: .1em; }
.hero h1 {
  position: relative;
  width: fit-content;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.9vw, 6.6rem);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--yellow); }
.hero-description { max-width: 670px; margin: 1.7rem 0 0; font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.2; }
.hero-context { max-width: 600px; margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }
.terminal-line { display: flex; min-height: 2rem; align-items: center; gap: .55rem; margin-top: 1.45rem; color: var(--text); font-size: .7rem; }
.terminal-prefix { color: var(--cyan); }
.terminal-cursor { width: .45rem; height: 1rem; background: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .6rem; padding: .75rem 1rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); font-size: .8rem; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--night); }
.button-primary:hover { box-shadow: 0 0 24px rgba(252, 238, 10, .24); }
.button-secondary { border: 1px solid var(--line-bright); color: var(--text); }
.button-secondary:hover { color: var(--yellow); }
.resume-note { margin: .9rem 0 0; color: var(--dim); font-size: .55rem; }
.hero-bottom { display: flex; justify-content: space-between; margin-top: clamp(3rem, 7vw, 6rem); color: var(--dim); font-size: .56rem; letter-spacing: .12em; }
.hero-bottom b { color: var(--yellow); }
.hud-frame { position: relative; border: 1px solid rgba(0, 240, 255, .3); background: linear-gradient(145deg, rgba(18, 19, 29, .96), rgba(11, 12, 19, .98)); box-shadow: 0 12px 50px rgba(0, 0, 0, .25), 0 0 30px rgba(0, 240, 255, .045); }
.hud-frame::before, .hud-frame::after { position: absolute; z-index: 2; width: 14px; height: 14px; border-color: var(--cyan); border-style: solid; content: ""; }
.hud-frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud-frame::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.id-card { width: min(100%, 360px); justify-self: end; padding: 1rem; overflow: hidden; }
.id-card-top, .id-card-foot { display: flex; justify-content: space-between; color: var(--dim); font-size: .56rem; letter-spacing: .09em; }
.id-card-portrait { position: relative; height: 175px; margin-top: .9rem; overflow: hidden; background: #14151f; }
.id-card-portrait::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 13, .7), transparent 60%), repeating-linear-gradient(135deg, transparent 0 11px, rgba(0, 240, 255, .12) 11px 12px); content: ""; }
.identity-graphic { display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(0, 240, 255, .08), transparent 58%), #10111a; }
.identity-graphic svg { width: min(80%, 280px); height: 80%; stroke: rgba(0, 240, 255, .58); stroke-width: 1; }
.identity-graphic circle { fill: var(--yellow); stroke: var(--night); stroke-width: 2; }
.identity-graphic .identity-glyph { stroke: rgba(252, 238, 10, .45); stroke-width: .8; }
.identity-coordinate { position: absolute; z-index: 1; top: .65rem; right: .65rem; color: var(--cyan); font-size: .49rem; letter-spacing: .06em; }
.portrait-stamp { position: absolute; z-index: 1; right: .6rem; bottom: .55rem; color: var(--yellow); font-size: .62rem; }
.portrait-corner { position: absolute; z-index: 1; top: .6rem; left: .6rem; width: 24px; height: 24px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.id-card-name { position: relative; z-index: 1; margin-top: 1rem; }
.micro-label { color: var(--cyan); font-size: .55rem; }
.id-card-name h2 { margin: .3rem 0 0; font-family: var(--display); font-size: 2rem; line-height: .98; text-transform: uppercase; }
.id-card-data { position: relative; z-index: 1; display: grid; gap: .7rem; margin: 1rem 0; }
.id-card-data div { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; }
.id-card-data dt { color: var(--dim); font-size: .55rem; }
.id-card-data dd { margin: 0; color: var(--text); font-size: .76rem; }
.id-card-foot { align-items: center; padding-top: .75rem; border-top: 1px solid var(--line); }
.id-card-foot span:last-child { color: var(--cyan); font-size: .8rem; }
.id-circuit { position: absolute; right: -.2rem; bottom: 1rem; width: 90px; opacity: .32; stroke: var(--cyan); stroke-width: 1; }
.id-circuit circle { fill: var(--cyan); }

/* Components: dossier */
.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); }
.section-about { overflow: hidden; }
.section-about .section-heading { position: relative; }
.section-about .section-code { position: relative; z-index: 1; }
.section-about .section-heading .eyebrow { position: relative; z-index: 1; }
.ornament { margin-top: 1.5rem; color: var(--dim); font-size: .58rem; }
.about-copy { padding-top: 3rem; color: var(--muted); font-size: .98rem; }
.about-copy p { margin: 0 0 1.2rem; }
.about-copy .lead-copy { color: var(--text); font-size: clamp(1.05rem, 1.8vw, 1.32rem); line-height: 1.55; }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.3rem; border: 1px solid var(--line); }
.fact { min-width: 0; padding: 1rem; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-label { display: block; margin-bottom: .6rem; color: var(--cyan); font-size: .56rem; }
.fact strong, .fact > span:last-child { display: block; }
.fact strong { color: var(--text); font-family: var(--display); font-size: 1rem; }
.fact > span:last-child { margin-top: .2rem; color: var(--muted); font-size: .7rem; }

/* Components: mission timeline */
.section-missions { background: linear-gradient(180deg, #0b0b13, #08080e); }
.mission-log { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.mission-log::before { position: absolute; top: 1.7rem; bottom: 1.7rem; left: 1.1rem; width: 1px; background: linear-gradient(var(--yellow), var(--cyan), var(--magenta)); opacity: .45; content: ""; }
.mission-card { position: relative; min-width: 0; margin-left: 2.8rem; padding: clamp(1.2rem, 3.2vw, 2.4rem); border: 1px solid var(--line); background: var(--panel); }
.mission-card::before { position: absolute; top: 1.6rem; left: -2.22rem; width: .7rem; height: .7rem; border: 1px solid var(--yellow); background: var(--night); transform: rotate(45deg); content: ""; }
.mission-card-cyan::before { border-color: var(--cyan); }
.mission-card-magenta::before { border-color: var(--magenta); }
.mission-index { display: block; margin-bottom: 1.35rem; color: var(--yellow); font-size: .57rem; }
.mission-card-cyan .mission-index { color: var(--cyan); }
.mission-card-magenta .mission-index { color: var(--magenta); }
.mission-main { display: grid; min-width: 0; grid-template-columns: minmax(190px, .6fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); }
.project-category { margin: 0 0 .7rem; color: var(--dim); font-size: .56rem; }
.mission-title h3 { margin: 0; font-family: var(--display); font-size: clamp(1.65rem, 3.6vw, 2.7rem); line-height: .96; text-transform: uppercase; }
.mission-details dl { display: grid; gap: .9rem; margin: 0; }
.mission-details dl > div { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; }
.mission-details dt { padding-top: .15rem; color: var(--yellow); font-size: .55rem; }
.mission-card-cyan .mission-details dt { color: var(--cyan); }
.mission-card-magenta .mission-details dt { color: var(--magenta); }
.mission-details dd { margin: 0; color: var(--muted); font-size: .83rem; }
.mission-points { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.mission-points li { position: relative; padding-left: 1rem; }
.mission-points li::before { position: absolute; left: 0; color: var(--cyan); content: "↳"; }
.mission-stack-label { margin: 1.1rem 0 -.6rem; color: var(--yellow); font-size: .55rem; font-weight: 600; letter-spacing: .04em; }
.mission-stack { margin-top: 1rem; }
.chip-list, .project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.chip-list li, .project-tags li { padding: .3rem .5rem; border: 1px solid rgba(224, 225, 238, .15); color: var(--muted); font-family: var(--mono); font-size: .59rem; }
.mission-stamp { position: absolute; top: 1.6rem; right: 1.5rem; color: rgba(252, 238, 10, .55); font-size: .57rem; }

/* Components: loadout */
.section-loadout { background-color: #0b0b13; }
.loadout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.loadout-slot { position: relative; min-height: 210px; padding: 1.25rem; border: 1px solid var(--line); background: linear-gradient(145deg, var(--panel-raised), #0c0d15); }
.loadout-slot::before { position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); content: ""; }
.loadout-primary { border-color: rgba(252, 238, 10, .3); background: linear-gradient(145deg, rgba(252, 238, 10, .055), #0d0e16 52%); }
.loadout-primary::before { border-color: var(--yellow); }
.loadout-csharp::before { border-color: var(--magenta); }
.slot-label { color: var(--dim); font-size: .55rem; }
.slot-glyph { position: absolute; top: 1rem; right: 1rem; color: var(--cyan); font-family: var(--display); font-size: 1.2rem; }
.loadout-primary .slot-glyph { color: var(--yellow); }
.loadout-slot h3 { margin: 1.5rem 0 .3rem; font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.loadout-primary h3 { color: var(--yellow); font-size: 1.45rem; }
.soft-skills { display: grid; gap: .5rem; margin-top: 1rem; padding: 1rem; border-left: 1px solid var(--cyan); background: rgba(0, 240, 255, .035); color: var(--muted); font-size: .65rem; }
.soft-skills p { margin: 0; }
.soft-skills b { color: var(--cyan); font-weight: 500; }

/* Components: project contracts */
.section-projects { overflow: hidden; }
.project-filter-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin: 2.6rem 0 1.3rem; }
.filter-label { margin: 0; color: var(--dim); font-size: .55rem; }
.project-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-button { min-height: 34px; padding: .35rem .65rem; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: var(--mono); font-size: .57rem; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--yellow); color: var(--yellow); }
.filter-button.is-active { background: rgba(252, 238, 10, .07); }
.filter-status { margin: 0; color: var(--dim); font-size: .52rem; white-space: nowrap; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.project-card { position: relative; display: flex; min-height: 265px; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(0, 240, 255, .45); }
.project-card[hidden] { display: none; }
.project-card .project-category { min-height: 1.2rem; }
.project-card h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; }
.project-card > p:not(.project-category) { margin: .65rem 0; color: var(--muted); font-size: .8rem; }
.project-tags { margin-top: auto; padding-top: .5rem; }
.project-tags li { font-size: .52rem; }
.project-link { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--yellow); font-family: var(--mono); font-size: .63rem; }
.project-link:hover { color: var(--cyan); }
.project-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: auto; }
.project-actions .project-link { min-width: 0; gap: .25rem; font-size: .56rem; }
.project-note { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--cyan); font-size: .54rem; }

/* Components: education and contact */
.training-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 8vw, 8rem); }
.training-content { padding-top: .8rem; }
.education-timeline { display: grid; }
.education-entry { display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.education-date { padding-top: .35rem; color: var(--cyan); font-size: .61rem; }
.education-entry h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; text-transform: uppercase; }
.education-entry p { margin: .45rem 0 0; color: var(--muted); font-size: .77rem; }
.education-state { margin-left: .4rem; color: var(--yellow); font-family: var(--mono); font-size: .52rem; }
.education-current { color: var(--cyan); }
.courses-panel { margin-top: 2.3rem; padding: 1.3rem; border: 1px solid var(--line); background: var(--panel); }
.courses-panel > p { margin: 0 0 .9rem; color: var(--dim); font-size: .58rem; }
.courses-panel ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.courses-panel li { position: relative; padding-left: 1rem; color: var(--muted); font-size: .78rem; }
.courses-panel li::before { position: absolute; top: .7em; left: 0; width: .35rem; height: 1px; background: var(--yellow); content: ""; }
.section-contact { background: radial-gradient(ellipse at 20% 60%, rgba(255, 42, 109, .07), transparent 45%), #0b0b13; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.contact-copy h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.contact-copy > p:not(.eyebrow):not(.section-code) { max-width: 410px; color: var(--muted); }
.contact-coordinate { display: inline-block; margin-top: 1.3rem; color: var(--magenta); font-size: .58rem; letter-spacing: .09em; }
.contact-panel { padding: clamp(1rem, 3vw, 2rem); }
.contact-panel::before, .contact-panel::after { border-color: var(--magenta); }
.contact-entry { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-kind { color: var(--dim); font-size: .53rem; }
.contact-entry > a { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: .82rem; }
.contact-entry > a:hover { color: var(--yellow); }
.contact-entry .contact-arrow { color: var(--magenta); text-align: right; }
.copy-button { min-height: 34px; padding: .35rem .55rem; border: 1px solid var(--line-bright); background: transparent; color: var(--yellow); font-size: .53rem; cursor: pointer; }
.copy-button:hover { background: rgba(252, 238, 10, .08); }
.copy-feedback { min-height: 1rem; margin: .6rem 0 0; color: var(--cyan); font-size: .53rem; }
.site-footer { padding: 1.2rem 0; border-top: 1px solid var(--line); background: var(--night); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; color: var(--dim); font-size: .53rem; letter-spacing: .04em; }
.footer-inner .audio-credit { flex-basis: 100%; color: var(--dim); font-size: .5rem; }
.audio-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(0, 240, 255, .4); text-underline-offset: 3px; }
.audio-credit a:hover { color: var(--cyan); }
.glitch-toggle { padding: .5rem .65rem; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .53rem; cursor: pointer; }
.glitch-toggle span { color: var(--yellow); }

/* Effects */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.glitch-title.glitch-in { animation: title-glitch .44s steps(2, end) both; }
@keyframes title-glitch {
  0% { text-shadow: -3px 0 var(--cyan), 3px 0 var(--magenta); clip-path: inset(0 0 70% 0); }
  35% { text-shadow: 3px 0 var(--cyan), -3px 0 var(--magenta); clip-path: inset(35% 0 30% 0); }
  70% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta); clip-path: inset(70% 0 0 0); }
  100% { text-shadow: none; clip-path: inset(0); }
}
.glitch-off body::before { display: none; }
.glitch-off .glitch-title.glitch-in { animation: none; }
.glitch-off .project-card:hover { transform: none; }
.boot-screen { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; background: var(--night); transition: opacity .2s ease; }
.boot-screen.is-finished { opacity: 0; pointer-events: none; }
.boot-inner { display: grid; width: min(400px, calc(100% - 3rem)); gap: 1.2rem; }
.boot-inner > span:first-child { color: var(--cyan); font-size: .58rem; letter-spacing: .1em; }
.boot-inner strong { font-family: var(--display); font-size: clamp(3.5rem, 13vw, 6rem); line-height: .82; }
.boot-inner strong span { color: var(--yellow); }
.boot-progress { height: 2px; background: var(--line); }
.boot-progress i { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--yellow); animation: boot-progress 1s ease-out both; }
@keyframes boot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.boot-prompt { margin: 0; color: var(--muted); font-size: .58rem; letter-spacing: .08em; }
.boot-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.boot-action { min-height: 42px; padding: .65rem .8rem; border: 1px solid var(--line-bright); background: transparent; color: var(--text); font-size: .58rem; cursor: pointer; }
.boot-action-primary { border-color: var(--yellow); background: var(--yellow); color: var(--night); }
.boot-action:hover { box-shadow: 0 0 14px rgba(252, 238, 10, .2); }
.boot-skip { width: fit-content; padding: .4rem 0; border: 0; background: none; color: var(--muted); font-size: .56rem; cursor: pointer; }
.boot-skip:hover { color: var(--yellow); }

/* Responsive */
@media (min-width: 1500px) {
  .hero { min-height: min(900px, calc(100svh - var(--nav-height))); }
}

@media (max-width: 940px) {
  :root { --nav-height: 66px; }
  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .56rem; }
  .audio-label { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; }
  .hero h1 { font-size: clamp(3.6rem, 7vw, 5.6rem); }
  .about-layout, .training-layout { gap: 3rem; }
  .loadout-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-filter-wrap { grid-template-columns: 1fr auto; }
  .filter-label { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(var(--container), calc(100% - 2rem)); }
  .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--panel); font-family: var(--mono); font-size: .64rem; }
  .menu-icon { display: grid; gap: 4px; }
  .menu-icon i { width: 15px; height: 1px; background: var(--yellow); }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; border-bottom: 1px solid var(--line); background: rgba(7, 7, 13, .98); }
  .nav-links.is-open { display: grid; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a, .nav-links .nav-cta { display: block; padding: .8rem .35rem; border: 0; font-size: .68rem; }
  .nav-links a::after { content: none; }
  .audio-label { display: inline; }
  .hero { min-height: auto; padding-top: 3.2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-index { margin-top: 1.7rem; }
  .hero h1 { font-size: clamp(3.25rem, 13vw, 5.1rem); }
  .hero-description { margin-top: 1.25rem; }
  .hero-context { font-size: .88rem; }
  .terminal-line { flex-wrap: wrap; font-size: .61rem; }
  .id-card { width: min(100%, 420px); justify-self: start; }
  .id-card-portrait { height: 200px; }
  .hero-bottom { margin-top: 2.8rem; }
  .section { padding: 4.5rem 0; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 1rem; }
  .section-heading-row .section-code { margin-bottom: 1.3rem; }
  .section-aside { text-align: left; }
  .about-layout, .training-layout, .contact-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-copy { padding-top: 0; }
  .section-number { top: 1rem; right: -1rem; font-size: 9rem; }
  .profile-facts { grid-template-columns: 1fr; }
  .fact + .fact { border-top: 1px solid var(--line); border-left: 0; }
  .mission-log::before { left: .5rem; }
  .mission-card { margin-left: 1.45rem; padding: 1.15rem; }
  .mission-card::before { left: -1.32rem; width: .6rem; height: .6rem; }
  .mission-main { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .mission-main > * { min-width: 0; }
  .mission-details dl > div { grid-template-columns: 72px 1fr; gap: .5rem; }
  .mission-stamp { top: 1.15rem; right: 1rem; }
  .loadout-grid, .projects-grid { grid-template-columns: 1fr; }
  .loadout-slot { min-height: auto; }
  .project-filter-wrap { grid-template-columns: 1fr; gap: .8rem; }
  .filter-label { grid-column: auto; }
  .project-filters { gap: .35rem; }
  .filter-button { min-height: 38px; }
  .filter-status { justify-self: start; }
  .education-entry { grid-template-columns: 95px 1fr; gap: .7rem; }
  .education-entry h3 { font-size: 1.13rem; }
  .contact-copy h2 { font-size: clamp(2.7rem, 12vw, 4.5rem); }
  .contact-panel { padding: .8rem; }
  .contact-entry { grid-template-columns: 65px minmax(0, 1fr) auto; gap: .4rem; }
  .contact-entry > a { font-size: .73rem; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 1.5rem); }
  .brand { gap: .45rem; font-size: .85rem; }
  .hero h1 { font-size: 3.65rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .contact-entry { grid-template-columns: 1fr auto; }
  .contact-kind { grid-column: 1 / -1; }
  .contact-entry > a { grid-column: 1; }
  .contact-entry > .copy-button, .contact-entry > .contact-arrow { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body::before { display: none; }
  .reveal { opacity: 1; transform: none; }
}
