/* ==========================================================================
   ableeins — portofolio
   "Web & glass": night city base, liquid glass panels, web threads,
   comic halftone and red/blue misregistered type.
   ========================================================================== */

:root {
    --bg: #05060b;
    --bg-2: #0b0d17;
    --ink: #f3f4f8;
    --ink-2: #c1c5d3;
    --muted: #7f8499;
    --red: #ff2b45;
    --red-2: #c40f2c;
    --blue: #2e63ff;
    --cyan: #3cd0ff;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .17);

    --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
    --sans: "Inter Tight", "SF Pro Display", -apple-system, system-ui, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

    --pad: clamp(1.1rem, 4vw, 4rem);
    --section: clamp(5.5rem, 11vw, 10rem);
    --radius: 28px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --shift: .045em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0; min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
main, .site-footer, .site-header, .menu { position: relative; z-index: 2; }
.site-header, .menu { position: fixed; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

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

/* ---------- atmosphere: liquid aura, halftone, web canvas ---------- */
.aura { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aura i {
    position: absolute; display: block; width: 70vmax; height: 70vmax; border-radius: 50%;
    opacity: .55;
}
.aura i:nth-child(1) { left: -22vmax; top: -26vmax; background: radial-gradient(circle, rgba(255, 43, 69, .55), rgba(255, 43, 69, 0) 62%); }
.aura i:nth-child(2) { right: -26vmax; top: 10vh; background: radial-gradient(circle, rgba(46, 99, 255, .55), rgba(46, 99, 255, 0) 62%); }
.aura i:nth-child(3) { left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgba(120, 40, 220, .38), rgba(120, 40, 220, 0) 60%); }
@keyframes drift-a { to { transform: translate3d(18vw, 22vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-24vw, 30vh, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-14vw, -38vh, 0) scale(1.2); } }
.aura::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(5, 6, 11, 0), rgba(5, 6, 11, .55) 70%);
}

.halftone { display: none; }
.webfx { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- glass ---------- */
.glass {
    --mx: 28%; --my: 0%;
    position: relative;
    background:
        radial-gradient(120% 90% at var(--mx) var(--my), rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%),
        linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025) 48%, rgba(255, 255, 255, .055));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        inset 0 -1px 0 rgba(255, 255, 255, .05),
        inset 0 0 30px rgba(255, 255, 255, .025),
        0 30px 70px -30px rgba(0, 0, 0, .75);
}
.glass--blur { background-color: rgba(14, 16, 28, .72); }
.site-header.glass--blur {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background-color: rgba(14, 16, 28, .5);
}

/* ---------- atoms ---------- */
.eyebrow, .label {
    font: 500 .7rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.label { display: block; margin-bottom: .5rem; }

.dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #36e08a; margin-right: .55rem; vertical-align: middle;
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(54, 224, 138, .5); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(54, 224, 138, 0); }
}

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    padding: 1.05rem 1.6rem; border-radius: 999px;
    font: 600 .92rem/1 var(--sans); letter-spacing: -.005em;
    color: var(--ink); isolation: isolate; overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px -12px rgba(0, 0, 0, .7);
    transition: transform .5s var(--spring), border-color .4s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 48%, transparent 62%);
    transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover { border-color: rgba(255, 255, 255, .32); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn svg { width: .75rem; height: .75rem; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--solid {
    color: #fff; border-color: rgba(255, 140, 150, .45);
    background:
        radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 45%),
        linear-gradient(135deg, #ff3b55, #d3102f 55%, #8c0b26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 14px rgba(80, 0, 20, .35), 0 14px 36px -10px rgba(255, 43, 69, .65);
}
.btn--solid:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -6px 14px rgba(80, 0, 20, .35), 0 18px 46px -8px rgba(255, 43, 69, .85); border-color: rgba(255, 170, 180, .7); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font: 600 .92rem/1 var(--sans); color: var(--ink); transition: color .4s var(--ease);
}
.link-arrow svg { width: .75rem; height: .75rem; transition: transform .5s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow sup { font: 500 .62rem var(--mono); color: var(--cyan); margin-left: -.2rem; }

.u-link {
    background: linear-gradient(90deg, var(--red), var(--blue)) 0 100% / 0 2px no-repeat;
    transition: background-size .6s var(--ease), color .4s var(--ease); padding-bottom: 2px;
}
.u-link:hover { background-size: 100% 2px; }
.is-num { font-family: var(--mono); font-size: .9em; letter-spacing: .02em; }

.tag {
    justify-self: end; align-self: start; white-space: nowrap;
    font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem .8rem;
    background: rgba(255, 255, 255, .04);
}
.tag--live { color: #fff; border-color: rgba(54, 224, 138, .5); background: rgba(54, 224, 138, .08); }
.tag .dot { width: 6px; height: 6px; margin-right: .45rem; }

/* Misregistered comic print: red and blue plates slightly off. */
.chroma { text-shadow: calc(var(--shift) * -1) 0 rgba(255, 43, 69, .85), var(--shift) 0 rgba(60, 208, 255, .75); }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    html.ready .cursor {
        display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
        width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, .85);
        transition: width .45s var(--spring), height .45s var(--spring), margin .45s var(--spring), background-color .4s, border-color .4s;
    }
    html.ready .cursor::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--red); grid-area: 1 / 1; transition: opacity .3s; }
    html.ready .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--red); background: rgba(255, 43, 69, .12); }
    html.ready .cursor.is-text {
        width: 96px; height: 96px; margin: -48px 0 0 -48px; border-color: rgba(255, 255, 255, .3);
        background: rgba(255, 43, 69, .85);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 40px rgba(255, 43, 69, .5);
    }
    html.ready .cursor.is-text::after, html.ready .cursor.is-link::after { opacity: 0; }
    .cursor__label { grid-area: 1 / 1; font: 600 .78rem/1 var(--sans); color: #fff; opacity: 0; transition: opacity .3s; }
    .cursor.is-text .cursor__label { opacity: 1; }
}

/* ---------- loader ---------- */
.loader { display: none; }
html.motion .loader { display: block; position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--ink); overflow: hidden; }
html.motion.no-loader .loader { display: none; }
.loader::before {
    content: ""; position: absolute; inset: -20%;
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 43, 69, .35), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(46, 99, 255, .35), transparent 45%);
    animation: drift-a 6s ease-in-out infinite alternate;
}
.loader__inner { position: absolute; inset: auto var(--pad) var(--pad) var(--pad); display: grid; gap: 1.1rem; }
.loader__grid {
    position: absolute; inset: 0; opacity: .5;
    background: linear-gradient(rgba(60, 208, 255, .08) 1px, transparent 1px) 0 0 / 100% 48px, linear-gradient(90deg, rgba(60, 208, 255, .08) 1px, transparent 1px) 0 0 / 48px 100%;
    -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 60%, #000, transparent 75%);
}
.loader__term { margin: 0; min-height: 6.6em; font: 500 .8rem/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.loader__term b { color: var(--cyan); font-weight: 500; }
.loader__term em { color: #36e08a; font-style: normal; }
.loader__term .caret, .term__body .caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.loader__count small { font-size: .3em; vertical-align: top; margin-left: .1em; color: var(--red); text-shadow: none; }
.loader__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.loader__eyebrow { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.loader__count {
    font: 400 clamp(7rem, 26vw, 22rem)/.82 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
    text-shadow: -.04em 0 rgba(255, 43, 69, .9), .04em 0 rgba(60, 208, 255, .8);
}
.loader__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--blue)); transform-origin: left; transform: scaleX(0); }

/* ---------- header: floating glass pill ---------- */
.site-header {
    position: fixed; top: 14px; left: 50%; z-index: 60; width: min(1180px, calc(100% - 2 * var(--pad)));
    transform: translateX(-50%);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
    padding: .5rem .55rem .5rem 1rem; border-radius: 999px;
    transition: transform .7s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.is-hidden { transform: translate(-50%, calc(-100% - 20px)); }
.brand { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; }
.brand__mark { width: 2.1rem; height: 2.1rem; display: block; }
.brand__mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand__name { font: 400 1.25rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: .25rem; }
.nav__link {
    position: relative; padding: .6rem .95rem; border-radius: 999px;
    font: 500 .9rem/1 var(--sans); color: var(--ink-2);
    transition: color .3s, background-color .3s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header__meta { justify-self: end; display: flex; align-items: center; gap: .9rem; }
.clock { font: 500 .7rem/1 var(--mono); color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.header__cta { padding: .7rem 1.1rem; font-size: .85rem; }
.menu-btn {
    display: none; align-items: center; gap: .65rem; padding: .7rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2);
    font: 600 .82rem/1 var(--sans);
}
.menu-btn__lines { display: grid; gap: 5px; width: 18px; }
.menu-btn__lines i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
    inset: 0; z-index: 55; display: grid; align-content: center; padding: 6rem var(--pad) 2rem;
    visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }
.menu__bg { position: absolute; inset: 0; background: rgba(5, 6, 11, .72); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); }
.menu__nav { position: relative; display: grid; gap: .3rem; }
.menu__nav a {
    display: flex; align-items: baseline; gap: 1rem; font: 400 clamp(3rem, 14vw, 6rem)/1 var(--display); text-transform: uppercase;
    transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), color .3s;
}
.menu__nav a small { font: 500 .75rem/1 var(--mono); color: var(--red); }
.menu__nav a:hover { color: var(--red); }
.menu.is-open .menu__nav a { transform: none; opacity: 1; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu__foot { position: relative; display: flex; justify-content: space-between; margin-top: 3rem; font: 500 .72rem/1.4 var(--mono); color: var(--muted); }

/* ---------- hero: poster stage ---------- */
.hero { position: relative; }
.hero__stage {
    position: relative; min-height: max(100svh, 46rem); overflow: hidden;
    padding: 6.2rem var(--pad) 1.6rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto; column-gap: 1.5rem;
}
.hero__meta { grid-area: 1 / 1 / 2 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; position: relative; z-index: 4; }
.hero__meta > span {
    display: inline-flex; align-items: center; padding: .5rem .9rem; border-radius: 999px;
    font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
    background: rgba(20, 22, 34, .7); border: 1px solid var(--line);
}
.hero__status { color: #fff !important; }

.hero__line {
    position: relative; white-space: nowrap; user-select: none;
    font: 400 clamp(5.2rem, min(17.5vw, 27svh), 20rem)/.8 var(--display); text-transform: uppercase; letter-spacing: -.01em;
    text-shadow: -.02em 0 rgba(255, 43, 69, .75), .02em 0 rgba(60, 208, 255, .6);
    will-change: transform;
}
.hero__line--1 { grid-area: 2 / 1 / 3 / -1; justify-self: start; z-index: 1; margin-top: 1.2rem; color: #f3f4f8; }
.hero__line--2 {
    grid-area: 3 / 1 / 4 / -1; justify-self: end; z-index: 3;
    color: transparent; -webkit-text-stroke: 2px #fff; text-shadow: none;
}
.hero__line--2::selection { color: #fff; }
/* RGB slice glitch: two printed plates jump out of register for a beat. */
.hero__line::before, .hero__line::after, [data-glitch]::before, [data-glitch]::after {
    content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; text-shadow: none;
}
.hero__line::before, [data-glitch]::before { color: var(--red); -webkit-text-stroke: 0; }
.hero__line::after, [data-glitch]::after { color: var(--cyan); -webkit-text-stroke: 0; mix-blend-mode: screen; }
.is-glitch::before { opacity: .9; animation: slice-a .5s steps(2) both; }
.is-glitch::after { opacity: .8; animation: slice-b .5s steps(2) both; }
@keyframes slice-a {
    0% { clip-path: inset(10% 0 70% 0); transform: translate(-.06em, 0); }
    25% { clip-path: inset(55% 0 20% 0); transform: translate(.05em, 0); }
    50% { clip-path: inset(30% 0 45% 0); transform: translate(-.03em, 0); }
    75% { clip-path: inset(75% 0 5% 0); transform: translate(.07em, 0); }
    100% { clip-path: inset(40% 0 40% 0); transform: none; opacity: 0; }
}
@keyframes slice-b {
    0% { clip-path: inset(60% 0 15% 0); transform: translate(.06em, 0); }
    25% { clip-path: inset(5% 0 75% 0); transform: translate(-.05em, 0); }
    50% { clip-path: inset(40% 0 30% 0); transform: translate(.04em, 0); }
    75% { clip-path: inset(20% 0 60% 0); transform: translate(-.07em, 0); }
    100% { clip-path: inset(50% 0 50% 0); transform: none; opacity: 0; }
}
.hero__line .char-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .05em .08em .04em; margin: -.05em -.08em -.04em; }
.hero__line .char { display: inline-block; will-change: transform; }

.hero__portrait { grid-area: 2 / 2 / -1 / 3; position: relative; z-index: 2; align-self: end; justify-self: center; margin-bottom: -1.6rem; }
.hero__portrait img {
    position: relative; height: min(76svh, 46rem); width: auto; max-width: none;
    -webkit-mask-image: linear-gradient(#000 72%, transparent 97%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#000 72%, transparent 97%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
}
.hero__sun {
    position: absolute; left: 50%; top: 14%; width: 118%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
    background:
        radial-gradient(var(--red) 1.7px, transparent 2.1px) 0 0 / 10px 10px;
    -webkit-mask-image: radial-gradient(circle, #000 20%, rgba(0, 0, 0, .4) 50%, transparent 70%);
    mask-image: radial-gradient(circle, #000 20%, rgba(0, 0, 0, .4) 50%, transparent 70%);
    opacity: .8;
}
.hero__sun::after {
    content: ""; position: absolute; inset: 18%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 43, 69, .55), rgba(255, 43, 69, 0) 70%);
}
.portrait__badge { position: absolute; right: -2.5rem; top: 4%; width: 7rem; z-index: 4; animation: spin 18s linear infinite; }
.portrait__badge circle { fill: rgba(14, 16, 28, .55); stroke: rgba(255, 255, 255, .25); }
.portrait__badge text { font: 600 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: #fff; }
.portrait__star { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__left { grid-area: 5 / 1 / 6 / 2; z-index: 4; align-self: end; display: grid; gap: 1.1rem; padding: 1.4rem; max-width: 27rem; }
.hero__roles { display: flex; align-items: center; gap: .8rem; font: 600 1rem/1.2 var(--sans); }
.hero__rule { width: 2.2rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); flex: none; }
.roles { display: inline-grid; overflow: hidden; }
.roles__item { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.roles__item.is-active { transform: none; opacity: 1; }
.roles__item.is-leaving { transform: translateY(-105%); opacity: 0; }
.hero__intro { font: 400 1rem/1.55 var(--sans); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; }

.hero__right { grid-area: 5 / 3 / 6 / 4; z-index: 4; align-self: end; display: grid; gap: .9rem; justify-items: end; }
.hero__stats { display: grid; gap: .5rem; width: 100%; max-width: 19rem; }
.stat { display: grid; grid-template-columns: minmax(3.4rem, auto) 1fr; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 18px; background-color: rgba(14, 16, 28, .55); }
.stat__value { font: 400 2rem/1 var(--display); letter-spacing: .01em; color: #fff; white-space: nowrap; }
.stat:nth-child(1) .stat__value { color: var(--red); }
.stat:nth-child(2) .stat__value { color: var(--cyan); }
.stat__label { font: 500 .78rem/1.35 var(--sans); color: var(--ink-2); }
.hero__aka { display: grid; gap: .2rem; justify-items: end; text-align: right; }
.hero__aka .label { margin: 0; }
.hero__aka em { font: italic 500 1rem/1.3 var(--sans); }
.hero__handle { font: 500 .78rem/1 var(--mono); color: var(--red); }

.hero__scroll {
    position: absolute; left: 50%; bottom: 1.2rem; z-index: 4; transform: translateX(-50%);
    display: grid; justify-items: center; gap: .5rem; font: 500 .62rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.hero__scroll i { width: 1px; height: 2.6rem; background: linear-gradient(#fff, transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: -1px; top: -40%; width: 3px; height: 40%; background: var(--red); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- marquee: tilted comic bands ---------- */
.marquee { position: relative; z-index: 3; padding: 3.5rem 0; overflow: hidden; }
.marquee__ticker {
    position: absolute; left: -5%; right: -5%; top: 50%; height: 3.4rem; margin-top: -1.7rem; overflow: hidden;
    display: flex; align-items: center;
    background: linear-gradient(90deg, #1b2fb5, var(--blue) 40%, #1b2fb5);
    transform: rotate(2.4deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ticker { display: flex; gap: 2.2rem; width: max-content; animation: tick 26s linear infinite reverse; font: 500 .78rem/1 var(--mono); letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
.ticker span:nth-child(5n+3) { color: #fff; text-shadow: 0 0 12px var(--cyan); }
@keyframes tick { to { transform: translate3d(-50%, 0, 0); } }
.marquee__track {
    position: relative; display: flex; align-items: center; gap: 2rem; width: max-content; padding: 1.05rem 0;
    font: 400 clamp(2rem, 4.2vw, 3.6rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; color: #fff;
}
.marquee__band {
    position: relative; transform: rotate(-2.2deg); margin: 0 -5%;
    background:
        radial-gradient(rgba(0, 0, 0, .22) 1.2px, transparent 1.6px) 0 0 / 6px 6px,
        linear-gradient(90deg, #a80c25, var(--red) 45%, #a80c25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 30px 60px -20px rgba(255, 43, 69, .5);
    overflow: hidden;
}
.marquee__track .star { width: 1.4rem; height: 1.4rem; fill: #fff; flex: none; }
.marquee__track .is-italic { font-family: var(--sans); font-weight: 700; font-style: italic; text-transform: none; letter-spacing: -.03em; }
.marquee__track .is-outline { color: transparent; -webkit-text-stroke: 1.5px #fff; }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section) var(--pad) 0; overflow-x: clip; }
.section__ghost {
    position: absolute; right: -2vw; bottom: -.12em; z-index: -1; pointer-events: none; white-space: nowrap;
    font: 400 clamp(7rem, 24vw, 26rem)/.8 var(--display); text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
}
.section:last-of-type { padding-bottom: var(--section); }
.section--tight { padding-top: clamp(3rem, 6vw, 5rem); }
.section__head {
    display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.25rem;
    padding-bottom: 1.6rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); position: relative;
}
.section__head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, var(--red), rgba(46, 99, 255, .7) 45%, rgba(255, 255, 255, .08));
}
.section__index {
    align-self: start; margin-top: .6rem; padding: .5rem .75rem .45rem;
    font: 400 1.15rem/1 var(--display); letter-spacing: .04em; color: #fff;
    background: radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.4px) 0 0 / 5px 5px, var(--red);
    clip-path: polygon(6% 0, 100% 4%, 94% 100%, 0 92%); transform: rotate(-6deg);
    box-shadow: 0 10px 30px -10px rgba(255, 43, 69, .8);
}
.section__title {
    font: 400 clamp(3.4rem, 9vw, 8.5rem)/.88 var(--display); text-transform: uppercase; letter-spacing: -.005em;
    transition: text-shadow .5s var(--ease);
}
.section__head:hover .section__title { text-shadow: -.035em 0 rgba(255, 43, 69, .85), .035em 0 rgba(60, 208, 255, .75); }
.section__note { font: 500 .78rem/1.5 var(--mono); color: var(--muted); text-align: right; max-width: 22rem; padding-bottom: .35rem; }
.section__title .line-mask, [data-statement] .line-mask { display: block; overflow: hidden; padding: .06em .1em .1em; margin: -.06em -.1em -.1em; }
.section__title .line { transform-origin: 0 100%; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(15rem, .75fr) 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__side { position: sticky; top: 6.5rem; }
.about__frame { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, .14); position: relative; }
.about__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .18), transparent 32%); pointer-events: none; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__photo figcaption { margin-top: .9rem; font: 500 .75rem/1.4 var(--mono); color: var(--muted); }
.about__main { display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.statement { font: 600 clamp(1.7rem, 3.4vw, 3.1rem)/1.15 var(--sans); letter-spacing: -.03em; }
.statement .word { display: inline-block; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.prose { display: grid; gap: 1rem; color: var(--ink-2); font-size: 1.02rem; }
.about__cols .prose { padding: 1.6rem; }
.prose--muted { color: var(--muted); }
.prose--large { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.facts__item { padding: 1.1rem 1.2rem; border-radius: 22px; }
.facts__item dt { font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .7rem; }
.facts__item dd { font: 500 .98rem/1.45 var(--sans); }
.facts__item small { color: var(--muted); font-size: .78rem; }
.facts__small { font-size: .88rem !important; color: var(--ink-2); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* ---------- journey: a thread with glass beads ---------- */
.journey__block + .journey__block { margin-top: clamp(3rem, 6vw, 5rem); }
.journey__label { display: flex; justify-content: space-between; font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.timeline { position: relative; display: grid; gap: .9rem; padding-left: 2.4rem; }
.timeline::before {
    content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 2px; border-radius: 2px;
    background: linear-gradient(var(--red), var(--blue) 60%, rgba(46, 99, 255, 0));
    transform-origin: top; transform: scaleY(var(--thread, 1));
}
.timeline__item {
    position: relative; display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.5rem; padding: 1.5rem 1.6rem;
    border-radius: 24px; transition: transform .6s var(--ease), border-color .5s;
}
.timeline__item::before {
    content: ""; position: absolute; left: -2.15rem; top: 1.85rem; width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--red); box-shadow: 0 0 0 5px rgba(255, 43, 69, .12);
}
.timeline__item:hover { border-color: rgba(255, 255, 255, .24); }
.timeline__item.is-lit::before { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 43, 69, .2), 0 0 18px var(--red); }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.timeline__period { font: 500 .78rem/1.6 var(--mono); color: var(--ink-2); }
.timeline__role { font: 700 clamp(1.2rem, 1.8vw, 1.55rem)/1.2 var(--sans); letter-spacing: -.02em; }
.timeline__org { margin-top: .3rem; color: var(--ink-2); font-weight: 500; }
.timeline__loc { color: var(--muted); font-weight: 400; }
.timeline__desc { margin-top: .9rem; display: grid; gap: .4rem; color: var(--muted); font-size: .95rem; }
.timeline__desc li { position: relative; padding-left: 1.1rem; }
.timeline__desc li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 2px; background: var(--red); }
.timeline__note { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* ---------- skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.skills__group { padding: 1.6rem; border-radius: var(--radius); display: grid; gap: 1.1rem; align-content: start; }
.skills__name { display: flex; align-items: baseline; gap: .7rem; font: 400 1.6rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.skills__name small { font: 500 .7rem/1 var(--mono); color: var(--red); }
.skills__group ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.skills__group li {
    padding: .5rem .8rem; border-radius: 999px; font: 500 .86rem/1.2 var(--sans); color: var(--ink-2);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    transition: border-color .3s, color .3s, background-color .3s;
}
.skills__group li:hover { color: #fff; border-color: rgba(255, 43, 69, .55); background: rgba(255, 43, 69, .12); }

/* ---------- tools / stack ---------- */
.stack { overflow: hidden; }
.stack__rows { display: grid; gap: 1.1rem; margin: 0 calc(var(--pad) * -1); }
.stack__row { display: grid; grid-template-columns: 15rem 1fr; align-items: center; }
.stack__label { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .6rem; padding: 0 1.5rem 0 var(--pad); }
.stack__label small { font: 500 .68rem/1 var(--mono); color: var(--red); }
.stack__label h3 { font: 600 .95rem/1.25 var(--sans); }
.stack__label em { font: 500 .68rem/1 var(--mono); font-style: normal; color: var(--muted); }
.stack__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.stack__track {
    display: flex; width: max-content; gap: .6rem; padding: .5rem 0;
    animation: stack-run var(--dur, 80s) linear infinite;
}
.stack__row.is-reverse .stack__track { animation-direction: reverse; }
.stack__viewport:hover .stack__track { animation-play-state: paused; }
@keyframes stack-run { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - .3rem), 0, 0); } }

.tool {
    display: inline-flex; align-items: center; gap: .75rem; flex: none;
    padding: .45rem 1.15rem .45rem .45rem; border-radius: 999px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--spring), box-shadow .4s;
}
.tool__icon {
    position: relative; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
    border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background-color .4s var(--ease);
}
.tool__icon img { grid-area: 1 / 1; width: 1.2rem; height: 1.2rem; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.tool__brand { opacity: 0; transform: scale(.7); }
.tool__icon b { grid-area: 1 / 1; font: 400 1rem/1 var(--display); color: var(--red); }
.tool__icon:not(.is-fallback) img ~ b { display: none; }
.tool__icon.is-fallback img { display: none; }
.tool__name { font: 600 1rem/1 var(--sans); white-space: nowrap; letter-spacing: -.01em; }
.tool:hover { border-color: rgba(255, 43, 69, .55); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 30px -12px rgba(255, 43, 69, .6); }
.tool:hover .tool__icon { background: #fff; }
.tool:hover .tool__mono { opacity: 0; transform: scale(.7); }
.tool:hover .tool__brand { opacity: 1; transform: none; }

/* ---------- certificates ---------- */
.certs__list { display: grid; gap: .6rem; }
.cert {
    position: relative; display: grid; grid-template-columns: 3rem 1fr minmax(10rem, 18rem) 4rem; gap: 1.5rem; align-items: baseline;
    padding: 1.15rem 1.4rem; border-radius: 20px; overflow: hidden; isolation: isolate;
    transition: border-color .4s;
}
.cert::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(255, 43, 69, .2), rgba(46, 99, 255, .12));
    transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.cert:hover::after { transform: scaleX(1); }
.cert:hover { border-color: rgba(255, 43, 69, .4); }
.cert__index { font: 500 .72rem/1 var(--mono); color: var(--red); }
.cert__name { font: 600 1.08rem/1.35 var(--sans); }
.cert__issuer { color: var(--ink-2); font-size: .92rem; }
.cert__year { font: 500 .8rem/1 var(--mono); color: var(--muted); text-align: right; }

/* ---------- work list ---------- */
.work-list { display: grid; }
.work-row { border-bottom: 1px solid var(--line); }
.work-row:first-child { border-top: 1px solid var(--line); }
.work-row__link {
    position: relative; display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1.5rem;
    padding: clamp(1.4rem, 3vw, 2.4rem) .5rem; overflow: hidden;
}
.work-row__link::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(255, 43, 69, .22), rgba(46, 99, 255, .1) 70%, transparent);
    transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.work-row__link:hover::before { transform: scaleY(1); }
.work-row__index { font: 500 .75rem/1 var(--mono); color: var(--red); }
.work-row__title {
    font: 400 clamp(2.2rem, 6vw, 5.4rem)/.95 var(--display); text-transform: uppercase;
    transition: transform .6s var(--ease), text-shadow .4s;
}
.work-row__link:hover .work-row__title { transform: translateX(.6rem); text-shadow: -.035em 0 rgba(255, 43, 69, .9), .035em 0 rgba(60, 208, 255, .8); }
.work-row__meta { display: grid; justify-items: end; gap: .3rem; font: 500 .75rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.work-row__thumb { display: none; }
@media (hover: none) {
    .work-row__thumb { display: block; grid-column: 1 / -1; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
    .work-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}
.work-float { position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none; width: clamp(16rem, 24vw, 26rem); aspect-ratio: 4 / 3; margin: -9rem 0 0 -12rem; visibility: hidden; }
.work-float__inner {
    width: 100%; height: 100%; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px -10px rgba(255, 43, 69, .45);
    clip-path: inset(50% 50% 50% 50% round 24px); transition: clip-path .7s var(--ease);
}
.work-float.is-visible { visibility: visible; }
.work-float.is-visible .work-float__inner { clip-path: inset(0 0 0 0 round 24px); }
.work-float img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1s var(--ease); }
.work-float.is-visible img { transform: scale(1); }
@media (hover: none) { .work-float { display: none; } }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 36px; }
.contact__intro { display: grid; gap: 2.2rem; align-content: start; }
.contact__big { font: 600 clamp(1.8rem, 3.4vw, 3rem)/1.12 var(--sans); letter-spacing: -.03em; }
.contact__big em { font-style: normal; color: var(--red); }
.contact__channels { display: grid; gap: 0; }
.contact__channels li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact__channels .label { margin: 0; }
.contact__alt { color: var(--ink-2); font-size: .92rem; }
.contact__sub { display: block; margin-top: .2rem; font: 500 .7rem/1.4 var(--mono); color: var(--muted); }

.form { display: grid; gap: .9rem; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form__notice { padding: 1rem 1.2rem; border-radius: 18px; font-size: .95rem; border: 1px solid var(--line-2); }
.form__notice--ok { border-color: rgba(54, 224, 138, .5); background: rgba(54, 224, 138, .1); color: #bff5d6; }
.form__notice--err { border-color: rgba(255, 43, 69, .55); background: rgba(255, 43, 69, .12); color: #ffc2ca; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; }
.field input, .field textarea {
    width: 100%; color: var(--ink); font: 500 1.02rem/1.45 var(--sans);
    padding: 1.55rem 1.1rem .6rem; resize: none; outline: none; border-radius: 18px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field textarea { min-height: 8.5rem; }
.field input:focus, .field textarea:focus { border-color: rgba(255, 43, 69, .7); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 43, 69, .15); }
.field label {
    position: absolute; left: 1.15rem; top: 1.15rem; pointer-events: none;
    font: 500 .95rem/1 var(--sans); color: var(--muted);
    transform-origin: left top; transition: transform .45s var(--ease), color .3s var(--ease);
}
.field label em { font-style: normal; opacity: .7; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.76); color: var(--ink-2); }
.field__err { display: block; margin: .4rem 0 0 1.1rem; color: #ff8a98; font-size: .82rem; }
.form .btn { justify-self: start; margin-top: .4rem; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(4rem, 8vw, 7rem) var(--pad) 1.6rem; overflow: hidden; }
.site-footer__big {
    position: relative;
    font: 400 clamp(5rem, 23vw, 24rem)/.8 var(--display); text-transform: uppercase; text-align: center; letter-spacing: -.01em;
    color: transparent;
    background: radial-gradient(rgba(5, 6, 11, .45) 1.6px, transparent 2.1px) 0 0 / 9px 9px, linear-gradient(95deg, var(--red), #8a2be2 25%, var(--blue) 50%, #8a2be2 75%, var(--red));
    -webkit-background-clip: text; background-clip: text;
    user-select: none;
}
.site-footer__big::before, .site-footer__big::after { -webkit-text-fill-color: currentColor; }
.site-footer__row {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    margin-top: 2.5rem; padding: 1rem 1.3rem; border-radius: 999px;
    font: 500 .78rem/1.4 var(--mono); color: var(--ink-2);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.site-footer__links a:hover, .to-top:hover { color: var(--red); }
.to-top { display: inline-flex; align-items: center; gap: .5rem; transition: color .3s; }
.to-top svg { width: .75rem; height: .75rem; }

/* ---------- inner pages ---------- */
.page-hero { padding: 8.5rem var(--pad) 0; display: grid; gap: 1.6rem; }
.crumbs { display: flex; gap: .6rem; flex-wrap: wrap; font: 500 .74rem/1 var(--mono); color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.page-hero__title { font: 400 clamp(4.5rem, 16vw, 15rem)/.85 var(--display); text-transform: uppercase; text-shadow: -.025em 0 rgba(255, 43, 69, .85), .025em 0 rgba(60, 208, 255, .7); }
.page-hero__title sup { font: 500 .95rem/1 var(--mono); vertical-align: top; margin-left: .4rem; color: var(--cyan); text-shadow: none; }
.page-hero__title--project { font-size: clamp(3rem, 9vw, 8rem); line-height: .92; }
.page-hero__lead { max-width: 40rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
    padding: .65rem 1.1rem; border-radius: 999px; font: 600 .85rem/1 var(--sans); color: var(--ink-2);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); transition: all .35s var(--ease);
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.filter.is-active { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 8px 24px -8px rgba(255, 43, 69, .7); }
.empty { color: var(--muted); }

.grid-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.grid-work .card:nth-child(even) { margin-top: 5rem; }
.card { border-radius: 30px; overflow: hidden; transition: transform .6s var(--spring), border-color .4s; }
.card.is-hidden { display: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 43, 69, .45); }
.card__link { display: grid; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; margin: .6rem .6rem 0; border-radius: 22px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.6px) 0 0 / 8px 8px, linear-gradient(135deg, var(--red-2), var(--blue));
}
.placeholder span { font: 400 7rem/1 var(--display); color: #fff; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .6rem; }
.card__index { font: 500 .72rem/1 var(--mono); color: var(--red); }
.card__title { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.card__summary { color: var(--ink-2); }
.card__meta { display: flex; justify-content: space-between; font: 500 .74rem/1 var(--mono); color: var(--muted); text-transform: uppercase; }

.meta-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.meta-row > div { padding: 1rem 1.2rem; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.meta-row dt { font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: .5rem; }
.meta-row dd { font-weight: 600; }
.cover { padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 0; }
.cover__frame { overflow: hidden; border-radius: 32px; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, .14); }
.cover__frame img { width: 100%; height: 112%; object-fit: cover; }
.project-body { display: grid; grid-template-columns: 20rem 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.project-body__aside { position: sticky; top: 6.5rem; display: grid; gap: 1.6rem; padding: 1.5rem; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .45rem .75rem; border-radius: 999px; font: 500 .82rem/1.2 var(--sans); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.project-links { display: grid; gap: .6rem; justify-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(3rem, 6vw, 5rem) var(--pad) 0; }
.gallery__item.is-wide { grid-column: 1 / -1; }
.gallery__frame { overflow: hidden; border-radius: 26px; border: 1px solid var(--line-2); }
.gallery__frame img { width: 100%; }
.next { display: grid; gap: .8rem; justify-items: center; text-align: center; padding: var(--section) var(--pad); }
.next__title { font: 400 clamp(3rem, 10vw, 9rem)/.9 var(--display); text-transform: uppercase; transition: text-shadow .4s, color .4s; }
.next:hover .next__title { color: transparent; -webkit-text-stroke: 2px #fff; text-shadow: -.04em 0 rgba(255, 43, 69, .9), .04em 0 rgba(60, 208, 255, .8); }

/* ---------- error page ---------- */
.error { position: relative; z-index: 2; min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 1.4rem; padding: var(--pad); max-width: 60rem; margin: 0 auto; }
.error .eyebrow { font: 400 clamp(6rem, 20vw, 12rem)/.8 var(--display); color: var(--ink); letter-spacing: 0; text-shadow: -.04em 0 rgba(255, 43, 69, .9), .04em 0 rgba(60, 208, 255, .8); }
.error__title { font: 700 clamp(2rem, 5vw, 3.6rem)/1.05 var(--sans); letter-spacing: -.03em; }
.error__title em { font-style: normal; color: var(--red); }
.error__text { color: var(--ink-2); max-width: 32rem; }

/* ---------- motion: initial states (only when JS + motion are on) ---------- */
html.motion [data-hero-fade],
html.motion [data-reveal],
html.motion [data-reveal-stagger] > *,
html.motion [data-hero-stagger] > *,
html.motion [data-hero-portrait],
html.motion .timeline__item,
html.motion .work-row,
html.motion .cert,
html.motion .stack__row,
html.motion [data-card] { opacity: 0; }
html.motion [data-reveal-img] { clip-path: inset(100% 0 0 0); }
html.motion [data-hero-line], html.motion [data-reveal-title] { visibility: hidden; }
html.motion.ready [data-hero-line], html.motion.ready [data-reveal-title] { visibility: visible; }

/* ---------- responsive ---------- */
@media (min-width: 1025px) {
    .hero__aka { display: none; }
}
@media (min-width: 1025px) and (max-height: 860px) {
    .hero__intro, .stat:nth-child(n+3) { display: none; }
    .hero__stage { padding-top: 5.4rem; }
}

@media (max-width: 1180px) {
    .hero__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem) minmax(0, 1fr); }
    .hero__left { max-width: 22rem; }
    .hero__left .hero__intro { display: none; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .nav, .clock { display: none; }
    .site-header { grid-template-columns: 1fr auto; }
    .menu-btn { display: inline-flex; }
    .about__grid, .contact__grid, .project-body { grid-template-columns: 1fr; }
    .about__side, .project-body__aside { position: relative; top: 0; }
    .about__side { display: grid; grid-template-columns: minmax(0, 26rem); }
    .about__photo { max-width: 26rem; }
    .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stack__row { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 760px) {
    :root { --radius: 22px; }
    .site-header { top: 10px; padding-left: .8rem; }
    .header__cta { display: none; }
    .hero__stage { min-height: 0; padding-top: 5.6rem; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto auto; row-gap: 0; }
    .hero__meta-mid { display: none; }
    .hero__meta { margin-bottom: 1.2rem; }
    .hero__line { font-size: 23.5vw; }
    .hero__line--1 { grid-area: 2 / 1; margin-top: 0; }
    .hero__line--2 { grid-area: 4 / 1; margin-top: -14vw; -webkit-text-stroke-width: 1.5px; }
    .hero__portrait { grid-area: 3 / 1; margin: -6vw 0 0; }
    .hero__portrait img { height: auto; width: min(86vw, 24rem); }
    .portrait__badge { right: -.8rem; top: 14%; width: 5rem; }
    .hero__left { grid-area: 5 / 1; max-width: none; margin-top: 1.4rem; padding: 1.25rem; }
    .hero__left .hero__intro { display: block; }
    .hero__right { grid-area: 6 / 1; margin-top: .8rem; justify-items: start; }
    .hero__stats { max-width: none; }
    .hero__aka { justify-items: start; text-align: left; }
    .hero__scroll { display: none; }
    .marquee { padding: 2.5rem 0; }
    .marquee::before { height: 3.2rem; margin-top: -1.6rem; }
    .marquee__track { padding: .8rem 0; gap: 1.3rem; }
    .section__head { grid-template-columns: auto 1fr; }
    .section__note { grid-column: 1 / -1; text-align: left; padding-bottom: 0; }
    .about__cols, .facts, .form__row { grid-template-columns: 1fr; }
    .timeline { padding-left: 1.7rem; }
    .timeline::before { left: .3rem; }
    .timeline__item { grid-template-columns: 1fr auto; gap: .8rem 1rem; padding: 1.2rem; }
    .timeline__item::before { left: -1.75rem; top: 1.45rem; }
    .timeline__period { grid-column: 1; grid-row: 1; line-height: 1.4; }
    .timeline__item .tag { grid-column: 2; grid-row: 1; }
    .timeline__main { grid-column: 1 / -1; }
    .tool { padding-right: .95rem; gap: .6rem; }
    .tool__icon { width: 2.1rem; height: 2.1rem; }
    .tool__icon img { width: 1.05rem; height: 1.05rem; }
    .stack__label { padding-left: var(--pad); }
    .cert { grid-template-columns: 2.2rem 1fr; gap: .35rem 1rem; padding: 1rem 1.1rem; }
    .cert__issuer { grid-column: 2; }
    .cert__year { display: none; }
    .work-row__link { grid-template-columns: 2.2rem 1fr; gap: .75rem 1rem; }
    .work-row__meta { grid-column: 2; justify-items: start; }
    .contact__grid { border-radius: 28px; }
    .contact__channels li { grid-template-columns: 1fr; gap: .3rem; }
    .grid-work { grid-template-columns: 1fr; }
    .grid-work .card:nth-child(even) { margin-top: 0; }
    .gallery { grid-template-columns: 1fr; }
    .site-footer__big::before, .site-footer__big::after { -webkit-text-fill-color: currentColor; }
.site-footer__row { flex-direction: column; align-items: flex-start; border-radius: 26px; }
    .halftone { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .stack__track { animation: none !important; flex-wrap: wrap; width: auto; padding: .6rem var(--pad); }
    .stack__viewport { -webkit-mask-image: none; mask-image: none; }
    .tool[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   v4 — cyber layer: scanlines, grain, HUD, scan, grid floor, flash frames.
   Everything here plays on its own; nothing waits for the pointer.
   ========================================================================== */

/* side rails */
.hud-rail { display: none; }
@media (min-width: 1280px) {
    .hud-rail {
        position: fixed; top: 50%; z-index: 50; display: flex; align-items: center; gap: .9rem; pointer-events: none;
        font: 500 .6rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .42);
        writing-mode: vertical-rl;
    }
    .hud-rail--l { left: 14px; transform: translateY(-50%) rotate(180deg); }
    .hud-rail--r { right: 14px; transform: translateY(-50%); }
    .hud-rail > i { width: 1px; height: 3.5rem; background: linear-gradient(var(--red), transparent); }
    .hud-rail__bar { position: relative; width: 2px; height: 22vh; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
    .hud-rail__bar i { position: absolute; inset: 0; background: linear-gradient(var(--red), var(--cyan)); transform-origin: top; transform: scaleY(0); }
    .hud-rail__num { color: var(--cyan); writing-mode: horizontal-tb; letter-spacing: .06em; }
}

/* reticle cursor */
@media (hover: hover) and (pointer: fine) {
    .cursor__ret {
        grid-area: 1 / 1; width: 34px; height: 34px; opacity: .8;
        background:
            linear-gradient(var(--cyan), var(--cyan)) 50% 0 / 1px 7px no-repeat,
            linear-gradient(var(--cyan), var(--cyan)) 50% 100% / 1px 7px no-repeat,
            linear-gradient(var(--cyan), var(--cyan)) 0 50% / 7px 1px no-repeat,
            linear-gradient(var(--cyan), var(--cyan)) 100% 50% / 7px 1px no-repeat;
        animation: spin 7s linear infinite; transition: opacity .3s, transform .3s;
    }
    html.ready .cursor.is-link .cursor__ret, html.ready .cursor.is-text .cursor__ret { opacity: 0; }
}

/* hero: perspective grid floor */
.hero__grid {
    position: absolute; left: -8%; right: -8%; bottom: 0; height: 32%; z-index: 0; pointer-events: none; overflow: hidden;
    perspective: 380px; perspective-origin: 50% 0;
    -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
}
.hero__grid i {
    position: absolute; left: 0; right: 0; top: -150%; bottom: -10%; transform-origin: 50% 100%;
    background:
        linear-gradient(rgba(60, 208, 255, .34) 1px, transparent 1px) 0 0 / 100% 52px,
        linear-gradient(90deg, rgba(255, 43, 69, .28) 1px, transparent 1px) 50% 0 / 52px 100%;
    transform: rotateX(66deg) translateY(0); animation: floor 1.4s linear infinite;
}
@keyframes floor { to { transform: rotateX(66deg) translateY(52px); } }

/* hero: photo wrapper, body scan, HUD */
.hero__photo { position: relative; display: block; z-index: 1; }
.hero__scan { display: none; }
.hero__scan img { filter: grayscale(1) sepia(1) hue-rotate(150deg) saturate(6) brightness(1.15) contrast(1.2); mix-blend-mode: screen; opacity: .55; }
.hero__scanline {
    position: absolute; inset: 0; pointer-events: none; animation: scan-line 5.2s linear infinite;
    background: linear-gradient(transparent calc(100% - 2px), rgba(160, 240, 255, .95) calc(100% - 2px));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    box-shadow: none;
}
@keyframes scan-band {
    0% { clip-path: inset(0 0 100% 0); } 8% { clip-path: inset(0 0 92% 0); }
    55% { clip-path: inset(82% 0 0 0); } 60%, 100% { clip-path: inset(100% 0 0 0); }
}
@keyframes scan-line {
    0% { transform: translateY(-100%); opacity: 1; } 8% { transform: translateY(-92%); }
    55% { transform: translateY(0); opacity: 1; } 60%, 100% { transform: translateY(0); opacity: 0; }
}
.hud-frame { position: absolute; inset: 6% 2% 22% 2%; z-index: 3; pointer-events: none; animation: breathe 3.2s ease-in-out infinite; }
.hud-frame i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .8); }
.hud-frame i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.hud-frame i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.hud-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; border-color: var(--red); }
.hud-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-color: var(--red); }
@keyframes breathe { 50% { transform: scale(1.025); opacity: .65; } }
.hud-chip {
    position: absolute; left: -4.5rem; top: 38%; z-index: 4; display: grid; gap: .35rem; min-width: 9.5rem;
    padding: .7rem .85rem .75rem; border-radius: 14px; font: 500 .62rem/1 var(--mono); letter-spacing: .14em; color: var(--ink-2);
}
.hud-chip__k b { color: var(--cyan); font-weight: 500; }
.hud-chip__v { font: 400 1.35rem/1 var(--display); letter-spacing: .04em; color: #fff; }
.hud-chip__bar { height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.hud-chip__bar i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--red), var(--cyan)); transition: width .8s var(--ease); }

/* hero: flash frames between beats, like cuts in an edit */
.hero__flash {
    position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none; visibility: hidden;
    background: radial-gradient(rgba(0, 0, 0, .35) 1.5px, transparent 2px) 0 0 / 8px 8px, rgba(255, 43, 69, .9);
    mix-blend-mode: hard-light;
}
.hero__flash span {
    font: 400 clamp(8rem, 30vw, 30rem)/.8 var(--display); letter-spacing: -.01em; color: transparent;
    -webkit-text-stroke: 3px #fff; text-shadow: -.04em 0 rgba(60, 208, 255, .9);
}
.hero__flash.is-alt { background: radial-gradient(rgba(0, 0, 0, .35) 1.5px, transparent 2px) 0 0 / 8px 8px, rgba(46, 99, 255, .9); }
.hero__flash.is-alt span { color: #fff; -webkit-text-stroke: 0; text-shadow: .04em 0 var(--red); }

/* about: terminal window */
.term { margin-top: 1rem; border-radius: 18px; overflow: hidden; }
.term__bar {
    display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line);
    font: 500 .64rem/1 var(--mono); color: var(--muted); letter-spacing: .06em;
}
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; margin-right: .5rem; }
.term__body { margin: 0; padding: .9rem 1rem 1.1rem; min-height: 11.5em; font: 500 .76rem/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.term__body b { color: var(--red); font-weight: 500; }
.term__body em { color: var(--cyan); font-style: normal; }

/* section titles: a colour bar wipes across, like a title card */
.section__title { position: relative; }
.title-wipe {
    position: absolute; left: -.1em; right: -.15em; top: 0; bottom: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.4px) 0 0 / 5px 5px, linear-gradient(90deg, var(--red), var(--blue));
    transform: scaleX(0); transform-origin: left;
}

@media (max-width: 1024px) {
    .hud-chip { left: -1rem; top: 30%; }
}
@media (max-width: 760px) {
    .hud-chip { left: -.4rem; top: 54%; min-width: 0; padding: .55rem .65rem .6rem; }
    .hud-chip__v { font-size: 1.05rem; }
    .hud-frame { inset: 8% 6% 20% 6%; }
    .hero__grid { height: 34%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__scan, .hero__scanline, .hero__flash { display: none; }
}

/* ---------- lite: phones and tablets ---------- */
html.lite .aura i:nth-child(3), html.lite .hero__scanline, html.lite .hero__flash { display: none; }
html.lite .hero__grid i, html.lite .hud-frame, html.lite .loader::before { animation: none; }
html.lite .glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px -18px rgba(0, 0, 0, .7); }
html.lite .btn, html.lite .btn--solid { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
html.lite .site-header.glass--blur { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(10, 12, 22, .88); }
html.lite .menu__bg { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 6, 11, .96); }
html.lite .hero__line, html.lite .hero__line .char { will-change: auto; }
html.lite .marquee__band, html.lite .marquee__ticker { box-shadow: none; }
