:root {
    --bg: #060A13;
    --panel: #0C1322;
    --panel-2: #101A2D;
    --line: rgba(196, 210, 240, 0.09);
    --line-2: rgba(196, 210, 240, 0.18);
    --text: #ECEEF4;
    --muted: #95A1B9;
    --dim: #5E6B84;
    --gold: #E9B85C;
    --gold-2: #F6D58E;
    --sea: #5BE3CF;
    --accent: #E9B85C;
    --accent-ink: #1A1206;
    --t-key: #5BE3CF;
    --t-str: #F6D58E;
    --t-fn: #E9B85C;
    --t-kw: #FF8FB1;

    --display: 'Fraunces', Georgia, serif;
    --font: 'Geist', 'Inter', system-ui, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --max: 1280px;
    --bar: 62px;
    --r: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar) + 16px);
    background: var(--bg);
    color-scheme: dark;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.pre-enter body {
    overflow: hidden;
}

::selection {
    background: var(--gold);
    color: var(--accent-ink);
}

a {
    color: inherit;
}

button,
select,
input {
    font: inherit;
    color: inherit;
}

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

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

.dim {
    color: var(--dim);
}

.gold {
    color: var(--gold);
}

kbd {
    font-family: var(--mono);
    font-size: 0.7rem;
    border: 1px solid var(--line-2);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0 0.3rem;
    color: var(--muted);
}

.skip {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 300;
    background: var(--gold);
    color: var(--accent-ink);
    padding: 0.6rem 1rem;
    border-radius: 6px;
}

.skip:focus {
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.live {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sea);
    box-shadow: 0 0 0 0 rgba(91, 227, 207, 0.6);
    animation: ping 2s infinite;
}

@keyframes ping {
    70% {
        box-shadow: 0 0 0 7px rgba(91, 227, 207, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(91, 227, 207, 0);
    }
}

/* =========================================================
   INTRO (full-screen 3D)
   ========================================================= */
.intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: radial-gradient(120% 70% at 50% 62%, #12213F 0%, #071022 45%, #03050B 100%);
    transition: opacity 0.9s ease;
}

.intro canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.intro-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 12%, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 38% 30%, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 34%, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 8%, #cfd8ff 50%, transparent 51%);
    opacity: 0.6;
    transition: opacity 0.6s;
}

.intro.ready .intro-sky {
    opacity: 0;
}

.intro-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem var(--gutter) clamp(1.5rem, 6vh, 4rem);
    pointer-events: none;
}

.intro-ui>* {
    pointer-events: auto;
}

.intro-top {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.intro-main {
    max-width: 560px;
}

.intro-eyebrow {
    color: var(--sea);
    font-size: 0.74rem;
    margin-bottom: 0.7rem;
}

.intro-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    margin-bottom: 0.7rem;
}

.intro-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 44ch;
}

.intro-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

.intro-actions .btn {
    font-size: 1.05rem;
    padding: 1rem 1.7rem;
}

.intro-skip {
    background: none;
    border: 0;
    color: var(--dim);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.72rem;
}

.intro-skip:hover {
    color: var(--text);
}

.intro-hint {
    color: var(--muted);
    font-size: 0.72rem;
    animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
    50% {
        transform: translateY(4px);
    }
}

.intro::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(3, 5, 11, 0.55) 0%, transparent 18%, transparent 62%, rgba(3, 5, 11, 0.85) 100%);
}

.intro-ui {
    z-index: 1;
}

.intro-loading {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(1.5rem, 6vh, 4rem);
    color: var(--dim);
    font-size: 0.74rem;
}

.intro-loading span {
    animation: caret 1s steps(2, jump-none) infinite;
}

.intro.ready .intro-loading {
    display: none;
}


.intro.leaving .intro-ui {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.6s, transform 0.6s;
}

/* After the voyage the intro cross-fades away and is removed from the page */
.intro.fading {
    opacity: 0;
    pointer-events: none;
}

.entered .intro:not(.fading) {
    display: none;
}

.intro.gone {
    display: none;
}

.pre-enter .topbar,
.pre-enter main,
.pre-enter .footer {
    visibility: hidden;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 120;
}

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--bar);
    z-index: 100;
    background: rgba(6, 10, 19, 0.72);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    max-width: calc(var(--max) + 4rem);
    height: 100%;
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    color: var(--gold);
    font-size: 0.8rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    margin-right: auto;
    font-variant-numeric: tabular-nums;
}

.nav {
    display: flex;
    gap: 0.2rem;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover {
    color: var(--text);
    background: var(--panel-2);
}

.nav a[aria-current="true"] {
    color: var(--gold);
}

.kbd-btn,
.cv-btn,
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--line-2);
    border-radius: 7px;
    padding: 0.38rem 0.6rem;
    background: var(--panel);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.kbd-btn:hover,
.menu-btn:hover {
    border-color: var(--gold);
}

.cv-btn {
    background: var(--gold);
    color: var(--accent-ink);
    border-color: var(--gold);
    font-weight: 500;
}

.cv-btn:hover {
    background: var(--gold-2);
}

.menu-btn {
    display: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.25s;
    will-change: transform;
}

.btn-gold {
    background: var(--gold);
    color: var(--accent-ink);
}

.btn-gold:hover {
    background: var(--gold-2);
    box-shadow: 0 0 0 5px rgba(233, 184, 92, 0.18), 0 10px 40px rgba(233, 184, 92, 0.25);
}

.btn-ghost {
    background: rgba(12, 19, 34, 0.7);
    border-color: var(--line-2);
}

.btn-ghost:hover {
    border-color: var(--gold);
}

/* =========================================================
   HERO
   ========================================================= */
main,
.footer {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--bar) + 3rem) 0 4.5rem;
}

/* Static night sea behind the hero: pure CSS, one composited layer, no WebGL after the intro */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 15%, rgba(255, 240, 210, 0.95) 0 30px, rgba(233, 184, 92, 0.22) 34px, rgba(233, 184, 92, 0.06) 80px, transparent 160px),
        radial-gradient(90% 26% at 50% 58%, rgba(36, 70, 128, 0.5), transparent 70%),
        linear-gradient(to bottom, #03060D 0%, #071022 40%, #10223F 57%, #081226 64%, #060A13 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0 0 44% 0;
    opacity: 0.55;
    background-image:
        radial-gradient(1px 1px at 60px 151px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 139px 33px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 94px 154px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 121px 160px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 148px 16px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 155px 3px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 232px 120px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 66px 141px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 59px 49px, #cfd8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 183px 120px, #cfd8ff 50%, transparent 51%);
    background-size: 240px 170px;
}

.hero-sea {
    position: absolute;
    left: -60%;
    right: -60%;
    top: 57%;
    bottom: 0;
    perspective: 320px;
    perspective-origin: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%);
}

.hero-sea::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1600px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='264' height='132'%3E%3Cg fill='rgb(91,227,207)' font-family='ui-monospace,Menlo,Consolas,monospace' font-size='15'%3E%3Ctext x='14' y='20' fill-opacity='0.35'%3E3%3C/text%3E%3Ctext x='74' y='26' fill-opacity='0.35'%3E%26lt%3B%3C/text%3E%3Ctext x='108' y='21' fill-opacity='0.8'%3E%5B%3C/text%3E%3Ctext x='138' y='21' fill-opacity='0.35'%3E)%3C/text%3E%3Ctext x='206' y='27' fill-opacity='0.35'%3E%26gt%3B%3C/text%3E%3Ctext x='242' y='27' fill-opacity='0.5' fill='rgb(233,184,92)'%3E3%3C/text%3E%3Ctext x='5' y='59' fill-opacity='0.5'%3E=%3C/text%3E%3Ctext x='65' y='52' fill-opacity='0.5'%3Ee%3C/text%3E%3Ctext x='95' y='60' fill-opacity='0.65'%3Ee%3C/text%3E%3Ctext x='139' y='59' fill-opacity='0.5'%3E(%3C/text%3E%3Ctext x='195' y='61' fill-opacity='0.65'%3Ec%3C/text%3E%3Ctext x='238' y='60' fill-opacity='0.5'%3E7%3C/text%3E%3Ctext x='29' y='86' fill-opacity='0.65'%3E%26amp%3B%3C/text%3E%3Ctext x='64' y='91' fill-opacity='0.65'%3E%25%3C/text%3E%3Ctext x='111' y='85' fill-opacity='0.5'%3E%26gt%3B%3C/text%3E%3Ctext x='160' y='89' fill-opacity='0.8'%3E%3B%3C/text%3E%3Ctext x='181' y='94' fill-opacity='0.65'%3E(%3C/text%3E%3Ctext x='234' y='89' fill-opacity='0.8'%3Ex%3C/text%3E%3Ctext x='6' y='118' fill-opacity='0.35'%3E%21%3C/text%3E%3Ctext x='49' y='121' fill-opacity='0.8'%3Ee%3C/text%3E%3Ctext x='101' y='123' fill-opacity='0.8' fill='rgb(233,184,92)'%3E0%3C/text%3E%3Ctext x='147' y='119' fill-opacity='0.35'%3Ey%3C/text%3E%3Ctext x='186' y='121' fill-opacity='0.8'%3E=%3C/text%3E%3Ctext x='236' y='124' fill-opacity='0.8'%3E)%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 264px 132px;
    transform-origin: 50% 100%;
    transform: rotateX(90deg);
    animation: tide 7s linear infinite;
}

@keyframes tide {
    to {
        transform: rotateX(90deg) translateY(132px);
    }
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem 4rem;
    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.hero-name {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    margin-bottom: 1.3rem;
    text-shadow: 0 4px 40px rgba(6, 10, 19, 0.9);
    outline: none;
}

.hero-name em,
.contact-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.role {
    font-size: 1rem;
    color: var(--text);
    display: flex;
    gap: 0.5ch;
    margin-bottom: 1.1rem;
}

.roller {
    display: inline-block;
    overflow: hidden;
    height: 1.5em;
    line-height: 1.5em;
    color: var(--sea);
}

.roller-text {
    display: inline-block;
}

.lede {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 2rem;
    text-shadow: 0 1px 16px rgba(6, 10, 19, 0.95);
}

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

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    color: var(--dim);
    text-decoration: none;
    font-size: 0.72rem;
}

.scroll-cue:hover {
    color: var(--gold);
}

.js:not(.no-anim) [data-reveal],
.js:not(.no-anim) [data-hero] {
    opacity: 0;
}

/* ---------- ZK identity card ---------- */
.id-wrap {
    perspective: 1200px;
    justify-self: center;
    width: 100%;
    max-width: 450px;
}

.id-card {
    --rx: 0deg;
    --ry: 0deg;
    --px: 50%;
    --py: 50%;
    position: relative;
    isolation: isolate;
    aspect-ratio: 1.586;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.2rem 0;
    border-radius: 16px;
    overflow: hidden;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 278' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='rgb(233,184,92)' stroke-opacity='.08' stroke-width='.7'%3E%3Cpath d='M-160 139Q-120 125 -80 139T0 139T80 139T160 139T240 139T320 139T400 139T480 139T560 139T640 139'/%3E%3Cpath d='M-147 139Q-107 118 -67 139T13 139T93 139T173 139T253 139T333 139T413 139T493 139T573 139T653 139'/%3E%3Cpath d='M-134 139Q-94 111 -54 139T26 139T106 139T186 139T266 139T346 139T426 139T506 139T586 139T666 139'/%3E%3Cpath d='M-121 139Q-81 104 -41 139T39 139T119 139T199 139T279 139T359 139T439 139T519 139T599 139T679 139'/%3E%3Cpath d='M-108 139Q-68 97 -28 139T52 139T132 139T212 139T292 139T372 139T452 139T532 139T612 139T692 139'/%3E%3Cpath d='M-95 139Q-55 90 -15 139T65 139T145 139T225 139T305 139T385 139T465 139T545 139T625 139'/%3E%3Cpath d='M-82 139Q-42 83 -2 139T78 139T158 139T238 139T318 139T398 139T478 139T558 139T638 139'/%3E%3Cpath d='M-69 139Q-29 76 11 139T91 139T171 139T251 139T331 139T411 139T491 139T571 139T651 139'/%3E%3Cpath d='M-56 139Q-16 69 24 139T104 139T184 139T264 139T344 139T424 139T504 139T584 139T664 139'/%3E%3Cpath d='M-43 139Q-3 62 37 139T117 139T197 139T277 139T357 139T437 139T517 139T597 139T677 139'/%3E%3Cpath d='M-30 139Q10 55 50 139T130 139T210 139T290 139T370 139T450 139T530 139T610 139T690 139'/%3E%3Cpath d='M-80 139Q-40 153 0 139T80 139T160 139T240 139T320 139T400 139T480 139T560 139T640 139'/%3E%3Cpath d='M-93 139Q-53 160 -13 139T67 139T147 139T227 139T307 139T387 139T467 139T547 139T627 139'/%3E%3Cpath d='M-106 139Q-66 167 -26 139T54 139T134 139T214 139T294 139T374 139T454 139T534 139T614 139T694 139'/%3E%3Cpath d='M-119 139Q-79 174 -39 139T41 139T121 139T201 139T281 139T361 139T441 139T521 139T601 139T681 139'/%3E%3Cpath d='M-132 139Q-92 181 -52 139T28 139T108 139T188 139T268 139T348 139T428 139T508 139T588 139T668 139'/%3E%3Cpath d='M-145 139Q-105 188 -65 139T15 139T95 139T175 139T255 139T335 139T415 139T495 139T575 139T655 139'/%3E%3Cpath d='M-158 139Q-118 195 -78 139T2 139T82 139T162 139T242 139T322 139T402 139T482 139T562 139T642 139'/%3E%3Cpath d='M-171 139Q-131 202 -91 139T-11 139T69 139T149 139T229 139T309 139T389 139T469 139T549 139T629 139'/%3E%3Cpath d='M-184 139Q-144 209 -104 139T-24 139T56 139T136 139T216 139T296 139T376 139T456 139T536 139T616 139T696 139'/%3E%3Cpath d='M-197 139Q-157 216 -117 139T-37 139T43 139T123 139T203 139T283 139T363 139T443 139T523 139T603 139T683 139'/%3E%3Cpath d='M-210 139Q-170 223 -130 139T-50 139T30 139T110 139T190 139T270 139T350 139T430 139T510 139T590 139T670 139'/%3E%3Ccircle cx='360' cy='92' r='58' stroke-dasharray='1 3'/%3E%3Ccircle cx='360' cy='92' r='44'/%3E%3Ccircle cx='360' cy='92' r='30' stroke-dasharray='2 2'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
        radial-gradient(120% 90% at 0% 0%, rgba(233, 184, 92, 0.1), transparent 55%),
        linear-gradient(155deg, #13213D 0%, #0B1426 55%, #0E1830 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(233, 184, 92, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.25s ease-out, box-shadow 0.3s;
}

.id-card:hover {
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(233, 184, 92, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* a single specular sweep that follows the pointer; plain alpha so it renders the same in every browser */
.id-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.05) 44%, rgba(255, 240, 210, 0.12) 50%, rgba(255, 255, 255, 0.05) 56%, transparent 64%);
    background-size: 250% 100%;
    background-position: calc(100% - var(--px)) 0;
}

.id-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 3;
    background: var(--gold);
    box-shadow: 0 0 18px 4px rgba(233, 184, 92, 0.55);
    opacity: 0;
    pointer-events: none;
}

.id-top,
.id-body,
.id-foot {
    position: relative;
    z-index: 2;
}

.id-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.id-issuer {
    color: var(--gold);
    white-space: nowrap;
}

.id-issuer b {
    font-weight: 400;
    margin-right: 0.3em;
}

.id-ok {
    white-space: nowrap;
    color: var(--sea);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 227, 207, 0.35);
    background: rgba(91, 227, 207, 0.08);
}

.id-ok.pending {
    color: var(--muted);
    border-color: var(--line-2);
    background: transparent;
}

.id-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.id-photo {
    flex-shrink: 0;
    width: 78px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(233, 184, 92, 0.55), 0 0 0 4px rgba(6, 10, 19, 0.5);
}

.id-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: grayscale(0.25) contrast(1.05);
}

.id-main {
    flex: 1;
    min-width: 0;
}

.id-name {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.id-role {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.id-fields {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(233, 184, 92, 0.3);
}

.id-fields dt {
    font-size: 0.56rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.id-fields dd {
    font-size: 0.82rem;
    color: var(--text);
}

/* machine-readable zone + hologram seal, like the bottom strip of a passport page */
.id-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0 -1.2rem;
    padding: 0.5rem 1.2rem 0.6rem;
    background: rgba(6, 10, 19, 0.4);
    border-top: 1px solid rgba(233, 184, 92, 0.18);
}

.id-mrz {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.6rem;
    line-height: 1.5;
    letter-spacing: 0.16em;
    color: #8E9AB3;
}

.id-mrz span {
    white-space: nowrap;
    overflow: hidden;
}

.id-holo {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 14px rgba(157, 180, 255, 0.25);
}

.id-holo i {
    position: absolute;
    inset: -25%;
    background: conic-gradient(#5BE3CF, #9DB4FF, #FF8FB1, #F6D58E, #5BE3CF);
    opacity: 0.8;
    animation: holo 7s linear infinite;
}

.id-holo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(circle, rgba(6, 10, 19, 0.35) 0 1px, transparent 1px 4px);
}

.id-holo b {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: #0A1222;
}

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

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    position: relative;
    padding: clamp(5rem, 11vw, 8.5rem) 0;
    background: var(--bg);
}

.sec-head {
    margin-bottom: 2.5rem;
}

.sec-head .eyebrow {
    gap: 0.4rem 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.76rem;
}

.hash {
    color: var(--dim);
}

.sec-title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.sec-note {
    color: var(--muted);
    margin-top: 0.8rem;
}

/* panels + spotlight */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

.panel-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    background: var(--panel-2);
}

.glow {
    position: relative;
    --mx: -400px;
    --my: -400px;
}

.glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(233, 184, 92, 0.08), transparent 70%);
}

/* ---------- remote ---------- */
.remote-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.25rem;
    align-items: start;
}

.points {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.points li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    padding: 1.1rem 1.2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--muted);
}

.points li>* {
    position: relative;
    z-index: 1;
}

.points li>span {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
}

.points strong {
    color: var(--text);
    font-weight: 600;
}

.overlap-body {
    position: relative;
    z-index: 1;
    padding: 1.1rem 1.1rem 1.2rem;
}

.overlap-body label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
}

.overlap select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 7px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 1.2rem;
}

.bars {
    display: grid;
    grid-template-columns: repeat(48, 1fr);
    gap: 2px;
    height: 54px;
}

.bars i {
    display: block;
    border-radius: 2px;
    background: rgba(196, 210, 240, 0.06);
    transform-origin: bottom;
}

.bars i.me {
    background: rgba(91, 227, 207, 0.38);
}

.bars i.you {
    background: rgba(196, 210, 240, 0.22);
}

.bars i.both {
    background: var(--gold);
}

.bars-scale {
    display: flex;
    justify-content: space-between;
    color: var(--dim);
    font-size: 0.66rem;
    margin-top: 0.45rem;
}

.overlap-result {
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 1.2rem 0 1rem;
    min-height: 3.3em;
}

.overlap-result b {
    color: var(--gold);
    font-weight: 600;
}

.legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 0.4rem;
}

.k-me {
    background: rgba(91, 227, 207, 0.55);
}

.k-you {
    background: rgba(196, 210, 240, 0.35);
}

.k-both {
    background: var(--gold);
}

.fine {
    color: var(--dim);
    font-size: 0.66rem;
    margin-top: 0.8rem;
}

/* ---------- about ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem 4.5rem;
    align-items: start;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 1.25rem;
}

.about-text p:first-child {
    color: var(--text);
}

.note {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    border-radius: var(--r);
    padding: 1.3rem 1.4rem;
}

.note>* {
    position: relative;
    z-index: 1;
}

.note p:nth-child(2) {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.45;
    margin: 0.6rem 0 0.9rem;
}

/* ---------- ledger ---------- */
.ledger-head,
.row-btn {
    display: grid;
    grid-template-columns: 6.5rem 6.5rem minmax(0, 1fr) 9.5rem 1.6rem;
    gap: 1.1rem;
    align-items: center;
}

.ledger-head {
    padding: 0.6rem 1.1rem;
    color: var(--dim);
    font-size: 0.7rem;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.ledger .row+.row {
    border-top: 1px solid var(--line);
}

.row-h {
    font: inherit;
}

.row-btn {
    width: 100%;
    padding: 1.1rem;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: background 0.2s;
}

.row-btn:hover {
    background: rgba(196, 210, 240, 0.03);
}

.row-no {
    color: var(--dim);
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-method {
    justify-self: start;
    font-size: 0.72rem;
    color: var(--gold);
    border: 1px solid rgba(233, 184, 92, 0.28);
    background: rgba(233, 184, 92, 0.06);
    padding: 0.12rem 0.5rem;
    border-radius: 5px;
    white-space: nowrap;
}

.row-method.badge-web3 {
    color: var(--sea);
    border-color: rgba(91, 227, 207, 0.3);
    background: rgba(91, 227, 207, 0.06);
}

.row-title {
    font-weight: 500;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.2s;
}

.row-title small {
    display: block;
    font-family: var(--font);
    font-style: normal;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0;
    margin-top: 0.15rem;
}

.row-title.big {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.row-title.big small {
    margin-top: 0.45rem;
}

.row-meta {
    color: var(--muted);
    font-size: 0.74rem;
}

.row-btn:hover .row-title,
.row-btn[aria-expanded="true"] .row-title {
    color: var(--gold);
}

.plus {
    position: relative;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    justify-self: end;
}

.plus::before,
.plus::after {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    height: 1.5px;
    margin-top: -0.75px;
    background: var(--text);
    transition: transform 0.3s;
}

.plus::after {
    transform: rotate(90deg);
}

.row-btn[aria-expanded="true"] .plus {
    border-color: var(--gold);
}

.row-btn[aria-expanded="true"] .plus::after {
    transform: rotate(0);
}

.row-panel {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.row-panel>* {
    margin-left: calc(13rem + 2.2rem + 1.1rem);
    margin-right: 1.1rem;
    max-width: 70ch;
}

.row-panel>:last-child {
    margin-bottom: 1.4rem;
}

.row-panel ul:not(.tags) {
    padding-left: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.row-panel li {
    margin-bottom: 0.45rem;
}

.row-panel li::marker {
    color: var(--gold);
}

.row-panel>p:not(.links) {
    color: var(--muted);
    margin-bottom: 1rem;
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.tags li {
    font-size: 0.7rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    color: var(--sea);
    margin: 0;
}

.links {
    display: flex;
    gap: 1.2rem;
}

.links a,
.certs a,
.contact-links a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(233, 184, 92, 0.5);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.links a:hover,
.certs a:hover,
.contact-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.ports {
    display: grid;
    gap: 0.75rem;
}

.ports .row {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.25s;
}

.ports .row:hover {
    border-color: rgba(233, 184, 92, 0.35);
}

.ports .row-btn {
    padding-block: 1.4rem;
}

.ports .row-no {
    color: var(--gold);
    font-family: var(--display);
    font-style: italic;
    font-size: 1.1rem;
}

/* ---------- stack ---------- */
.stack-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.stack-row {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--line);
    transition: background 0.2s;
    outline: none;
}

.stack-row:first-of-type {
    border-top: 0;
}

.stack-row h3 {
    font-weight: 400;
    color: var(--muted);
    padding-top: 0.25rem;
    transition: color 0.2s;
}

.stack-row h3::before {
    content: '[';
    color: var(--dim);
}

.stack-row h3::after {
    content: ']';
    color: var(--dim);
}

.stack-row ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.stack-row li {
    font-size: 0.85rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    transition: border-color 0.2s, color 0.2s;
}

.stack-row:hover,
.stack-row:focus-visible {
    background: rgba(233, 184, 92, 0.05);
}

.stack-row:hover h3,
.stack-row:focus-visible h3 {
    color: var(--gold);
}

.stack-row:hover li,
.stack-row:focus-visible li {
    border-color: rgba(233, 184, 92, 0.45);
}

.stack-map {
    position: sticky;
    top: calc(var(--bar) + 1.25rem);
}

.map-box {
    position: relative;
    aspect-ratio: 1;
}

#constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* skill logos projected from the 3D graph */
.g-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    --n: 30px;
}

.g-node,
.g-hub,
.g-root {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.g-node {
    width: var(--n);
    height: var(--n);
    margin: calc(var(--n) / -2) 0 0 calc(var(--n) / -2);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #101A2D;
    border: 1px solid var(--line-2);
    border-color: color-mix(in srgb, var(--c) 38%, transparent);
    box-shadow: 0 0 0 3px rgba(6, 10, 19, 0.7);
    pointer-events: auto;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.g-node svg {
    width: 56%;
    height: 56%;
    display: block;
}

.g-node.on,
.g-node.hover {
    background: #13203A;
    border-color: var(--c);
    box-shadow: 0 0 0 3px rgba(6, 10, 19, 0.7), 0 0 18px color-mix(in srgb, var(--c) 40%, transparent);
}

.g-node::after {
    content: attr(data-name);
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--text);
    background: rgba(6, 10, 19, 0.9);
    border: 1px solid var(--line-2);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.g-node.hover::after,
.g-node.on::after {
    opacity: 1;
}

.g-node[data-side="t"]::after {
    top: auto;
    bottom: calc(100% + 5px);
}

.g-node[data-side="l"]::after,
.g-node[data-side="r"]::after {
    top: 50%;
    transform: translateY(-50%);
}

.g-node[data-side="l"]::after {
    left: auto;
    right: calc(100% + 6px);
}

.g-node[data-side="r"]::after {
    left: calc(100% + 6px);
}

.g-hub,
.g-root {
    transform-origin: 0 0;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    padding: 3px 7px;
    margin: 10px 0 0 10px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(6, 10, 19, 0.75);
    border: 1px solid var(--line);
    transition: color 0.2s, border-color 0.2s;
}

.g-hub.on {
    color: var(--gold);
    border-color: rgba(233, 184, 92, 0.55);
}

.g-root {
    color: var(--gold);
    margin: 14px 0 0 -40px;
    border-color: rgba(233, 184, 92, 0.35);
    z-index: 3000;
}

/* ---------- credentials ---------- */
.creds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.cred {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.2rem 1.3rem 1.3rem;
    color: var(--muted);
}

.cred>* {
    position: relative;
    z-index: 1;
}

.cred h3 {
    font-family: var(--display);
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0.2rem 0 0.3rem;
}

.cred-wide {
    grid-column: 1 / -1;
}

.seal {
    position: absolute !important;
    top: 1.1rem;
    right: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: var(--accent-ink);
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px rgba(233, 184, 92, 0.5);
}

.certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    margin-top: 0.6rem;
}

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 4rem;
    align-items: center;
}

.contact-title {
    font-family: var(--display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.1rem;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.contact-sub {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.6rem;
}

.code-body {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 1.1rem 1.2rem 1.3rem;
    font-size: 0.8rem;
    line-height: 1.75;
    white-space: pre;
    overflow-x: auto;
}

.k {
    color: var(--t-kw);
}

.s {
    color: var(--t-str);
}

.b {
    color: var(--sea);
}

.f {
    color: var(--t-fn);
}

.p {
    color: var(--muted);
}

.c {
    color: var(--dim);
    font-style: italic;
}

.v {
    color: var(--text);
}

/* ---------- footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 1.8rem;
    color: var(--muted);
    font-size: 0.74rem;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    color: var(--gold);
}

/* ---------- command palette ---------- */
.cmdk {
    border: 0;
    padding: 0;
    background: transparent;
    margin: 14vh auto auto;
    width: min(560px, calc(100vw - 2rem));
    color: var(--text);
}

.cmdk::backdrop {
    background: rgba(3, 5, 11, 0.66);
    backdrop-filter: blur(3px);
}

.cmdk-box {
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.cmdk input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    outline: none;
}

.cmdk-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.4rem;
}

.cmdk-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
}

.cmdk-list li span {
    color: var(--dim);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.cmdk-list li[aria-selected="true"] {
    background: rgba(233, 184, 92, 0.12);
    color: var(--gold);
}

.cmdk-foot {
    display: flex;
    gap: 1.2rem;
    padding: 0.55rem 1.1rem;
    border-top: 1px solid var(--line);
    font-size: 0.68rem;
}

/* ---------- project preview ---------- */
.preview {
    position: fixed;
    left: 0;
    top: 0;
    width: 322px;
    z-index: 95;
    pointer-events: none;
    opacity: 0;
    transform: translate(-999px, -999px);
    transition: opacity 0.2s;
    border: 1px solid rgba(233, 184, 92, 0.4);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.preview.show {
    opacity: 1;
}

.preview-cap {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}

.preview-cap b {
    font-weight: 400;
    color: var(--gold);
}

.preview canvas {
    display: block;
    width: 320px;
    height: 220px;
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

@media (hover: none),
(pointer: coarse) {
    .preview {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .status {
        display: none;
    }

    .brand {
        margin-right: auto;
    }
}

@media (max-width: 1024px) {

    .hero-grid,
    .remote-grid,
    .about-grid,
    .stack-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .id-wrap {
        justify-self: start;
    }

    .stack-map {
        position: relative;
        top: 0;
        order: -1;
        max-width: 520px;
    }

    .ledger-head,
    .row-btn {
        grid-template-columns: 6.5rem minmax(0, 1fr) 1.6rem;
    }

    .ledger-head span:nth-child(1),
    .ledger-head span:nth-child(4),
    .row-no,
    .row-meta {
        display: none;
    }

    .row-panel>* {
        margin-left: calc(6.5rem + 2.2rem);
    }
}

@media (max-width: 760px) {
    .hide-sm {
        display: none;
    }

    .hero-bg {
        background:
            radial-gradient(circle at 86% 7%, rgba(255, 240, 210, 0.95) 0 18px, rgba(233, 184, 92, 0.2) 21px, rgba(233, 184, 92, 0.05) 50px, transparent 100px),
            radial-gradient(90% 26% at 50% 58%, rgba(36, 70, 128, 0.5), transparent 70%),
            linear-gradient(to bottom, #03060D 0%, #071022 40%, #10223F 57%, #081226 64%, #060A13 100%);
    }

    .menu-btn {
        display: inline-flex;
    }

    .kbd-btn {
        display: none;
    }

    .nav {
        position: fixed;
        top: var(--bar);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem var(--gutter) 1.2rem;
        background: rgba(6, 10, 19, 0.97);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav a {
        font-size: 1rem;
        padding: 0.8rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }

    .intro-loading {
        left: var(--gutter);
        right: auto;
        top: 3.5rem;
        bottom: auto;
    }

    .intro-actions {
        align-items: flex-start;
        width: 100%;
    }

    .ledger-head {
        display: none;
    }

    .row-btn {
        grid-template-columns: minmax(0, 1fr) 1.6rem;
        row-gap: 0.45rem;
    }

    .row-method {
        grid-column: 1;
        grid-row: 1;
    }

    .row-title {
        grid-column: 1;
        grid-row: 2;
    }

    .plus {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .row-panel>* {
        margin-left: 1.1rem;
    }

    .stack-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .creds {
        grid-template-columns: 1fr;
    }

    .id-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .id-card {
        aspect-ratio: auto;
        gap: 0.9rem;
    }

    .id-issuer {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .code-body {
        font-size: 0.7rem;
    }

    .scroll-cue {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   SCROLL MOTION GRAPHICS (js/motion.js)
   ========================================================= */
.section > .container {
    position: relative;
    z-index: 1;
}

/* giant outlined word drifting behind each section */
.m-word {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-word span {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(6rem, 21vw, 19rem);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(233, 184, 92, 0.11);
    visibility: hidden;
    will-change: translate, opacity;
}

/* voyage route drawn down the left margin */
.m-route {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.m-route-ghost {
    fill: none;
    stroke: rgba(196, 210, 240, 0.08);
    stroke-width: 1;
    stroke-dasharray: 3 6;
}

.m-route-line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(233, 184, 92, 0.5));
}

.m-route-node {
    fill: var(--bg);
    stroke: rgba(196, 210, 240, 0.25);
    stroke-width: 1.2;
    transition: fill 0.35s, stroke 0.35s;
}

.m-route-node.lit {
    fill: var(--gold);
    stroke: var(--gold);
}

.m-route-head path {
    fill: var(--gold);
}

.m-route-head .m-halo {
    fill: rgba(233, 184, 92, 0.18);
    stroke: rgba(233, 184, 92, 0.45);
}

/* logbook spine that fills as you read down the experience */
#work .ledger {
    position: relative;
}

.m-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--sea));
    transform-origin: top;
    scale: 1 0;
    z-index: 2;
    pointer-events: none;
}
