:root {
    --bg: #141b24;
    --bg-elevated: #1a222c;
    --surface: #212a36;
    --surface-hover: #2a3544;
    --ink: #f8f9fb;
    --text: #cdd3dc;
    --muted: #9aa8b8;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #5a9bff;
    --accent-2: #6eeadb;
    --accent-glow: rgba(90, 155, 255, 0.35);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", "SF Mono", monospace;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --fs-base: clamp(0.975rem, 0.94rem + 0.16vw, 1.05rem);
    --fs-lead: clamp(1.03rem, 0.98rem + 0.24vw, 1.14rem);
    --fs-body: clamp(0.94rem, 0.91rem + 0.12vw, 1rem);
    --fs-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --fs-xs: clamp(0.72rem, 0.7rem + 0.08vw, 0.78rem);
    --fs-h1: clamp(2.45rem, 6vw + 0.75rem, 4.1rem);
    --fs-h2: clamp(2.4rem, 4.6vw + 0.65rem, 4.35rem);
    --fs-h2-section: clamp(1.72rem, 2.1vw + 0.85rem, 2.55rem);
    --fs-h3: clamp(1.08rem, 0.95rem + 0.38vw, 1.28rem);
    --lh-body: 1.58;
    --lh-relaxed: 1.68;
    --lh-tight: 1.04;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: var(--fs-base);
    background: var(--bg);
    color: var(--ink);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-loading,
body.intro-lock { overflow: hidden; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; display: block; }

/* scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 200;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ── LOADER: boot systemu ── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-box {
    width: min(90vw, 380px);
    padding: 2rem;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.loader-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.loader-percent {
    font-family: var(--mono);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ink), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loader-track {
    height: 3px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    transition: width 0.08s linear;
}

.loader-status {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    min-height: 1.2em;
}

/* ── INTRO ── */
.intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    overflow: hidden;
    transition: transform 1s var(--ease-out), opacity 0.7s ease;
}

.intro.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.intro-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 45%, rgba(90, 155, 255, 0.12), transparent 70%);
    pointer-events: none;
    animation: introBgPulse 8s ease-in-out infinite;
}

@keyframes introBgPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.intro-enter {
    opacity: 0;
    transform: translateY(24px);
}

.intro.is-ready .intro-enter {
    animation: introCascade 0.9s var(--ease-out) forwards;
}

.intro-enter-1 { animation-delay: 0.1s !important; }
.intro-enter-2 { animation-delay: 0.25s !important; }
.intro-enter-3 { animation-delay: 0.4s !important; }
.intro-enter-4 { animation-delay: 0.55s !important; }

@keyframes introCascade {
    to { opacity: 1; transform: translateY(0); }
}

.intro-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 42rem;
}

.intro-photo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.75rem;
}

.intro-photo-wrap::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
    animation: ringSpin 4s linear infinite;
}

@keyframes ringSpin { to { transform: rotate(360deg); } }

.intro-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.intro h1 {
    font-family: var(--serif);
    font-size: var(--fs-h1);
    font-weight: 400;
    line-height: var(--lh-tight);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.intro h1 em {
    font-style: italic;
    color: var(--accent-2);
}

.intro-sub {
    font-size: var(--fs-lead);
    color: var(--text);
    max-width: 28rem;
    margin: 0 auto 2.5rem;
    line-height: var(--lh-relaxed);
}

.intro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.intro-pills span {
    font-family: var(--mono);
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: cueBounce 2s ease-in-out infinite;
}

.scroll-cue svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

@keyframes cueBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ── SITE ── */
.site {
    opacity: 0;
    transition: opacity 0.8s ease 0.15s;
}

.site.is-visible { opacity: 1; }

.wrap {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    padding-left: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right));
}

/* header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.9rem 0;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(20, 27, 36, 0.88);
    backdrop-filter: blur(16px);
    border-color: var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.site-logo b { color: var(--accent); font-weight: 500; }

.site-nav {
    display: flex;
    gap: 0.15rem;
}

.site-nav a {
    font-size: 0.78rem;
    color: var(--text);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 700px) {
    .site-nav { display: none; }
}

/* hero */
.hero {
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(5.5rem + env(safe-area-inset-top)) 0 calc(2.5rem + env(safe-area-inset-bottom));
    position: relative;
}

@media (min-width: 960px) {
    .hero {
        height: 100svh;
        height: 100vh;
        max-height: 100svh;
        max-height: 100vh;
        min-height: 0;
        padding: calc(4.9rem + env(safe-area-inset-top)) 0 calc(2rem + env(safe-area-inset-bottom));
        overflow: hidden;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(90, 155, 255, 0.14), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(110, 234, 219, 0.1), transparent);
    pointer-events: none;
    transition: transform 0.4s var(--ease-out);
}

.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    will-change: transform;
}

.orb-a {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: 10%;
    left: -8%;
    background: rgba(90, 155, 255, 0.35);
    animation: orbDriftA 18s ease-in-out infinite;
}

.orb-b {
    width: min(320px, 45vw);
    height: min(320px, 45vw);
    bottom: 5%;
    right: -5%;
    background: rgba(110, 234, 219, 0.25);
    animation: orbDriftB 22s ease-in-out infinite;
}

@keyframes orbDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.08); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -25px) scale(1.1); }
}

.hero-stagger {
    opacity: 0;
    transform: translateY(28px);
}

.site.is-visible .hero-stagger {
    animation: heroIn 0.85s var(--ease-out) forwards;
}

.site.is-visible .hero-content .hero-stagger:nth-child(1) { animation-delay: 0.12s; }
.site.is-visible .hero-content .hero-stagger:nth-child(2) { animation-delay: 0.22s; }
.site.is-visible .hero-content .hero-stagger:nth-child(3) { animation-delay: 0.32s; }
.site.is-visible .hero-content .hero-stagger:nth-child(4) { animation-delay: 0.42s; }
.site.is-visible .hero-content .hero-stagger:nth-child(5) { animation-delay: 0.52s; }
.site.is-visible .hero-stagger-media { animation-delay: 0.62s; }
.site.is-visible .hero-stagger-cta { animation-delay: 0.74s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (min-width: 960px) {
    .hero-layout {
        grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
        gap: clamp(2.25rem, 4.8vw, 4.75rem);
        align-items: center;
    }
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 960px) {
    .hero-side {
        gap: 1rem;
        justify-content: center;
    }
}

.hero-media {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 960px) {
    .hero-media {
        margin: 0;
        max-width: none;
    }
}

.hero-video-wrap {
    position: relative;
    aspect-ratio: 16 / 10.5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(90, 155, 255, 0.08);
}

@media (min-width: 960px) {
    .hero-video-wrap {
        aspect-ratio: 16 / 11;
        max-height: min(58vh, 520px);
    }
}

@media (min-width: 960px) and (max-height: 820px) {
    .hero-video-wrap { max-height: min(50vh, 430px); }
}

@media (min-width: 960px) and (max-height: 700px) {
    .hero-video-wrap { max-height: min(44vh, 340px); }
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    transform: scale(1.08);
    transform-origin: center center;
    display: block;
    pointer-events: none;
}

.hero-video-edge {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* zakrycie watermarku Gemini — crop + delikatna plama w rogu */
.hero-video-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22%;
    height: 16%;
    background: linear-gradient(135deg, transparent 0%, rgba(20, 27, 36, 0.55) 45%, var(--bg) 88%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero h2 {
    font-family: var(--serif);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: var(--lh-tight);
    margin-bottom: 1.15rem;
    letter-spacing: 0;
    max-width: 13ch;
}

@media (min-width: 640px) {
    .hero h2 { max-width: none; }
}

@media (min-width: 960px) {
    .hero h2 {
        font-size: clamp(2.9rem, 4.25vw + 0.25rem, 4.7rem);
        margin-bottom: 1.15rem;
    }
}

.hero-content {
    position: relative;
    max-width: 42rem;
}

@media (min-width: 960px) {
    .hero-content { max-width: none; }
}

.hero-lead {
    font-size: var(--fs-lead);
    color: var(--text);
    max-width: 39rem;
    margin-bottom: 0.85rem;
    line-height: var(--lh-relaxed);
}

@media (min-width: 960px) {
    .hero-lead {
        font-size: clamp(1rem, 0.35vw + 0.88rem, 1.08rem);
        margin-bottom: 0.72rem;
        line-height: 1.62;
    }
}

.hero-lead-secondary { margin-bottom: 1.25rem; }

@media (min-width: 960px) {
    .hero-lead-secondary {
        margin-bottom: 1.05rem;
        font-size: clamp(0.92rem, 0.28vw + 0.84rem, 1rem);
        line-height: 1.58;
    }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0;
}

@media (min-width: 960px) {
    .hero-tags {
        gap: 0.35rem;
    }

    .hero-tags span {
        padding: 0.32rem 0.66rem;
        font-size: 0.68rem;
    }
}

.hero-tags span {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.hero-tags span:hover {
    border-color: rgba(90, 155, 255, 0.45);
    background: rgba(90, 155, 255, 0.08);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

@media (min-width: 960px) {
    .hero-cta {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0;
    }

    .hero-cta .btn {
        flex: 1 1 0;
        justify-content: center;
        padding: 0.75rem 0.95rem;
        min-height: 44px;
        font-size: 0.82rem;
    }
}

@media (min-width: 960px) and (max-height: 820px) {
    .hero-lead-secondary { display: none; }

    .hero h2 {
        font-size: clamp(2.3rem, 3.15vw + 0.35rem, 3.65rem);
    }
}

@media (min-width: 960px) and (max-height: 700px) {
    .hero-eyebrow { margin-bottom: 0.5rem; }

    .hero h2 { margin-bottom: 0.5rem; }

    .hero-lead { margin-bottom: 0.5rem; }

    .hero-tags span {
        padding: 0.28rem 0.55rem;
        font-size: 0.6875rem;
    }

    .hero-cta .btn {
        min-height: 40px;
        padding: 0.65rem 1rem;
        font-size: 0.8125rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1.35rem;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    min-height: 44px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover { color: #fff; box-shadow: 0 12px 40px var(--accent-glow); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.stat {
    background: var(--surface);
    padding: 1.5rem;
    transition: background 0.3s;
}

.stat:hover { background: var(--surface-hover); }

.stat-num {
    font-family: var(--mono);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

/* sections */
section.block {
    padding: clamp(3.5rem, 6vw, 5.25rem) 0;
    position: relative;
}

.section-head {
    margin-bottom: 2rem;
}

.section-num {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-family: var(--serif);
    font-size: var(--fs-h2-section);
    font-weight: 400;
    line-height: var(--lh-tight);
    background: linear-gradient(120deg, var(--ink) 30%, var(--accent-2) 50%, var(--ink) 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: headlineShimmer 8s ease-in-out infinite;
}

@keyframes headlineShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

[data-stagger] > .reveal:nth-child(1) { transition-delay: 0s; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: 0.08s; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 0.16s; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 0.24s; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 0.32s; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 0.4s; }
[data-stagger] > .reveal:nth-child(7) { transition-delay: 0.48s; }
[data-stagger] > .reveal:nth-child(8) { transition-delay: 0.56s; }
[data-stagger] > .reveal:nth-child(9) { transition-delay: 0.64s; }
[data-stagger] > .reveal:nth-child(10) { transition-delay: 0.72s; }
[data-stagger] > .reveal:nth-child(11) { transition-delay: 0.8s; }
[data-stagger] > .reveal:nth-child(12) { transition-delay: 0.88s; }

/* about */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3.75rem);
    align-items: start;
}

@media (min-width: 800px) {
    .about-grid { grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr); }
}

.about-photo {
    border-radius: 10px;
    border: 1px solid var(--line);
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center 15%;
    width: 100%;
    max-height: 390px;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}

.about-photo.is-in {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.about-grid:hover .about-photo.is-in {
    transform: scale(1.02) translateY(-4px);
}

.about-text p {
    color: var(--text);
    margin-bottom: 0.9rem;
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
}

.about-text p strong { color: var(--ink); font-weight: 500; }

/* timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}

.job {
    position: relative;
    padding-bottom: 3rem;
}

.job:last-child { padding-bottom: 0; }

.job::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 8px;
    width: 10px;
    height: 10px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.job-meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

.job h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.job-org {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.job p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.job-tags span {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    background: rgba(61, 139, 253, 0.1);
    border: 1px solid rgba(61, 139, 253, 0.2);
    border-radius: 4px;
    color: var(--accent-2);
    font-family: var(--mono);
}

/* project quick links */
.project-links-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.project-links-bar a {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(61, 139, 253, 0.35);
    border-radius: 6px;
    color: var(--accent-2);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.project-links-bar a:hover {
    background: rgba(61, 139, 253, 0.12);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--ink);
}

.project-url {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-go {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.project-card:hover .project-go,
.project-hero:hover .project-go {
    opacity: 1;
    transform: translate(2px, -2px);
}

.project-hero {
    position: relative;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(61, 139, 253, 0.2);
    color: inherit;
}

.project-hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(61, 139, 253, 0.15), transparent 60%);
    pointer-events: none;
}

.project-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
}

@media (min-width: 800px) {
    .project-hero-inner { grid-template-columns: 1.3fr 1fr; }
}

.project-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.project-flag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent-2);
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.project-hero h3 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.project-hero:hover h3 { color: var(--accent-2); }

.project-type {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-hero p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.project-stack span {
    font-family: var(--mono);
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid var(--line);
    transition: border-color 0.2s, transform 0.2s;
}

.project-features li:hover {
    border-color: rgba(61, 139, 253, 0.3);
    transform: translateX(4px);
}

.project-features li::before {
    content: "→";
    color: var(--accent);
    flex-shrink: 0;
}

/* project grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card-specialty {
    border-color: rgba(94, 234, 212, 0.25);
    background: linear-gradient(145deg, var(--surface), rgba(94, 234, 212, 0.04));
}

.project-card-specialty .project-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.75rem;
}

.project-card-specialty .project-flag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent-2);
}

.project-card-static {
    cursor: default;
}

.project-card-static:not(.project-card-specialty):hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.project-card-static:hover::before { opacity: 0; }

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 139, 253, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before { opacity: 1; }

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--ink);
}

.project-card:hover h3 { color: var(--accent-2); }

.project-card .project-type {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.card-link {
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-link-hero {
    display: block;
    padding: 0  clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
    margin-top: -0.5rem;
    padding-top: 0;
}

.card-link-muted { color: var(--muted); }

.project-card .card-link {
    opacity: 1;
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-card:hover .card-link {
    color: var(--ink);
    transform: none;
}

.project-hero .card-link-hero {
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}

.project-hero:hover .card-link-hero {
    opacity: 1;
    transform: translateX(4px);
}

.about-text a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-text a:hover { color: var(--accent); }

/* services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 800px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
    position: relative;
    padding: 1.45rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 155, 255, 0.06), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    border-color: rgba(90, 155, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.service-num {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    opacity: 0.7;
}

.service-card h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: var(--ink);
}

.service-card p {
    font-size: var(--fs-body);
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0.72rem;
}

.service-card p:last-child { margin-bottom: 0; }

.service-scope {
    font-size: var(--fs-sm) !important;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.service-scope strong { color: var(--ink); font-weight: 500; }

/* case studies */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-study {
    position: relative;
    display: block;
    padding: 1.45rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.case-study::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-18deg);
    transition: left 0.65s var(--ease-out);
    pointer-events: none;
}

.case-study:hover::after { left: 140%; }

.case-study:hover {
    transform: translateY(-4px);
    border-color: rgba(61, 139, 253, 0.35);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    color: inherit;
}

.case-study-featured {
    margin-bottom: 1rem;
    border-color: rgba(61, 139, 253, 0.25);
    background: linear-gradient(145deg, var(--surface), rgba(61, 139, 253, 0.05));
}

.case-study:hover .project-go {
    opacity: 1;
    transform: translate(2px, -2px);
}

.case-head { margin-bottom: 1rem; }
.case-study-featured .case-head { max-width: 86%; }

.case-study h3 {
    font-family: var(--serif);
    font-size: var(--fs-h3);
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: var(--ink);
}

.case-study:hover h3 { color: var(--accent-2); }

.case-sub {
    font-size: var(--fs-sm);
    color: var(--accent);
}

.case-study > p {
    font-size: var(--fs-body);
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0.72rem;
}

.case-scope {
    font-size: var(--fs-sm) !important;
    margin-bottom: 0 !important;
}

.case-scope strong { color: var(--ink); font-weight: 500; }

.case-study .card-link {
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
}

/* process */
.process-intro p,
.process-outro,
.tech-block p {
    color: var(--text);
    font-size: var(--fs-base);
    line-height: 1.62;
    margin-bottom: 0.85rem;
    max-width: 46rem;
}

.process-intro { margin-bottom: 1.4rem; }

.process-outro {
    margin-top: 1.4rem;
    margin-bottom: 0;
    font-style: italic;
}

.tech-block { margin-bottom: 2rem; }

.tech-block strong { color: var(--ink); font-weight: 500; }

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    counter-reset: step;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    left: 1.65rem;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 1px;
    background: var(--line);
    z-index: 0;
}

.process-steps::after {
    content: "";
    position: absolute;
    left: 1.65rem;
    top: 1.25rem;
    width: 1px;
    height: var(--process-fill, 0%);
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    z-index: 0;
    transition: height 0.15s linear;
    box-shadow: 0 0 12px var(--accent-glow);
}

@media (min-width: 640px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before,
    .process-steps::after { display: none; }
}

.process-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.25s, transform 0.25s, opacity 0.4s;
    position: relative;
    z-index: 1;
}

.process-steps li.is-active {
    border-color: rgba(90, 155, 255, 0.35);
    background: linear-gradient(135deg, var(--surface), rgba(90, 155, 255, 0.04));
}

.process-steps li:hover {
    border-color: rgba(61, 139, 253, 0.3);
    transform: translateX(4px);
}

.process-steps li span {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.process-steps li div {
    font-size: var(--fs-body);
    color: var(--text);
    line-height: 1.5;
}

.process-steps li strong { color: var(--ink); font-weight: 600; }

.contact-section > p + p { margin-top: -1rem; }

/* skills marquee */
.marquee-wrap {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 1rem 0;
    margin-bottom: 2rem;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee {
    display: flex;
    gap: 2rem;
    animation: marquee 35s linear infinite;
    width: max-content;
}

.marquee:hover { animation-play-state: paused; }

.marquee span {
    font-family: var(--mono);
    font-size: var(--fs-sm);
    color: var(--text);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.marquee span b { color: var(--accent-2); font-weight: 500; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.6rem;
}

.skill-pill {
    padding: 0.9rem 0.75rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: var(--fs-sm);
    color: var(--text);
    transition: transform 0.3s var(--ease-out), border-color 0.25s, color 0.25s, box-shadow 0.3s;
}

.skill-pill:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(90, 155, 255, 0.45);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(90, 155, 255, 0.12);
}

.magnetic {
    transition: transform 0.15s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.contact-cta {
    display: inline-flex;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* contact */
.contact-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(1.75rem, 4vw, 3rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(90, 155, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.contact-section h2 {
    font-family: var(--serif);
    font-size: var(--fs-h2-section);
    margin-bottom: 0.7rem;
    position: relative;
}

.contact-section > p {
    color: var(--text);
    font-size: var(--fs-base);
    line-height: 1.62;
    margin: 0 auto 0.9rem;
    max-width: 46rem;
    position: relative;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
}

.contact-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.9rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    min-width: 160px;
    transition: transform 0.25s, border-color 0.25s;
}

.contact-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(61, 139, 253, 0.4);
}

.contact-chip small {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-chip a,
.contact-chip span {
    font-size: var(--fs-sm);
    color: var(--ink);
}

.site-footer {
    padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
    text-align: center;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--muted);
}

/* ── Mobile typography & layout ── */
@media (max-width: 480px) {
    .site-logo { font-size: var(--fs-sm); }

    .hero {
        align-items: flex-start;
        padding-top: calc(4.75rem + env(safe-area-inset-top));
    }

    .hero-layout {
        gap: 1.5rem;
    }

    .hero-video-wrap { aspect-ratio: 4 / 3; }

    .hero h2 {
        max-width: 11.5ch;
        margin-bottom: 1rem;
    }

    .hero-lead {
        margin-bottom: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-tags { gap: 0.5rem; }

    .service-card,
    .case-study {
        padding: 1.15rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-chip {
        min-width: 0;
        width: 100%;
    }

    .project-links-bar a {
        font-size: var(--fs-xs);
        padding: 0.55rem 0.75rem;
    }
}

@media (max-width: 380px) {
    .intro-inner { padding: 1.25rem; }

    .intro-photo-wrap {
        width: 108px;
        height: 108px;
    }

    .hero h2 { letter-spacing: -0.01em; }
}

@media (min-width: 481px) and (max-width: 700px) {
    .hero-cta .btn { min-width: 11rem; }
}

@media (min-width: 900px) {
    .about-text p,
    .tech-block p { font-size: var(--fs-base); }

    .service-card p,
    .case-study > p { font-size: var(--fs-body); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee { animation: none; }
    .reveal, .hero-stagger, .intro-enter { opacity: 1; transform: none; }
    .section-head h2 {
        color: var(--ink);
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }
}
