/* ==========================================================================
   Wilhelm Gerner — Portfolio
   Dark high-tech theme · lime accent · glassmorphism · no frameworks
   ========================================================================== */

/* ---------- Local fonts (no external requests) --------------------------- */

@font-face {
    font-family: 'Rajdhani';
    src: url('/assets/fonts/rajdhani-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Rajdhani';
    src: url('/assets/fonts/rajdhani-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Rajdhani';
    src: url('/assets/fonts/rajdhani-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ------------------------------------------------- */

:root {
    --bg-0: #04060c;
    --bg-1: #080d18;
    --bg-2: #0d1424;
    --glass: rgba(13, 20, 36, 0.6);
    --glass-strong: rgba(10, 16, 30, 0.85);
    --line: rgba(148, 190, 255, 0.12);
    --line-strong: rgba(148, 190, 255, 0.25);

    --accent: #a3ff3c;
    --accent-soft: rgba(163, 255, 60, 0.12);
    --accent-line: rgba(163, 255, 60, 0.35);
    --cyan: #3ce0ff;
    --cyan-soft: rgba(60, 224, 255, 0.1);
    --violet: #a06bff;

    --text-0: #eef4ff;
    --text-1: #aab8d0;
    --text-2: #75849e;

    --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius: 14px;
    --radius-lg: 20px;
    --container: 1180px;
    --nav-height: 72px;
    --shadow-glow: 0 0 40px rgba(163, 255, 60, 0.08);
    --transition: 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset & base -------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
}

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #c6ff7d;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-0);
    letter-spacing: 0.01em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }

p { max-width: 68ch; }

ul, ol { list-style: none; }

::selection {
    background: var(--accent);
    color: var(--bg-0);
}

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

.container {
    width: min(var(--container), 100% - 3rem);
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg-0);
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
    color: var(--bg-0);
}

/* Fixed futuristic grid backdrop */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(60, 224, 255, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 110%, rgba(160, 107, 255, 0.05), transparent 60%),
        linear-gradient(rgba(148, 190, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 190, 255, 0.035) 1px, transparent 1px),
        var(--bg-0);
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
    mask-image: linear-gradient(to bottom, black 0%, black 70%, rgba(0,0,0,0.6) 100%);
}

/* ---------- Buttons ------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg-0);
    background: linear-gradient(120deg, var(--accent), #7ee61f);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 0 0 1px rgba(163, 255, 60, 0.4), 0 8px 30px rgba(163, 255, 60, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 0 0 1px rgba(163, 255, 60, 0.6), 0 12px 40px rgba(163, 255, 60, 0.25);
    color: var(--bg-0);
}

.btn--ghost {
    background: transparent;
    color: var(--text-0);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-line), 0 8px 30px rgba(163, 255, 60, 0.08);
}

.btn--small {
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
}

/* ---------- Chips ---------------------------------------------------------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chips li {
    padding: 0.22rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid rgba(60, 224, 255, 0.25);
    border-radius: 999px;
    white-space: nowrap;
}

.chips--accent li {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

.chips--plain li {
    color: var(--text-1);
    background: rgba(148, 190, 255, 0.06);
    border-color: var(--line);
}

/* ---------- Navigation ----------------------------------------------------- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--nav-height);
    background: rgba(4, 6, 12, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background var(--transition);
}

.site-nav__inner {
    width: min(1560px, 100% - 3rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-0);
}

.site-nav__mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(163, 255, 60, 0.12), transparent 60%);
    box-shadow: var(--shadow-glow);
}

.site-nav__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.site-nav__name b {
    color: var(--accent);
    font-weight: 700;
}

.site-nav__menu ul {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

.site-nav__menu a {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-1);
    padding: 0.4rem 0;
    position: relative;
    white-space: nowrap;
}

/* separate the utility cluster (language + CTA) from primary nav links */
.site-nav__lang {
    padding-left: 1.3rem;
    margin-left: 0.3rem;
    border-left: 1px solid var(--line);
}

.site-nav__menu a:hover {
    color: var(--text-0);
}

.site-nav__menu a[aria-current="page"] {
    color: var(--accent);
}

.site-nav__menu a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.site-nav__cta a { color: var(--bg-0); }

.site-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--text-0);
    transform: translateX(-50%);
    transition: transform var(--transition), opacity var(--transition);
}

.site-nav__toggle-bar { top: 50%; margin-top: -1px; }
.site-nav__toggle-bar::before { top: -7px; }
.site-nav__toggle-bar::after { top: 7px; }

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs ----------------------------------------------------- */

.breadcrumbs {
    padding-top: calc(var(--nav-height) + 1.4rem);
    font-size: 0.92rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.4rem;
    color: var(--text-2);
}

.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li[aria-current] { color: var(--text-0); }

/* ---------- Hero (homepage) -------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: calc(var(--nav-height) + 4rem) 0 1.6rem;
    overflow: hidden;
}

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

.hero__glow {
    position: absolute;
    z-index: -1;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.hero__glow--green { background: rgba(163, 255, 60, 0.18); top: -20%; right: -15%; }
.hero__glow--cyan  { background: rgba(60, 224, 255, 0.14); bottom: -30%; left: -10%; }

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: center;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.hero__kicker::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.hero__title span {
    display: block;
}

.hero__title .is-gradient {
    background: linear-gradient(100deg, var(--accent) 10%, var(--cyan) 60%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin: 1.5rem 0 2.2rem;
    font-size: 1.12rem;
    color: var(--text-1);
    max-width: 54ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.6rem;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    border-top: 1px solid var(--line);
    padding-top: 1.6rem;
}

.hero__stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-0);
}

.hero__stat span {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
}

.hero__portrait {
    position: relative;
    justify-self: center;
}

.hero__portrait::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 24px;
    background: linear-gradient(140deg, var(--accent-line), transparent 40%, rgba(60, 224, 255, 0.3));
    z-index: -1;
    filter: blur(2px);
}

.hero__portrait img {
    width: min(360px, 70vw);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--shadow-glow);
}

/* Sits below the hero visual — no overlap with the image content. */
.hero__badge {
    display: block;
    margin-top: 0.9rem;
    padding: 0.8rem 1.1rem;
    background: var(--glass-strong);
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
    width: min(360px, 70vw);
    transition: border-color var(--transition), transform var(--transition);
}

a.hero__badge:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero__badge b {
    display: block;
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1.02rem;
    letter-spacing: 0.04em;
}

.hero__badge span {
    font-size: 0.82rem;
    color: var(--text-1);
}

.hero__scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-2);
    writing-mode: vertical-rl;
}

/* ---------- Section scaffolding ---------------------------------------------- */

.section {
    padding: 2.6rem 0;
    position: relative;
}

.section--tint {
    background:
        linear-gradient(180deg, transparent, rgba(13, 20, 36, 0.5) 12%, rgba(13, 20, 36, 0.5) 88%, transparent);
}

.section__head {
    margin-bottom: 1.8rem;
    max-width: 760px;
}

.section__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.8rem;
}

.section__kicker::before {
    content: '//';
    color: var(--accent);
}

.section__head p {
    margin-top: 1rem;
    color: var(--text-1);
}

/* ---------- Journey timeline (homepage) --------------------------------------- */

.journey {
    position: relative;
    display: grid;
    gap: 2.6rem;
}

.journey::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent-line), var(--line) 60%, transparent);
}

.journey__step {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.6rem;
    align-items: center;
}

.journey__num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-1);
    border: 1px solid var(--accent-line);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    z-index: 1;
}

.journey__card {
    padding: 1.8rem 2rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.journey__card h3 { margin-bottom: 0.7rem; }
.journey__card p { color: var(--text-1); font-size: 0.98rem; }
.journey__card .btn { margin-top: 1.3rem; }

.journey__media img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.journey__step--soon .journey__card {
    border-style: dashed;
    border-color: var(--line-strong);
}

/* ---------- Featured project rows (homepage portfolio) ------------------------- */

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

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

/* the portfolio→more-projects junction stacked three paddings on top of
   each other (feature + section + section) — trim it specifically */
#portfolio {
    padding-bottom: 0.8rem;
}
#portfolio + .section {
    padding-top: 1.2rem;
}

.feature:nth-child(even) .feature__media { order: 2; }

.feature__num {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-line);
    line-height: 1;
}

.feature__body .project-card__category { margin: 0.8rem 0 0.3rem; }

.feature__body h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.4rem;
}

.feature__tagline {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.feature__body p { font-size: 0.99rem; }
.feature__body .btn { margin-top: 1.6rem; }

.feature__media {
    position: relative;
}

.feature__media img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 400ms ease, box-shadow 400ms ease;
}

.feature__media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(163, 255, 60, 0.08), transparent 45%);
    pointer-events: none;
}

.feature:hover .feature__media img {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), var(--shadow-glow);
}

/* ---------- Project cards grid -------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.project-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

/* per-project crop corrections: the shared 16:9 box crops these source
   images too aggressively (or in the wrong spot) at the default center. */
.project-card__media--animvrig-1 img {
    object-position: 50% 20%; /* keep the raised hand and head in frame */
}


.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.project-card:hover .project-card__media img {
    transform: scale(1.05);
}

.project-card__index {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(238, 244, 255, 0.6);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.4rem 1.5rem 1.5rem;
    flex: 1;
}

.project-card__category {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-card__title { color: var(--text-0); }

.project-card__tagline {
    font-size: 0.94rem;
    color: var(--text-1);
}

.project-card__blurb {
    font-size: 0.92rem;
    color: var(--text-2);
}

.project-card__body .chips { margin-top: auto; padding-top: 0.7rem; }

.project-card__more {
    margin-top: 0.9rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-size: 0.95rem;
}

.project-card__more span {
    display: inline-block;
    transition: transform var(--transition);
}

.project-card:hover .project-card__more span {
    transform: translateX(5px);
}

/* ---------- Info cards (Other Informations) -------------------------------------- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.8rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--transition), border-color var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
}

.info-card img {
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
}

.info-card h3 { font-size: 1.25rem; }
.info-card p { font-size: 0.94rem; }
.info-card a.more {
    margin-top: auto;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ---------- CTA band ---------------------------------------------------------------- */

.cta-band {
    margin: 1rem 0 0;
    padding: 2.2rem 0;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(163, 255, 60, 0.08), transparent),
        linear-gradient(180deg, rgba(13, 20, 36, 0.6), rgba(13, 20, 36, 0.2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { margin: 0 auto 2rem; }

/* ---------- Sub-page hero ------------------------------------------------------------- */

.page-hero {
    padding: calc(var(--nav-height) + 5rem) 0 3.4rem;
    position: relative;
    overflow: hidden;
}

.page-hero--flush { padding-top: 2.4rem; }

/* Legal pages: hero is just a short heading + note, no need for the full gap into the text */
.page-privacy .page-hero,
.page-imprint .page-hero {
    padding-bottom: 1rem;
}
.page-privacy .page-hero + .section,
.page-imprint .page-hero + .section {
    padding-top: 2.6rem;
}

.page-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.page-hero__kicker::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.page-hero__sub {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.04em;
    margin-top: 0.6rem;
}

.page-hero__lead {
    margin-top: 1.4rem;
    max-width: 72ch;
    font-size: 1.05rem;
}

/* ---------- Project detail layout ------------------------------------------------------ */

.project-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    margin-bottom: 3rem;
}

.project-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.project-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 12, 0.85));
    pointer-events: none;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    align-items: start;
}

.prose h2 {
    font-size: 1.6rem;
    margin: 2.4rem 0 1rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent);
}

.prose h2:first-child { margin-top: 0; }

.prose p + p { margin-top: 1rem; }

.prose blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid var(--cyan);
    background: var(--cyan-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-0);
    font-style: italic;
}

.prose ul {
    margin: 1rem 0 1rem 0.2rem;
    display: grid;
    gap: 0.45rem;
}

.prose ul li {
    padding-left: 1.4rem;
    position: relative;
}

.prose ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Meta side panel */
.meta-panel {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    display: grid;
    gap: 1.5rem;
    padding: 1.8rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.meta-panel h2 {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.6rem;
}

.meta-panel section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.55rem;
}

.meta-panel .role {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-0);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin: 2rem 0;
}

.gallery figure {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 400ms ease;
}

.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
    padding: 0.7rem 1rem;
    font-size: 0.86rem;
    color: var(--text-2);
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.gallery--tall img { aspect-ratio: auto; }

/* Click-to-load video embeds (privacy friendly) */
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--bg-1);
    margin: 1.2rem 0 0.6rem;
}

.video-embed img,
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.video-embed__btn {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.9rem;
    justify-items: center;
    width: 100%;
    background: linear-gradient(180deg, rgba(4, 6, 12, 0.25), rgba(4, 6, 12, 0.75));
    border: 0;
    cursor: pointer;
    color: var(--text-0);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: background var(--transition);
}

.video-embed__btn:hover { background: linear-gradient(180deg, rgba(4, 6, 12, 0.1), rgba(4, 6, 12, 0.6)); }

.video-embed__btn::before {
    content: '';
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background:
        linear-gradient(120deg, var(--accent), #7ee61f);
    clip-path: none;
    box-shadow: 0 0 40px rgba(163, 255, 60, 0.45);
    -webkit-mask: radial-gradient(circle, black 100%, black 100%);
    position: relative;
    display: grid;
}

.video-embed__btn::after {
    content: '';
    position: absolute;
    top: calc(50% - 26px);
    left: 50%;
    transform: translate(-40%, 0);
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent var(--bg-0);
}

.video-note {
    font-size: 0.8rem;
    color: var(--text-2);
    margin-bottom: 1.6rem;
}

/* Prev / next pager */
.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 3.4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.pager a {
    display: grid;
    gap: 0.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-1);
    transition: border-color var(--transition), transform var(--transition);
}

.pager a:hover {
    border-color: var(--accent-line);
    transform: translateY(-3px);
}

.pager a span {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-2);
}

.pager a b {
    font-family: var(--font-display);
    color: var(--text-0);
    font-size: 1.08rem;
}

.pager__next { text-align: right; grid-column: 2; }
.pager__prev { grid-column: 1; }

/* Related projects */
.related {
    margin-top: 4rem;
}

.related h2 { margin-bottom: 1.6rem; }

/* ---------- About page ------------------------------------------------------------------ */

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 3rem;
    align-items: start;
}

.about-intro__portrait {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.about-intro__portrait img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--shadow-glow);
}

.about-intro__portrait figcaption {
    margin-top: 0.7rem;
    text-align: center;
    font-family: var(--font-display);
    color: var(--text-2);
    letter-spacing: 0.08em;
}

.portrait-caption__line { display: block; }

.portrait-caption__egg {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: var(--accent);
    font-size: 0.85em;
    letter-spacing: 0.04em;
    transition: opacity var(--transition), max-height var(--transition), margin-top var(--transition);
}

.portrait-caption__egg::before {
    content: '// ';
}

.about-intro__portrait:hover .portrait-caption__egg {
    opacity: 1;
    max-height: 2em;
    margin-top: 0.35em;
}

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

.skills-grid li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-0);
    transition: border-color var(--transition), transform var(--transition);
}

.skills-grid li::before {
    content: '◆';
    font-size: 0.6rem;
    color: var(--accent);
}

.skills-grid li:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.timeline {
    display: grid;
    gap: 1.4rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent-line), var(--line));
}

.timeline__item {
    position: relative;
    padding-left: 2.2rem;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 2px solid var(--accent);
    box-shadow: 0 0 14px rgba(163, 255, 60, 0.4);
}

.timeline__date {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.timeline__item h3 { margin: 0.2rem 0 0.4rem; }
.timeline__item p, .timeline__item ul { font-size: 0.96rem; }

.timeline__item ul {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.3rem;
}

.timeline__item ul li {
    padding-left: 1.2rem;
    position: relative;
}

.timeline__item ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* ---------- Contact page ------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.contact-aside {
    display: grid;
    gap: 1.4rem;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-aside a.mail {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    word-break: break-all;
}

.form {
    display: grid;
    gap: 1.2rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form label {
    display: grid;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-0);
    font-size: 0.95rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--text-0);
    background: rgba(4, 6, 12, 0.6);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(163, 255, 60, 0.15);
}

.form textarea { min-height: 170px; resize: vertical; }

.form__consent {
    display: flex !important;
    grid-template-columns: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem !important;
    font-weight: 400 !important;
    font-family: var(--font-body) !important;
    color: var(--text-1) !important;
    font-size: 0.9rem !important;
}

.form__consent input {
    margin-top: 0.25rem;
    accent-color: var(--accent);
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

/* Honeypot — hidden from humans, tempting for bots */
.form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 1rem 1.3rem;
    border-radius: 10px;
    border: 1px solid;
    font-size: 0.96rem;
}

.alert--success {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.alert--error {
    color: #ff7a7a;
    border-color: rgba(255, 122, 122, 0.4);
    background: rgba(255, 122, 122, 0.08);
}

.alert ul { margin-top: 0.4rem; padding-left: 1.1rem; list-style: disc; }

/* ---------- Legal pages ----------------------------------------------------------------------- */

.legal {
    max-width: 800px;
}

.legal h2 {
    font-size: 1.35rem;
    margin: 2.2rem 0 0.8rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--accent);
}

.legal p + p { margin-top: 0.9rem; }

.legal address { font-style: normal; line-height: 1.9; }

.legal ul {
    margin: 0.8rem 0 0.8rem 1.2rem;
    list-style: disc;
    display: grid;
    gap: 0.4rem;
}

/* ---------- Footer ------------------------------------------------------------------------------ */

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(163, 255, 60, 0.05), transparent),
        var(--bg-1);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.1fr;
    gap: 2rem;
    padding: 3.4rem 0 2.4rem;
}

.site-footer__brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.site-footer__brand p {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-0);
}

.site-footer__brand span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-2);
    font-family: var(--font-body);
}

.site-footer h2 {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 1rem;
}

.site-footer__col ul {
    display: grid;
    gap: 0.55rem;
}

.site-footer__col a {
    color: var(--text-1);
    font-size: 0.95rem;
}

.site-footer__col a:hover { color: var(--accent); }

.site-footer__email {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-all;
}

.site-footer__mail p {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-2);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-2);
}

.site-footer__top { color: var(--text-2); }

/* ---------- Reveal-on-scroll ---------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger support: children reveal one after another */
[data-stagger] > .reveal:nth-child(2) { transition-delay: 90ms; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 180ms; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 270ms; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 360ms; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 450ms; }

/* ---------- Responsive ------------------------------------------------------------------------------ */

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__portrait { justify-self: start; }
    .project-layout { grid-template-columns: 1fr; }
    .meta-panel { position: static; }
    .about-intro { grid-template-columns: 1fr; }
    .about-intro__portrait { max-width: 380px; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* The nav collapses early: with six items plus language switcher and CTA it
   gets cramped well above classic mobile widths. */
@media (max-width: 1080px) {
    .site-nav__toggle { display: block; }

    .site-nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 10, 18, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    }

    .site-nav__menu.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .site-nav__menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.8rem 1.5rem 1.4rem;
    }

    .site-nav__menu li a {
        display: block;
        padding: 0.85rem 0.2rem;
        font-size: 1.15rem;
    }

    .site-nav__lang {
        margin: 1rem 0 0;
        padding: 0.9rem 0.2rem 0;
        border-left: none;
        border-top: 1px solid var(--line);
        justify-content: center;
    }
    .site-nav__cta { margin-top: 0.6rem; }
}

@media (max-width: 820px) {
    .journey::before { display: none; }
    .journey__step { grid-template-columns: 1fr; gap: 1rem; }
    .journey__num { width: 44px; height: 44px; }
    .journey__media { order: -1; }

    .feature,
    .feature:nth-child(even) { grid-template-columns: 1fr; gap: 1.6rem; }
    .feature:nth-child(even) .feature__media { order: 0; }

    .contact-layout { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }

    .hero__scroll { display: none; }
}

@media (max-width: 560px) {
    .section { padding: 3.6rem 0; }
    .hero { padding-top: calc(var(--nav-height) + 2.4rem); }
    .hero__stats { gap: 1.4rem; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; }
    .pager { grid-template-columns: 1fr; }
    .pager__next { grid-column: 1; text-align: left; }
}

/* ==========================================================================
   v2 — Immersive layer: language switcher, portal transitions, depth reveals,
   gateway, chapter band, AI statement, private-projects storm, XR2ACH
   ========================================================================== */

/* ---------- Language switcher ---------------------------------------------- */

.site-nav__lang {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-2);
}

.site-nav__lang a {
    color: var(--text-2);
    font-size: 0.92rem;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
}

.site-nav__lang a:hover { color: var(--text-0); }

.site-nav__lang a[aria-current="true"] {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent-line);
}

/* Private Projects nav item — a door that hums */
.site-nav__menu a.site-nav__private {
    position: relative;
}

.site-nav__menu a.site-nav__private::before {
    content: '';
    position: absolute;
    top: 4px;
    right: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet);
    animation: pp-pulse 2.6s ease-in-out infinite;
}

@keyframes pp-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

/* Transmissions nav item — a receiver light, still catching a signal */
.site-nav__menu a.site-nav__transmissions {
    position: relative;
}

.site-nav__menu a.site-nav__transmissions::before {
    content: '';
    position: absolute;
    top: 4px;
    right: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pp-pulse 1.9s ease-in-out infinite;
}

/* ---------- Scroll progress line ------------------------------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    box-shadow: 0 0 12px rgba(163, 255, 60, 0.6);
    transition: width 80ms linear;
}

/* ---------- Scan-gate page transitions ---------------------------------------
   A fast neon scanline sweeps down while the page dims slightly — quick,
   direct, believable. Total exit time ~210ms before navigation. */

.portal-veil {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: rgba(4, 6, 12, 0.35);
    transition: opacity 150ms ease;
    overflow: hidden;
}

.portal-veil::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -45%;
    height: 40%;
    background:
        linear-gradient(180deg,
            transparent,
            rgba(60, 224, 255, 0.07) 30%,
            rgba(163, 255, 60, 0.22) 49%,
            rgba(163, 255, 60, 0.9) 50%,
            rgba(163, 255, 60, 0.22) 51%,
            rgba(60, 224, 255, 0.07) 70%,
            transparent);
    background-size: 100% 100%, 100% 100%;
    box-shadow: 0 0 40px rgba(163, 255, 60, 0.25);
    will-change: transform;
}

.portal-veil.is-active {
    opacity: 1;
    visibility: visible;
}

.portal-veil.is-active::before {
    animation: gate-sweep 230ms cubic-bezier(0.6, 0, 0.9, 0.5) forwards;
}

@keyframes gate-sweep {
    to { transform: translateY(380%); }
}

/* Arrival: short reverse pulse — the page snaps in from the scan */
@keyframes portal-arrive {
    0%   { opacity: 0; transform: translateY(6px); filter: brightness(1.35) saturate(1.3); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: none; filter: none; }
}

body.portal-arrive main,
body.portal-arrive .site-nav {
    animation: portal-arrive 280ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* ---------- Depth reveal variants -------------------------------------------- */

.reveal--left  { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--zoom  { transform: scale(0.94) translateY(14px); }

.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--zoom.is-visible {
    transform: none;
}

/* ---------- Journey timeline draw + hologram sweep ---------------------------- */

.journey::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1400ms cubic-bezier(0.3, 0.6, 0.3, 1);
}

.journey.is-drawn::before {
    transform: scaleY(1);
}

/* One-time holographic scanline sweep over media when it reveals */
.holo {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.holo::after {
    content: '';
    position: absolute;
    inset: -20% 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(60, 224, 255, 0.16) 46%,
        rgba(163, 255, 60, 0.22) 50%,
        rgba(60, 224, 255, 0.16) 54%,
        transparent 100%);
    transform: translateY(-110%);
    pointer-events: none;
}

.reveal.is-visible .holo::after,
.holo.is-visible::after {
    animation: holo-sweep 1100ms cubic-bezier(0.4, 0, 0.3, 1) 180ms 1 both;
}

@keyframes holo-sweep {
    from { transform: translateY(-110%); }
    to   { transform: translateY(110%); }
}

/* ---------- Subtle glitch accent ----------------------------------------------- */

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.glitch::before { color: var(--cyan); }
.glitch::after  { color: var(--violet); }

.glitch:hover::before,
.is-visible .glitch::before {
    animation: glitch-a 900ms steps(2, end) 1;
}

.glitch:hover::after,
.is-visible .glitch::after {
    animation: glitch-b 900ms steps(2, end) 1;
}

@keyframes glitch-a {
    0%   { opacity: 0.7; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
    30%  { opacity: 0.5; transform: translate(2px, -1px); clip-path: inset(60% 0 15% 0); }
    60%  { opacity: 0.4; transform: translate(-1px, 0);   clip-path: inset(30% 0 45% 0); }
    100% { opacity: 0; transform: none; }
}

@keyframes glitch-b {
    0%   { opacity: 0.6; transform: translate(3px, -1px); clip-path: inset(65% 0 8% 0); }
    40%  { opacity: 0.4; transform: translate(-2px, 1px); clip-path: inset(15% 0 70% 0); }
    100% { opacity: 0; transform: none; }
}

/* ---------- 3D tilt (set via JS custom properties) ------------------------------ */

/* The rotation itself is written as an inline transform by main.js so it can
   override the reveal transitions; CSS only smooths it. */
@media (hover: hover) and (pointer: fine) {
    [data-tilt] {
        transition: transform 180ms ease-out, border-color var(--transition), box-shadow var(--transition);
        will-change: transform;
    }
}

/* ---------- Data-stream section divider ------------------------------------------ */

.data-stream {
    position: relative;
}

.data-stream::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg,
            transparent 0 118px,
            rgba(60, 224, 255, 0.05) 118px 119px,
            transparent 119px 240px);
    mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
    animation: stream-drift 14s linear infinite;
}

@keyframes stream-drift {
    from { background-position: 0 0; }
    to   { background-position: 240px 0; }
}

/* ---------- Project Gateway -------------------------------------------------------- */

.gateway {
    position: relative;
    padding: 1.2rem 0;
    overflow: hidden;
}

.gateway__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.gateway__rings {
    position: relative;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
}

.gateway__rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
}

.gateway__rings span:nth-child(1) {
    border-style: dashed;
    animation: ring-spin 26s linear infinite;
}

.gateway__rings span:nth-child(2) {
    inset: 12px;
    border-color: rgba(60, 224, 255, 0.35);
    border-style: dotted;
    animation: ring-spin 18s linear infinite reverse;
}

.gateway__rings span:nth-child(3) {
    inset: 27px;
    border-color: rgba(160, 107, 255, 0.3);
    animation: ring-pulse 4s ease-in-out infinite;
}

.gateway__core {
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 255, 60, 0.8), rgba(163, 255, 60, 0.05) 70%);
    box-shadow: 0 0 50px rgba(163, 255, 60, 0.45);
    animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-spin  { to { transform: rotate(360deg); } }
@keyframes ring-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.85; }
    50%      { transform: scale(1.06); opacity: 1; }
}

.gateway__label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--cyan);
}

.gateway h2 {
    margin-top: 0.4rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.gateway p {
    margin: 0.5rem 0 0;
    color: var(--text-2);
    max-width: 56ch;
}

/* ---------- Chapter band: After the Master ------------------------------------------ */

.chapter {
    position: relative;
    margin: 1rem 0;
    padding: 2.4rem 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(160, 107, 255, 0.10), transparent 42%),
        linear-gradient(295deg, rgba(163, 255, 60, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(13, 20, 36, 0.75), rgba(8, 13, 24, 0.9));
}

.chapter::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(148, 190, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 190, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black, transparent);
    pointer-events: none;
}

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

.chapter__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 0.9rem;
}

.chapter__kicker::after {
    content: '→';
    color: var(--accent);
}

.chapter h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.chapter__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0;
}

.chapter p { color: var(--text-1); }
.chapter p + p { margin-top: 0.9rem; }
.chapter .btn { margin-top: 1.6rem; }

.chapter__visual {
    position: relative;
}

.chapter__visual img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(163, 255, 60, 0.06);
}

/* ---------- AI statement band -------------------------------------------------------- */

.statement {
    position: relative;
    padding: 2.4rem 0;
}

.statement__card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.6rem 2.8rem;
    background: var(--glass);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.statement__card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--cyan), var(--accent));
}

.statement__prompt {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-2);
    margin-bottom: 1.2rem;
}

.statement__prompt b { color: var(--accent); }

.statement__prompt .cursor {
    display: inline-block;
    width: 9px;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink { 50% { opacity: 0; } }

.statement__quote {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-0);
    max-width: none;
}

.statement__quote em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.statement__body { margin-top: 1.4rem; }
.statement__body p + p { margin-top: 0.9rem; }

/* ---------- Private Projects: storm & sealed slots ------------------------------------ */

.storm-hero {
    position: relative;
    display: grid;
    align-items: center;
    padding: calc(var(--nav-height) + 4rem) 0 3.4rem;
    overflow: hidden;
    isolation: isolate;
}

/* keep the transition into the sealed slots tight — no arbitrary hero min-height slack */
.storm-hero + .section {
    padding-top: 3rem;
}

.storm-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.storm-hero__flash {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 50% 40% at var(--flash-x, 70%) 8%, rgba(215, 230, 255, 0.55), rgba(140, 110, 255, 0.22) 45%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.storm-hero__flash.is-flashing {
    animation: storm-flash 640ms ease-out 1;
}

@keyframes storm-flash {
    0%   { opacity: 0; }
    8%   { opacity: 0.9; }
    18%  { opacity: 0.12; }
    30%  { opacity: 0.55; }
    100% { opacity: 0; }
}

/* fine scanlines over the whole private area */
.scanlined::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    background: repeating-linear-gradient(180deg,
        transparent 0 3px,
        rgba(4, 6, 12, 0.18) 3px 4px);
    opacity: 0.5;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.6rem;
}

.slot-card {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(160, 107, 255, 0.06), transparent 55%),
        var(--glass);
    border: 1px solid rgba(160, 107, 255, 0.22);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.slot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg,
        transparent 0 5px,
        rgba(148, 190, 255, 0.03) 5px 6px);
    pointer-events: none;
}

.slot-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    left: -80%;
    background: linear-gradient(100deg, transparent, rgba(160, 107, 255, 0.10), transparent);
    transform: skewX(-16deg);
    transition: left 700ms ease;
    pointer-events: none;
}

.slot-card:hover {
    transform: translateY(-5px);
    border-color: rgba(160, 107, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(160, 107, 255, 0.12);
}

.slot-card:hover::after { left: 120%; }

.slot-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--violet);
}

.slot-card__status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pp-pulse 2.2s ease-in-out infinite;
}

.slot-card__glyph {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(238, 244, 255, 0.35);
    text-align: center;
    margin: 1.2rem 0;
    user-select: none;
}

.slot-card__glyph--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(238, 244, 255, 0.4);
}

.slot-card__glyph--icon svg {
    width: clamp(96px, 24vw, 140px);
    height: auto;
    overflow: visible;
}

.slot-card__glyph--icon path,
.slot-card__glyph--icon rect,
.slot-card__glyph--icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.slot-card__glyph--icon .cybersnake__eye {
    fill: currentColor;
    stroke: none;
}

.slot-card__glyph--icon .cybersnake__pulse {
    stroke: var(--accent);
    stroke-width: 2.2;
    stroke-dasharray: 8 210;
    filter: drop-shadow(0 0 3px var(--accent));
    animation: cybersnake-flow 2.8s linear infinite;
}

@keyframes cybersnake-flow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -220; }
}

@media (prefers-reduced-motion: reduce) {
    .slot-card__glyph--icon .cybersnake__pulse { animation: none; opacity: 0.5; }
}

.slot-card__label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: 0.06em;
}

.slot-card__hint {
    font-size: 0.85rem;
    color: var(--text-2);
    margin-top: 0.3rem;
}

.slot-card--live .slot-card__status { color: var(--accent); }

/* ---------- Netrunner side rails (private projects, desktop only) --------------------- */
/* Fixed vertical HUD frame along the viewport edges, faded in only while the
   sealed slots are in view. Purely decorative — pointer-events disabled and
   confined to the gutter outside .container so project cards stay unobstructed. */

.netrunner-rails {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 900ms ease;
}

.netrunner-rails.is-active {
    opacity: 1;
}

@media (min-width: 1280px) {
    .netrunner-rails { display: block; }
}

.netrunner-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    overflow: hidden;
    animation: rail-glitch 11s steps(1) infinite;
}

.netrunner-rail--left {
    left: 8px;
    color: var(--accent);
}

.netrunner-rail--right {
    right: 8px;
    color: var(--cyan);
    animation-duration: 13.5s;
    animation-delay: 0.6s;
}

@media (min-width: 1600px) {
    .netrunner-rail { width: 54px; }
}

.netrunner-rail__line {
    position: absolute;
    inset: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background-repeat: repeat-y;
}

.netrunner-rail--left .netrunner-rail__line {
    background-image: repeating-linear-gradient(180deg,
        rgba(163, 255, 60, 0.55) 0 2px,
        transparent 2px 16px);
}

.netrunner-rail--right .netrunner-rail__line {
    background-image: repeating-linear-gradient(180deg,
        rgba(60, 224, 255, 0.55) 0 3px,
        transparent 3px 9px,
        rgba(60, 224, 255, 0.22) 9px 11px,
        transparent 11px 24px);
}

.netrunner-rail__pulse {
    position: absolute;
    left: 50%;
    top: -6%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px 2px currentColor;
    opacity: 0;
}

.netrunner-rail--left .netrunner-rail__pulse { animation-name: rail-pulse-up; }
.netrunner-rail--right .netrunner-rail__pulse { animation-name: rail-pulse-down; }

.netrunner-rail__pulse--a { animation: rail-pulse-up 3.4s linear infinite; }
.netrunner-rail__pulse--b { animation: rail-pulse-up 4.2s linear infinite 1.6s; }
.netrunner-rail--right .netrunner-rail__pulse--a { animation-name: rail-pulse-down; animation-duration: 3.9s; }
.netrunner-rail--right .netrunner-rail__pulse--b { animation-name: rail-pulse-down; animation-duration: 5.1s; animation-delay: 2s; }
.netrunner-rail--right .netrunner-rail__pulse--c { animation: rail-pulse-down 4.6s linear infinite 3.1s; }

/* scrolling up flips which way the impulses travel, instead of just replaying the same motion */
body.is-scrolling-up .netrunner-rail__pulse {
    animation-direction: reverse;
}

@keyframes rail-pulse-down {
    0%   { top: -6%; opacity: 0; }
    8%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 104%; opacity: 0; }
}

@keyframes rail-pulse-up {
    0%   { top: 104%; opacity: 0; }
    8%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: -6%; opacity: 0; }
}

.netrunner-rail__scan {
    position: absolute;
    left: -6px;
    right: -6px;
    height: 64px;
    top: -20%;
    background: linear-gradient(180deg, transparent, currentColor, transparent);
    opacity: 0;
    mix-blend-mode: screen;
    filter: opacity(0.16);
    animation: rail-scan 6.4s ease-in-out infinite;
}

.netrunner-rail--right .netrunner-rail__scan {
    animation-duration: 8.2s;
    animation-delay: 1.2s;
}

@keyframes rail-scan {
    0%   { top: -20%; opacity: 0; }
    6%   { opacity: 1; }
    36%  { opacity: 1; }
    46%  { top: 104%; opacity: 0; }
    100% { top: 104%; opacity: 0; }
}

.netrunner-rail__nodes {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 12vh 0;
}

.netrunner-rail__nodes li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.netrunner-rail__nodes i {
    width: 7px;
    height: 7px;
    background: var(--bg-0);
    border: 1px solid currentColor;
    transform: rotate(45deg);
    box-shadow: 0 0 6px currentColor;
    animation: rail-node-blink 3.6s ease-in-out infinite;
}

.netrunner-rail__nodes li:nth-child(2n) i { animation-delay: 0.9s; }
.netrunner-rail__nodes li:nth-child(3n) i { animation-delay: 1.8s; }

.netrunner-rail__nodes em {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    color: currentColor;
    opacity: 0.6;
}

@keyframes rail-node-blink {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}

@keyframes rail-glitch {
    0%, 96%, 100% { transform: translateX(0); filter: none; }
    97%           { transform: translateX(-2px); }
    97.5%         { transform: translateX(2px); filter: brightness(1.7); }
    98%           { transform: translateX(-1px); }
    98.5%         { transform: translateX(0); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .netrunner-rails { display: none !important; }
}

/* private teaser section on the homepage */
.private-teaser {
    position: relative;
    margin-top: 1rem;
    padding: 2.2rem 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 60% 90% at 80% 10%, rgba(160, 107, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 70% at 15% 100%, rgba(60, 224, 255, 0.06), transparent 60%),
        var(--bg-1);
}

.private-teaser__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: center;
}

.private-teaser h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.private-teaser p { margin-top: 1rem; color: var(--text-1); }

/* ---------- XR2ACH specifics ----------------------------------------------------------- */

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin: 1.6rem 0;
}

.fact-grid > div {
    padding: 1.1rem 1.3rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.fact-grid b {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.fact-grid span { color: var(--text-0); font-size: 0.95rem; }

/* ==========================================================================
   v3 — Story layer: contained heroes, Edgerunners news timeline, partner
   logos, full-page storm, epoch HUD + story spine, zone theming
   ========================================================================== */

/* ---------- Non-cropping project hero (logos, key visuals) ------------------ */

.project-hero--contain {
    background:
        radial-gradient(ellipse 70% 90% at 70% 10%, rgba(163, 255, 60, 0.07), transparent 60%),
        radial-gradient(ellipse 60% 80% at 15% 90%, rgba(60, 224, 255, 0.06), transparent 60%),
        var(--bg-1);
}

.project-hero--contain img {
    object-fit: contain;
    width: 100%;
    max-height: 540px;
    padding: clamp(0.8rem, 2.5vw, 2rem);
}

/* ---------- XR2ACH news timeline (hard-cut, neon, Edgerunners-inspired) ------ */

.xr-timeline {
    position: relative;
    display: grid;
    gap: 2rem;
    margin: 2rem 0 1rem;
    padding-left: 2.1rem;
}

.xr-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--cyan) 55%, var(--violet));
    box-shadow: 0 0 14px rgba(163, 255, 60, 0.35);
}

.xr-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.4rem;
    align-items: start;
    padding: 1.2rem 1.4rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.xr-timeline__item::before {
    content: '';
    position: absolute;
    left: -2.38rem;
    top: 1.55rem;
    width: 11px;
    height: 11px;
    background: var(--bg-1);
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(163, 255, 60, 0.5);
}

/* hard-cut reveal: steps() instead of a soft fade */
.xr-cut.reveal {
    transform: none;
    transition: none;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
}

.xr-cut.reveal.is-visible {
    animation: edge-cut 460ms steps(5, end) both;
}

@keyframes edge-cut {
    0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-10px) skewX(-3deg); }
    35%  { opacity: 1; clip-path: inset(0 34% 0 0);  transform: translateX(3px) skewX(1deg); }
    55%  { clip-path: inset(0 52% 0 0); }
    75%  { clip-path: inset(0 12% 0 0); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}

.xr-timeline__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.xr-timeline__date {
    display: inline-block;
    padding: 0.14rem 0.9rem 0.14rem 0.7rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--bg-0);
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.xr-timeline__place {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
}

.xr-timeline__item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.xr-timeline__item p { font-size: 0.93rem; }

.xr-timeline__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    filter: saturate(0.92);
    transition: filter var(--transition), transform var(--transition);
}

.xr-timeline__item:hover .xr-timeline__media img {
    filter: saturate(1.08);
    transform: translateY(-3px);
}

/* upcoming marker (LLM etc.) */
.xr-timeline__item--soon {
    border-left-color: var(--violet);
    border-style: dashed;
}

.xr-timeline__item--soon::before { border-color: var(--violet); box-shadow: 0 0 12px rgba(160, 107, 255, 0.5); }
.xr-timeline__item--soon .xr-timeline__date { background: var(--violet); color: #fff; }

/* ---------- Transmissions: digital signal-hub feed ---------------------------------- */
/* A "pool" that content drifts through rather than a card grid: a slow ambient
   tide behind the whole feed, each entry framed like a HUD transmission module.
   Fragment-type entries (cryptic) glitch and flicker; signal-type entries
   (clear) stay steady — that contrast does the "clear vs. cryptic" work
   instead of a third visual style.                                          */

.transmission-feed-section {
    position: relative;
    overflow: hidden;
}

.transmission-feed-section::before {
    content: '';
    position: absolute;
    inset: -15%;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 45% at 18% 25%, rgba(60, 224, 255, 0.06), transparent 65%),
        radial-gradient(ellipse 50% 45% at 82% 75%, rgba(160, 107, 255, 0.06), transparent 65%),
        radial-gradient(ellipse 40% 35% at 60% 15%, rgba(163, 255, 60, 0.035), transparent 70%);
    animation: transmission-tide 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes transmission-tide {
    from { transform: translate3d(-2%, -1%, 0) scale(1);    opacity: 0.75; }
    to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); opacity: 1; }
}

.transmission-feed-section .container { position: relative; z-index: 1; }

/* The feed is a wide field, not a column: entries alternate side, vary in
   size by type, drift gently on scroll (JS sets --float-y) and connect to
   the next one via a short diagonal "signal path" tick. Signal entries are
   larger and stay dead still; fragments are smaller, sit a layer back and
   glitch — depth and hierarchy instead of a uniform list. */
.transmission-feed {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(3.2rem, 7vw, 5.2rem);
    max-width: 1000px;
    padding: 0.5rem 0 1rem;
}

.transmission {
    position: relative;
    width: 100%;
    transform: translateY(var(--float-y, 0px));
    will-change: transform;
}

.transmission--signal   { color: var(--accent); max-width: 620px; z-index: 1; }
.transmission--fragment { color: var(--violet); max-width: 440px; z-index: 0; }

.transmission--left  { align-self: flex-start; }
.transmission--right { align-self: flex-end; }

/* signal path: a short diagonal tick reaching back toward the previous entry */
.transmission:not(:first-child)::before {
    content: '';
    position: absolute;
    top: clamp(-5.2rem, -7vw, -3.2rem);
    height: clamp(3.2rem, 7vw, 5.2rem);
    width: 2px;
    background: linear-gradient(180deg, transparent, currentColor 55%, transparent);
    opacity: 0.45;
    pointer-events: none;
}

.transmission--left::before  { left: 12%; transform: rotate(13deg); }
.transmission--right::before { right: 12%; transform: rotate(-13deg); }

.transmission__inner {
    position: relative;
    padding: 1.3rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.transmission--fragment .transmission__inner {
    filter: saturate(0.85);
}

.transmission__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(4, 6, 12, 0.3) 3px 4px);
    opacity: 0.35;
    border-radius: inherit;
}

/* entrance: a "signal lock-on" instead of the generic fade-up — scales,
   untilts and wipes into place rather than just sliding up */
.transmission__inner.reveal {
    opacity: 0;
    transform: scale(0.94) rotate(var(--tilt, -2deg));
    filter: blur(6px);
    clip-path: inset(0 100% 0 0);
    transition: none;
}

.transmission__inner.reveal.is-visible {
    animation: transmission-lock-on 560ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes transmission-lock-on {
    0%   { opacity: 0; transform: scale(0.94) rotate(var(--tilt, -2deg)); filter: blur(6px); clip-path: inset(0 100% 0 0); }
    55%  { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0); }
    72%  { transform: scale(1.015) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); clip-path: inset(0 0 0 0); }
}

.transmission__frame {
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background:
        linear-gradient(currentColor, currentColor) top left / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) top left / 2px 12px no-repeat,
        linear-gradient(currentColor, currentColor) top right / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) top right / 2px 12px no-repeat,
        linear-gradient(currentColor, currentColor) bottom left / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) bottom left / 2px 12px no-repeat,
        linear-gradient(currentColor, currentColor) bottom right / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) bottom right / 2px 12px no-repeat;
    opacity: 0.55;
}

.transmission__head {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem 0.9rem;
    margin-bottom: 0.7rem;
}

.transmission__badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    color: currentColor;
}

.transmission__time {
    font-family: var(--font-display);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--text-2);
    margin-right: auto;
}

.transmission__bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.transmission__bars i {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: var(--line-strong);
}

.transmission__bars i:nth-child(1) { height: 30%; }
.transmission__bars i:nth-child(2) { height: 48%; }
.transmission__bars i:nth-child(3) { height: 66%; }
.transmission__bars i:nth-child(4) { height: 84%; }
.transmission__bars i:nth-child(5) { height: 100%; }

.transmission__bars[data-signal="1"] i:nth-child(-n+1),
.transmission__bars[data-signal="2"] i:nth-child(-n+2),
.transmission__bars[data-signal="3"] i:nth-child(-n+3),
.transmission__bars[data-signal="4"] i:nth-child(-n+4),
.transmission__bars[data-signal="5"] i:nth-child(-n+5) {
    background: currentColor;
}

.transmission__title {
    position: relative;
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
}

.transmission__body {
    position: relative;
    font-size: 0.92rem;
    color: var(--text-1);
}

.transmission__status {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
}

.transmission__more {
    position: relative;
    margin-top: 0.6rem;
}

.transmission__more summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: currentColor;
    list-style: none;
}

.transmission__more summary::-webkit-details-marker { display: none; }

.transmission__more summary::before {
    content: '▸ ';
}

.transmission__more[open] summary::before {
    content: '▾ ';
}

.transmission__more p {
    font-size: 0.92rem;
    color: var(--text-1);
    margin-top: 0.6rem;
}

.transmission--fragment .transmission__more p {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    color: var(--text-2);
}

.transmission-feed__empty {
    color: var(--text-2);
    max-width: 760px;
}

.transmission--fragment .transmission__title,
.transmission--fragment .transmission__body {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    color: var(--text-2);
}

/* fragments glitch on an irregular clock — signals stay perfectly still.
   Lives on __inner (not the outer .transmission) so it never fights with
   the JS-driven float transform on the outer element. */
.transmission--fragment .transmission__inner {
    animation: transmission-glitch 9s steps(1) infinite;
}

.transmission--fragment:nth-of-type(2) .transmission__inner { animation-delay: 3s; }
.transmission--fragment:nth-of-type(3) .transmission__inner { animation-delay: 6.2s; }

.transmission--fragment .transmission__bars {
    animation: transmission-bars-flicker 1.7s steps(2) infinite;
}

@keyframes transmission-glitch {
    0%, 93%, 100% { transform: translateX(0); filter: none; }
    94%           { transform: translateX(-3px); filter: brightness(1.5); }
    94.6%         { transform: translateX(2px); }
    95.2%         { transform: translateX(-1px); }
    95.8%         { transform: translateX(0); filter: none; }
}

@keyframes transmission-bars-flicker {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* Below ~860px the field collapses to a single readable column: no more
   alternating sides, size tiers, signal-path ticks or floating parallax. */
@media (max-width: 860px) {
    .transmission,
    .transmission--signal,
    .transmission--fragment {
        max-width: 100%;
        align-self: stretch;
        transform: none;
    }
    .transmission::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .transmission-feed-section::before,
    .transmission--fragment .transmission__inner,
    .transmission--fragment .transmission__bars {
        animation: none;
    }
    .transmission {
        transform: none;
    }
    .transmission__inner.reveal {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }
    .transmission__inner.reveal.is-visible {
        animation: none;
    }
}

/* Transmissions: signal-green zone tag, matches the nav receiver light */
.page-transmissions .page-hero__kicker { color: var(--accent); }
.page-transmissions .page-hero__kicker::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.page-transmissions .zone-tag { color: var(--accent); border-color: var(--accent-line); }

/* ---------- Partner logos & funding strip ------------------------------------- */

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin: 1.4rem 0;
}

.partner-logos figure {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 1.2rem 1.2rem 0.9rem;
    display: grid;
    gap: 0.6rem;
    align-content: center;
    justify-items: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.partner-logos figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.partner-logos img {
    max-height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.partner-logos figcaption {
    font-size: 0.8rem;
    color: #4b5563;
    text-align: center;
    line-height: 1.4;
}

.funding-strip {
    margin: 2rem 0 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.funding-strip img { width: 100%; height: auto; }

/* ---------- Full-page storm (private projects) ---------------------------------- */

.storm-fixed {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.storm-fixed canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.storm-fixed .storm-hero__flash { position: absolute; z-index: auto; }

/* ---------- Epoch HUD + story spine (homepage journey) --------------------------- */

body { --epoch-color: var(--accent); }
body[data-epoch="origin"]   { --epoch-color: var(--accent); }
body[data-epoch="worlds"]   { --epoch-color: var(--cyan); }
body[data-epoch="research"] { --epoch-color: #ffd166; }
body[data-epoch="projects"] { --epoch-color: var(--accent); }
body[data-epoch="unknown"]  { --epoch-color: var(--violet); }

.epoch-hud {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-2);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.epoch-hud.is-on { opacity: 1; }

.epoch-hud::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--epoch-color);
    box-shadow: 0 0 10px var(--epoch-color);
    transition: background 400ms ease;
}

.epoch-hud b {
    color: var(--epoch-color);
    transition: color 400ms ease;
}

.epoch-hud.is-switching b {
    animation: epoch-flicker 340ms steps(3, end) 1;
}

@keyframes epoch-flicker {
    0%   { opacity: 0.2; transform: translateX(-2px); }
    50%  { opacity: 1;   transform: translateX(1px); }
    75%  { opacity: 0.4; }
    100% { opacity: 1;   transform: none; }
}

.story-spine {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: grid;
    gap: 1.1rem;
    justify-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 400ms ease;
}

.story-spine.is-on { opacity: 1; }

.story-spine::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line-strong);
    z-index: -1;
}

.story-spine i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.story-spine i.is-active {
    background: var(--epoch-color);
    border-color: var(--epoch-color);
    box-shadow: 0 0 12px var(--epoch-color);
    transform: scale(1.25);
}

.story-spine i.is-passed {
    background: var(--text-2);
    border-color: var(--text-2);
}

/* ---------- Zone theming: each project space feels different ---------------------- */

.zone-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.3rem 0.95rem;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text-1);
}

.zone-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
}

/* Bachelor: cyan dawn — first virtual worlds */
.page-bachelor-projects .page-hero {
    background:
        radial-gradient(ellipse 70% 90% at 80% 0%, rgba(60, 224, 255, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 100%, rgba(60, 224, 255, 0.05), transparent 60%);
}
.page-bachelor-projects .page-hero__kicker { color: var(--cyan); }
.page-bachelor-projects .page-hero__kicker::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.page-bachelor-projects .zone-tag { color: var(--cyan); border-color: rgba(60, 224, 255, 0.35); }

/* Master: violet depth — systems, animation, body tracking */
.page-master-projects .page-hero {
    background:
        radial-gradient(ellipse 70% 90% at 80% 0%, rgba(160, 107, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 100%, rgba(160, 107, 255, 0.05), transparent 60%);
}
.page-master-projects .page-hero__kicker { color: var(--violet); }
.page-master-projects .page-hero__kicker::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.page-master-projects .zone-tag { color: var(--violet); border-color: rgba(160, 107, 255, 0.35); }

/* XR2ACH: research lime + fine engineering grid */
.page-experience-xr2ach .breadcrumbs + section,
.page-experience-xr2ach .page-hero {
    background:
        linear-gradient(rgba(163, 255, 60, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 255, 60, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
}
.page-experience-xr2ach .zone-tag { color: var(--accent); border-color: var(--accent-line); }

/* Private: violet storm zone tag */
.page-private-projects .zone-tag { color: var(--violet); border-color: rgba(160, 107, 255, 0.35); }

@media (max-width: 1080px) {
    .story-spine { display: none; }
    .epoch-hud { display: none; }
}

/* ---------- v2 responsive --------------------------------------------------------------- */

@media (max-width: 820px) {
    .chapter__inner { grid-template-columns: 1fr; }
    .private-teaser__inner { grid-template-columns: 1fr; }
    .xr-timeline__item { grid-template-columns: 1fr; }
    .xr-timeline__media { order: -1; }
    .project-hero--contain img { max-height: 380px; }
    .site-nav__lang { margin-top: 0.8rem; }
    .statement__card { padding: 1.8rem 1.4rem; }
    .gateway__inner { flex-direction: column; text-align: center; gap: 1.1rem; }
    .gateway__rings { width: 128px; height: 128px; margin: 0 auto; }
    .gateway__rings span:nth-child(2) { inset: 15px; }
    .gateway__rings span:nth-child(3) { inset: 33px; }
    .gateway__core { inset: 52px; }
    .gateway p { margin-left: auto; margin-right: auto; }
}

/* ---------- Reduced motion ---------------------------------------------------------------------------- */

/* ---------- Recruiter dossier (fast, low-animation personnel file) ------------------ */
/* Deliberately sparse on motion — this page exists so a recruiter can scan
   it in under two minutes, so nothing here fades in or delays content. */

.dossier-hero {
    padding: calc(var(--nav-height) + 2.4rem) 0 2rem;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 60% 70% at 85% 0%, rgba(163, 255, 60, 0.08), transparent 60%);
}

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

.dossier-hero__intro h1 {
    margin-top: 0.5rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.dossier-hero__role {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--cyan);
    margin-top: 0.3rem;
}

.dossier-hero__lead {
    max-width: 62ch;
    margin-top: 0.9rem;
    color: var(--text-1);
}

.dossier-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dossier-hero__facts li {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--text-1);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}

.dossier-hero__pdf {
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(163, 255, 60, 0.5), 0 0 32px rgba(163, 255, 60, 0.25);
    animation: dossier-pdf-glow 2.6s ease-in-out infinite;
}

@keyframes dossier-pdf-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(163, 255, 60, 0.5), 0 0 24px rgba(163, 255, 60, 0.18); }
    50%      { box-shadow: 0 0 0 1px rgba(163, 255, 60, 0.7), 0 0 34px rgba(163, 255, 60, 0.34); }
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.dossier-card {
    padding: 1.3rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.dossier-card--wide {
    grid-column: span 2;
}

.dossier-card h2 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.dossier-card p {
    font-size: 0.92rem;
    color: var(--text-1);
}

.dossier-card__lead {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 0.3rem;
}

.dossier-projects,
.dossier-education {
    display: grid;
    gap: 0.7rem;
}

.dossier-projects {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dossier-projects li a {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.9rem;
    background: rgba(148, 190, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color var(--transition), background var(--transition);
}

.dossier-projects li a:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.dossier-projects li b {
    font-family: var(--font-display);
    color: var(--text-0);
    font-size: 0.95rem;
}

.dossier-projects li span {
    font-size: 0.8rem;
    color: var(--text-2);
}

.dossier-education li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dossier-education li b {
    font-family: var(--font-display);
    color: var(--text-0);
    font-size: 0.95rem;
}

.dossier-education li span {
    font-size: 0.85rem;
    color: var(--text-2);
}

@media (max-width: 720px) {
    .dossier-hero__inner { align-items: flex-start; }
    .dossier-card--wide { grid-column: span 1; }
}

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

/* ---------- Recruiter fast-access callout (homepage) --------------------------------- */

.recruiter-callout {
    padding: 1.1rem 0;
}

.recruiter-callout__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.4rem;
    padding: 1.5rem 1.8rem;
    background: var(--glass);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(163, 255, 60, 0.06);
    overflow: hidden;
}

.recruiter-callout__inner::before {
    content: '';
    position: absolute;
    inset: 7px;
    pointer-events: none;
    background:
        linear-gradient(var(--accent), var(--accent)) top left / 14px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) top left / 2px 14px no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / 14px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / 2px 14px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / 14px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / 2px 14px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / 14px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / 2px 14px no-repeat;
    opacity: 0.5;
}

.recruiter-callout__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.recruiter-callout__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent);
    animation: pp-pulse 2.2s ease-in-out infinite;
}

.recruiter-callout__text h2 {
    font-size: 1.3rem;
}

.recruiter-callout__text p {
    margin-top: 0.4rem;
    max-width: 56ch;
    color: var(--text-1);
    font-size: 0.94rem;
}

.recruiter-callout__text .recruiter-callout__meta {
    color: var(--text-2);
    font-size: 0.86rem;
}

.recruiter-callout__cta {
    flex-shrink: 0;
    position: relative;
}

@media (max-width: 720px) {
    .recruiter-callout__inner { padding: 1.3rem 1.4rem; }
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .xr-cut.reveal {
        opacity: 1;
        transform: none;
        clip-path: none;
    }

    .hero__canvas { display: none; }
}
