@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
    --bg: #f2f0e9;
    --surface: #e8e5dc;
    --surface-2: #faf9f5;
    --ink: #121512;
    --ink-2: #515851;
    --muted: #7c837c;
    --line: rgba(18,21,18,.14);
    --lime: #b9ff45;
    --green: #143f2a;
    --orange: #ff734d;
    --blue: #4d79ff;
    --shadow: 0 24px 80px rgba(22, 29, 23, .12);
    --sans: 'Manrope', sans-serif;
    --mono: 'DM Mono', monospace;
    --serif: 'Playfair Display', serif;
}

[data-theme="dark"] {
    --bg: #0c0f0d;
    --surface: #151a16;
    --surface-2: #101411;
    --ink: #edf2eb;
    --ink-2: #adb7ae;
    --muted: #717c72;
    --line: rgba(237,242,235,.13);
    --green: #b9ff45;
    --shadow: 0 24px 90px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; transition: background .35s, color .35s; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--lime); color: #111; }
.skip-link { position: fixed; z-index: 9999; top: -60px; left: 20px; padding: .7rem 1rem; background: var(--lime); color: #111; transition: top .2s; }
.skip-link:focus { top: 20px; }
.scroll-progress { position: fixed; z-index: 1000; inset: 0 0 auto; height: 2px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--lime); }
.cursor-glow { position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(185,255,69,.11), transparent 67%); transform: translate(-50%,-50%); transition: opacity .25s; }

nav {
    position: fixed; z-index: 900; top: 14px; left: 50%; transform: translateX(-50%);
    width: min(calc(100% - 32px), 1320px); min-height: 62px; display: flex; align-items: center;
    justify-content: space-between; padding: .55rem .65rem .55rem 1.2rem; border: 1px solid var(--line);
    border-radius: 100px; background: color-mix(in srgb, var(--bg) 78%, transparent);
    box-shadow: 0 10px 35px rgba(0,0,0,.06); backdrop-filter: blur(20px);
}
.nav-logo { display: flex; align-items: center; gap: .25rem; font: 700 1.05rem var(--mono); text-decoration: none; }
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185,255,69,.18); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a { display: block; padding: .55rem .8rem; border-radius: 99px; color: var(--ink-2); font: 400 .72rem var(--mono); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--surface); color: var(--ink); }
.nav-actions { display: flex; gap: .35rem; align-items: center; }
.icon-button, .mobile-menu-button {
    min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2);
    color: var(--ink); cursor: pointer; display: grid; place-items: center; font: 500 .72rem var(--mono); transition: .2s;
}
.icon-button:hover { transform: translateY(-2px); border-color: var(--ink); }
.command-trigger { width: auto; border-radius: 30px; padding: 0 .75rem; display: flex; gap: .35rem; }
.command-trigger kbd { color: var(--muted); font: .65rem var(--mono); }
.mobile-menu-button { display: none; position: relative; }
.mobile-menu-button span { position: absolute; width: 16px; height: 1px; background: currentColor; transform: translateY(-3px); transition: .2s; }
.mobile-menu-button span:last-child { transform: translateY(3px); }

section { position: relative; }
.section-shell { width: min(100%, 1440px); margin: auto; padding: 9rem clamp(1.4rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.section-number { position: absolute; top: 2.2rem; right: clamp(1.4rem,5vw,5rem); color: var(--muted); font: 400 .75rem var(--mono); }
.section-number::before { content: '/'; color: var(--lime); }
.section-label, .eyebrow { color: var(--ink-2); font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 4.5rem; }
.section-intro h2 { margin-top: .9rem; }
h1, h2, h3 { letter-spacing: -.055em; }
h2 { font-size: clamp(2.6rem, 6vw, 6.2rem); font-weight: 500; line-height: .98; }
h2 em { color: var(--green); font-family: var(--serif); font-weight: 600; }

#hero {
    width: min(100%, 1440px); min-height: 100svh; margin: auto; padding: 9rem clamp(1.4rem,5vw,5rem) 4rem;
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem,5vw,6rem);
}
.hero-noise { position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1.1s ease; }
.hero-particles.is-live { opacity: .72; }
#hero > .hero-copy, #hero > .hero-stage, #hero > .scroll-cue { position: relative; z-index: 2; }
@media (max-width: 819px) { .hero-particles { display: none; } }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.6rem; }
.eyebrow i, .status-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185,255,69,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(185,255,69,0); } }
h1 { max-width: 850px; font-size: clamp(3.4rem, 6.3vw, 7.2rem); font-weight: 600; line-height: .91; }
.outline-text { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-sub { max-width: 650px; margin: 2rem 0 2.2rem; color: var(--ink-2); font-size: clamp(1rem,1.5vw,1.25rem); line-height: 1.75; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.btn-primary, .btn-outline, .btn-quiet {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; border: 0; cursor: pointer;
    text-decoration: none; font: 500 .79rem var(--mono); text-transform: uppercase; letter-spacing: .04em;
}
.btn-primary { min-width: 225px; padding: 1rem 1.1rem 1rem 1.35rem; border-radius: 4px; background: var(--ink); color: var(--bg); }
.btn-primary span { font-size: 1.15rem; }
.btn-outline { padding: .9rem 1.25rem; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); }
.btn-quiet { padding: .8rem 0; border-bottom: 1px solid var(--ink); color: var(--ink); }
.hero-nudge { width: fit-content; display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.25rem; padding: .65rem .85rem; border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--lime) 9%, transparent); color: var(--ink); text-decoration: none; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.hero-nudge span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(185,255,69,.45); animation: nudgePulse 1.7s infinite; }
@keyframes nudgePulse { 70% { box-shadow: 0 0 0 10px rgba(185,255,69,0); } 100% { box-shadow: 0 0 0 0 rgba(185,255,69,0); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 4rem; color: var(--muted); font: .66rem var(--mono); text-transform: uppercase; }
.hero-meta span { display: grid; gap: .15rem; }
.hero-meta strong { color: var(--ink); font-size: .85rem; }
.hero-stage { position: relative; max-width: 610px; margin-left: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); box-shadow: var(--shadow); transform-style: preserve-3d; }
.stage-chrome { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.stage-chrome > span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.stage-chrome > span:first-child { background: var(--orange); }
.stage-chrome small { margin-left: auto; color: var(--muted); font: .63rem var(--mono); }
.stage-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 430px; }
.portrait-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem; border-right: 1px solid var(--line); }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: .86; border-radius: 8px; background: var(--surface); filter: saturate(.75); }
.portrait-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 65%,rgba(12,15,13,.35)); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.scan-line { position: absolute; z-index: 2; left: 0; right: 0; height: 1px; background: var(--lime); box-shadow: 0 0 18px var(--lime); animation: scan 4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 8%; opacity: 0; } 15%,85% { opacity: .8; } 50% { top: 88%; } }
.status-line { display: flex; align-items: center; gap: .6rem; padding-top: 1rem; color: var(--muted); font: .62rem var(--mono); }
.data-panel { padding: 2rem 1.5rem; color: var(--green); }
.data-label { color: var(--muted); font: .62rem var(--mono); }
.data-panel > strong { display: inline-block; margin-top: 1rem; font-size: clamp(4rem,7vw,6rem); line-height: 1; letter-spacing: -.08em; }
.data-panel > b { font: 400 1rem var(--mono); }
.data-panel svg { width: 100%; overflow: visible; margin: 1.2rem 0 1.6rem; }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 430; stroke-dashoffset: 430; animation: draw 2.2s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.data-row { display: flex; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); color: var(--muted); font: .65rem var(--mono); }
.data-row strong { color: var(--ink); }
.floating-chip { position: absolute; z-index: 3; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb,var(--surface-2) 88%,transparent); box-shadow: 0 8px 22px rgba(0,0,0,.09); backdrop-filter: blur(8px); font: .63rem var(--mono); animation: float 4s ease-in-out infinite; }
.chip-one { top: 14%; left: -7%; }
.chip-two { right: -7%; bottom: 25%; animation-delay: -1.5s; }
.chip-three { left: 21%; bottom: -4%; animation-delay: -2.4s; }
@keyframes float { 50% { transform: translateY(-9px) rotate(1deg); } }
.scroll-cue { position: absolute; bottom: 2rem; left: clamp(1.4rem,5vw,5rem); display: flex; align-items: center; gap: .8rem; color: var(--muted); text-decoration: none; font: .62rem var(--mono); text-transform: uppercase; }
.scroll-cue span { width: 42px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: cue 2s infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem,8vw,9rem); }
.about-statement p { max-width: 760px; font-size: clamp(1.3rem,2.5vw,2.15rem); line-height: 1.45; letter-spacing: -.025em; }
.about-statement p + p { margin-top: 2rem; color: var(--ink-2); font-size: clamp(1rem,1.5vw,1.2rem); }
.principles article { display: grid; grid-template-columns: 38px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.principles article > span { color: var(--muted); font: .67rem var(--mono); }
.principles h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.principles p { color: var(--ink-2); font-size: .9rem; }

.proof-section { overflow: hidden; background: #101410; color: #edf2eb; }
.proof-section .section-number, .proof-section .section-label { color: #7f8a80; }
.proof-section h2 em { color: var(--lime); }
.proof-lede { max-width: 430px; color: #aab4ab; line-height: 1.75; }
.proof-console {
    display: grid; grid-template-columns: 360px 1fr; min-height: 520px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.13); border-radius: 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(185,255,69,.14), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
        #141914;
    box-shadow: 0 35px 100px rgba(0,0,0,.38);
}
.proof-rail { display: grid; align-content: start; gap: .75rem; padding: clamp(1.2rem,3vw,2rem); border-right: 1px solid rgba(255,255,255,.12); }
.proof-rail button {
    display: grid; grid-template-columns: 54px 1fr; gap: .1rem .85rem; align-items: center; min-height: 86px;
    border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: .85rem;
    background: rgba(255,255,255,.025); color: #edf2eb; text-align: left; cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.proof-rail button:hover, .proof-rail button.active { transform: translateX(6px); border-color: rgba(185,255,69,.62); background: rgba(185,255,69,.085); }
.proof-rail span { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(185,255,69,.12); color: var(--lime); font: 700 .72rem var(--mono); }
.proof-rail b { font-size: .94rem; letter-spacing: -.015em; }
.proof-rail small { color: #89938a; font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.proof-board { position: relative; padding: clamp(1.5rem,4vw,3.2rem); display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.proof-board::before {
    content: ''; position: absolute; inset: 1.2rem; z-index: -1; opacity: .28;
    background-image: linear-gradient(rgba(185,255,69,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(185,255,69,.14) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(circle at 72% 36%, #000, transparent 70%);
}
.proof-board-top span { color: #7f8a80; font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.proof-board-top strong { display: block; max-width: 760px; margin-top: .8rem; font-size: clamp(2.2rem,5vw,5.6rem); line-height: .92; letter-spacing: -.07em; }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin: 2rem 0 1.4rem; }
.proof-grid article { min-height: 116px; padding: 1rem; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(0,0,0,.24); }
.proof-grid b { display: block; color: var(--lime); font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1; letter-spacing: -.06em; }
.proof-grid span { display: block; margin-top: .65rem; color: #aab4ab; font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.proof-board > p { max-width: 780px; color: #dce5dc; font-size: clamp(.96rem,1.25vw,1.1rem); line-height: 1.78; }
.proof-stack { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.proof-stack span { padding: .45rem .68rem; border-radius: 99px; background: rgba(185,255,69,.1); color: #e7ffd0; font: .62rem var(--mono); }
.proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.proof-primary, .proof-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.proof-primary { padding: .85rem 1rem; border-radius: 4px; background: var(--lime); color: #111; }
.proof-secondary { color: var(--lime); text-decoration: underline; text-underline-offset: 5px; }
:root:not([data-theme="dark"]) .proof-section { background: #f2f0e9; color: #121512; }
:root:not([data-theme="dark"]) .proof-section .section-number,
:root:not([data-theme="dark"]) .proof-section .section-label { color: #6d756d; }
:root:not([data-theme="dark"]) .proof-section h2 em { color: var(--green); }
:root:not([data-theme="dark"]) .proof-lede { color: #515851; }
:root:not([data-theme="dark"]) .proof-console { border-color: rgba(18,21,18,.12); background: radial-gradient(circle at 20% 0%, rgba(38,95,64,.12), transparent 30%), #fbfaf6; box-shadow: 0 30px 90px rgba(24,31,23,.12); }
:root:not([data-theme="dark"]) .proof-rail { border-right-color: rgba(18,21,18,.12); }
:root:not([data-theme="dark"]) .proof-rail button { border-color: rgba(18,21,18,.12); background: rgba(18,21,18,.025); color: #121512; }
:root:not([data-theme="dark"]) .proof-rail button:hover,
:root:not([data-theme="dark"]) .proof-rail button.active { border-color: rgba(38,95,64,.45); background: rgba(38,95,64,.08); }
:root:not([data-theme="dark"]) .proof-rail span { background: rgba(38,95,64,.1); color: var(--green); }
:root:not([data-theme="dark"]) .proof-rail small,
:root:not([data-theme="dark"]) .proof-board-top span { color: #6d756d; }
:root:not([data-theme="dark"]) .proof-board::before { opacity: .18; background-image: linear-gradient(rgba(38,95,64,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(38,95,64,.14) 1px, transparent 1px); }
:root:not([data-theme="dark"]) .proof-grid article { border-color: rgba(18,21,18,.1); background: rgba(255,255,255,.72); }
:root:not([data-theme="dark"]) .proof-grid b,
:root:not([data-theme="dark"]) .proof-secondary { color: var(--green); }
:root:not([data-theme="dark"]) .proof-grid span { color: #6d756d; }
:root:not([data-theme="dark"]) .proof-board > p { color: #252b25; }
:root:not([data-theme="dark"]) .proof-stack span { background: rgba(38,95,64,.09); color: #18452d; }
:root:not([data-theme="dark"]) .proof-primary { background: var(--ink); color: var(--bg); }

.work-section { background: var(--surface-2); }
.filter-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.filter-tabs button { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--ink-2); cursor: pointer; font: .65rem var(--mono); text-transform: uppercase; }
.filter-tabs button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.project-stack-shell { position: relative; }
.project-stack-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.project-stack-topline span { display: block; color: var(--muted); font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.project-stack-topline strong { display: block; max-width: min(720px,70vw); margin-top: .2rem; font-size: clamp(1.35rem,2vw,1.9rem); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-stack-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.project-stack-link { padding: .68rem .82rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--bg); font: .64rem var(--mono); text-transform: uppercase; text-decoration: none; transition: .2s; }
.project-stack-link:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.project-stack-controls { display: flex; align-items: center; gap: .55rem; }
.project-stack-controls span { min-width: 52px; text-align: center; color: var(--muted); font: .66rem var(--mono); }
.project-stack-controls button {
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
    color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; transition: .2s;
}
.project-stack-controls button:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.project-stack {
    --card-width: min(100%, 980px);
    --drag: 0;
    position: relative; min-height: 560px; display: grid; place-items: center; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 18px;
    background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--lime) 8%, transparent), transparent 34%);
    perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none;
}
.project-stack.dragging { cursor: grabbing; }
.project-stack-card {
    position: absolute; width: var(--card-width); max-width: calc(100% - 3rem);
    transform:
        translateX(calc((var(--offset) * 150px) + (var(--drag) * -42px)))
        translateY(calc(var(--distance) * 18px))
        translateZ(calc(var(--distance) * -120px))
        scale(calc(1 - (var(--distance) * .075)))
        rotateY(calc(var(--offset) * -7deg));
    opacity: calc(1 - (var(--distance) * .16)); filter: saturate(calc(1 - (var(--distance) * .12)));
    pointer-events: none; transition: transform .42s cubic-bezier(.2,.78,.2,1), opacity .3s ease, filter .3s ease;
}
.project-stack-card.active { pointer-events: auto; }
.project-stack-card.is-left { transform-origin: right center; }
.project-stack-card.is-right { transform-origin: left center; }
.project-stack-card.is-hidden { opacity: 0; pointer-events: none; }
.project-stack-card.active .project-card { box-shadow: var(--shadow); }
.project-stack-card:not(.active) .project-card { box-shadow: 0 18px 60px rgba(0,0,0,.12); }
.project-stack-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1rem; }
.project-stack-dots button { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: .2s; }
.project-stack-dots button.active { width: 28px; border-radius: 999px; background: var(--ink); }
.project-card { display: grid; grid-template-columns: minmax(270px,.8fr) 1.2fr; min-height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: transform .35s, box-shadow .35s; transform-style: preserve-3d; }
.project-card:hover { box-shadow: var(--shadow); }
.project-visual { position: relative; overflow: hidden; min-height: 360px; display: grid; place-content: center; color: #111; isolation: isolate; }
.project-index { position: absolute; z-index: 4; top: 1rem; left: 1rem; font: .7rem var(--mono); }
.project-visual > strong { z-index: 3; font-size: clamp(3.5rem,7vw,7rem); line-height: .9; letter-spacing: -.08em; }
.project-visual > small { z-index: 3; margin-top: .7rem; text-align: center; font: .65rem var(--mono); letter-spacing: .12em; }
.visual-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(0,0,0,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.3) 1px,transparent 1px); background-size: 35px 35px; mask-image: radial-gradient(circle,#000,transparent 75%); }
.visual-orbit { position: absolute; width: 250px; height: 250px; border: 1px solid rgba(0,0,0,.35); border-radius: 50%; animation: orbit 12s linear infinite; }
.visual-orbit::after { content: ''; position: absolute; width: 12px; height: 12px; top: 20px; left: 33px; border-radius: 50%; background: #111; }
.orbit-two { width: 360px; height: 360px; animation-direction: reverse; animation-duration: 18s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.visual-wind { background: var(--lime); }
.visual-supply { background: #ffbc3f; }
.visual-defi { background: #8c80ff; }
.visual-attrition { background: #ff876d; }
.visual-vehicle { background: #72e2c8; }
.visual-luxury { background: #d8c468; }
.visual-fintech { background: #3ecf8e; }
.visual-aviation { background: #6cc6e8; }
.visual-motorsport { background: #e5484d; }
/* Remove the programmatic focus ring FocusOnNavigate puts on the hero heading on load (keeps keyboard focus rings) */
:focus:not(:focus-visible) { outline: none; }
h1:focus { outline: none; }
/* When a case study is open, drop the fixed deck height and pull the active card into
   normal flow so the deck grows to fit the expanded content exactly — on any screen size. */
.project-stack:has(.case-study[open]) { min-height: 0; align-items: start; }
.project-stack-card.active:has(.case-study[open]) { position: relative; }
.credentials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: 3rem; perspective: 900px; }
.holo-cred { position: relative; width: 330px; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .18s ease, border-color .3s; will-change: transform; }
.holo-cred:hover { border-color: var(--lime); }
.holo-foil { position: absolute; inset: 0; pointer-events: none; opacity: .42; mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 20%, rgba(255,0,128,.32), rgba(0,225,255,.32), rgba(185,255,69,.38), rgba(255,0,200,.28), transparent 80%); background-size: 220% 220%; background-position: var(--mx,50%) var(--my,50%); transition: background-position .1s; }
:root:not([data-theme="dark"]) .holo-foil { mix-blend-mode: soft-light; opacity: .55; }
.holo-cred-in { position: relative; padding: 1.35rem 1.55rem; }
.holo-cred-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .95rem; }
.holo-mono { font: 800 1rem var(--mono); letter-spacing: -.02em; color: var(--green); }
.holo-verified { padding: .22rem .55rem; border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); border-radius: 99px; color: var(--green); font: .56rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.holo-cred-in strong { display: block; color: var(--ink); font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.holo-cred-in small { color: var(--muted); font: .62rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 560px) { .holo-cred { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .holo-cred { transition: none; transform: none; } }
.project-content { display: flex; flex-direction: column; padding: clamp(1.5rem,4vw,3.2rem); }
.project-kicker { color: var(--muted); font: .66rem var(--mono); text-transform: uppercase; }
.project-content h3 { margin: .7rem 0 1rem; font-size: clamp(2rem,3.4vw,3.6rem); font-weight: 500; line-height: 1; }
.project-content > p { max-width: 720px; color: var(--ink-2); font-size: 1rem; }
.project-foot { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0; }
.project-tag { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); font: .62rem var(--mono); }
.case-study { margin-top: auto; border-top: 1px solid var(--line); }
.case-study summary { display: flex; justify-content: space-between; padding: 1rem 0; cursor: pointer; list-style: none; font: .68rem var(--mono); text-transform: uppercase; }
.case-study summary::-webkit-details-marker { display: none; }
.case-study[open] summary span { transform: rotate(45deg); }
.case-study summary span { transition: transform .2s; }
.case-study-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding: 1rem 0 1.4rem; }
.case-study-grid small { color: var(--muted); font: .6rem var(--mono); text-transform: uppercase; }
.case-study-grid p { margin-top: .35rem; color: var(--ink-2); font-size: .78rem; line-height: 1.6; }
.project-links { display: flex; gap: 1.4rem; padding-top: 1rem; }
.text-link { font: .67rem var(--mono); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

.lab-section { overflow: hidden; background: #101410; color: #edf2eb; }
.lab-section .section-number, .lab-section .section-label { color: #758078; }
.lab-section h2 em { color: var(--lime); }
.role-scanner { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 78% 8%, rgba(185,255,69,.13), transparent 32%), #151a16; box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.scanner-sidebar { padding: clamp(1.5rem,4vw,3rem); border-right: 1px solid rgba(255,255,255,.12); }
.scanner-sidebar > p { margin: -1.1rem 0 2rem; color: #aab4ab; font-size: .9rem; line-height: 1.75; }
.role-options { display: grid; gap: .7rem; }
.role-options button { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; align-items: center; padding: .95rem; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.025); color: #edf2eb; text-align: left; cursor: pointer; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.role-options button:hover, .role-options button.active { transform: translateX(6px); border-color: rgba(185,255,69,.65); background: rgba(185,255,69,.09); }
.role-options button > span { grid-row: span 2; display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 11px; background: rgba(185,255,69,.12); color: var(--lime); font: .7rem var(--mono); }
.role-options b { font-size: .86rem; }
.role-options small { color: #879188; font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.scanner-output { padding: clamp(1.5rem,4vw,3rem); }
.fit-topline { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: clamp(1.4rem,4vw,3rem); }
.fit-orbit { --size: 205px; width: var(--size); aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--value)*1%), rgba(255,255,255,.08) 0); }
.fit-orbit::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #151a16; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.fit-orbit::after { content: ''; position: absolute; inset: -13px; border: 1px dashed rgba(185,255,69,.28); border-radius: 50%; animation: rotateSlow 18s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.fit-orbit div { position: relative; text-align: center; }
.fit-orbit strong { display: block; font-size: 3.2rem; letter-spacing: -.07em; }
.fit-orbit span, .fit-summary > span { color: #758078; font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.fit-summary h3 { max-width: 520px; margin: .7rem 0 1rem; font-size: clamp(2rem,4vw,4.1rem); line-height: .95; letter-spacing: -.06em; }
.fit-summary p { color: #aab4ab; line-height: 1.75; }
.fit-evidence { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-top: 2rem; }
.fit-evidence article { min-height: 145px; padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(0,0,0,.18); }
.fit-evidence span { color: var(--lime); font: .62rem var(--mono); }
.fit-evidence p { margin-top: 1rem; color: #dfe6dc; font-size: .82rem; line-height: 1.6; }
.fit-stack { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fit-stack span { padding: .45rem .65rem; border-radius: 999px; background: rgba(185,255,69,.1); color: #e7ffd0; font: .62rem var(--mono); }
.fit-link { display: inline-flex; margin-top: 1.6rem; color: var(--lime); font: .72rem var(--mono); text-transform: uppercase; text-underline-offset: 5px; }
:root:not([data-theme="dark"]) .lab-section { background: #f2f0e9; color: #121512; }
:root:not([data-theme="dark"]) .lab-section .section-number,
:root:not([data-theme="dark"]) .lab-section .section-label { color: #6d756d; }
:root:not([data-theme="dark"]) .lab-section h2 em { color: var(--green); }
:root:not([data-theme="dark"]) .role-scanner { border-color: rgba(18,21,18,.12); background: radial-gradient(circle at 78% 8%, rgba(38,95,64,.12), transparent 32%), #fbfaf6; box-shadow: 0 30px 90px rgba(24,31,23,.12); }
:root:not([data-theme="dark"]) .scanner-sidebar { border-right-color: rgba(18,21,18,.12); border-bottom-color: rgba(18,21,18,.12); }
:root:not([data-theme="dark"]) .scanner-sidebar > p,
:root:not([data-theme="dark"]) .fit-summary p { color: #515851; }
:root:not([data-theme="dark"]) .control-heading,
:root:not([data-theme="dark"]) .fit-orbit span,
:root:not([data-theme="dark"]) .fit-summary > span { color: #6d756d; }
:root:not([data-theme="dark"]) .control-heading i,
:root:not([data-theme="dark"]) .fit-link,
:root:not([data-theme="dark"]) .fit-evidence span { color: var(--green); }
:root:not([data-theme="dark"]) .role-options button { border-color: rgba(18,21,18,.12); background: rgba(18,21,18,.025); color: #121512; }
:root:not([data-theme="dark"]) .role-options button:hover,
:root:not([data-theme="dark"]) .role-options button.active { border-color: rgba(38,95,64,.45); background: rgba(38,95,64,.08); }
:root:not([data-theme="dark"]) .role-options button > span { background: rgba(38,95,64,.1); color: var(--green); }
:root:not([data-theme="dark"]) .role-options small { color: #6d756d; }
:root:not([data-theme="dark"]) .fit-orbit { background: conic-gradient(var(--green) calc(var(--value)*1%), rgba(18,21,18,.09) 0); }
:root:not([data-theme="dark"]) .fit-orbit::before { background: #fbfaf6; box-shadow: inset 0 0 0 1px rgba(18,21,18,.08); }
:root:not([data-theme="dark"]) .fit-orbit::after { border-color: rgba(38,95,64,.25); }
:root:not([data-theme="dark"]) .fit-evidence article { border-color: rgba(18,21,18,.1); background: rgba(255,255,255,.72); }
:root:not([data-theme="dark"]) .fit-evidence p { color: #252b25; }
:root:not([data-theme="dark"]) .fit-stack span { background: rgba(38,95,64,.09); color: #18452d; }
.lab-console { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: #151a16; box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.lab-controls { padding: clamp(1.5rem,4vw,3rem); border-right: 1px solid rgba(255,255,255,.12); }
.control-heading { display: flex; justify-content: space-between; margin-bottom: 2.5rem; color: #89938a; font: .65rem var(--mono); }
.control-heading i { color: var(--lime); font-style: normal; }
.lab-controls label { display: block; margin-bottom: 2rem; }
.lab-controls label > span { display: flex; justify-content: space-between; margin-bottom: .7rem; font: .7rem var(--mono); }
.lab-controls label b { font-weight: 400; color: #adb7ae; }
.lab-controls output { color: var(--lime); }
input[type=range] { width: 100%; accent-color: var(--lime); }
.model-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.model-selector button { padding: .7rem .35rem; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background: transparent; color: #89938a; cursor: pointer; font: .62rem var(--mono); }
.model-selector button.active { background: var(--lime); color: #111; border-color: var(--lime); }
.lab-output { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: clamp(1.5rem,4vw,4rem); padding: clamp(1.5rem,4vw,3rem); }
.metric-ring { --size: 220px; width: var(--size); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--value)*1%),rgba(255,255,255,.08) 0); position: relative; }
.metric-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #151a16; }
.metric-ring div { position: relative; text-align: center; }
.metric-ring strong { display: block; font-size: 3.3rem; letter-spacing: -.07em; }
.metric-ring span { color: #758078; font: .6rem var(--mono); }
.metric-stack > div { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-bottom: 1.2rem; color: #89938a; font: .62rem var(--mono); }
.metric-stack strong { color: #edf2eb; }
.metric-stack i { grid-column: 1 / -1; height: 3px; background: rgba(255,255,255,.08); position: relative; }
.metric-stack i::after { content: ''; position: absolute; inset: 0; width: var(--bar); background: var(--lime); transition: width .3s; }
.metric-stack i.risk::after { background: var(--orange); }
.lab-insight { grid-column: 1 / -1; padding: 1rem; border-left: 2px solid var(--lime); background: rgba(185,255,69,.05); color: #adb7ae; font: .7rem/1.7 var(--mono); }

.experience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,6vw,7rem); }
.experience-card { padding: 2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.experience-date { color: var(--muted); font: .68rem var(--mono); }
.experience-card h3 { margin: 1.4rem 0 .2rem; font-size: clamp(2rem,3.4vw,3.2rem); }
.experience-card > a { color: var(--green); font: .7rem var(--mono); }
.experience-card > p { margin: 1.5rem 0; color: var(--ink-2); }
.impact-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.impact-row span { padding: .35rem .55rem; background: var(--surface); font: .62rem var(--mono); }
.tool-cloud { display: grid; gap: 1.3rem; }
.tool-group { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.tool-group > span { color: var(--muted); font: .62rem var(--mono); }
.tool-group > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-group b { font-size: clamp(.9rem,1.4vw,1.15rem); font-weight: 500; }
.tool-group b:not(:last-child)::after { content: '·'; margin-left: .5rem; color: var(--lime); }

.education-section { background: var(--surface-2); }
.education-timeline article { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.education-timeline time, .education-timeline article > span { color: var(--muted); font: .68rem var(--mono); }
.education-timeline h3 { font-size: clamp(1.3rem,2.3vw,2rem); font-weight: 500; }
.education-timeline p { color: var(--ink-2); font-size: .9rem; }
.credential-marquee { overflow: hidden; margin: 5rem calc(clamp(1.4rem,5vw,5rem) * -1) -9rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credential-marquee > div { width: max-content; display: flex; animation: marquee 24s linear infinite; }
.credential-marquee span { margin-right: 3rem; font-size: 1rem; white-space: nowrap; }
.credential-marquee i { color: var(--lime); font-style: normal; margin-right: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.contact-section { overflow: hidden; min-height: 85vh; display: grid; place-items: center; padding: 8rem 1.4rem; background: #b9ff45; color: #101410; text-align: center; }
.contact-orb { position: absolute; width: min(70vw,900px); aspect-ratio: 1; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; }
.contact-orb::before, .contact-orb::after { content: ''; position: absolute; inset: 12%; border: inherit; border-radius: inherit; }
.contact-orb::after { inset: 25%; }
.contact-inner { position: relative; max-width: 1050px; }
.contact-section .section-label { color: rgba(0,0,0,.58); }
.contact-section h2 { margin: 1rem 0 1.5rem; font-size: clamp(3.3rem,8vw,8.5rem); }
.contact-section h2 em { color: #101410; }
.contact-section p { max-width: 620px; margin: auto; font-size: 1.05rem; }
.contact-role-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0 0; }
.contact-role-list span { padding: .4rem .65rem; border: 1px solid rgba(0,0,0,.23); border-radius: 3px; font: .62rem var(--mono); text-transform: uppercase; }
.contact-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 2.5rem 0; }
.contact-email { display: flex; gap: 2rem; padding: 1.1rem 1.4rem; border-radius: 4px; background: #101410; color: #edf2eb; text-decoration: none; font: .75rem var(--mono); }
.copy-button { padding: 1rem; border: 1px solid rgba(0,0,0,.25); background: transparent; cursor: pointer; font: .68rem var(--mono); }
.social-row { display: flex; justify-content: center; gap: 1.5rem; }
.social-row a, .social-row button { border: 0; background: transparent; cursor: pointer; color: #101410; font: .68rem var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.resume-box { margin-top: 1.9rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.resume-toggle { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem; padding: 1rem 1.5rem; border: 0; border-radius: 4px; background: #101410; color: #edf2eb; cursor: pointer; font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; text-align: center; transition: transform .2s, box-shadow .2s; }
.resume-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,20,16,.3); }
.resume-toggle:focus-visible { outline: 2px solid #101410; outline-offset: 3px; }
.resume-caret { display: inline-block; transition: transform .25s; }
.resume-box.open .resume-caret { transform: rotate(180deg); }
.resume-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; animation: resumeFade .28s ease; }
.resume-options a { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 200px; padding: .95rem 1.25rem; border: 1px solid rgba(16,20,16,.3); border-radius: 6px; background: rgba(16,20,16,.05); color: #101410; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.resume-options a:hover { background: #101410; color: #edf2eb; transform: translateY(-2px); }
.resume-lang { font: 600 .98rem var(--sans); letter-spacing: -.01em; }
.resume-meta { font: .62rem var(--mono); opacity: .72; text-transform: uppercase; letter-spacing: .05em; }
@keyframes resumeFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.4rem,5vw,5rem); background: #101410; color: #89938a; font: .6rem var(--mono); text-transform: uppercase; }
footer a { color: #edf2eb; }

.modal-backdrop { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(3,5,4,.72); backdrop-filter: blur(12px); }
.modal-actions { display: flex; justify-content: center; gap: .7rem; }
.modal-close { position: absolute; top: .8rem; right: .9rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.5rem; }
.command-palette { position: relative; width: min(100%,620px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow); }
.command-close { top: .9rem; right: 1rem; z-index: 2; }
.command-search { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.command-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.1rem; }
.command-results { padding: .6rem; }
.command-results a { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; padding: .8rem; border-radius: 7px; text-decoration: none; }
.command-results a:hover { background: var(--surface); }
.command-results strong, .command-results small { display: block; }
.command-results strong { font-size: .88rem; }
.command-results small { color: var(--muted); font-size: .7rem; }
.command-results kbd { color: var(--muted); font: .7rem var(--mono); }
.command-footer { display: block; padding: .7rem 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font: .6rem var(--mono); }

.blog-page { min-height: 100svh; padding: 2rem clamp(1.2rem,5vw,5rem) 5rem; background: var(--bg); color: var(--ink); }
.blog-nav { position: static; width: min(100%, 1180px); margin: 0 auto 5rem; padding: .65rem .7rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); box-shadow: none; }
.blog-nav > div { display: flex; align-items: center; gap: .45rem; }
.blog-nav a:not(.nav-logo) { padding: .55rem .85rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.blog-nav a:not(.nav-logo):hover { background: var(--surface); color: var(--ink); }
.blog-hero { width: min(100%, 1180px); margin: 0 auto 4rem; display: grid; grid-template-columns: 1fr 230px; gap: 2rem; align-items: end; }
.blog-hero h1 { max-width: 950px; margin-top: 1rem; font-size: clamp(3rem,7vw,7rem); line-height: .9; letter-spacing: -.075em; }
.blog-hero p { max-width: 720px; margin-top: 1.6rem; color: var(--ink-2); font-size: clamp(1rem,1.5vw,1.2rem); line-height: 1.75; }
.blog-hero aside { min-height: 180px; display: grid; align-content: end; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.blog-hero aside strong { font-size: 4rem; line-height: .9; letter-spacing: -.08em; }
.blog-hero aside span { color: var(--muted); font: .68rem var(--mono); text-transform: uppercase; }
.blog-grid { width: min(100%, 1180px); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.blog-card { min-height: 330px; display: flex; flex-direction: column; padding: clamp(1.3rem,3vw,2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); box-shadow: var(--shadow); }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font: .65rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.blog-card h2 { margin: 2rem 0 1rem; font-size: clamp(1.9rem,3.5vw,3.4rem); line-height: .95; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card p { color: var(--ink-2); line-height: 1.75; }
.blog-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 2rem; }
.blog-tags span { padding: .42rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: .61rem var(--mono); }
.blog-empty { width: min(100%, 900px); margin: 0 auto; padding: 3rem; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-2); }
.blog-empty h1, .blog-empty h2 { font-size: clamp(2.5rem,5vw,5rem); }
.blog-empty p { margin: 1rem 0 2rem; color: var(--ink-2); }
.blog-article { width: min(100%, 880px); margin: 0 auto; padding: clamp(1.5rem,5vw,4rem); border: 1px solid var(--line); border-radius: 26px; background: var(--surface-2); }
.blog-article header { margin-top: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.blog-article h1 { margin: 1rem 0 1.2rem; font-size: clamp(3rem,7vw,6.8rem); line-height: .9; letter-spacing: -.075em; }
.blog-article header p { color: var(--ink-2); font-size: 1.15rem; line-height: 1.75; }
.blog-content { padding-top: 2.5rem; color: var(--ink-2); font-size: 1.05rem; line-height: 1.85; }
.blog-content h2 { margin: 2.4rem 0 1rem; color: var(--ink); font-size: clamp(2rem,4vw,3.4rem); }
.blog-content p, .blog-content ul, .blog-content ol { margin-bottom: 1.2rem; }
.blog-content a { color: var(--green); }
.blog-content code { padding: .12rem .35rem; border-radius: 5px; background: var(--surface); color: var(--ink); }
.blog-content ul, .blog-content ol { padding-left: 1.4rem; }
.skeleton { min-height: 320px; overflow: hidden; position: relative; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 8%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: 1rem 1.4rem;
    background: #14161c;
    color: #e8eaee;
    border-top: 1px solid color-mix(in srgb, #6cddb6 40%, transparent);
    box-shadow: 0 -10px 30px rgba(0,0,0,.45);
    font-size: .92rem;
    line-height: 1.5;
}
#blazor-error-ui strong { color: #fff; }
#blazor-error-ui a { color: #6cddb6; text-decoration: none; }
#blazor-error-ui a:hover { text-decoration: underline; }
#blazor-error-ui .reload { display: inline-block; margin-left: .35rem; font-weight: 600; }

@media (max-width: 1050px) {
    #hero { grid-template-columns: 1fr; padding-top: 9rem; }
    .hero-stage { width: min(100%,680px); margin: 1rem auto 3rem; }
    .hero-copy { text-align: center; }
    .eyebrow, .hero-cta, .hero-meta { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .scroll-cue { display: none; }
    .about-layout, .experience-grid { grid-template-columns: 1fr; }
    .proof-console { grid-template-columns: 300px 1fr; }
    .project-stack { --card-width: min(100%, 860px); min-height: 620px; }
    .project-card { grid-template-columns: .75fr 1.25fr; }
}

@media (max-width: 820px) {
    .cursor-glow { display: none; }
    nav { top: 8px; width: calc(100% - 16px); }
    .command-trigger { display: none; }
    .mobile-menu-button { display: grid; }
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .8rem 1rem; }
    .section-shell { padding-top: 7rem; padding-bottom: 7rem; }
    .section-intro { align-items: start; flex-direction: column; margin-bottom: 3rem; }
    .proof-lede { max-width: 100%; }
    .proof-console { grid-template-columns: 1fr; min-height: 0; }
    .proof-rail { grid-template-columns: repeat(2, minmax(0,1fr)); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .proof-rail button { transform: none !important; }
    .proof-board-top strong { font-size: clamp(2rem,9vw,3.8rem); }
    .proof-grid { grid-template-columns: 1fr; }
    .project-stack-topline { align-items: flex-start; }
    .project-stack { --card-width: min(100%, 680px); min-height: 760px; margin-inline: calc(clamp(1.4rem,5vw,5rem) * -1); border-radius: 0; border-inline: 0; }
    .project-stack-card { max-width: calc(100% - 2rem); transform:
        translateX(calc((var(--offset) * 72px) + (var(--drag) * -32px)))
        translateY(calc(var(--distance) * 16px))
        translateZ(calc(var(--distance) * -90px))
        scale(calc(1 - (var(--distance) * .06)))
        rotateY(calc(var(--offset) * -5deg)); }
    .project-card { grid-template-columns: 1fr; }
    .project-visual { min-height: 300px; }
    .case-study-grid { grid-template-columns: 1fr; }
    .role-scanner { grid-template-columns: 1fr; }
    .scanner-sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .fit-topline { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .fit-evidence { grid-template-columns: 1fr; }
    .lab-console { grid-template-columns: 1fr; }
    .lab-controls { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .lab-output { grid-template-columns: 1fr; justify-items: center; }
    .metric-stack { width: 100%; }
    .lab-insight { grid-column: auto; }
    .credential-marquee { margin-bottom: -7rem; }
    .blog-hero, .blog-grid { grid-template-columns: 1fr; }
    .blog-hero aside { min-height: auto; }
}

@media (max-width: 560px) {
    .icon-button { min-width: 38px; height: 38px; }
    #hero { padding-top: 7.5rem; }
    h1 { font-size: clamp(3rem,16vw,4.8rem); }
    .stage-grid { grid-template-columns: 1fr; }
    .portrait-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .portrait-frame { max-height: 320px; }
    .floating-chip { display: none; }
    .hero-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
    .hero-meta span { font-size: .55rem; }
    .hero-nudge { font-size: .58rem; }
    .proof-rail { grid-template-columns: 1fr; }
    .proof-grid article { min-height: auto; }
    .proof-actions { flex-direction: column; align-items: stretch; }
    .proof-primary, .proof-secondary { width: 100%; text-align: center; }
    .project-stack-topline { flex-direction: column; }
    .project-stack-topline strong { max-width: 100%; white-space: normal; }
    .project-stack-actions { width: 100%; justify-content: space-between; }
    .project-stack-controls { width: 100%; justify-content: space-between; }
    .project-stack { min-height: 820px; }
    .project-stack-card { max-width: calc(100% - 1rem); transform:
        translateX(calc((var(--offset) * 38px) + (var(--drag) * -24px)))
        translateY(calc(var(--distance) * 14px))
        translateZ(calc(var(--distance) * -70px))
        scale(calc(1 - (var(--distance) * .055)))
        rotateY(calc(var(--offset) * -4deg)); }
    .education-timeline article { grid-template-columns: 1fr auto; }
    .education-timeline time { grid-column: 1 / -1; }
    .tool-group { grid-template-columns: 1fr; }
    .model-selector { grid-template-columns: 1fr; }
    .metric-ring { --size: 190px; }
    .fit-orbit { --size: 185px; }
    .role-options button { transform: none !important; }
    .contact-actions { flex-direction: column; }
    .contact-email { width: 100%; gap: .5rem; font-size: .65rem; }
    .copy-button { width: 100%; }
    .resume-box { width: 100%; }
    .resume-toggle { width: 100%; justify-content: center; }
    .resume-options { width: 100%; }
    .resume-options a { width: 100%; min-width: 0; align-items: center; text-align: center; }
    .blog-page { padding-inline: 1rem; }
    .blog-nav { align-items: flex-start; border-radius: 22px; flex-direction: column; gap: .7rem; }
    .blog-nav > div { width: 100%; justify-content: space-between; }
    .blog-nav a:not(.nav-logo) { padding-inline: .45rem; font-size: .58rem; }
    .blog-article, .blog-empty { padding: 1.2rem; border-radius: 18px; }
    footer { flex-direction: column; text-align: center; }
}

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