    /* Tailwind is enqueued separately in functions.php */

/* Publica Play — display font for headings, nav & footer links */
@font-face {
    font-family: "Publica Play";
    src: url("../fonts/fonts/PublicaPlay-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Galano";
    src: url("../fonts/fonts/GalanoGrotesque-Regular.woff2") format("woff2"),
         url("../fonts/fonts/GalanoGrotesque-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Galano";
    src: url("../fonts/fonts/GalanoGrotesque-Bold.woff2") format("woff2"),
         url("../fonts/fonts/GalanoGrotesque-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Light.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Regular.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Medium.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/fonts/GeneralSans-Semibold.woff2") format("woff2"),
         url("../fonts/fonts/GeneralSans-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base typography */
body,
.font-sans {
    font-family: "General Sans", "figtree", sans-serif;
    background: #1d0446;
    color: #c5aafb;
}

/* Site shell — content never grows past 1600px */
:root {
    --site-max: 1600px;
    --site-w: min(100vw, var(--site-max));
}

.site-shell {
    width: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
}

/* Site-wide teal glow, pinned to the viewport top-right */
.kh-page-glow {
    position: fixed;
    top: -10%;
    right: -15%;
    width: min(70vw, 640px);
    height: min(70vw, 640px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 235, 0.14) 0%, rgba(0, 255, 235, 0) 68%);
    pointer-events: none;
    z-index: 0;
}

/* Display font: headings, navigation & footer links */
.font-heading,
h1, h2, h3, h4,
#mobileMenu .kh-mobile-menu__link,
#mainFooter a {
    font-family: "Galano", "Publica Play", "figtree", sans-serif;
}

.nav-link,
#connectBtn,
.online-status__label,
.kh-mobile-menu__connect {
    font-family: "General Sans", "figtree", sans-serif;
}

/* Mobile menu — centered overlay + rounded purple / lime toggle (≤767px only) */
@media (min-width: 768px) {
    .kh-menu-toggle,
    #mobileMenu.kh-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
.kh-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    background: linear-gradient(145deg, #452776 0%, #1d0446 62%, #2a0858 100%);
    box-shadow:
        0 0 0 2px #00ffeb,
        0 0 0 3px rgba(197, 170, 251, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kh-menu-toggle:active {
    transform: scale(0.92);
}

.kh-menu-toggle[aria-expanded='true'] {
    box-shadow:
        0 0 0 2px #c5aafb,
        0 0 0 3px rgba(0, 255, 235, 0.35);
}

.kh-menu-toggle .menu-line {
    display: block;
    width: 1.125rem;
    height: 2px;
    border-radius: 9999px;
    background: #00ffeb;
    transform-origin: center;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease,
        background-color 0.35s ease;
}

.kh-menu-toggle[aria-expanded='true'] .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.kh-menu-toggle[aria-expanded='true'] .menu-line:nth-child(2) {
    opacity: 0;
}

.kh-menu-toggle[aria-expanded='true'] .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.kh-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 5rem 1.5rem;
    text-align: center;
    background: #1d0446;
}

.kh-mobile-menu.hidden {
    display: none;
}

.kh-mobile-menu__nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.kh-mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-mobile-menu__link {
    display: block;
    padding: 0.25rem 0;
    text-align: center;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #c5aafb;
    text-decoration: none;
    transition: color 0.25s ease;
}

.kh-mobile-menu__link:hover,
.kh-mobile-menu__link:focus-visible {
    color: #00ffeb;
}

.kh-mobile-menu__foot {
    padding-top: 0;
    text-align: center;
}

.kh-mobile-menu__connect {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    color: #00ffeb;
    text-decoration: none;
}

.kh-mobile-menu__connect:hover,
.kh-mobile-menu__connect:focus-visible {
    color: #ffffff;
}

} /* end @media (max-width: 767px) mobile menu */

/* ─── Preloader 2.0 — vertical slot reel (home) ─── */
.preloader-v2 {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1d0446;
}

.preloader-v2__viewport {
    max-width: min(94vw, 42rem);
    font-family: "Galano", "General Sans", "figtree", sans-serif;
    font-size: clamp(3.25rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #c5aafb;
    text-align: center;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* One-line clip window; width from longest greeting (Bonjour) */
.preloader-v2__slot {
    position: relative;
    display: grid;
    grid-template: 1fr / 1fr;
    overflow: hidden;
    height: 1em;
    min-width: 100%;
}

.preloader-v2__measure {
    grid-area: 1 / 1;
    visibility: hidden;
    height: 1em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.preloader-v2__line {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    line-height: 1;
    width: 100%;
    white-space: nowrap;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .preloader-v2__line {
        will-change: auto;
    }
}

/* Section dividers — subtle lavender rules on dark */
main {
    border-top: none;
    background: #1d0446;
}

main > section + section {
    border-top: 1px solid rgba(197, 170, 251, 0.12);
}

/* Scroll wave — K95-style WebGL distortion on content images */
#kh-wave-canvas {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#kh-wave-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.kh-wave-media {
    position: relative;
    overflow: hidden;
}

img.kh-wave {
    opacity: 1;
}

body:has(#kh-wave-canvas) img.kh-wave.is-wave-ready {
    opacity: 0;
}

/* Single portfolio — centered image columns + wave frames */
.single-portfolio .kh-wave-frame {
    margin-inline: auto;
}

.single-portfolio #body img.kh-wave {
    display: block;
    margin-inline: auto;
    width: 100%;
    height: auto;
}

.single-portfolio .kh-wave-media > img.kh-wave {
    object-position: center center;
}

@media (prefers-reduced-motion: reduce) {
    img.kh-wave.is-wave-ready {
        opacity: 1 !important;
    }

    #kh-wave-canvas {
        display: none !important;
    }
}

/* Kraakhelder scroll type — data glitch decode (progress via --kh-p / --kh-chaos) */
.kraakhelder-type {
    --kh-p: 0;
    --kh-chaos: calc(1 - var(--kh-p, 0));
    --kh-ink: #c5aafb;
    --kh-signal: #00ffeb;
    position: relative;
    overflow-x: clip;
    background: #1d0446;
}

.kraakhelder-type__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.kraakhelder-type__grid {
    position: absolute;
    inset: -1px;
    opacity: calc(0.08 + var(--kh-chaos, 1) * 0.22);
    background-image:
        linear-gradient(rgba(0, 255, 235, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 170, 251, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.kraakhelder-type__scanlines {
    position: absolute;
    inset: 0;
    opacity: calc(0.04 + var(--kh-chaos, 1) * 0.18);
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 255, 235, 0.06) 2px,
        rgba(0, 255, 235, 0.06) 3px
    );
    mix-blend-mode: soft-light;
}

.kraakhelder-type__scroll {
    position: relative;
    z-index: 1;
}

.kraakhelder-type__stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 2dvh max(4vw, env(safe-area-inset-left, 0px)) 2dvh max(4vw, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

.kraakhelder-type .pin-spacer {
    background: #1d0446;
}

.kraakhelder-type__hud {
    position: absolute;
    top: clamp(1rem, 3.5vh, 2.5rem);
    left: max(4vw, env(safe-area-inset-left, 0px));
    right: max(4vw, env(safe-area-inset-right, 0px));
    z-index: 4;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 1rem 1.25rem;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
    font-size: clamp(0.625rem, 0.85vw, 0.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 255, 235, calc(0.35 + var(--kh-p, 0) * 0.65));
    pointer-events: none;
    opacity: calc(0.25 + var(--kh-p, 0) * 0.75);
}

.kraakhelder-type__hud-tag {
    color: rgba(197, 170, 251, 0.85);
    white-space: nowrap;
}

.kraakhelder-type__hud-data {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(0, 255, 235, 0.75);
    filter: blur(calc(var(--kh-chaos, 1) * 0.6px));
}

.kraakhelder-type__hud-counter {
    font-variant-numeric: tabular-nums;
    color: rgba(197, 170, 251, 0.9);
}

.kraakhelder-type__band {
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(2px, 0.35vh, 6px);
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 235, 0.55) 20%,
        rgba(197, 170, 251, 0.65) 50%,
        rgba(0, 255, 235, 0.55) 80%,
        transparent
    );
    opacity: calc(var(--kh-chaos, 1) * 0.85);
    transform: translate3d(calc(var(--kh-band-x, 0) * 1px), calc(var(--kh-band-y, 0) * 1px), 0)
        scaleX(calc(0.4 + var(--kh-chaos, 1) * 0.6));
    mix-blend-mode: screen;
}

.kraakhelder-type__band--a {
    top: calc(32% + var(--kh-band-a, 0) * 1px);
}

.kraakhelder-type__band--b {
    top: calc(68% + var(--kh-band-b, 0) * 1px);
}

.kraakhelder-type__line {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

.kraakhelder-type__line--kraak {
    justify-content: flex-start;
}

.kraakhelder-type__line--helder {
    justify-content: flex-end;
}

.kraakhelder-type__line--helder .kraakhelder-type__word {
    -webkit-text-stroke: 0.014em rgba(197, 170, 251, calc(0.35 + var(--kh-p, 0) * 0.65));
    paint-order: stroke fill;
    color: rgba(197, 170, 251, calc(var(--kh-p, 1) * var(--kh-p, 1)));
}

.kraakhelder-type__rule {
    position: absolute;
    top: 50%;
    left: max(4vw, env(safe-area-inset-left, 0px));
    right: max(4vw, env(safe-area-inset-right, 0px));
    height: 1px;
    z-index: 2;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 235, 0.9) 15%,
        rgba(197, 170, 251, 0.95) 50%,
        rgba(0, 255, 235, 0.9) 85%,
        transparent
    );
    transform: scaleX(var(--kh-p, 1));
    transform-origin: center;
    opacity: var(--kh-p, 1);
    box-shadow: 0 0 calc(var(--kh-chaos, 1) * 18px) rgba(0, 255, 235, 0.35);
    pointer-events: none;
}

.kraakhelder-type__word {
    display: inline-block;
    font-family: "Galano", "Publica Play", "figtree", sans-serif;
    font-size: min(72vw, 34dvh);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #c5aafb;
    white-space: nowrap;
    padding: 0.04em 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: blur(calc(var(--kh-chaos, 1) * 0.35px));
}

@media (min-width: 768px) {
    .kraakhelder-type__stage {
        padding: 3vh 0;
    }

    .kraakhelder-type__word {
        font-size: min(90vw, 60vh);
        line-height: 1;
        letter-spacing: 0;
    }
}

.kraakhelder-type__word--split {
    display: inline-block;
    white-space: nowrap;
}

.kraakhelder-type__track {
    display: inline-flex;
    white-space: nowrap;
    gap: calc(var(--kh-letter-gap, 0) * 1px);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .kraakhelder-type {
        --kh-p: 1 !important;
        --kh-chaos: 0 !important;
    }

    .kraakhelder-type__word,
    .kraakhelder-type__hud-data {
        filter: none;
    }
}

.kraakhelder-type__letter {
    display: inline-block;
    line-height: inherit;
    transform-origin: 50% 60%;
    will-change: transform, clip-path;
    --kh-ab: 0;
    text-shadow:
        calc(var(--kh-ab) * 5px) 0 rgba(0, 255, 235, 0.55),
        calc(var(--kh-ab) * -6px) 0 rgba(255, 60, 140, 0.4);
    clip-path: inset(calc(var(--kh-clip-t, 0) * 1%) 0 calc(var(--kh-clip-b, 0) * 1%) 0);
}

.kraakhelder-type__line--kraak .kraakhelder-type__track {
    transform-origin: left center;
}

.kraakhelder-type__line--helder .kraakhelder-type__track {
    transform-origin: right center;
}

.kraakhelder-type.is-glitch-lock .kraakhelder-type__stage {
    animation: kraakhelder-glitch-lock 0.28s steps(2, end);
}

@keyframes kraakhelder-glitch-lock {
    0% {
        transform: translate3d(-4px, 0, 0);
    }
    33% {
        transform: translate3d(5px, -2px, 0);
    }
    66% {
        transform: translate3d(-2px, 1px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 12rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.04em;
    max-width: 32ch;
    margin-bottom: 2.5rem;
}

/* ─── Home hero — design · 1920×1080 ─── */
.home-opener {
    --home-hero-bg: #1c0445;
    --home-hero-ink: #ffffff;
    --home-hero-accent: #00ffeb;
    /* 2.53 = previous 2.2 plus 15% */
    --home-hero-figure-scale: 2.53;
    background: var(--home-hero-bg);
    overflow-x: clip;
    max-height: 100dvh;
}

.home-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    color: var(--home-hero-ink);
    background: var(--home-hero-bg);
    overflow: hidden;
    isolation: isolate;
}

/* Base gradient — WebGL particles sit above this, below hero content */
.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 65% at 48% 42%, rgba(120, 55, 170, 0.72) 0%, transparent 68%),
        radial-gradient(ellipse 48% 42% at 72% 28%, rgba(70, 25, 130, 0.45) 0%, transparent 62%),
        radial-gradient(ellipse 55% 50% at 28% 70%, rgba(40, 10, 90, 0.5) 0%, transparent 65%),
        linear-gradient(160deg, #16023a 0%, #1c0445 40%, #2a0a5c 70%, #1c0445 100%);
}

.home-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__code-field-host {
    isolation: isolate;
}

.home-hero__code-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero__code-snippet {
    position: absolute;
    max-width: min(13rem, 26vw);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.5625rem, 0.92vw, 0.75rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: var(--snippet-opacity, 0.4);
    transform: rotate(var(--snippet-rotate, 0deg));
    transform-origin: left top;
}

.home-hero__code-snippet.is-typing {
    opacity: min(0.78, calc(var(--snippet-opacity, 0.4) + 0.26));
}

.home-hero__code-snippet[data-role='accent'] {
    color: rgba(0, 255, 235, 0.92);
    text-shadow: 0 0 8px rgba(0, 255, 235, 0.28);
}

.home-hero__code-snippet[data-role='tag'] {
    color: rgba(197, 170, 251, 0.88);
}

.home-hero__code-snippet[data-role='bit'] {
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.1em;
    font-size: clamp(0.5rem, 0.8vw, 0.6875rem);
}

.home-hero__code-snippet[data-role='muted'] {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
}

.home-hero__code-snippet[data-role='line'] {
    max-width: min(22rem, 42vw);
    color: rgba(197, 170, 251, 0.72);
    font-weight: 450;
}

.home-hero__code-snippet[data-role='block'] {
    max-width: min(18rem, 34vw);
    white-space: pre;
    color: rgba(255, 255, 255, 0.4);
    font-size: clamp(0.5rem, 0.78vw, 0.6875rem);
    line-height: 1.45;
    text-overflow: clip;
}

@media (max-width: 767px) {
    .home-hero__code-snippet {
        max-width: min(10rem, 46vw);
        font-size: 0.5625rem;
    }

    .home-hero__code-snippet[data-role='bit'] {
        font-size: 0.5rem;
    }

    .home-hero__code-snippet[data-role='line'] {
        max-width: min(16rem, 72vw);
    }

    .home-hero__code-snippet[data-role='block'] {
        max-width: min(13rem, 62vw);
        font-size: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__code-field {
        display: none;
    }
}

.home-hero__stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
}

/* Figure — robert_new.png · bottom-aligned to hero · behind headline */
.home-hero__figure {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 1;
    width: min(
        calc(40.4166667vw * var(--home-hero-figure-scale, 1)),
        calc(776px * var(--home-hero-figure-scale, 1))
    );
    height: 100%;
    max-height: 100%;
    margin-inline: auto;
    object-fit: contain;
    object-position: bottom center;
    mix-blend-mode: normal; /* pass through */
    user-select: none;
    pointer-events: none;
    will-change: transform, opacity;
}

.home-hero__light {
    display: none;
}

/* Headline — vertically centered stack · in front of figure */
.home-hero__title {
    position: absolute;
    left: 2.9166667%;
    top: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-hero__line {
    display: block;
    margin: 0;
    font-family: "Galano", "Publica Play", sans-serif;
    font-weight: 700;
    font-size: clamp(2.75rem, calc(220 / 1920 * var(--site-w)), 13.75rem);
    line-height: 0.82;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    white-space: nowrap;
    pointer-events: auto;
}

.home-hero__line--make {
    color: #ffffff;
}

.home-hero__line--people {
    margin-left: calc(104 / 1920 * var(--site-w));
    color: var(--home-hero-accent);
}

.home-hero__line--move {
    margin-left: calc(260 / 1920 * var(--site-w));
    color: #ffffff;
}

/* Lede + arrow — bottom right */
.home-hero__aside {
    position: absolute;
    left: auto;
    top: auto;
    right: calc(71 / 1920 * 100%);
    bottom: calc(72 / 1080 * 100%);
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: calc(36 / 1920 * var(--site-w));
    width: min(52vw, 640px);
    max-width: none;
    pointer-events: auto;
}

.home-hero__lede {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: calc(26 / 1920 * var(--site-w));
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-align: right;
}

.home-hero__lede-line {
    display: block;
}

@media (min-width: 768px) {
    .home-hero__lede-line {
        white-space: nowrap;
    }
}

.home-hero__mark {
    flex-shrink: 0;
    width: calc(62 / 1920 * var(--site-w));
    height: auto;
    display: block;
    margin-top: 0;
}

/* ── Fixed header on home — PDF nav ── */
body.home #mainHeader .home-nav,
body.front-page #mainHeader .home-nav {
    width: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    align-items: flex-start;
}

body.home #mainHeader,
body.front-page #mainHeader {
    padding: 0;
}

/* Logo — 72.5,40.8 · ~54×37 */
body.home #navLogoImg,
body.front-page #navLogoImg {
    height: calc(37.17 / 1920 * var(--site-w));
    width: auto;
    margin-top: calc(40.827 / 1920 * var(--site-w));
    margin-left: calc(72.532 / 1920 * var(--site-w));
}

/* Right group — pill top y51 */
body.home #mainHeader .home-nav > .hidden,
body.front-page #mainHeader .home-nav > .hidden {
    margin-top: calc(51 / 1920 * var(--site-w));
    margin-right: calc(51 / 1920 * var(--site-w));
    gap: calc(36 / 1920 * var(--site-w));
    align-items: center;
}

body.home #mainHeader #navLinks,
body.front-page #mainHeader #navLinks {
    gap: calc(36 / 1920 * var(--site-w));
}

body.home #mainHeader .nav-link,
body.front-page #mainHeader .nav-link {
    font-family: "General Sans", "figtree", sans-serif;
    font-size: calc(14 / 1920 * var(--site-w));
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 1;
}

/* Connect — 1744,51 125×45 */
body.home #connectBtn,
body.front-page #connectBtn {
    height: calc(45 / 1920 * var(--site-w));
    min-width: calc(125 / 1920 * var(--site-w));
    padding-left: calc(28 / 1920 * var(--site-w));
    padding-right: calc(28 / 1920 * var(--site-w));
    border-radius: 9999px;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: calc(14 / 1920 * var(--site-w));
    font-weight: 600;
    background: #00ffeb;
    color: #0a0a12;
}

@media (max-width: 1023px) {
    /* Tablet / mobile hero composition */
    .home-hero {
        height: 100svh;
        height: 100dvh;
        max-height: 100dvh;
    }

    .home-hero__stage {
        height: 100%;
    }

    .home-hero__bg {
        background:
            radial-gradient(ellipse 90% 70% at 50% 38%, rgba(130, 60, 180, 0.75) 0%, transparent 70%),
            radial-gradient(ellipse 70% 50% at 50% 80%, rgba(40, 10, 90, 0.55) 0%, transparent 65%),
            linear-gradient(180deg, #16023a 0%, #1c0445 45%, #24085a 100%);
    }

    /* Figure — bottom pinned to hero */
    .home-hero__figure {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: min(
            calc(88vw * var(--home-hero-figure-scale, 1)),
            calc(480px * var(--home-hero-figure-scale, 1))
        );
        height: 100%;
        max-height: 100%;
        margin-inline: auto;
        object-fit: contain;
        object-position: bottom center;
    }

    /* Headline — vertically centered, left-aligned stack */
    .home-hero__title {
        left: 1.25rem;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 4;
        max-width: 92vw;
    }

    .home-hero__line {
        font-size: clamp(2.85rem, 13.5vw, 5.25rem);
        line-height: 0.86;
        letter-spacing: -0.03em;
    }

    .home-hero__line--people {
        margin-left: clamp(0.75rem, 4vw, 1.5rem);
    }

    .home-hero__line--move {
        margin-left: clamp(1.5rem, 8vw, 3rem);
    }

    /* Lede — bottom right */
    .home-hero__aside {
        left: auto;
        right: 1.25rem;
        bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1.25rem);
        top: auto;
        width: min(78vw, 340px);
        max-width: none;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 0.75rem;
        z-index: 5;
    }

    .home-hero__lede {
        font-size: clamp(0.8125rem, 3.4vw, 1rem);
        line-height: 1.35;
        text-align: right;
    }

    .home-hero__lede-line {
        white-space: normal;
    }

    .home-hero__mark {
        width: clamp(2.25rem, 9vw, 2.75rem);
        margin-top: 0;
    }

    /* Nav — compact mobile chrome */
    body.home #mainHeader,
    body.front-page #mainHeader {
        padding: 0;
    }

    body.home #mainHeader .home-nav,
    body.front-page #mainHeader .home-nav {
        width: 100%;
        max-width: none;
        padding: 1rem 1.25rem;
        padding-top: max(1rem, env(safe-area-inset-top, 0px));
        align-items: center;
        justify-content: space-between;
    }

    body.home #navLogoImg,
    body.front-page #navLogoImg {
        height: 2rem;
        width: auto;
        margin: 0;
    }

    body.home #mainHeader .home-nav > .hidden,
    body.front-page #mainHeader .home-nav > .hidden {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .home-hero__figure {
        bottom: 0;
        width: min(
            calc(96vw * var(--home-hero-figure-scale, 1)),
            calc(420px * var(--home-hero-figure-scale, 1))
        );
        height: 100%;
        max-height: 100%;
    }

    .home-hero__title {
        left: 1.15rem;
        right: 1.15rem;
        /* Sit slightly above true center so it reads over the torso */
        top: 46%;
    }

    .home-hero__line {
        font-size: clamp(3rem, 15.5vw, 4.25rem);
        line-height: 0.84;
    }

    .home-hero__aside {
        right: 1.15rem;
        left: 1.15rem;
        bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 1rem);
        max-width: none;
        width: calc(100% - 2.3rem);
        justify-content: flex-end;
    }

    .home-hero__lede {
        font-size: 0.875rem;
    }

    .home-hero__mark {
        width: 2.35rem;
    }

    /* Short phones — keep headline + lede readable */
    @media (max-height: 700px) {
        .home-hero__figure {
            bottom: 0;
            height: 100%;
            max-height: 100%;
        }

        .home-hero__title {
            top: 42%;
        }

        .home-hero__line {
            font-size: clamp(2.5rem, 13vw, 3.5rem);
        }

        .home-hero__aside {
            bottom: 0.85rem;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__lede,
    .home-hero__mark,
    .home-hero__figure {
        transition: none;
    }
}

/* ─── About — editorial sticky scroll ─── */
.about--editorial {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.68);
    --about-line: rgba(197, 170, 251, 0.18);
}

.about__arcs--dim {
    opacity: 0.1;
}

.about__track {
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}

.about__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.about__eyebrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-line);
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.about__eyebrow-index {
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
}

.about__stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}

.about__headline-col {
    position: relative;
    width: 100%;
}

.about__title {
    margin: 0;
    width: 100%;
    max-width: none;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.5rem, calc(120 / 1920 * var(--site-w, 100vw)), 7.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.03em;
    transform-origin: left top;
    text-wrap: balance;
}

.about__title-part--light {
    color: #ffffff;
}

.about__title-part--accent {
    color: #00ffeb;
}

.about__flow-col {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.about__lede {
    margin: 0;
    max-width: 42ch;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.0625rem, 1.5vw, 1.625rem);
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.about__services {
    border-top: 1px solid var(--about-line);
}

.about__service {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
    padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
    border-bottom: 1px solid var(--about-line);
    transition: color 0.25s ease;
}

.about__service-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 9999px;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #0a0a12;
    background: #00ffeb;
}

.about__service-title {
    margin: 0 0 0.5rem;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.375rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.about__service-desc {
    margin: 0;
    max-width: 38ch;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(0.9375rem, 1vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.55;
    color: #ffffff;
}

@media (min-width: 1024px) {


    .about__headline-col {
        position: sticky;
        top: clamp(5.5rem, 12vh, 8.5rem);
        z-index: 1;
        padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    }

    .about__stage {
        display: block;
        width: 100%;
    }

    .about__flow-col {
        margin-left: auto;
        width: min(100%, 42rem);
        max-width: 100%;
        gap: clamp(3rem, 6vw, 5rem);
        padding-top: clamp(1rem, 3vw, 2rem);
        padding-bottom: clamp(4rem, 12vw, 14rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about__track {
        min-height: 150vh;
    }

    .about__headline-col {
        position: sticky;
        top: clamp(5rem, 10vh, 7rem);
        z-index: 1;
    }

    .about__flow-col {
        padding-top: 1rem;
    }
}

@media (max-width: 1023px) {
    .about__title br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about__track {
        min-height: 0;
    }

    .about__headline-col {
        position: relative;
        top: auto;
    }
}

/* ─── About Section — typography helpers (Tailwind can't parse clamp() in arbitrary values) ─── */
.about-title {
    font-size: clamp(2.75rem, 5vw, 6rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.04em;
    max-width: 32ch;
    margin-bottom: 2.5rem;
}

/* ─── About page (/about/) — editorial v2 ───────────────────────── */
.about-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: clamp(5.5rem, 14vh, 8rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.about-page__arcs {
    opacity: 0.28;
}

.about-page__shell {
    padding-bottom: 0;
}

.about-page__masthead {
    margin-bottom: clamp(3rem, 8vw, 5.5rem);
    max-width: 920px;
}

.about-page__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--about-line, rgba(197, 170, 251, 0.18));
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink, #c5aafb);
}

.about-page__eyebrow-index {
    color: var(--about-muted, rgba(197, 170, 251, 0.65));
    font-variant-numeric: tabular-nums;
}

.about-page__headline {
    margin: 0 0 1.25rem;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.5rem, 6.5vw, 5.25rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--about-ink, #c5aafb);
    max-width: 14ch;
}

.about-page__headline-line {
    display: block;
}

.about-page__headline-line--accent {
    color: #00ffeb;
}

.about-page__deck {
    margin: 0;
    max-width: 38ch;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: rgba(197, 170, 251, 0.82);
}

.about-page__layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-bottom: clamp(4rem, 10vw, 7rem);
}

.about-page__aside {
    position: sticky;
    top: clamp(6rem, 12vh, 8rem);
}

.about-page__portrait {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(197, 170, 251, 0.22);
    background: linear-gradient(160deg, rgba(197, 170, 251, 0.12), rgba(29, 4, 70, 0.4));
    aspect-ratio: 3 / 4;
    max-height: min(68vh, 480px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.about-page__portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(29, 4, 70, 0.85), transparent);
    pointer-events: none;
}

.about-page__portrait-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-page__focus {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-page__focus li {
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(197, 170, 251, 0.28);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(197, 170, 251, 0.75);
}

.about-page__story {
    min-width: 0;
    padding-top: 0.25rem;
}

.about-page__lead {
    margin: 0 0 1.75rem;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    line-height: 1.65;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--about-ink, #c5aafb);
    max-width: 58ch;
}

.about-page__paragraph {
    margin: 0 0 1.35rem;
    font-size: clamp(1.0625rem, 1.45vw, 1.2rem);
    line-height: 1.75;
    color: var(--about-muted, rgba(197, 170, 251, 0.68));
    max-width: 58ch;
}

.about-page__quote {
    margin: 0 0 1.75rem;
    padding: 1.25rem 0 1.25rem 1.25rem;
    border-left: 3px solid #00ffeb;
    max-width: 52ch;
}

.about-page__quote p {
    margin: 0;
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--about-ink, #c5aafb);
}

.about-page__skills {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    border-top: 1px solid var(--about-line, rgba(197, 170, 251, 0.18));
    border-bottom: 1px solid var(--about-line, rgba(197, 170, 251, 0.18));
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.about-page__skills-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-page__skills-title {
    margin: 0;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--about-ink, #c5aafb);
}

.about-page__skills-note {
    margin: 0;
    max-width: 28ch;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--about-muted, rgba(197, 170, 251, 0.65));
}

.about-page__skills-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.about-page__skills-label {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-muted, rgba(197, 170, 251, 0.65));
}

.about-page__skill-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.about-page__skill-tags li {
    margin: 0;
}

.about-page__cta {
    padding: 0;
}

.about-page__cta-inner {
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 255, 235, 0.35);
    background: linear-gradient(135deg, rgba(0, 255, 235, 0.08), rgba(197, 170, 251, 0.06));
    max-width: 56ch;
}

.about-page__cta-title {
    margin: 0 0 1rem;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--about-ink, #c5aafb);
}

.about-page__cta-lede,
.about-page__cta-outro {
    margin: 0 0 1rem;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--about-muted, rgba(197, 170, 251, 0.68));
}

.about-page__cta-outro {
    font-weight: 600;
    color: var(--about-ink, #c5aafb);
    margin-bottom: 1.5rem;
}

.about-page__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #00ffeb;
    color: #0a0a12;
    transition: transform 0.3s ease;
}

.about-page__cta-btn:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .about-page__skills-panels {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 5vw, 4rem);
    }
}

@media (max-width: 900px) {
    .about-page__headline {
        max-width: none;
    }

    .about-page__layout {
        grid-template-columns: 1fr;
    }

    .about-page__aside {
        position: static;
        display: grid;
        grid-template-columns: minmax(140px, 42%) 1fr;
        gap: 1.25rem;
        align-items: end;
    }

    .about-page__portrait {
        max-height: 260px;
    }

    .about-page__focus {
        align-content: end;
    }
}

/* ─── About Section — legacy editorial layout (kept for tags) ───────── */
.about-section {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.65);
    --about-line: rgba(197, 170, 251, 0.18);
    background: #1d0446;
    color: #c5aafb;
}

.about-section__content {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-sans, "figtree", sans-serif);
}

/* Eyebrow — small caps index row */
.about-section__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-ink);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.about-section__eyebrow-index {
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
}

/* Headline — oversized display type, split-line animated */
.about-section__title {
    font-size: clamp(2.5rem, 7vw, 7.25rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--about-ink);
    max-width: 18ch;
    margin: 0 0 clamp(3rem, 7vw, 6rem);
}



/* Intro — roles rail + large lede on a 12-col grid */
.about-section__intro {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

.about-section__roles {
    grid-column: 1 / span 3;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-muted);
}

.about-section__roles li {
    padding-top: 0.7rem;
    border-top: 1px solid var(--about-line);
}

.about-section__desc {
    grid-column: 5 / -1;
    font-size: clamp(1.375rem, 2.4vw, 2.25rem);
    line-height: 1.4;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--about-ink);
    margin: 0;
}

.about-section__desc strong {
    font-weight: 700;
}

/* Services — numbered editorial rows */
.about-section__services {
    border-top: 1px solid var(--about-line);
    margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

.about-section__service {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border-bottom: 1px solid var(--about-line);
    transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section__service:hover {
    padding-left: 0.875rem;
}

.about-section__service-index {
    grid-column: 1 / span 1;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
    padding-top: 0.5rem;
}

.about-section__service-title {
    grid-column: 2 / span 4;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--about-ink);
    margin: 0;
}

.about-section__service-desc {
    grid-column: 7 / -1;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.7;
    color: var(--about-muted);
    max-width: 56ch;
    margin: 0;
}

/* Expertise — label rail + tag cloud */
.about-section__expertise {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
}

.about-section__expertise-label {
    grid-column: 1 / span 3;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
    padding-top: 0.7rem;
    border-top: 1px solid var(--about-line);
    margin: 0;
}

.about-section__expertise .about-section__tags {
    grid-column: 5 / -1;
}

@media (max-width: 767px) {
    .about-section__content {
        padding: 3rem 1.25rem;
    }

    .about-section__eyebrow {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        font-size: 0.6875rem;
    }

    .about-section__title {
        font-size: clamp(2.125rem, 9.5vw, 2.75rem);
        line-height: 0.92;
        max-width: none;
        margin-bottom: 2.5rem;
    }

    .about-section__intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .about-section__roles {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
        font-size: 0.6875rem;
    }

    .about-section__roles li {
        padding-top: 0;
        border-top: none;
    }

    .about-section__desc {
        grid-column: 1 / -1;
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .about-section__services {
        margin-bottom: 3rem;
    }

    .about-section__service {
        grid-template-columns: auto 1fr;
        gap: 0.35rem 1rem;
        padding: 1.5rem 0;
    }

    .about-section__service:hover {
        padding-left: 0;
    }

    .about-section__service-index {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0.35rem;
        font-size: 0.6875rem;
    }

    .about-section__service-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 1.375rem;
    }

    .about-section__service-desc {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .about-section__expertise {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-section__expertise-label {
        grid-column: 1 / -1;
        font-size: 0.6875rem;
    }

    .about-section__expertise .about-section__tags {
        grid-column: 1 / -1;
    }
}

/* ─── SplitText masked lines (shared) ───────────────────
   Each line is clipped by a mask wrapper; with tight line-heights the
   ascenders/descenders poke outside the line box and get cut off.
   Pad the line inside the mask, then pull the mask back by the same
   amount so the vertical rhythm stays identical. */
.about-split-line {
}

.about-split-line-mask {
    margin-block: -0.14em;
}

/* ─── Project hero (single-portfolio) — dark brand opener ── */
.project-hero {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.65);
    --about-line: rgba(197, 170, 251, 0.2);
    background: #1d0446;
    color: #c5aafb;
}

.project-hero__content {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(8rem, 18vh, 12rem) clamp(1.5rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 6rem);
}

.project-hero__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-ink);
    margin-bottom: clamp(2rem, 4.5vw, 4rem);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.project-hero__eyebrow-cat {
    color: var(--about-muted);
}

.project-hero__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.75rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--about-ink);
    max-width: 16ch;
    margin: 0 0 clamp(3rem, 7vw, 6rem);
}

/* Meta — ruled columns on a 12-col grid */
.project-hero__meta {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
}

.project-hero__meta-item {
    grid-column: span 3;
    padding-top: 0.9rem;
    border-top: 1px solid var(--about-line);
}

.project-hero__meta-item--tags {
    grid-column: span 4;
}

.project-hero__meta-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-muted);
    margin: 0 0 0.85rem;
}

.project-hero__meta-value {
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--about-ink);
    margin: 0;
}

.project-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
    border-bottom: 1px solid rgba(197, 170, 251, 0.35);
    transition: border-color 0.3s ease;
}

.project-hero__cta:hover {
    border-color: var(--about-ink);
}

.project-hero__cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-hero__cta:hover .project-hero__cta-arrow {
    transform: translateX(6px);
}

@media (max-width: 1023px) {
    .project-hero__meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .project-hero__meta-item,
    .project-hero__meta-item--tags {
        grid-column: span 1;
    }

    .project-hero__meta-item--tags {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .project-hero__content {
        padding: 7.5rem 1.25rem 3rem;
    }

    .project-hero__eyebrow {
        padding-bottom: 1rem;
        margin-bottom: 1.75rem;
        font-size: 0.6875rem;
    }

    .project-hero__title {
        font-size: clamp(2.25rem, 10vw, 3rem);
        line-height: 1.06;
        max-width: none;
        margin-bottom: 2.5rem;
    }

    .project-hero__meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-hero__meta-item--tags {
        grid-column: 1;
    }

    .project-hero__meta-value {
        font-size: 1.125rem;
    }
}

/* ─── Tag pills (shared category / expertise labels) ───── */
.about-section__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-section__tag {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    color: #c5aafb;
    border: 0.5px solid rgba(197, 170, 251, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.about-section__tag--white {
    color: #c5aafb;
    border-color: rgba(197, 170, 251, 0.4);
    background: transparent;
}

.about-section .about-section__tag {
    font-size: 15px;
    padding: 9px 18px;
}

.about-section .about-section__tags {
    gap: 8px;
}

@media (max-width: 767px) {
    .about-section .about-section__tags {
        gap: 6px;
    }

    .about-section .about-section__tag {
        font-size: 12px;
        padding: 6px 13px;
    }
}

/* Custom scrollbar for better look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Splide — projects + journal carousels (home) */
#project-splide,
#story-splide {
    height: 75vh;
    min-height: 320px;
}

.project-splide {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.project-splide.is-initialized {
    opacity: 1;
}

.project-splide .splide__track,
.project-splide .splide__list {
    height: 100%;
}

.project-splide .splide__track {
    overflow: hidden;
}

@media (min-width: 768px) {
    .project-splide--multi .splide__track {
        overflow: visible;
    }
}

.project-splide .splide__list {
    cursor: grab;
}

.project-splide .splide__list:active {
    cursor: grabbing;
}

.project-splide .splide__slide {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 2–3 slides visible: dim side slides, not invisible */
.project-splide--multi .splide__slide.is-visible {
    opacity: 0.55;
}

.project-splide .splide__slide.is-active {
    z-index: 10;
    opacity: 1;
}

.project-splide .splide__slide img,
.project-splide .splide__slide .project-slide__fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.project-slide__fallback {
    display: block;
    background: linear-gradient(135deg, #2a0860 0%, #1d0446 45%, #452776 100%);
}

.project-splide .splide__slide.is-active img {
    transition: 0.3s;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(
        180deg,
        rgba(29, 4, 70, 0.55) 0%,
        rgba(29, 4, 70, 0) 30%,
        rgba(29, 4, 70, 0) 52%,
        rgba(29, 4, 70, 0.9) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Overlay content only reveals on the focused (active) slide */
.project-splide .splide__slide.is-active .slide-overlay {
    opacity: 1;
}

.project-slide__top,
.project-slide__bottom {
    transform: translateY(14px);
    opacity: 0;
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.65s ease;
}

.project-slide__bottom {
    transition-delay: 0.08s;
}

.project-splide .splide__slide.is-active .project-slide__top,
.project-splide .splide__slide.is-active .project-slide__bottom {
    transform: translateY(0);
    opacity: 1;
}

.project-slide__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-slide__index {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.85);
}

.project-slide__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.project-slide__date {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.project-slide__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.625rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.project-slide__excerpt {
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 46ch;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-slide__cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.3s ease;
}

.project-slide__cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-slide__cta:hover,
.permalink:hover .project-slide__cta {
    border-color: #fff;
}

.project-slide__cta:hover .project-slide__cta-arrow,
.permalink:hover .project-slide__cta-arrow {
    transform: translateX(6px);
}

/* Project slide full-card link */
.project-slide__link {
    position: relative;
    display: block;
    height: 100%;
    color: inherit;
}
.project-slide__link:hover .project-slide__cta-arrow {
    transform: translateX(6px);
}

 /* Marquee Section */
.marquee-section {
    z-index: 2;
    position: relative;
}

.marquee-text {
    color: #ffffff;
    align-self: start;
    opacity: 1;
}

/* Advanced Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-content__track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

/* ─── Stories — dark journal list ─────────────────── */
.stories-section {
    --about-ink: #c5aafb;
    --about-muted: rgba(197, 170, 251, 0.65);
    --about-line: rgba(197, 170, 251, 0.18);
    background: #1d0446;
    color: #c5aafb;
}

.stories-section__content {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 4vw, 2.5rem);
}

.stories-section__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--about-ink);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
}

.stories-section__eyebrow-index {
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
}

.stories-section__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.5rem, 7vw, 7.25rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.035em;
    color: var(--about-ink);
    max-width: 12ch;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.stories-section__lede {
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.45;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--about-muted);
    max-width: 36ch;
    margin: 0 0 clamp(3.5rem, 8vw, 7rem);
}

.stories-section__list {
    border-top: 1px solid var(--about-line);
}

.story-entry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border-bottom: 1px solid var(--about-line);
    color: inherit;
    text-decoration: none;
    transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-entry:hover {
    padding-left: 0.875rem;
}

.story-entry__index {
    grid-column: 1 / span 1;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: var(--about-muted);
    padding-top: 0.35rem;
}

.story-entry__media {
    grid-column: 2 / span 3;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--about-line);
}

.story-entry__image,
.story-entry__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-entry__fallback {
    background: linear-gradient(160deg, #2a0860 0%, #1d0446 50%, #452776 100%);
}

.story-entry:hover .story-entry__image {
    transform: scale(1.04);
}

.story-entry__body {
    grid-column: 6 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.story-entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.story-entry__date {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--about-muted);
}

.story-entry__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--about-ink);
    margin: 0;
}

.story-entry__excerpt {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.65;
    color: var(--about-muted);
    max-width: 56ch;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-entry__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-ink);
    border-bottom: 1px solid rgba(197, 170, 251, 0.35);
    transition: border-color 0.3s ease;
}

.story-entry__cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-entry:hover .story-entry__cta {
    border-color: var(--about-ink);
}

.story-entry:hover .story-entry__cta-arrow {
    transform: translateX(6px);
}

@media (max-width: 767px) {
    .stories-section__content {
        padding: 3rem 1.25rem;
    }

    .stories-section__eyebrow {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        font-size: 0.6875rem;
    }

    .stories-section__title {
        font-size: clamp(2.125rem, 9.5vw, 2.75rem);
        line-height: 1;
        margin-bottom: 1.5rem;
    }

    .stories-section__lede {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .story-entry {
        grid-template-columns: auto 1fr;
        gap: 1rem 1.25rem;
        padding: 1.5rem 0;
    }

    .story-entry:hover {
        padding-left: 0;
    }

    .story-entry__index {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0.25rem;
        font-size: 0.6875rem;
    }

    .story-entry__media {
        grid-column: 2;
        grid-row: 1;
    }

    .story-entry__body {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 0.6rem;
    }

    .story-entry__title {
        font-size: 1.375rem;
    }

    .story-entry__excerpt {
        font-size: 0.9375rem;
    }
}

/* Blog List Hover Effects (legacy) */
.blog-list:has(.blog-item:hover) .blog-item:not(:hover) {
    opacity: 0.2;
    filter: blur(2px);
}

/* Showreel Responsive 16:9 */
.showreel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showreel-wrapper {
    position: relative;
    width: min(100%, 1600px);
    max-height: 85vh;
    aspect-ratio: 16 / 9;
    height: auto;
}

.portfolio-header-video--showreel {
    background: #1d0446;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    isolation: isolate;
}

/* Background Vimeo — no poster fade; single video layer, UI cropped */
.portfolio-header-video--showreel .portfolio-header-video__iframe {
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    transform: scale(1.12);
    transform-origin: center center;
}

.showreel-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Spectrum bars — 40-column audio-wave (homepage) */
.bar-spectrum {
    width: 100%;
    height: 50vh;
    max-height: 50vh;
}

.bar-spectrum__track {
    display: flex;
    align-items: center;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    gap: 0;
    will-change: transform, opacity;
}

.bar-spectrum__bar {
    flex: 1;
    min-width: 0;
    height: var(--bar-height, 50%);
    align-self: center;
    transform-origin: center center;
    will-change: transform;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(69, 39, 118, 0.85) 22%,
        #00ffeb 50%,
        rgba(69, 39, 118, 0.85) 78%,
        transparent 100%
    );
}

/* Portfolio header Vimeo — poster first, iframe fades in when ready */
.portfolio-header-video {
    background: #1D0446;
}

.portfolio-header-video__poster {
    z-index: 1;
    transition: opacity 0.5s ease;
}

.portfolio-header-video__iframe {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.portfolio-header-video.is-playing .portfolio-header-video__iframe {
    opacity: 1;
}

.portfolio-header-video.is-playing .portfolio-header-video__poster {
    opacity: 0;
}

/* Globe Container Styles */
#mainFooter {
    margin-top: 0;
    border-top: 1px solid #000;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
}

#globe-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Journal single — editorial type: Galano display, General Sans reading */
.journal-article {
    --journal-paper: #ffffff;
    --journal-ink: #c5aafb;
    --journal-mute: rgba(197, 170, 251, 0.62);
    --journal-accent: #00ffeb;
    --journal-measure: 100%;
}

.journal-article__header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
}

.journal-article__kicker {
    margin: 0 0 1.25rem;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--journal-accent);
}

.journal-article__title {
    margin: 0;
    max-width: 13.5ch;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-wrap: balance;
    color: var(--journal-paper);
}

.journal-article__dek {
    margin: 1.5rem 0 0;
    max-width: 28ch;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--journal-ink);
}

.journal-article__date {
    display: block;
    margin-top: 1.5rem;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--journal-mute);
}

.journal-article__cover {
    position: relative;
    width: 100%;
    height: 60vh;
    margin: 0 0 5rem;
    overflow: hidden;
}

.journal-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .journal-article__cover {
        height: 85vh;
    }
}

.journal-article__body {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.journal-article__content,
#content {
    max-width: var(--journal-measure);
    color: var(--journal-ink);
}

.journal-article__content > *:first-child {
    margin-top: 0;
}

.journal-article__content p,
#content p {
    margin: 0 0 1.35em;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.125rem, 1.15vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.011em;
    text-wrap: pretty;
    color: var(--journal-ink);
}

.journal-article__content > p:first-child,
#content > p:first-child {
    margin-bottom: 1.75em;
    font-size: clamp(1.25rem, 1.55vw, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.018em;
    color: var(--journal-paper);
}

.journal-article__content p:last-child,
#content p:last-child {
    margin-bottom: 0;
}

.journal-article__content h2,
.journal-article__content h3,
.journal-article__content h4,
#content h2,
#content h3,
#content h4 {
    font-family: "Galano", "Publica Play", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: var(--journal-paper);
}

.journal-article__content h2,
#content h2 {
    margin: 2.75em 0 0.55em;
    font-size: clamp(1.75rem, 3.2vw, 2.625rem);
    line-height: 1.05;
}

.journal-article__content h3,
#content h3 {
    margin: 2.15em 0 0.5em;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.15;
    color: var(--journal-accent);
}

.journal-article__content h4,
#content h4 {
    margin: 1.75em 0 0.45em;
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.journal-article__content ul,
.journal-article__content ol,
#content ul,
#content ol {
    margin: 0 0 1.5em;
    padding-left: 1.15em;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.125rem, 1.15vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.011em;
    color: var(--journal-ink);
}

.journal-article__content li,
#content li {
    margin-bottom: 0.45em;
    padding-left: 0.25em;
}

.journal-article__content li::marker,
#content li::marker {
    color: var(--journal-accent);
}

.journal-article__content a,
#content a {
    color: var(--journal-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: rgba(0, 255, 235, 0.45);
}

.journal-article__content a:hover,
#content a:hover {
    text-decoration-color: var(--journal-accent);
}

.journal-article__content blockquote,
#content blockquote {
    margin: 2.5em 0;
    padding: 0;
    max-width: 16ch;
    border: 0;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--journal-accent);
}

.journal-article__content strong,
#content strong {
    font-weight: 600;
    color: var(--journal-paper);
}

.journal-article__content em,
#content em {
    font-style: italic;
    color: var(--journal-paper);
}

.journal-article__content img,
#content img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 2.5em 0;
    border-radius: 1.25rem;
}

.journal-article__content hr,
#content hr {
    width: 3rem;
    margin: 2.75em 0;
    border: 0;
    border-top: 1px solid rgba(197, 170, 251, 0.28);
}

.journal-article__author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--journal-measure);
    margin-top: 4.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 170, 251, 0.16);
}

.journal-article__author-avatar {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid rgba(197, 170, 251, 0.35);
    background: #452776;
}

.journal-article__author-avatar img,
.journal-article__author-avatar span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-article__author-name {
    margin: 0 0 0.2rem;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--journal-paper);
}

.journal-article__author-role {
    margin: 0;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--journal-mute);
}

.journal-article__content {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .journal-article__header {
        margin-bottom: 2.25rem;
    }

    .journal-article__cover {
        height: 52vh;
        margin-bottom: 3rem;
    }

    .journal-article__title {
        max-width: none;
    }
}

/* Desktop nav — slide-up label on hover (::after enters from below) */
#mainHeader .nav-link,
#mainHeader #connectBtn,
#mainHeader .online-status__label,
#mainHeader .menu-line,
#mainHeader #navLogoImg {
    transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.nav-link--slide {
    display: inline-block;
    overflow: hidden;
    line-height: 1.25;
    height: 1.25em;
    vertical-align: middle;
    text-decoration: none;
    transition: opacity 0.45s ease;
}

.nav-link--slide:hover {
    opacity: 1;
}

.nav-link--slide .nav-link__label,
.nav-link--slide::after {
    display: block;
    line-height: 1.25;
    filter: blur(0);
    opacity: 1;
    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, filter, opacity;
}

.nav-link--slide::after {
    content: attr(data-label);
    filter: blur(6px);
    opacity: 0.65;
}

.nav-link--slide:hover .nav-link__label,
.nav-link--slide:hover::after {
    transform: translate3d(0, -100%, 0);
}

.nav-link--slide:hover .nav-link__label {
    filter: blur(5px);
    opacity: 0;
}

.nav-link--slide:hover::after {
    filter: blur(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link--slide .nav-link__label,
    .nav-link--slide::after {
        transition: none;
        filter: none;
        opacity: 1;
    }

    .nav-link--slide:hover .nav-link__label,
    .nav-link--slide:hover::after {
        transform: none;
        filter: none;
        opacity: 1;
    }
}

/* --- SMOOTH FADE-UP 3D PAGE TRANSITION --- */
#kh-page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
    /* Hidden by default; activated via .is-active */
    visibility: hidden;
}

#kh-page-transition.is-active {
    visibility: visible;
    pointer-events: auto;
}

 /* Covers the very first paint of a freshly loaded page (no white flash).
   Visual cover only — does not trap clicks if JS fails to reveal it. */
#kh-page-transition.kh-cover-initial {
    visibility: visible;
    pointer-events: none;
}

#kh-page-transition__panel {
    position: absolute;
    inset: -2px;
    background: #1D0446;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    #kh-page-transition,
    #kh-page-transition.is-active {
        display: none !important;
    }
}

/* Work index → project: shared image morph */
#kh-work-morph {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

#kh-work-morph__img {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    transform-origin: 0 0;
    will-change: transform, width, height, opacity;
    backface-visibility: hidden;
    box-shadow: none;
}

body.kh-work-morph-boot #kh-page-transition {
    visibility: hidden !important;
}

body.kh-work-morph-active .kh-work-morph-hero {
    opacity: 0;
}

body.kh-work-morph-active #work-canvas canvas {
    opacity: 0;
}

body.kh-work-morph-active #mainHeader {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #kh-work-morph {
        display: none !important;
    }
}

/* Header online status */
.online-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e, 0 0 14px rgba(34, 197, 94, 0.75);
    animation: online-status-blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes online-status-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px #22c55e, 0 0 14px rgba(34, 197, 94, 0.75);
    }
    50% {
        opacity: 0.35;
        box-shadow: 0 0 3px #22c55e, 0 0 6px rgba(34, 197, 94, 0.35);
    }
}

/* --- WORK / PORTFOLIO 3D SPIRAL --- */
.work {
    position: relative;
    background: #1D0446;
    /* Total height is set by JS (one viewport of scroll per project). */
}

.work__viewport {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #1D0446;
}

.work__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.work__canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.work__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(7rem, 14vh, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 8vh, 5rem);
    color: #fff;
}

.work__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.work__count {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

.work__count strong {
    color: #C5AAFB;
    font-weight: 600;
}

.work__hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.work__hint-line {
    display: inline-block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: work-hint-slide 2.4s ease-in-out infinite;
}

@keyframes work-hint-slide {
    0%, 100% { transform: translateX(0); opacity: 0.4; }
    50% { transform: translateX(8px); opacity: 1; }
}

.work__footer {
    max-width: min(90vw, 760px);
}

.work__cat {
    color: #C5AAFB;
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
}

.work__title {
    font-family: "Galano", "Publica Play", sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.work__cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    border-radius: 9999px;
    background: #c5aafb;
    color: #452776;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.work__cta:hover {
    transform: scale(1.05);
    background: #fff;
    color: #1d0446;
}

.work__cta:active {
    transform: scale(0.96);
}

.work__empty {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .work__hint-line {
        animation: none;
    }
}

/* ─── Stories index (/journal/) — tag filter + 3-column grid ─── */
.stories-index__intro {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.stories-index__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(197, 170, 251, 0.65);
}

.stories-index__title {
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    max-width: 12ch;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.625rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #c5aafb;
}

.stories-index__lede {
    margin: 0;
    max-width: 36ch;
    font-family: "General Sans", "figtree", sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: rgba(197, 170, 251, 0.7);
}

.stories-index__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.625rem 0.75rem;
    max-width: var(--site-max);
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.stories-index__tag {
    appearance: none;
    border: 1px solid rgba(197, 170, 251, 0.35);
    border-radius: 999px;
    background: transparent;
    color: rgba(197, 170, 251, 0.85);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.65rem 1.25rem;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}

.stories-index__tag:hover {
    border-color: #c5aafb;
    color: #fff;
}

.stories-index__tag.is-active {
    background: #c5aafb;
    border-color: #c5aafb;
    color: #452776;
}

.stories-index__tag:focus-visible {
    outline: 2px solid #00ffeb;
    outline-offset: 3px;
}

.stories-index__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.stories-index__card {
    min-width: 0;
}

.stories-index__card[hidden] {
    display: none;
}

.stories-index__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.stories-index__card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(197, 170, 251, 0.12);
}

.stories-index__card-image,
.stories-index__card-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stories-index__card-fallback {
    background: linear-gradient(160deg, #2a0860 0%, #1d0446 50%, #452776 100%);
}

.stories-index__card-link:hover .stories-index__card-image {
    transform: scale(1.04);
}

.stories-index__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 0 0;
}

.stories-index__card-tag {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    text-transform: uppercase;
}

.stories-index__card-date {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(197, 170, 251, 0.55);
}

.stories-index__card-title {
    margin: 0;
    font-family: "Galano", "Publica Play", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #c5aafb;
}

.stories-index__card-excerpt {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(197, 170, 251, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stories-index__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00ffeb;
}

.stories-index__card-cta-arrow {
    transition: transform 0.25s ease;
}

.stories-index__card-link:hover .stories-index__card-cta-arrow {
    transform: translateX(4px);
}

.stories-index__empty {
    color: rgba(197, 170, 251, 0.7);
    font-size: 1.125rem;
}

@media (max-width: 1023px) {
    .stories-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .stories-index__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stories-index__tags {
        justify-content: center;
    }
}