/* ==========================================================================
   Richard Klymyszyn — HUD / high-tech theme
   ========================================================================== */

:root {
    --bg: #06080c;
    --bg-2: #0b0f15;
    --panel: rgba(16, 21, 29, .62);
    --panel-solid: #10151d;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #e9edf2;
    --muted: #8b95a5;
    --dim: #5b6575;

    --amber: #f5b53d;
    --amber-hi: #ffd27a;
    --cyan: #3de4ff;
    --pink: #ff4f7e;
    --green: #3dffa6;
    --violet: #9b7bff;

    --accent: var(--amber);

    --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

    --radius: 18px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --max: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: #111; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

.mono { font-family: var(--font-mono); }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; background: var(--amber); color: #111; border-radius: 8px;
    font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Background layers ---------- */

#fx-canvas {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
    opacity: .55;
}

.bg-glow {
    position: fixed; z-index: 0; pointer-events: none;
    width: 60vmax; height: 60vmax; border-radius: 50%;
    filter: blur(90px); opacity: .18;
}
.bg-glow--a { background: var(--amber); top: -25vmax; right: -20vmax; }
.bg-glow--b { background: var(--cyan); bottom: -30vmax; left: -25vmax; opacity: .12; }

.bg-scan {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
}

.cursor-glow {
    position: fixed; z-index: 1; pointer-events: none;
    width: 420px; height: 420px; margin: -210px 0 0 -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,181,61,.10), transparent 60%);
    transform: translate3d(-999px, -999px, 0);
    transition: opacity .3s;
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- Boot loader ---------- */

.boot {
    position: fixed; inset: 0; z-index: 300;
    display: grid; place-items: center;
    background: var(--bg);
    transition: opacity .6s var(--ease), visibility .6s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(360px, 80vw); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.boot__logo { width: 72px; margin: 0 auto 28px; animation: bootPulse 1.2s ease-in-out infinite; }
.boot__bar { height: 2px; background: var(--line); margin: 14px 0 10px; overflow: hidden; }
.boot__bar span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--amber), var(--cyan));
    box-shadow: 0 0 12px var(--amber);
    animation: bootLoad 1s var(--ease) forwards;
}
.boot__row { display: flex; justify-content: space-between; letter-spacing: .12em; text-transform: uppercase; }
.boot__row b { color: var(--amber); font-weight: 500; }

@keyframes bootLoad { to { width: 100%; } }
@keyframes bootPulse { 50% { opacity: .45; filter: drop-shadow(0 0 12px var(--amber)); } }

/* ---------- Top progress ---------- */

.progress {
    position: fixed; top: 0; left: 0; z-index: 120;
    height: 2px; width: 100%;
    transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--amber), var(--cyan));
    box-shadow: 0 0 10px var(--amber);
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed; top: 14px; left: 50%; z-index: 100;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), var(--max));
    display: flex; align-items: center; gap: 16px;
    padding: 10px 12px 10px 16px;
    background: rgba(10, 13, 19, .55);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled {
    background: rgba(8, 11, 16, .82);
    border-color: var(--line-strong);
    box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.nav__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__brand img { width: 38px; height: 38px; }
.nav__brand span {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
    color: var(--muted); text-transform: uppercase;
}
.nav__brand span b { color: var(--text); font-weight: 600; }

.nav__links {
    display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none;
}
.nav__links a {
    position: relative; display: block;
    padding: 8px 14px; border-radius: 999px;
    font-size: 14px; color: var(--muted);
    transition: color .2s, background .2s;
}
.nav__links a small {
    font-family: var(--font-mono); font-size: 10px; color: var(--amber);
    margin-right: 6px; opacity: .7;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__links a.is-active { color: var(--text); background: rgba(245,181,61,.12); }
.nav__links a.is-active small { opacity: 1; }

.lang {
    display: flex; gap: 2px; padding: 3px;
    border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
}
.lang a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px 4px 5px; border-radius: 999px; color: var(--muted);
    transition: color .2s, background .2s;
}
.lang img { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 420px) { .lang a { font-size: 0; gap: 0; padding: 5px; } .lang img { width: 20px; height: 20px; } }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--amber); color: #111; font-weight: 600; }

.nav__toggle {
    display: none;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: transparent; color: var(--text);
    cursor: pointer; position: relative;
}
.nav__toggle span, .nav__toggle span::before {
    position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
    transition: transform .3s var(--ease);
}
.nav__toggle span { top: 17px; }
.nav__toggle span::before { content: ""; left: 0; right: 0; top: 7px; }
.nav.is-open .nav__toggle span { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 1180px) { .nav__brand span { display: none; } }

@media (max-width: 960px) {
    .nav { border-radius: 24px; flex-wrap: wrap; }
    .nav__brand span { display: none; }
    .lang { margin-left: auto; }
    .nav__toggle { display: block; }
    .nav__links {
        order: 5; flex-basis: 100%; flex-direction: column;
        max-height: 0; overflow: hidden; margin: 0;
        transition: max-height .45s var(--ease), padding .3s;
    }
    .nav.is-open .nav__links { max-height: 420px; padding: 8px 0 4px; }
    .nav__links a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
}

/* ---------- Layout helpers ---------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }

.sec-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.sec-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent);
}
.sec-tag::before {
    content: ""; width: 28px; height: 1px; background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.sec-title {
    margin: 14px 0 18px;
    font-size: clamp(34px, 6vw, 64px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600;
}
.sec-title .icon { color: var(--accent); font-size: .55em; vertical-align: middle; margin-right: .3em; }
.sec-lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 0; }

.quote {
    position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 900px;
    padding: 28px clamp(20px, 4vw, 44px);
    text-align: center;
    font-size: clamp(20px, 3vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quote::before, .quote::after {
    content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent);
}
.quote::before { left: 0; top: -1px; border-right: 0; border-bottom: 0; }
.quote::after { right: 0; bottom: -1px; border-left: 0; border-top: 0; }
.quote span { color: var(--accent); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- Buttons ---------- */

.btn {
    --b: var(--amber);
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 12px;
    font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--b); color: var(--b);
    background: color-mix(in srgb, var(--b) 6%, transparent);
    overflow: hidden; isolation: isolate;
    transition: color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--b); transform: translateX(-101%);
    transition: transform .45s var(--ease);
}
.btn:hover { color: #0b0b0b; box-shadow: 0 0 30px color-mix(in srgb, var(--b) 45%, transparent); }
.btn:hover::before { transform: translateX(0); }
.btn--solid { background: var(--b); color: #0b0b0b; }
.btn--solid::before { background: #fff; }
.btn--ghost { --b: var(--text); border-color: var(--line-strong); }

/* ---------- Hero ---------- */

.hero {
    min-height: 100svh;
    display: grid; align-items: center;
    padding: 130px 0 70px;
}
.hero__grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}

.status {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255,255,255,.02);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.status i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite;
}
.status b { color: var(--text); font-weight: 500; }
@keyframes blink { 50% { opacity: .3; } }

.hero__name {
    margin: 26px 0 8px;
    font-size: clamp(46px, 8.6vw, 118px); line-height: .92; letter-spacing: -.045em; font-weight: 700;
}
.hero__name .l1 { display: block; color: var(--text); }
.hero__name .l2 {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--amber);
    text-shadow: 0 0 40px rgba(245,181,61,.25);
    position: relative;
}
.hero__name .l2::after {
    content: attr(data-text);
    position: absolute; left: 0; top: 0;
    color: var(--amber); -webkit-text-stroke: 0;
    clip-path: inset(0 100% 0 0);
    animation: fillName 2.4s 1.2s var(--ease) forwards;
}
@keyframes fillName { to { clip-path: inset(0 0 0 0); } }

.hero__role {
    font-family: var(--font-mono); font-size: clamp(15px, 1.9vw, 21px); color: var(--muted);
    min-height: 1.6em; margin: 20px 0 0;
}
.hero__role .prompt { color: var(--amber); }
.hero__role .typed { color: var(--text); }
.caret {
    display: inline-block; width: .6em; height: 1.1em; margin-left: 3px;
    background: var(--cyan); vertical-align: -.18em; animation: blink 1s steps(1) infinite;
    box-shadow: 0 0 10px var(--cyan);
}

.hero__bio { color: var(--muted); max-width: 580px; margin: 22px 0 34px; }
.hero__bio strong { color: var(--text); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Portrait HUD */

.hud {
    position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto;
}
.hud__ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px dashed rgba(245,181,61,.35);
    animation: spin 40s linear infinite;
}
.hud__ring--2 {
    inset: 7%; border: 1px solid transparent;
    border-top-color: var(--cyan); border-bottom-color: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan));
    animation-duration: 9s; animation-direction: reverse;
}
.hud__ring--3 {
    inset: -4%; border: 1px solid var(--line);
    animation: none;
}
.hud__ring--3::before {
    content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px;
    background: var(--amber); border-radius: 50%; box-shadow: 0 0 14px var(--amber);
}
.hud__ring--3 { animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hud__photo {
    position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 8px rgba(255,255,255,.02), 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(245,181,61,.18);
}
.hud__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.hud__photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 0 45%, rgba(61,228,255,.22) 50%, transparent 55%);
    background-size: 100% 220%;
    animation: scan 4s linear infinite;
    mix-blend-mode: screen;
}
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }

.hud__corner {
    position: absolute; width: 22px; height: 22px; border: 2px solid var(--amber);
}
.hud__corner--tl { left: 4%; top: 4%; border-right: 0; border-bottom: 0; }
.hud__corner--tr { right: 4%; top: 4%; border-left: 0; border-bottom: 0; }
.hud__corner--bl { left: 4%; bottom: 4%; border-right: 0; border-top: 0; }
.hud__corner--br { right: 4%; bottom: 4%; border-left: 0; border-top: 0; }

.hud__chip {
    position: absolute; padding: 8px 12px;
    background: rgba(8,11,16,.8); border: 1px solid var(--line-strong); border-radius: 10px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.hud__chip b { display: block; color: var(--text); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.hud__chip--a { left: -6%; top: 20%; }
.hud__chip--b { right: -8%; top: 52%; animation-delay: -2s; }
.hud__chip--c { left: 6%; bottom: 2%; animation-delay: -4s; }
.hud__chip--b b { color: var(--cyan); }
.hud__chip--a b { color: var(--amber); }
@keyframes float { 50% { transform: translateY(-10px); } }

.scroll-hint {
    position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase;
}
.scroll-hint::after {
    content: ""; width: 1px; height: 40px;
    background: linear-gradient(var(--amber), transparent);
    animation: drip 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
    .hero { padding-top: 110px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hud { order: -1; width: min(78vw, 340px); }
    .hud__chip--a { left: -10%; }
    .hud__chip--b { right: -10%; }
    .scroll-hint { display: none; }
}

/* ---------- Ticker ---------- */

.ticker {
    position: relative; z-index: 2;
    border-block: 1px solid var(--line);
    background: rgba(8,11,16,.6);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
    display: flex; width: max-content; gap: 48px; padding: 18px 0;
    animation: marquee 38s linear infinite;
    font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker__track span::after { content: "◆"; color: var(--amber); font-size: 9px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Panels / cards ---------- */

.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color .35s, transform .5s var(--ease), box-shadow .35s;
}
/* cursor spotlight */
.panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
        color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
    transition: opacity .35s;
}
.panel:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.panel:hover::before { opacity: 1; }

/* Bio */

.bio-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.bio-main { padding: clamp(26px, 4vw, 44px); }
.bio-main p { margin: 0; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.5; letter-spacing: -.01em; }
.bio-main p em { font-style: normal; color: var(--accent); }
.bio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bio-tags span {
    padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
    font-family: var(--font-mono); font-size: 12px; color: var(--muted);
    transition: color .2s, border-color .2s;
}
.bio-tags span:hover { color: var(--accent); border-color: var(--accent); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; }
.stat__num {
    font-size: clamp(40px, 5vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -.04em;
    color: var(--accent);
}
.stat__num sup { font-size: .45em; vertical-align: top; margin-left: 2px; }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } }

/* GITS */

.gits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gits .panel { padding: 28px 24px 30px; min-height: 340px; display: flex; flex-direction: column; }
.gits__letter {
    font-size: 120px; line-height: .85; font-weight: 700; letter-spacing: -.06em;
    color: transparent; -webkit-text-stroke: 1.5px var(--accent);
    transition: color .4s, text-shadow .4s;
}
.panel:hover .gits__letter { color: var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); }
.gits__idx { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.gits h3 { margin: auto 0 10px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.gits p { margin: 0; font-size: 15px; color: var(--muted); }
.gits .panel:nth-child(1) { --accent: var(--amber); }
.gits .panel:nth-child(2) { --accent: var(--cyan); }
.gits .panel:nth-child(3) { --accent: var(--violet); }
.gits .panel:nth-child(4) { --accent: var(--green); }
.gits__bar {
    height: 2px; margin-top: 22px; background: var(--line); overflow: hidden; border-radius: 2px;
}
.gits__bar::after {
    content: ""; display: block; height: 100%; width: 0; background: var(--accent);
    box-shadow: 0 0 10px var(--accent); transition: width 1.2s var(--ease);
}
.is-visible .gits__bar::after { width: 100%; }

@media (max-width: 1040px) { .gits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gits { grid-template-columns: 1fr; } .gits .panel { min-height: 0; } .gits h3 { margin-top: 28px; } }

/* Ventures */

.ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.venture { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 30px; align-items: start; }
.venture__logo {
    width: 96px; height: 96px; border-radius: 22px; overflow: hidden;
    background: #fff; border: 1px solid var(--line-strong);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.venture__logo img { width: 100%; height: 100%; object-fit: cover; }
.venture h3 { margin: 4px 0 8px; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.venture p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.venture__link {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
    display: inline-flex; align-items: center; gap: 8px;
}
.venture__link i { transition: transform .3s var(--ease); }
.venture:hover .venture__link i { transform: translate(3px, -3px); }
.venture__meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 860px) { .ventures { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .venture { grid-template-columns: 1fr; } }

/* Teaching */

.teach-top { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.teach-card { padding: 28px 30px; display: flex; align-items: center; gap: 22px; }
.teach-card__icon {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
    font-size: 24px; color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.teach-card p { margin: 0; color: var(--muted); }
.teach-card p strong { color: var(--text); font-weight: 500; }
.mail-cta { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mail-cta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mail-cta a { color: var(--accent); font-family: var(--font-mono); font-size: 15px; word-break: break-all; }
.mail-cta a:hover { text-decoration: underline; text-underline-offset: 4px; }

.inst { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.inst a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.inst img {
    width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #fff; flex-shrink: 0;
    filter: grayscale(1) contrast(1.05); transition: filter .4s;
}
.inst a:hover img { filter: none; }
.inst b { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.inst small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }

@media (max-width: 760px) { .teach-top { grid-template-columns: 1fr; } }

/* Symbols */

.symbols { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.symbol { aspect-ratio: 1; display: grid; place-items: center; padding: 22px; }
.symbol img {
    width: 72%; height: 72%; object-fit: contain;
    transition: transform .5s var(--ease), filter .4s;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.4));
}
.symbol figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; text-align: center;
    color: var(--text); background: linear-gradient(transparent, rgba(0,0,0,.85));
    transform: translateY(100%); transition: transform .35s var(--ease);
}
.symbol:hover img, .symbol:focus-within img { transform: scale(.88) translateY(-8px); }
.symbol:hover figcaption, .symbol:focus-within figcaption { transform: none; }
.symbol { margin: 0; }

/* Per-section accents */
#bio { --accent: var(--cyan); }
#gits { --accent: var(--amber); }
#business { --accent: var(--pink); }
#teaching { --accent: var(--green); }
#symbol { --accent: var(--violet); }
#contact { --accent: var(--amber); }

/* ---------- Contact / footer ---------- */

.contact { padding: clamp(80px, 12vw, 140px) 0 40px; }
.terminal { overflow: hidden; }
.terminal__bar {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
    font-family: var(--font-mono); font-size: 11.5px; color: var(--dim);
}
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; }
.terminal__bar i:nth-child(1) { background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: 10px; }
.terminal__body { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.terminal__body h2 {
    margin: 10px 0 0; font-size: clamp(38px, 6.4vw, 84px); line-height: .95; letter-spacing: -.045em; font-weight: 700;
}
.terminal__body h2 span { color: var(--amber); }
.terminal__cmd { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.terminal__cmd b { color: var(--green); font-weight: 500; }

.channels { display: flex; flex-wrap: wrap; gap: 12px; }
.channel {
    width: 64px; height: 64px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 16px; background: rgba(245,181,61,.08);
    color: var(--amber); font-size: 24px;
    transition: border-color .25s, background .25s, transform .35s var(--ease);
}
.channel:hover { border-color: rgba(245,181,61,.5); background: rgba(245,181,61,.15); transform: translateY(-4px); }

@media (max-width: 860px) { .terminal__body { grid-template-columns: 1fr; } }

.foot { padding: 50px 0 40px; border-top: 1px solid var(--line); margin-top: 60px; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { width: 44px; }
.foot__brand span { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--line); color: var(--muted); font-size: 17px;
    transition: color .25s, border-color .25s, transform .3s var(--ease), box-shadow .25s;
}
.social a:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(245,181,61,.2); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
.foot__nav a { color: var(--muted); transition: color .2s; }
.foot__nav a:hover { color: var(--amber); }
.foot__legal {
    margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--line);
    display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
    font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); letter-spacing: .02em;
}
.foot__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--amber); }

/* ---------- Cookie alert ---------- */

.cookiealert {
    position: fixed; left: 50%; bottom: 16px; z-index: 150;
    width: min(calc(100% - 24px), 720px);
    transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 14px 14px 14px 20px;
    background: rgba(10,13,19,.9); border: 1px solid var(--line-strong); border-radius: 16px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    font-size: 14px; color: var(--muted);
    transition: transform .6s var(--ease), opacity .4s, visibility .6s;
}
.cookiealert.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookiealert p { flex: 1; min-width: 220px; margin: 0; }
.cookiealert p::before { content: "// "; font-family: var(--font-mono); color: var(--amber); }
.cookiealert a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.cookiealert .btn { padding: 10px 16px; font-size: 11.5px; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.is-visible > *:nth-child(n+8) { transition-delay: .56s; }

/* ---------- CV page ---------- */

.cv { min-height: 100svh; display: grid; align-items: center; padding: 140px 0 60px; }
.cv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cv__item { padding: 26px 22px; display: flex; flex-direction: column; gap: 22px; min-height: 230px; }
.cv__item .code { font-family: var(--font-mono); font-size: 44px; font-weight: 600; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--amber); transition: color .3s; }
.cv__item:hover .code { color: var(--amber); }
.cv__item b { font-size: 20px; font-weight: 600; }
.cv__item small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-top: auto; }
@media (max-width: 900px) { .cv__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .cv__grid { grid-template-columns: 1fr; } .cv__item { min-height: 0; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
    .hero__name .l2::after { clip-path: none; }
}

/* ---------- Small-screen refinements ---------- */

.symbol img { border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }

@media (max-width: 560px) {
    .teach-card { flex-direction: column; align-items: flex-start; }
    .mail-cta a { font-size: 13px; word-break: normal; overflow-wrap: anywhere; }
    .terminal__body { padding: 24px 18px; }
    .hud__chip { font-size: 9px; padding: 6px 9px; }
    .hud__chip b { font-size: 11px; }
    .hud__chip--c { display: none; }
    .cookiealert { padding: 12px 12px 12px 16px; font-size: 13px; }
}
