/* ==========================================================
   PORTFOLIO — Matrix × Iron Man theme
   ----------------------------------------------------------
   Two modes, switched with the pill button in the nav:
   - "stark"  (red pill):  gold/red HUD + arc-reactor cyan over green code rain
   - "matrix" (blue pill): everything goes full Matrix green
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #020604;
    --bg-soft: #06110c;
    --panel: rgba(5, 14, 11, 0.86);
    --text: #e2ebe6;
    --muted: #93a99e;
    --code: #3dff8a;            /* Matrix green, used in both modes */
    --danger: #ff4d5e;

    --primary: #ffc640;         /* Stark gold */
    --primary-rgb: 255, 198, 64;
    --secondary: #e3263b;       /* Stark red */
    --secondary-rgb: 227, 38, 59;
    --glow: #62f3ff;            /* arc reactor */
    --glow-rgb: 98, 243, 255;
    --line: rgba(var(--primary-rgb), 0.22);

    --rain: #00ff66;
    --rain-head: #e6fff0;
    --rain-alt: #ffc640;        /* some columns rain in gold */
    --rain-fade: rgba(2, 6, 4, 0.12);
    --rain-opacity: 0.16;

    --font-display: "Orbitron", "Segoe UI", sans-serif;
    --font-body: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    --font-mono: "Share Tech Mono", ui-monospace, Consolas, monospace;

    --maxw: 1200px;
    --nav-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-mode="matrix"] {
    --text: #d4f9e0;
    --muted: #7fae90;
    --primary: #39ff7a;
    --primary-rgb: 57, 255, 122;
    --secondary: #00b84a;
    --secondary-rgb: 0, 184, 74;
    --glow: #b8ffd0;
    --glow-rgb: 184, 255, 208;
    --rain-alt: #39ff7a;
    --rain-opacity: 0.3;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}
html.intro-open { overflow: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: color .5s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; }

::selection { background: var(--primary); color: #000; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 300;
    background: var(--primary); color: #000; padding: 10px 16px;
    font-family: var(--font-mono); transition: top .2s;
}
.skip-link:focus { top: 16px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Background layers ---------- */
#rain {
    position: fixed; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    background: var(--bg);
    opacity: var(--rain-opacity);
    transition: opacity .8s ease;
}
html.intro-open #rain { z-index: 99; opacity: 1; }

.bg-fx {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 85% 5%, rgba(var(--glow-rgb), .10), transparent 70%),
        radial-gradient(ellipse 60% 50% at 5% 95%, rgba(var(--secondary-rgb), .13), transparent 70%),
        radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .7) 100%);
    transition: background .6s;
}
/* faint HUD grid */
.bg-fx::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
/* CRT scanlines */
.bg-fx::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
}

/* mode-switch glitch flash */
.flash {
    position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0;
    background:
        repeating-linear-gradient(0deg, rgba(var(--primary-rgb), .25) 0 2px, transparent 2px 6px),
        radial-gradient(circle, rgba(var(--glow-rgb), .35), transparent 70%);
}
html.is-switching .flash { animation: flash .55s ease-out; }
html.is-switching main { animation: jolt .35s steps(3); }

@keyframes flash {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes jolt {
    0% { transform: translate(0); filter: hue-rotate(0); }
    33% { transform: translate(-4px, 2px); filter: hue-rotate(40deg); }
    66% { transform: translate(3px, -2px); }
    100% { transform: translate(0); filter: none; }
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
    display: block; height: 100%; width: 100%;
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--glow));
    box-shadow: 0 0 10px var(--primary);
}

/* HUD reticle cursor (desktop) */
.cursor {
    position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid rgba(var(--primary-rgb), .75);
    border-radius: 50%;
    opacity: 0;
    transition: width .2s, height .2s, margin .2s, border-color .2s, opacity .3s;
    display: none;
}
.cursor::before, .cursor::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    background: rgba(var(--primary-rgb), .9);
}
.cursor::before { width: 1px; height: 140%; transform: translate(-50%, -50%); -webkit-mask: linear-gradient(#000 0 22%, transparent 22% 78%, #000 78%); mask: linear-gradient(#000 0 22%, transparent 22% 78%, #000 78%); }
.cursor::after  { height: 1px; width: 140%; transform: translate(-50%, -50%); -webkit-mask: linear-gradient(90deg, #000 0 22%, transparent 22% 78%, #000 78%); mask: linear-gradient(90deg, #000 0 22%, transparent 22% 78%, #000 78%); }
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--glow); border-style: dashed; }
@media (pointer: fine) { html.js .cursor { display: block; } }

/* Fixed HUD readouts */
.hud { display: none; }
@media (min-width: 1100px) {
    .hud { display: block; position: fixed; inset: 0; z-index: 40; pointer-events: none; }
    .hud__corner { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(var(--primary-rgb), .5); }
    .hud__corner--bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
    .hud__corner--br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
    .hud__readout {
        position: absolute; bottom: 20px;
        font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
        color: rgba(var(--primary-rgb), .75);
    }
    .hud__readout i { color: var(--code); font-style: normal; }
    .hud__readout--bl { left: 52px; }
    .hud__readout--br { right: 52px; }
}

/* ---------- Buttons ---------- */
.btn {
    --cut: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display); font-size: .8rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 15px 26px;
    border: 1px solid var(--primary);
    color: var(--primary); background: transparent;
    cursor: pointer;
    transition: color .25s, background .25s, box-shadow .25s, transform .25s, filter .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    background: var(--primary); color: #0b0800; border: 0; padding: 16px 28px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn--primary:hover { filter: brightness(1.15); }
.btn--ghost:hover {
    background: rgba(var(--primary-rgb), .1);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), .3), inset 0 0 12px rgba(var(--primary-rgb), .15);
}
.btn .icon { transition: transform .25s; }
.btn:hover .icon { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--nav-h);
    display: flex; align-items: center;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.nav.is-scrolled, .nav.is-open {
    background: rgba(2, 6, 4, .85);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-color: var(--line);
}
.nav__inner {
    width: min(100% - 32px, var(--maxw)); margin-inline: auto;
    display: flex; align-items: center; gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo__mark {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .05em;
    color: var(--glow);
    border: 1px solid rgba(var(--glow-rgb), .6);
    box-shadow: 0 0 14px rgba(var(--glow-rgb), .35), inset 0 0 12px rgba(var(--glow-rgb), .35);
    background: radial-gradient(circle, rgba(var(--glow-rgb), .18), transparent 70%);
}
.logo__text {
    font-family: var(--font-display); font-weight: 700; font-size: .9rem;
    letter-spacing: .14em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav__menu { margin-left: auto; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
    display: block; position: relative;
    padding: 8px 12px;
    font-family: var(--font-mono); font-size: .85rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
    transition: color .2s;
}
.nav__links a span { color: var(--primary); margin-right: 4px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
    background: var(--primary); box-shadow: 0 0 8px var(--primary);
    transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.mode-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    background: transparent; color: var(--text);
    border: 1px solid var(--line);
    font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.mode-toggle:hover { border-color: var(--primary); box-shadow: 0 0 14px rgba(var(--primary-rgb), .25); }
.mode-toggle__pill {
    width: 28px; height: 12px; border-radius: 99px;
    background: linear-gradient(90deg, #ff3b4e 50%, #8a1020 50%);
    box-shadow: 0 0 10px rgba(255, 59, 78, .7);
    transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
[data-mode="matrix"] .mode-toggle__pill {
    background: linear-gradient(90deg, #3d8bff 50%, #123a8a 50%);
    box-shadow: 0 0 10px rgba(61, 139, 255, .7);
    transform: rotate(180deg);
}
.when-matrix { display: none; }
[data-mode="matrix"] .when-matrix { display: inline; }
[data-mode="matrix"] .when-stark { display: none; }

.nav__burger {
    display: none;
    width: 44px; height: 44px; padding: 12px 10px;
    background: transparent; border: 1px solid var(--line); cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.nav__burger span { display: block; height: 2px; background: var(--primary); transition: transform .3s, opacity .3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav__burger { display: flex; }
    .nav__menu {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: rgba(2, 6, 4, .96);
        border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden;
        transition: max-height .4s var(--ease);
    }
    .nav.is-open .nav__menu { max-height: 420px; }
    .nav__links { flex-direction: column; padding: 12px 16px 20px; }
    .nav__links a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid rgba(var(--primary-rgb), .08); }
    .nav__links a::after { display: none; }
    .mode-toggle { margin-left: auto; }
}
@media (max-width: 480px) {
    .logo__text { display: none; }
    .mode-toggle__label { display: none; }
}

/* ---------- Shared bits ---------- */
.hud-tag {
    display: block; margin: 0;
    font-family: var(--font-mono); font-size: .92rem; letter-spacing: .04em;
    color: var(--glow);
}
.hud-tag::before {
    content: ""; display: inline-block; vertical-align: middle; margin: -3px 10px 0 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--glow); box-shadow: 0 0 10px var(--glow);
    animation: blink 1.6s infinite;
}
.hud-tag i { color: var(--code); font-style: normal; }

.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
}
.panel::before, .panel::after {
    content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
    border: 2px solid var(--primary);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em;
    padding: 4px 10px;
    color: var(--code);
    border: 1px solid rgba(61, 255, 138, .3);
    background: rgba(61, 255, 138, .06);
}
.tags--lg li { font-size: .88rem; padding: 7px 14px; transition: border-color .2s, box-shadow .2s, color .2s; }
.tags--lg li:hover { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px rgba(var(--primary-rgb), .25); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid var(--line); color: var(--muted);
    transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.socials a:hover {
    color: var(--primary); border-color: var(--primary); transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), .35);
}
.socials .icon { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }

.section-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 56px; }
.section-head__index {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(3rem, 7vw, 4.8rem); line-height: .8;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--primary-rgb), .55);
}
.section-head__kicker {
    margin: 0 0 6px;
    font-family: var(--font-mono); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--code);
}
.section-head__title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.1;
    letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap;
}
.section-head__line {
    flex: 1; height: 1px; margin-bottom: 14px; position: relative; min-width: 30px;
    background: linear-gradient(90deg, var(--line), transparent);
}
.section-head__line::after {
    content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 5px;
    background: var(--primary); box-shadow: 0 0 10px var(--primary);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: grid; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 90px;
    position: relative;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero__hello { margin: 22px 0 0; color: var(--muted); font-size: 1.25rem; font-weight: 600; }
.hero__name {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(2.5rem, 7.2vw, 5.6rem); line-height: 1.02;
    letter-spacing: .02em; text-transform: uppercase;
    margin: 8px 0 14px;
    text-shadow: 0 0 34px rgba(var(--primary-rgb), .28);
    overflow-wrap: anywhere;
}
.hero__role {
    margin: 0; display: flex; align-items: center; gap: 12px; min-height: 1.6em;
    font-family: var(--font-mono); font-size: clamp(1.1rem, 2.3vw, 1.5rem);
    color: var(--primary);
}
.hero__role-prefix { color: var(--code); }
.caret {
    display: inline-block; width: .55em; height: 1.1em; margin-left: -8px;
    background: var(--code); box-shadow: 0 0 8px var(--code);
    animation: blink 1s steps(1) infinite;
}
.hero__tagline { max-width: 54ch; margin: 22px 0 0; color: var(--muted); font-size: 1.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .socials { margin-top: 30px; }

/* glitching name */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--secondary); transform: translate(-3px, 0); clip-path: inset(0 0 100% 0); animation: glitch-a 5s infinite steps(1); }
.glitch::after { color: var(--glow); transform: translate(3px, 0); clip-path: inset(100% 0 0 0); animation: glitch-b 5s infinite steps(1); }
@keyframes glitch-a {
    0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
    87% { clip-path: inset(12% 0 60% 0); }
    89% { clip-path: inset(48% 0 22% 0); }
    91% { clip-path: inset(78% 0 4% 0); }
    93% { clip-path: inset(30% 0 52% 0); }
}
@keyframes glitch-b {
    0%, 87%, 100% { clip-path: inset(100% 0 0 0); }
    88% { clip-path: inset(62% 0 12% 0); }
    90% { clip-path: inset(8% 0 70% 0); }
    92% { clip-path: inset(40% 0 38% 0); }
    94% { clip-path: inset(85% 0 2% 0); }
}

/* entrance animation (runs after the intro closes) */
html.js .hero [data-anim] { opacity: 0; transform: translateY(24px); }
html.js.is-ready .hero [data-anim] {
    opacity: 1; transform: none;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}

.scroll-cue {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--muted);
}
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--primary), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after {
    content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
    background: var(--glow); box-shadow: 0 0 6px var(--glow);
    animation: drip 1.8s infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Arc reactor ---------- */
.reactor-wrap { position: relative; padding: 40px 0; }
.reactor {
    --size: clamp(230px, 32vw, 400px);
    position: relative; width: var(--size); aspect-ratio: 1; margin-inline: auto;
}
.reactor > * { position: absolute; border-radius: 50%; }

.reactor__halo {
    inset: -18%;
    background: radial-gradient(circle, rgba(var(--glow-rgb), .28), transparent 62%);
    animation: pulse 3.2s ease-in-out infinite;
}
.reactor__ring--outer {
    inset: 0; border: 1px dashed rgba(var(--primary-rgb), .6);
    animation: spin 40s linear infinite;
}
.reactor__ring--outer::before, .reactor__ring--outer::after {
    content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 12px var(--primary);
    top: 50%; left: -5px; margin-top: -5px;
}
.reactor__ring--outer::after { left: auto; right: -5px; background: var(--secondary); box-shadow: 0 0 12px var(--secondary); }
.reactor__ring--ticks {
    inset: 5%;
    background: repeating-conic-gradient(rgba(var(--primary-rgb), .85) 0 1.2deg, transparent 1.2deg 6deg);
    -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 71%, transparent 72%);
            mask: radial-gradient(circle, transparent 64%, #000 65%, #000 71%, transparent 72%);
    animation: spin 60s linear infinite reverse;
}
.reactor__ring--arc {
    inset: 13%;
    border: 3px solid transparent;
    border-top-color: var(--secondary); border-bottom-color: var(--secondary);
    filter: drop-shadow(0 0 6px var(--secondary));
    animation: spin 7s linear infinite;
}
.reactor__casing {
    inset: 20%;
    background: radial-gradient(circle, #071216 50%, #1a2a31 51%, #0b161a 66%, #16252b 67%, #0a1418 100%);
    border: 2px solid rgba(var(--glow-rgb), .4);
    box-shadow: 0 0 40px rgba(var(--glow-rgb), .35), inset 0 0 30px rgba(0, 0, 0, .9);
}
.reactor__coils { inset: 20%; animation: spin 24s linear infinite; }
.reactor__coils i {
    position: absolute; left: 50%; top: 50%;
    width: 11%; height: 20%; margin: -10% 0 0 -5.5%;
    transform: rotate(calc(var(--i) * 36deg)) translateY(-185%);
    background: linear-gradient(180deg, #2c3d44, #0f1a1e);
    border: 1px solid rgba(var(--glow-rgb), .65);
    border-radius: 3px;
    box-shadow: inset 0 0 8px rgba(var(--glow-rgb), .55), 0 0 8px rgba(var(--glow-rgb), .4);
}
.reactor__core {
    inset: 34%;
    display: grid; place-items: center;
    background: radial-gradient(circle, #fff 0 16%, rgba(var(--glow-rgb), 1) 34%, rgba(var(--glow-rgb), .35) 60%, transparent 71%);
    box-shadow: 0 0 30px 6px rgba(var(--glow-rgb), .6), 0 0 90px 24px rgba(var(--glow-rgb), .3);
    animation: core 2.6s ease-in-out infinite;
}
.reactor__core svg { width: 82%; height: 82%; overflow: visible; filter: drop-shadow(0 0 6px rgba(var(--glow-rgb), 1)); }
.reactor__core polygon { fill: none; stroke: #fff; stroke-width: 7; stroke-linejoin: round; }

/* Profile photo framed by the reactor rings */
.reactor__photo {
    inset: 15%;
    overflow: hidden;
    background: #071216;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 6px rgba(var(--glow-rgb), .1), 0 0 40px rgba(var(--glow-rgb), .45);
}
.reactor__photo img { width: 100%; height: 100%; object-fit: cover; }
.reactor--photo .reactor__halo { inset: -12%; }

.readout {
    position: absolute;
    font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; line-height: 1.4;
    color: rgba(var(--primary-rgb), .85);
    padding: 6px 10px;
    border-left: 1px solid var(--primary);
    background: linear-gradient(90deg, rgba(var(--primary-rgb), .1), transparent);
}
.readout b { color: var(--glow); font-weight: 400; margin-right: 6px; }
.readout small { display: block; color: var(--code); font-size: .64rem; letter-spacing: .16em; }
.readout--tl { top: 0; left: 0; }
.readout--tr { top: 0; right: 0; }
.readout--bl { bottom: 0; left: 0; }
.readout--br { bottom: 0; right: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
@keyframes core { 50% { filter: brightness(1.25); box-shadow: 0 0 40px 10px rgba(var(--glow-rgb), .75), 0 0 120px 34px rgba(var(--glow-rgb), .35); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: stretch; }
.about--solo { grid-template-columns: 1fr; }
.about__bio p:first-child { font-size: 1.15rem; }
.about .panel p { margin: 0 0 1em; color: var(--text); }

.reticle { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; }
.reticle__ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), .5);
    border-top-color: var(--secondary); border-bottom-color: var(--secondary);
    animation: spin 16s linear infinite;
}
.reticle__ring--inner { inset: 6%; border: 1px dashed rgba(var(--glow-rgb), .5); animation-duration: 28s; animation-direction: reverse; }
.reticle__img {
    position: absolute; inset: 12%; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), .3), inset 0 0 40px rgba(0, 0, 0, .6);
    background:
        radial-gradient(circle, rgba(var(--glow-rgb), .14), transparent 70%),
        repeating-linear-gradient(0deg, rgba(61, 255, 138, .06) 0 1px, transparent 1px 4px),
        #041009;
    display: grid; place-items: center;
}
.reticle__img img { width: 100%; height: 100%; object-fit: cover; }
.reticle__initials {
    font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 9vw, 5.5rem);
    color: transparent; -webkit-text-stroke: 2px var(--primary);
    text-shadow: 0 0 30px rgba(var(--primary-rgb), .4);
}
.reticle__scan {
    position: absolute; left: 0; right: 0; top: 0; height: 30%;
    background: linear-gradient(transparent, rgba(var(--glow-rgb), .28));
    border-bottom: 1px solid var(--glow);
    animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }
/* crosshair */
.reticle::before, .reticle::after {
    content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none;
    background: rgba(var(--primary-rgb), .7);
}
.reticle::before { width: 1px; height: 112%; transform: translate(-50%, -50%); -webkit-mask: linear-gradient(#000 0 8%, transparent 8% 92%, #000 92%); mask: linear-gradient(#000 0 8%, transparent 8% 92%, #000 92%); }
.reticle::after  { height: 1px; width: 112%; transform: translate(-50%, -50%); -webkit-mask: linear-gradient(90deg, #000 0 8%, transparent 8% 92%, #000 92%); mask: linear-gradient(90deg, #000 0 8%, transparent 8% 92%, #000 92%); }
.reticle__label {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; white-space: nowrap;
    padding: 3px 10px; background: var(--bg); border: 1px solid var(--line);
}
.reticle__label--top { top: -14px; color: var(--secondary); }
.reticle__label--bottom { bottom: -14px; color: var(--primary); }

.datalist { display: grid; gap: 10px; margin: 22px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); }
.datalist div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.datalist dt { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--code); padding-top: 2px; }
.datalist dd { margin: 0; overflow-wrap: anywhere; }
.datalist a { color: var(--primary); }
.datalist a:hover { text-decoration: underline; }
.status-ok { color: var(--glow); }
.status-ok::before { content: "● "; color: var(--code); animation: blink 1.6s infinite; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: stretch; }
.stat {
    display: grid; align-content: center;
    padding: 22px 14px; text-align: center;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(var(--primary-rgb), .07), rgba(5, 14, 11, .85));
}
.stat__value {
    display: block; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary);
    text-shadow: 0 0 16px rgba(var(--primary-rgb), .4);
}
.stat__label { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
/* 2 or 4 groups: balanced two-column grid */
.skills--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .skills--two { grid-template-columns: 1fr; } }
.skill-group__title {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px;
    font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
}
.skill-group__title span { font-family: var(--font-mono); font-size: .75rem; color: var(--code); letter-spacing: .14em; }
.skill-list { display: grid; gap: 18px; }
.skill__top { display: flex; justify-content: space-between; margin-bottom: 7px; font-weight: 600; }
.skill__val { font-family: var(--font-mono); color: var(--primary); }
.skill__bar { height: 9px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(var(--primary-rgb), .15); padding: 1px; }
.skill__fill {
    display: block; height: 100%; width: 0;
    background: repeating-linear-gradient(90deg, var(--primary) 0 7px, transparent 7px 9px);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), .5);
    transition: width 1.4s var(--ease) .15s;
}
.skill.in-view .skill__fill, html:not(.js) .skill__fill { width: var(--lvl); }

/* Skills as tags (when levels are hidden) */
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chips li {
    padding: 8px 14px;
    font-weight: 600; font-size: 1rem;
    color: var(--text);
    background: rgba(var(--primary-rgb), .06);
    border: 1px solid rgba(var(--primary-rgb), .28);
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.skill-chips li:hover { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px rgba(var(--primary-rgb), .2); }

.arsenal { margin-top: 44px; text-align: center; }
.arsenal__title { font-family: var(--font-mono); color: var(--code); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; margin: 0 0 16px; }
.arsenal .tags { justify-content: center; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.projects > li { display: flex; }
.project {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    position: relative; flex: 1; display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .25s ease-out, border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.project::before { /* spotlight follows the mouse */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(400px circle at var(--mx) var(--my), rgba(var(--primary-rgb), .12), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.project:hover { border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 20px 50px -20px rgba(var(--primary-rgb), .35), 0 0 0 1px rgba(var(--primary-rgb), .1); }
.project:hover::before { opacity: 1; }

.project__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(var(--glow-rgb), .22), transparent 45%),
        radial-gradient(circle at 20% 90%, rgba(var(--secondary-rgb), .3), transparent 50%),
        linear-gradient(rgba(var(--primary-rgb), .08) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(var(--primary-rgb), .08) 1px, transparent 1px) 0 0 / 24px 24px,
        #040b08;
}
.project__placeholder span {
    font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; letter-spacing: .08em;
    color: transparent; -webkit-text-stroke: 1px var(--primary);
    text-shadow: 0 0 24px rgba(var(--primary-rgb), .35);
    transition: letter-spacing .5s var(--ease);
}
.project:hover .project__placeholder span { letter-spacing: .18em; }
.project__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 16px; }
.project__placeholder small { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--glow); opacity: .85; }
.project__mark {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    padding: 4px 10px; color: #0b0800; background: var(--primary);
}
.project__body { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project__title { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.project__desc { margin: 0; color: var(--muted); }
.project__links { display: flex; gap: 20px; margin-top: auto; padding-top: 6px; }
.project__links a {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); transition: color .2s;
}
.project__links a:hover { color: var(--glow); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before {
    content: ""; position: absolute; left: 20px; top: 8px; bottom: 0; width: 1px;
    background: linear-gradient(var(--primary), var(--line) 40%, transparent);
}
.timeline__item { position: relative; padding-left: 64px; }
.timeline__item + .timeline__item { margin-top: 30px; }
.timeline__node {
    position: absolute; left: 10px; top: 26px; width: 21px; height: 21px; border-radius: 50%;
    border: 2px solid var(--primary); background: var(--bg);
    box-shadow: 0 0 14px rgba(var(--glow-rgb), .6);
}
.timeline__node::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    background: var(--glow); box-shadow: 0 0 8px var(--glow);
    animation: pulse 2.4s ease-in-out infinite;
}
.timeline__period { margin: 0; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .14em; color: var(--code); }
.timeline__title { margin-top: 6px; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase; }
.timeline__org { margin: 2px 0 10px; color: var(--primary); font-weight: 600; }
.timeline__desc { margin: 0; color: var(--muted); }

/* company logo on a light tile, so any logo stays readable */
.timeline__card.has-logo { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; }
.timeline__info { min-width: 0; }
.timeline__logo {
    position: relative; overflow: hidden;
    width: 84px; height: 84px; padding: 12px;
    display: grid; place-items: center;
    background: #f4f7f8; border-radius: 8px;
    border: 1px solid rgba(var(--primary-rgb), .6);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .08), 0 0 24px rgba(var(--glow-rgb), .18);
}
.timeline__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.timeline__logo::after { /* light sweep on hover */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .8) 50%, transparent 60%);
    transform: translateX(-110%); transition: transform .9s var(--ease);
}
.timeline__card:hover .timeline__logo::after { transform: translateX(110%); }

/* "Current" job */
.timeline__badge {
    display: inline-flex; align-items: center; gap: 6px; vertical-align: 1px;
    padding: 1px 9px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--code); border: 1px solid rgba(61, 255, 138, .45); background: rgba(61, 255, 138, .08);
}
.timeline__badge::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--code); box-shadow: 0 0 8px var(--code); animation: blink 1.6s infinite;
}
.timeline__when + .timeline__badge { margin-left: 12px; }
.timeline__item.is-current .timeline__node { border-color: var(--code); box-shadow: 0 0 18px rgba(61, 255, 138, .7); }
.timeline__item.is-current .timeline__node::after { background: var(--code); box-shadow: 0 0 8px var(--code); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonials--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; }
.testimonial__mark { width: 34px; height: 34px; color: var(--primary); opacity: .85; }
.testimonial__quote { margin: 0; flex: 1; font-size: 1.12rem; line-height: 1.75; color: var(--text); }
.testimonial__quote p { margin: 0; }
.testimonial__person { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.testimonial__photo {
    flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary); box-shadow: 0 0 14px rgba(var(--glow-rgb), .25);
}
.testimonial__photo--initials {
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--glow);
    background: radial-gradient(circle, rgba(var(--glow-rgb), .16), transparent 70%);
}
.testimonial__who { display: grid; min-width: 0; line-height: 1.35; }
.testimonial__who b { font-family: var(--font-display); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }
.testimonial__who small { color: var(--muted); font-size: 1rem; }
.testimonial__link {
    margin-left: auto; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
    color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.testimonial__link:hover { color: var(--primary); border-color: var(--primary); }
@media (max-width: 700px) {
    .testimonials { grid-template-columns: 1fr; }
    .testimonial { padding: 24px 18px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.terminal { padding: 0; }
.terminal__bar {
    display: flex; align-items: center; gap: 8px; padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: .8rem; color: var(--muted);
    background: rgba(var(--primary-rgb), .04);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.terminal__title { margin-left: 10px; }

.form { display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 1rem; color: var(--text); }
.field input, .field textarea {
    width: 100%; padding: 13px 15px;
    background: rgba(0, 0, 0, .45); color: var(--text);
    border: 1px solid var(--line); border-radius: 0;
    font-family: var(--font-body); font-size: 1.05rem; font-weight: 500;
    caret-color: var(--primary);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(147, 169, 158, .45); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15), 0 0 18px rgba(var(--primary-rgb), .15);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.form-status { flex: 1; min-width: 200px; margin: 0; font-weight: 600; color: var(--muted); }
.form-status.is-ok { color: var(--code); }
.form-status.is-err { color: var(--danger); }

.contact__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.contact__text { color: var(--muted); margin: 12px 0 20px; }
.contact__list { display: grid; gap: 14px; margin-bottom: 24px; }
.contact__list li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.contact__list .icon { color: var(--primary); width: 20px; height: 20px; }
.contact__list a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; background: rgba(2, 6, 4, .7); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.footer p { margin: 0; }
.footer__code { color: var(--code); }
.footer__top { color: var(--primary); }
.footer__top:hover { color: var(--glow); }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Intro (boot sequence + pills) ---------- */
.intro { display: none; }
html.js.intro-open .intro {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.intro.is-leaving .intro__screen { animation: intro-out .7s var(--ease) forwards; }
.intro.is-leaving::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px;
    border-radius: 50%; border: 2px solid var(--glow); box-shadow: 0 0 30px var(--glow), inset 0 0 30px var(--glow);
    animation: suit-up .7s ease-in forwards;
}
@keyframes intro-out { to { opacity: 0; transform: scale(1.08); filter: blur(4px); } }
@keyframes suit-up { to { transform: scale(60); opacity: 0; } }

.intro__screen {
    width: min(700px, 100%);
    padding: 28px 30px;
    background: rgba(0, 0, 0, .78);
    border: 1px solid rgba(61, 255, 138, .3);
    box-shadow: 0 0 60px rgba(0, 0, 0, .9), 0 0 30px rgba(61, 255, 138, .12);
    font-family: var(--font-mono); font-size: clamp(.92rem, 2.4vw, 1.12rem);
    color: var(--code);
}
.intro__line { margin: 0; min-height: 1.6em; text-shadow: 0 0 8px rgba(61, 255, 138, .6); white-space: pre-wrap; }
.intro__line:empty { min-height: 0; }
.intro__line.is-active::after { content: "█"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
.intro__line--big { margin: .6em 0 .3em; font-size: 1.5em; color: #c6ffd9; }
.intro__line--dim { margin-top: .8em; color: var(--muted); }

.intro__choice {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.intro__choice.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.pill-btn {
    display: flex; align-items: center; gap: 14px; text-align: left;
    padding: 16px 18px; cursor: pointer;
    background: rgba(0, 0, 0, .6); border: 1px solid;
    transition: box-shadow .25s, background .25s, transform .25s;
}
.pill-btn strong { display: block; font-family: var(--font-display); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.pill-btn small { display: block; font-family: var(--font-mono); font-size: .8rem; opacity: .8; }
.pill-btn__pill { flex: none; width: 40px; height: 16px; border-radius: 99px; transform: rotate(-30deg); }
.pill-btn:hover, .pill-btn:focus-visible { transform: translateY(-3px); }
.pill-btn--red { color: #ff7a87; border-color: #e3263b; }
.pill-btn--red .pill-btn__pill { background: linear-gradient(90deg, #ff3b4e 50%, #8a1020 50%); box-shadow: 0 0 14px #ff3b4e; }
.pill-btn--red:hover, .pill-btn--red:focus-visible { background: rgba(227, 38, 59, .14); box-shadow: 0 0 26px rgba(227, 38, 59, .45); }
.pill-btn--blue { color: #8ab8ff; border-color: #2f7bff; }
.pill-btn--blue .pill-btn__pill { background: linear-gradient(90deg, #3d8bff 50%, #123a8a 50%); box-shadow: 0 0 14px #3d8bff; }
.pill-btn--blue:hover, .pill-btn--blue:focus-visible { background: rgba(47, 123, 255, .14); box-shadow: 0 0 26px rgba(47, 123, 255, .45); }

.intro__skip {
    position: absolute; right: 20px; bottom: 20px;
    padding: 8px 14px; cursor: pointer;
    background: rgba(0, 0, 0, .7); color: var(--muted);
    border: 1px solid rgba(255, 255, 255, .15);
    font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em;
}
.intro__skip:hover { color: var(--text); border-color: var(--code); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 20px; }
    .hero__visual { order: -1; }
    .reactor { --size: clamp(240px, 64vw, 320px); }
    .reactor-wrap { padding: 10px 0; }
    .about { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    body { font-size: 1.04rem; }
    .section { padding: 80px 0; }
    .section-head { gap: 14px; margin-bottom: 40px; }
    .section-head__line { display: none; }
    .hero { padding-top: calc(var(--nav-h) + 16px); }
    .readout { font-size: .62rem; padding: 4px 7px; }
    .readout small { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .panel { padding: 22px 18px; }
    .projects { grid-template-columns: 1fr; }
    .timeline::before { left: 10px; }
    .timeline__node { left: 0; }
    .timeline__item { padding-left: 38px; }
    .timeline__card.has-logo { grid-template-columns: 56px 1fr; gap: 14px; }
    .timeline__logo { width: 56px; height: 56px; padding: 7px; border-radius: 6px; }
    .intro__choice { grid-template-columns: 1fr; }
    .intro__screen { padding: 22px 18px; }
    .scroll-cue { display: none; }
    .btn { padding: 14px 20px; }
}

/* Respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }
    html { scroll-behavior: auto; }
}
