/* ================================================
   MATHIEU HAYE. PORTFOLIO
   Albert School x Mines Paris-PSL. Data & AI for Finance
   ================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Albert School palette: deep navy + electric blue */
    --albert-deep:      #001B4A;     /* Albert dark navy */
    --albert-navy:      #002B6E;     /* Primary navy */
    --albert-royal:     #0033A0;     /* Royal blue (brand) */
    --albert-blue:      #0057FF;     /* Electric accent */
    --albert-sky:       #4D8FFF;     /* Hover / highlight */
    --albert-ice:       #E8F0FF;     /* Pale blue bg */

    /* Neutrals */
    --ink-900:          #0A0F1F;
    --ink-700:          #1A2340;
    --ink-500:          #4B5676;
    --ink-300:          #8B95B4;
    --ink-100:          #E5E9F2;
    --white:            #FFFFFF;
    --bg:               #F6F8FD;
    --bg-dark:          #030617;

    /* Semantic */
    --success:          #10B981;
    --warning:          #F59E0B;
    --danger:           #EF4444;

    /* Typography */
    --font-display:     'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-serif:       'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-body:        'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs:         0.5rem;
    --space-sm:         1rem;
    --space-md:         1.5rem;
    --space-lg:         2.5rem;
    --space-xl:         4rem;
    --space-2xl:        6rem;

    /* Radius */
    --radius-sm:        8px;
    --radius-md:        14px;
    --radius-lg:        22px;
    --radius-xl:        32px;

    /* Shadows */
    --shadow-sm:        0 1px 2px rgba(0, 27, 74, 0.04), 0 1px 3px rgba(0, 27, 74, 0.06);
    --shadow-md:        0 4px 12px rgba(0, 27, 74, 0.08), 0 2px 6px rgba(0, 27, 74, 0.05);
    --shadow-lg:        0 20px 40px -12px rgba(0, 27, 74, 0.16), 0 8px 16px -6px rgba(0, 27, 74, 0.08);
    --shadow-xl:        0 32px 64px -16px rgba(0, 27, 74, 0.24), 0 16px 24px -8px rgba(0, 27, 74, 0.12);
    --shadow-glow:      0 0 40px rgba(0, 87, 255, 0.25);

    /* Transitions */
    --ease-out:         cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out:      cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast:         180ms;
    --dur-base:         280ms;
    --dur-slow:         520ms;

    /* Layout */
    --container-max:    1240px;
    --nav-height:       72px;
}

/* ---------- LAUNCH ANIMATION ---------- */
.launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--ink-900);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: launch-slide-out 900ms cubic-bezier(0.76, 0, 0.24, 1) 1500ms forwards;
    pointer-events: none;
}
.launch-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 87, 255, 0.35), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 51, 160, 0.35), transparent 50%);
    opacity: 0;
    animation: launch-bg-in 600ms ease-out 200ms forwards;
}
.launch-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}
@keyframes launch-bg-in {
    to { opacity: 1; }
}
@keyframes launch-slide-out {
    to { transform: translateY(-101%); }
}

.launch-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.launch-wordmark {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    overflow: hidden;
    padding: 0.08em 0;
}
.launch-char {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: launch-char-in 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes launch-char-in {
    to { transform: translateY(0); opacity: 1; }
}
.launch-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0;
    animation: launch-tag-in 700ms ease-out 900ms forwards;
}
@keyframes launch-tag-in {
    from { opacity: 0; letter-spacing: 0.2em; }
    to   { opacity: 1; letter-spacing: 0.4em; }
}

body.launching {
    overflow: hidden;
}
body.launch-done .launch-overlay {
    display: none;
}

/* Hero statement: reveal words after launch */
.hero-statement > * {
    opacity: 0;
    transform: translateY(30px);
    animation: hero-word-in 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-statement > *:nth-child(1) { animation-delay: 2100ms; }
.hero-statement > *:nth-child(2) { animation-delay: 2200ms; }
.hero-statement > *:nth-child(3) { animation-delay: 2300ms; }
.hero-statement > *:nth-child(4) { animation-delay: 2400ms; }
.hero-statement > *:nth-child(5) { animation-delay: 2500ms; }
.hero-statement > *:nth-child(6) { animation-delay: 2600ms; }
.hero-statement > *:nth-child(7) { animation-delay: 2700ms; }
@keyframes hero-word-in {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .launch-overlay { display: none !important; }
    .hero-statement > * { opacity: 1; transform: none; animation: none; }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--bg);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--albert-ice); padding: 2px 6px; border-radius: 4px; color: var(--albert-royal); }
::selection { background: var(--albert-blue); color: white; }

/* ---------- BACKGROUND ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 27, 74, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 27, 74, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    pointer-events: none;
    z-index: -2;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}

.bg-gradient {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, rgba(0, 87, 255, 0.08), transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    animation: float-bg 24s ease-in-out infinite;
}

@keyframes float-bg {
    0%, 100%   { transform: translate(0, 0) rotate(0deg); }
    33%        { transform: translate(-8%, 5%) rotate(30deg); }
    66%        { transform: translate(5%, -6%) rotate(-20deg); }
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--albert-royal), var(--albert-blue), var(--albert-sky));
    box-shadow: 0 0 10px rgba(0, 87, 255, 0.6);
    transition: width 80ms linear;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2 * var(--space-sm));
    max-width: var(--container-max);
    height: var(--nav-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 27, 74, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--dur-base) var(--ease-out);
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 27, 74, 0.12);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-lg);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    color: var(--ink-900);
    transition: transform var(--dur-fast) var(--ease-out);
}
.nav-logo:hover { transform: scale(1.02); }
.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--albert-deep), var(--albert-royal));
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.nav-logo-prefix {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-500);
    font-style: italic;
    letter-spacing: 0.01em;
}
.nav-logo-wordmark {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1;
}
.nav-logo-wordmark em {
    font-style: italic;
    color: var(--albert-royal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-links > li:not(.nav-sep) a:not(.nav-cta) {
    position: relative;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-900);
    transition: color var(--dur-fast) var(--ease-out);
    padding: 8px 4px;
    letter-spacing: -0.005em;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--albert-blue);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--albert-royal); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-sep {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--ink-300);
    font-weight: 300;
    user-select: none;
    pointer-events: none;
}

.nav-cta {
    background: linear-gradient(135deg, var(--albert-deep), var(--albert-royal)) !important;
    color: white !important;
    padding: 9px 18px !important;
    border-radius: 999px;
    transition: all var(--dur-base) var(--ease-out);
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.25);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.35);
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink-900);
    border-radius: 2px;
    transition: all var(--dur-base) var(--ease-out);
}

/* Nav actions (lang switch + menu toggle) */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Language switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    background: rgba(0, 27, 74, 0.04);
    border: 1px solid rgba(0, 27, 74, 0.08);
    border-radius: 999px;
}
.lang-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--ink-500);
    transition: all var(--dur-base) var(--ease-out);
    cursor: pointer;
}
.lang-btn:hover {
    color: var(--albert-royal);
}
.lang-btn.active {
    background: var(--ink-900);
    color: white;
}
.lang-sep {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-300);
    user-select: none;
}

/* Menu toggle (burger, orson-style) */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: var(--ink-900);
    color: white;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
}
.menu-toggle:hover {
    background: var(--albert-royal);
    transform: translateY(-1px);
}
.menu-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}
.menu-toggle-bars span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.menu-toggle-bars span:nth-child(1) { width: 100%; }
.menu-toggle-bars span:nth-child(2) { width: 70%; margin-left: 30%; }
.menu-toggle-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
/* Burger morphs into X when menu is open */
body.menu-open .menu-toggle-bars span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}
body.menu-open .menu-toggle-bars span:nth-child(2) {
    width: 100%;
    margin-left: 0;
    transform: translateY(-3px) rotate(-45deg);
}
body.menu-open .menu-toggle-label::before {
    content: 'Close';
}
body.menu-open .menu-toggle-label {
    font-size: 0; /* hide "Menu" */
}
body.menu-open .menu-toggle-label::before {
    font-size: 13px;
}

/* ---------- MENU OVERLAY (full screen) ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.menu-overlay.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear 0s;
}
.menu-overlay-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    background-image:
        linear-gradient(rgba(0, 27, 74, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 27, 74, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: translateY(-100%);
    transition: transform 600ms var(--ease-out);
}
.menu-overlay.open .menu-overlay-bg {
    transform: translateY(0);
}
.menu-overlay-inner {
    position: relative;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms var(--ease-out) 150ms, transform 500ms var(--ease-out) 150ms;
}
.menu-overlay.open .menu-overlay-inner {
    opacity: 1;
    transform: translateY(0);
}

.menu-statement {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 8vw, 7.8rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0;
}
.menu-statement .statement-link {
    color: var(--ink-900);
}
.menu-statement .statement-link.statement-muted {
    color: var(--ink-300);
}

.menu-overlay-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 27, 74, 0.1);
}
.menu-social {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-500);
    flex-wrap: wrap;
}
.menu-social a {
    color: var(--ink-900);
    transition: color var(--dur-fast) var(--ease-out);
}
.menu-social a:hover { color: var(--albert-royal); }
.menu-social span { color: var(--ink-300); }
.menu-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-500);
    letter-spacing: 0.04em;
}

body.menu-open { overflow: hidden; }

/* When menu is open, nav (with the close button) sits above the overlay */
body.menu-open .nav {
    z-index: 200;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* ---------- HERO (sentence-style) ---------- */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.hero-sentence {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.hero-statement {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8.5vw, 8.2rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin-bottom: var(--space-xl);
}
.statement-lead em {
    font-style: italic;
    color: var(--ink-900);
}
.statement-link {
    color: var(--ink-900);
    position: relative;
    display: inline;
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}
.statement-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.05em;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease-out);
}
.statement-link:hover {
    color: var(--albert-royal);
}
.statement-link:hover::after {
    transform: scaleX(1);
}
.statement-muted {
    color: var(--ink-300);
}
.statement-muted.statement-link:hover {
    color: var(--albert-royal);
}
.statement-comma,
.statement-period {
    color: var(--ink-300);
    font-style: normal;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 27, 74, 0.08);
}
.hero-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-500);
    letter-spacing: 0.04em;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--albert-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.6); }
    50%      { box-shadow: 0 0 0 10px rgba(0, 87, 255, 0); }
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ink-900);
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--dur-base) var(--ease-out);
    text-decoration: none;
}
.btn-inline:hover {
    background: var(--albert-royal);
    transform: translateY(-1px);
}
.btn-inline svg { transition: transform var(--dur-base) var(--ease-out); }
.btn-inline:hover svg { transform: translateX(3px); }

/* ---------- INTRO section (photo + pitch + stats) ---------- */
.intro {
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(0, 27, 74, 0.06);
    background: white;
}
.intro-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.intro-portrait { position: relative; }
.intro-content { display: flex; flex-direction: column; gap: var(--space-lg); }
.intro-pitch {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.3;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    font-weight: 400;
}
.intro-stats {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 27, 74, 0.08);
    max-width: 560px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--albert-royal) 0%, var(--albert-blue) 50%, var(--albert-sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 6s ease infinite;
    display: inline-block;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
    font-family: var(--font-body);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--albert-deep), var(--albert-royal));
    color: white;
    box-shadow: 0 10px 30px -8px rgba(0, 51, 160, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--albert-royal), var(--albert-blue));
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(0, 51, 160, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary svg { transition: transform var(--dur-base) var(--ease-out); }

.btn-ghost {
    background: rgba(0, 27, 74, 0.04);
    color: var(--ink-900);
    border: 1px solid rgba(0, 27, 74, 0.1);
}
.btn-ghost:hover {
    background: rgba(0, 27, 74, 0.08);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 27, 74, 0.08);
    max-width: 560px;
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--albert-royal);
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-num::after { content: '+'; color: var(--albert-blue); }
.stat-label {
    font-size: 12px;
    color: var(--ink-500);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- PORTRAIT ---------- */
.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--albert-deep), var(--albert-royal) 50%, var(--albert-blue));
    overflow: hidden;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    isolation: isolate;
}
.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}
.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(77, 143, 255, 0.35), transparent 60%);
    z-index: 0;
}
.portrait-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.4), transparent 55%);
    filter: blur(40px);
    z-index: 0;
    animation: portrait-glow 8s ease-in-out infinite;
}
@keyframes portrait-glow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(10%, 8%) scale(1.1); }
}

.portrait-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.portrait-img.missing { display: none; }

.portrait-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-align: center;
    padding: var(--space-md);
    z-index: 3;
    background: rgba(0, 27, 74, 0.4);
    backdrop-filter: blur(4px);
}
.portrait-placeholder code {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.portrait-placeholder.hidden { display: none; }

.portrait-ring {
    position: absolute;
    inset: -10px;
    border-radius: calc(var(--radius-xl) + 10px);
    border: 1px solid rgba(0, 87, 255, 0.2);
    z-index: -1;
    animation: portrait-ring 4s ease-in-out infinite;
}
@keyframes portrait-ring {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.03); opacity: 0.8; }
}

.portrait-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--success);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 4;
}

/* Ticker */
.ticker {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 27, 74, 0.08);
    border-bottom: 1px solid rgba(0, 27, 74, 0.08);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
    display: flex;
    gap: var(--space-md);
    animation: ticker-scroll 24s linear infinite;
    width: max-content;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-500);
    white-space: nowrap;
}
.ticker-item em {
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.ticker-item b {
    color: var(--albert-royal);
    font-weight: 600;
    letter-spacing: 0.05em;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--ink-500);
}
.scroll-word {
    display: inline-flex;
    gap: 2px;
}
.scroll-letter {
    display: inline-block;
    animation: scroll-wave 1.8s ease-in-out infinite;
    will-change: transform, opacity;
}
.scroll-letter:nth-child(1) { animation-delay: 0ms; }
.scroll-letter:nth-child(2) { animation-delay: 80ms; }
.scroll-letter:nth-child(3) { animation-delay: 160ms; }
.scroll-letter:nth-child(4) { animation-delay: 240ms; }
.scroll-letter:nth-child(5) { animation-delay: 320ms; }
.scroll-letter:nth-child(6) { animation-delay: 400ms; }
@keyframes scroll-wave {
    0%, 100% { transform: translateY(0); opacity: 0.5; color: var(--ink-500); }
    50%      { transform: translateY(-4px); opacity: 1; color: var(--albert-royal); }
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--ink-300), transparent);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--albert-blue));
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0%   { top: -100%; }
    100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-letter { animation: none; opacity: 1; }
}

/* ---------- SECTIONS ---------- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.section-head {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--albert-royal);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.section-subtitle {
    margin-top: var(--space-sm);
    color: var(--ink-500);
    font-size: 17px;
}

/* ---------- ABOUT ---------- */
.about {
    padding: var(--space-2xl) 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}
.about-intro { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }
.about-lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-500);
    margin-bottom: var(--space-md);
}
.about-lead strong {
    color: var(--ink-900);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}
.skill-card {
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    transition: all var(--dur-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--albert-deep), var(--albert-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease-out);
}
.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 87, 255, 0.2);
    box-shadow: var(--shadow-lg);
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 87, 255, 0.08), rgba(0, 51, 160, 0.08));
    color: var(--albert-royal);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    transition: transform var(--dur-base) var(--ease-out);
}
.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(-5deg);
}
.skill-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 6px;
}
.skill-card p {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.55;
}

/* ---------- PROJECTS ---------- */
.projects {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 87, 255, 0.02) 50%, transparent 100%);
}

.projects-filter {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}
.filter-btn {
    padding: 8px 18px;
    background: white;
    color: var(--ink-500);
    border: 1px solid var(--ink-100);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--dur-base) var(--ease-out);
    cursor: pointer;
}
.filter-btn:hover {
    color: var(--albert-royal);
    border-color: rgba(0, 87, 255, 0.3);
}
.filter-btn.active {
    background: var(--albert-deep);
    color: white;
    border-color: var(--albert-deep);
    box-shadow: 0 4px 12px rgba(0, 27, 74, 0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--dur-slow) var(--ease-out);
    position: relative;
    opacity: 1;
}
.project-card.hidden {
    display: none;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 87, 255, 0.3);
    box-shadow: 0 24px 48px -12px rgba(0, 27, 74, 0.2);
}

.project-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    background: rgba(0, 27, 74, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 3;
}
.project-tag-featured {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
}
.project-tag-pro {
    background: linear-gradient(135deg, #10B981, #059669);
}

.project-visual {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--albert-ice);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 27, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 27, 74, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}
.project-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--space-md);
}
.project-card:hover .project-visual-content {
    transform: scale(1.03);
}
.project-visual-content { transition: transform var(--dur-slow) var(--ease-out); }

/* Bloomberg visual */
.project-visual-bloomberg {
    background: linear-gradient(135deg, #001B4A, #0033A0);
}
.project-visual-bloomberg::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
.mini-chart { padding: 0 12px; margin-bottom: 14px; }
.mini-chart svg { width: 100%; height: 80px; }
.mini-metrics { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.metric {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.metric-up { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.metric-down { background: rgba(239, 68, 68, 0.15); color: #F87171; }

/* Ichimoku visual */
.project-visual-ichimoku {
    background: linear-gradient(135deg, #0A0F1F, #1A2340);
}
.project-visual-ichimoku::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
.ichimoku-svg { width: 100%; height: 140px; }

/* Vinted arbitrage */
.project-visual-vinted {
    background: linear-gradient(135deg, #0033A0, #0057FF);
}
.vinted-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    font-size: 18px;
}
.flow-node span { font-size: 10px; opacity: 0.85; }
.flow-node-center {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.flow-arrow {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
}
.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid rgba(255, 255, 255, 0.6);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.flow-metric {
    text-align: center;
    color: white;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Racines */
.project-visual-racines {
    background: linear-gradient(135deg, #001B4A, #002B6E);
}
.racines-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}
.racines-card {
    background: white;
    color: var(--success);
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform var(--dur-base) var(--ease-out);
}
.racines-card-1 { transform: rotate(-3deg) translateX(-20px); }
.racines-card-2 { transform: rotate(1deg); z-index: 2; }
.racines-card-3 { transform: rotate(-1deg) translateX(18px); }
.project-card:hover .racines-card-1 { transform: rotate(-6deg) translateX(-28px); }
.project-card:hover .racines-card-3 { transform: rotate(2deg) translateX(26px); }

/* Scrapper */
.project-visual-scrapper {
    background: linear-gradient(135deg, #0057FF, #4D8FFF);
}
.scrapper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 120px;
    margin: 0 auto 16px;
}
.scrapper-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.scrapper-cell-active {
    background: white;
    animation: pulse-cell 2s ease-in-out infinite;
}
@keyframes pulse-cell {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.92); }
}
.scrapper-label {
    text-align: center;
    color: white;
    font-size: 13px;
}
.scrapper-label strong { font-family: var(--font-mono); font-weight: 700; }

/* MEXC */
.project-visual-mexc {
    background: linear-gradient(135deg, #0A0F1F, #0033A0);
}
.mexc-svg { width: 100%; height: 110px; }
.mexc-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    margin-top: 10px;
}

/* Real estate */
.project-visual-realestate {
    background: linear-gradient(135deg, #001B4A, #002B6E);
}
.re-comparison {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 10px 0 14px;
}
.re-box {
    flex: 1;
    max-width: 110px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    text-align: center;
    color: white;
}
.re-box-alt {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.re-box-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}
.re-box-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #4ADE80;
    letter-spacing: -0.02em;
}
.re-box-alt .re-box-value { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.re-tag {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* IA Brew */
.project-visual-iabrew {
    background: linear-gradient(135deg, #0057FF, #4D8FFF);
}
.brew-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.brew-step {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.brew-step-ai {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}
.brew-arrow {
    width: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
}
.brew-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    border-left: 5px solid rgba(255, 255, 255, 0.7);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.brew-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* Salesforce */
.project-visual-salesforce {
    background: linear-gradient(135deg, #002B6E, #0057FF);
}
.sf-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 10px;
    max-width: 260px;
    margin: 0 auto;
}
.sf-chip {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: white;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
}
.sf-chip-ai {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ADE80;
}

.project-body { padding: var(--space-md); }
.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.project-tags span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 9px;
    background: var(--albert-ice);
    color: var(--albert-royal);
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.project-desc {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--albert-royal);
    transition: gap var(--dur-base) var(--ease-out);
}
.project-card:hover .project-link {
    gap: 10px;
}

/* ---------- JOURNEY / TIMELINE ---------- */
.journey {
    padding: var(--space-2xl) 0;
}
.timeline {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--albert-royal), var(--albert-blue), transparent);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    padding-bottom: var(--space-lg);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -35px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--albert-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.15);
    z-index: 2;
    transition: all var(--dur-base) var(--ease-out);
}
.timeline-item:hover .timeline-dot {
    background: var(--albert-blue);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 87, 255, 0.2);
}
.timeline-dot-highlight {
    background: var(--albert-blue);
    box-shadow: 0 0 0 5px rgba(0, 87, 255, 0.18);
    animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(0, 87, 255, 0.18); }
    50%      { box-shadow: 0 0 0 10px rgba(0, 87, 255, 0.08); }
}
.timeline-content.timeline-content-highlight {
    position: relative;
    background: linear-gradient(135deg, var(--albert-deep) 0%, var(--albert-royal) 100%);
    border-color: transparent;
    color: white;
    overflow: hidden;
}
.timeline-content.timeline-content-highlight::before {
    content: 'NEW';
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: white;
    z-index: 2;
}
.timeline-content.timeline-content-highlight::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.3), transparent 60%);
    pointer-events: none;
}
.timeline-content.timeline-content-highlight .timeline-role {
    color: white;
    position: relative;
    z-index: 1;
}
.timeline-content.timeline-content-highlight .timeline-org {
    color: var(--albert-sky);
    position: relative;
    z-index: 1;
}
.timeline-content.timeline-content-highlight p {
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    z-index: 1;
}
.timeline-content.timeline-content-highlight .timeline-missions {
    position: relative;
    z-index: 1;
}
.timeline-content.timeline-content-highlight .timeline-missions li {
    color: rgba(255, 255, 255, 0.88);
}
.timeline-content.timeline-content-highlight .timeline-missions li::before {
    background: var(--albert-sky);
}
.timeline-content.timeline-content-highlight .timeline-missions strong {
    color: white;
}
.timeline-content.timeline-content-highlight .timeline-stack {
    border-top-color: rgba(255, 255, 255, 0.18);
    color: var(--albert-sky);
    position: relative;
    z-index: 1;
}
.timeline-item:hover .timeline-content-highlight {
    box-shadow: 0 16px 40px -8px rgba(0, 51, 160, 0.4);
    transform: translateX(4px);
}
.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--albert-royal);
    margin-bottom: 6px;
}
.timeline-content {
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    transition: all var(--dur-base) var(--ease-out);
}
.timeline-item:hover .timeline-content {
    border-color: rgba(0, 87, 255, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.timeline-role {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 2px;
}
.timeline-org {
    font-size: 13px;
    color: var(--albert-blue);
    font-weight: 500;
    margin-bottom: 8px;
}
.timeline-content p {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.6;
}
.timeline-missions {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.timeline-missions li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.6;
}
.timeline-missions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 1px;
    background: var(--albert-blue);
}
.timeline-missions strong {
    color: var(--ink-900);
    font-weight: 600;
}
.timeline-goal {
    margin-top: var(--space-sm) !important;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 14px;
    border-left: 2px solid var(--albert-blue);
    background: rgba(0, 87, 255, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: var(--ink-900) !important;
    line-height: 1.55;
}
.timeline-goal strong { font-weight: 600; }
.timeline-stack {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0, 27, 74, 0.08);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-500);
}

/* ---------- ALBERT SCHOOL ---------- */
.albert {
    padding: var(--space-2xl) 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 87, 255, 0.06), transparent 80%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 51, 160, 0.04), transparent 80%);
}

.albert-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.albert-card {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--dur-base) var(--ease-out);
}
.albert-card-main {
    background: linear-gradient(160deg, var(--albert-deep) 0%, var(--albert-royal) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.albert-card-main::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.25), transparent 60%);
    pointer-events: none;
}
.albert-quote-mark {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 700;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xs);
}
.albert-card-main h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}
.albert-card-main p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}
.albert-card-main strong {
    color: white;
    font-weight: 600;
}

.albert-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.albert-highlight {
    padding: var(--space-md);
}
.albert-highlight:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 87, 255, 0.2);
    box-shadow: var(--shadow-md);
}
.albert-highlight-primary {
    background: linear-gradient(135deg, var(--albert-deep) 0%, var(--albert-royal) 100%);
    border-color: transparent;
    color: white;
    position: relative;
    overflow: hidden;
}
.albert-highlight-primary::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.3), transparent 60%);
    pointer-events: none;
}
.albert-highlight-primary .albert-highlight-label {
    color: var(--albert-sky);
    position: relative;
    z-index: 1;
}
.albert-highlight-primary .albert-highlight-value {
    color: white;
    position: relative;
    z-index: 1;
}
.albert-highlight-primary .albert-highlight-desc {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}
.albert-highlight-primary:hover {
    box-shadow: 0 16px 40px -8px rgba(0, 51, 160, 0.4);
    border-color: transparent;
}
.albert-highlight-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--albert-royal);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.albert-highlight-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.albert-highlight-desc {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.5;
}

.albert-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}
.value-item {
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    transition: all var(--dur-base) var(--ease-out);
}
.value-item:hover {
    border-color: rgba(0, 87, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.value-item:hover .value-icon { transform: rotate(-6deg) scale(1.1); }
.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--albert-deep), var(--albert-royal));
    color: white;
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    transition: transform var(--dur-base) var(--ease-out);
}
.value-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 6px;
}
.value-item p {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.6;
}

/* ---------- CONTACT (refondu) ---------- */
.contact {
    padding: var(--space-2xl) 0;
    position: relative;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

/* Left column: pitch */
.contact-pitch {
    max-width: 520px;
}
.contact-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink-900);
    margin: var(--space-sm) 0 var(--space-md);
}
.contact-headline-accent em {
    font-style: italic;
    background: linear-gradient(135deg, var(--albert-royal) 0%, var(--albert-blue) 50%, var(--albert-sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-500);
    margin-bottom: var(--space-lg);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 16px;
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.avail-dot {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulse-avail 2.4s ease-in-out infinite;
}
@keyframes pulse-avail {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.avail-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.2;
}
.avail-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-500);
    margin-top: 3px;
    letter-spacing: 0.03em;
}

/* Right column: channels */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.channel-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}
.contact-channels .channel-card.revealed,
.contact-channels .channel-card {
    transition: background-color 500ms cubic-bezier(0.4, 0, 0.2, 1),
                border-color 500ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 500ms cubic-bezier(0.4, 0, 0.2, 1),
                transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.channel-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--albert-blue);
    opacity: 0;
    transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.channel-card:hover {
    border-color: rgba(0, 87, 255, 0.25);
    background: #FBFCFF;
    box-shadow: 0 12px 28px -14px rgba(0, 51, 160, 0.18),
                0 4px 10px -4px rgba(0, 51, 160, 0.06);
    transform: translateY(-2px);
}
.channel-card:hover::before {
    opacity: 1;
}
.channel-card:hover .channel-icon {
    background: rgba(0, 87, 255, 0.14);
    color: var(--albert-royal);
}
.channel-card:hover .channel-arrow {
    color: var(--albert-royal);
    transform: translateX(6px);
}
.channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--albert-ice);
    color: var(--albert-royal);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background-color 500ms cubic-bezier(0.4, 0, 0.2, 1),
                color 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.channel-arrow {
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
                color 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.channel-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 4px;
}
.channel-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.channel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-300);
    transition: all var(--dur-base) var(--ease-out);
}

/* Meta strip */
.contact-meta-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-300);
    font-weight: 500;
}
.meta-value {
    font-size: 14px;
    color: var(--ink-900);
    font-weight: 500;
    line-height: 1.4;
}

/* ---------- NEWSLETTER FORM (inside IA Brew modal) ---------- */
/* ---------- NEWSLETTER PREVIEW (browser mockup) ---------- */
.newsletter-preview {
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
    box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.5);
}
.newsletter-preview-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #222;
}
.preview-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.preview-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }
.preview-url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #555;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 4px 14px;
    background: #111;
    border-radius: 6px;
    border: 1px solid #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.newsletter-preview-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: #111;
}

.modal-form-placeholder {
    margin-top: var(--space-lg);
}

@media (max-width: 720px) {
    .newsletter-preview-frame { height: 420px; }
}
.newsletter-wrap {
    background: linear-gradient(135deg, var(--albert-deep) 0%, var(--albert-royal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: white;
    position: relative;
    overflow: hidden;
}
.newsletter-wrap::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.28), transparent 60%);
    pointer-events: none;
}
.newsletter-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.6;
}
.newsletter-wrap > * { position: relative; z-index: 1; }

.newsletter-header {
    margin-bottom: var(--space-md);
}
.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: white;
    font-weight: 500;
    margin-bottom: 14px;
}
.newsletter-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--albert-sky);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(77, 143, 255, 0.8);
    animation: pulse-avail 2s ease-in-out infinite;
}
.newsletter-wrap .newsletter-heading,
.modal-body .newsletter-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    margin: 0 0 10px;
}
.newsletter-wrap .newsletter-subtitle,
.modal-body .newsletter-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    max-width: 440px;
    margin: 0;
}

.newsletter-container {
    background: transparent;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.newsletter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Override Brevo default field styles */
.newsletter-field { margin: 0; padding: 0 !important; }
.newsletter-field .form__entry,
.newsletter-field .entry_block { margin: 0; padding: 0; }
.newsletter-field .form__label-row { display: flex; flex-direction: column; gap: 6px; }
.newsletter-field .entry__label {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    text-align: left !important;
    padding: 0 !important;
}
.newsletter-field .entry__field {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.newsletter-field .input,
.newsletter-field input[type="text"],
.newsletter-field input[type="email"] {
    width: 100% !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    color: white !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all var(--dur-base) var(--ease-out);
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
}
.newsletter-field .input::placeholder,
.newsletter-field input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    font-family: var(--font-body) !important;
}
.newsletter-field .input:focus,
.newsletter-field input:focus {
    outline: none;
    border-color: var(--albert-sky) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 4px rgba(77, 143, 255, 0.15) !important;
}

/* Error labels (inline under inputs) */
.newsletter-field .entry__error {
    margin-top: 6px !important;
    padding: 6px 10px !important;
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 8px !important;
    color: #FCA5A5 !important;
    font-size: 12px !important;
    font-family: var(--font-body) !important;
    text-align: left !important;
    display: block;
}
.newsletter-field .entry__error:empty {
    display: none !important;
}

/* Submit button */
.newsletter-submit-wrap { padding: 0 !important; margin-top: 6px; }
.newsletter-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px 22px !important;
    background: white !important;
    color: var(--albert-deep) !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out) !important;
    text-align: center !important;
    height: auto !important;
    line-height: 1 !important;
    text-transform: none !important;
}
.newsletter-submit:hover {
    background: var(--albert-sky) !important;
    color: white !important;
    transform: translateY(-1px);
}
.newsletter-submit:hover .newsletter-submit-arrow {
    transform: translateX(3px);
}
.newsletter-submit-arrow {
    transition: transform var(--dur-base) var(--ease-out);
}
.newsletter-submit-label {
    font-family: var(--font-body) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.newsletter-submit .icon {
    width: 14px !important;
    height: 14px !important;
    display: none;
}
.newsletter-submit.sib-hide-loader-icon .sib-hide-loader-icon { display: none; }

/* Message panels (Brevo toggles visibility via their JS) */
.newsletter-message {
    display: none;
    margin-top: var(--space-sm) !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    text-align: left;
}
.newsletter-message-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #6EE7B7 !important;
}
.newsletter-message-error {
    background-color: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #FCA5A5 !important;
}
.newsletter-message .sib-form-message-panel__text {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.newsletter-message .sib-icon {
    fill: currentColor !important;
    flex-shrink: 0;
}

/* Overrides for Brevo's aggressive styles */
#sib-form { padding: 0 !important; }
#sib-container { padding: 0 !important; background: transparent !important; border: none !important; max-width: none !important; }
.input--hidden { display: none !important; }
.sib-form-block { padding: 0 !important; background: transparent !important; }

/* ---------- FOOTER ---------- */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 27, 74, 0.04) 100%);
    border-top: 1px solid rgba(0, 27, 74, 0.08);
    padding: var(--space-2xl) 0 var(--space-md);
    margin-top: var(--space-xl);
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--albert-blue), transparent);
    opacity: 0.4;
}
.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 27, 74, 0.08);
    margin-bottom: var(--space-lg);
}
.footer-wordmark {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--ink-900);
    background: linear-gradient(180deg, var(--ink-900) 0%, rgba(10, 15, 31, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-lead {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-500);
    letter-spacing: 0.04em;
    padding-bottom: 12px;
}
.footer-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--albert-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 27, 74, 0.08);
    margin-bottom: var(--space-md);
}
.footer-col-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-300);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col li {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.5;
}
.footer-col a {
    color: var(--ink-900);
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-col a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--albert-royal);
    transition: width var(--dur-base) var(--ease-out);
}
.footer-col a:hover {
    color: var(--albert-royal);
}
.footer-col a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-500);
}
.footer-tech {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-300);
}
.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 27, 74, 0.12);
    border-radius: 999px;
    color: var(--ink-900);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--dur-base) var(--ease-out);
}
.footer-top-link:hover {
    border-color: var(--albert-royal);
    color: var(--albert-royal);
    transform: translateY(-2px);
}
.footer-top-link svg { transition: transform var(--dur-base) var(--ease-out); }
.footer-top-link:hover svg { transform: translateY(-2px); }

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-sm);
    overflow-y: auto;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 23, 0.7);
    backdrop-filter: blur(8px);
    animation: fade-in var(--dur-base) var(--ease-out);
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modal-in 400ms var(--ease-out);
    margin: auto;
}
@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-900);
    z-index: 10;
    transition: all var(--dur-base) var(--ease-out);
    box-shadow: var(--shadow-md);
}
.modal-close:hover {
    background: var(--albert-deep);
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    padding: 0;
}
.modal-hero {
    height: 260px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--albert-deep), var(--albert-royal));
}
.modal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}
.modal-hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-md);
    z-index: 1;
}
.modal-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}
.modal-hero h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: var(--space-xl);
}
.modal-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-900);
    margin: var(--space-md) 0 var(--space-sm);
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p {
    font-size: 15px;
    color: var(--ink-500);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}
.modal-body ul {
    margin: var(--space-sm) 0 var(--space-md) 20px;
    list-style: disc;
}
.modal-body ul li {
    font-size: 15px;
    color: var(--ink-500);
    line-height: 1.7;
    padding-left: 6px;
    margin-bottom: 6px;
}
.modal-body strong { color: var(--ink-900); }

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}
.modal-meta-item {
    font-size: 12px;
}
.modal-meta-label {
    color: var(--ink-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}
.modal-meta-value {
    color: var(--ink-900);
    font-weight: 600;
    font-size: 14px;
}

.modal-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}
.modal-tech span {
    padding: 6px 12px;
    background: var(--albert-ice);
    color: var(--albert-royal);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

/* ---------- CAROUSEL (project modals) ---------- */
.carousel-placeholder { margin-bottom: var(--space-md); }
.carousel {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--ink-100);
    background: var(--ink-900);
    box-shadow: var(--shadow-md);
}
.carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-slide {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    background: var(--ink-900);
    -webkit-user-drag: none;
    user-select: none;
}

/* Single image (no controls) */
.carousel:not([data-total]) .carousel-slide {
    max-height: none;
    background: white;
    object-fit: cover;
}

/* Nav buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-900);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: opacity 300ms ease, background-color 200ms ease, transform 200ms ease;
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
    background: var(--albert-royal);
    color: white;
    transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Footer: dots + counter */
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}
.carousel-dots {
    display: flex;
    gap: 6px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 300ms ease;
    padding: 0;
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.7); }
.carousel-dot.active {
    background: white;
    width: 22px;
    border-radius: 4px;
}
.carousel-counter {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 720px) {
    .carousel-btn {
        width: 34px;
        height: 34px;
        opacity: 1; /* always visible on mobile (no hover) */
    }
    .carousel-prev { left: 6px; }
    .carousel-next { right: 6px; }
    .carousel-slide { max-height: 300px; }
}

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 700ms var(--ease-out),
        transform 700ms var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .intro-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .intro-portrait { max-width: 340px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .about-intro { position: static; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .albert-grid { grid-template-columns: 1fr; }
    .albert-side { flex-direction: row; }
    .albert-values { grid-template-columns: repeat(2, 1fr); }
    .contact-methods { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .footer-hero { align-items: flex-start; flex-direction: column; gap: var(--space-sm); }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .contact-meta-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    :root {
        --space-2xl: 4rem;
        --space-xl: 2.5rem;
    }
    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + var(--space-md));
        right: var(--space-sm);
        left: var(--space-sm);
        flex-direction: column;
        gap: var(--space-xs);
        padding: var(--space-md);
        background: white;
        border: 1px solid rgba(0, 27, 74, 0.08);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--dur-base) var(--ease-out);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a { padding: 10px 4px; width: 100%; }
    .nav-toggle { display: flex; }
    .nav-container { padding: 0 var(--space-sm); }
    .nav-logo-text { display: none; }

    .projects-grid { grid-template-columns: 1fr; }
    .albert-side { flex-direction: column; }
    .albert-values { grid-template-columns: 1fr; }
    .intro-stats { flex-wrap: wrap; gap: var(--space-md); }
    .stat { flex: 1 1 30%; }
    .skills-grid { grid-template-columns: 1fr; }

    .timeline { padding-left: 32px; }
    .timeline::before { left: 7px; }
    .timeline-dot { left: -30px; width: 14px; height: 14px; }

    .modal { padding: var(--space-sm); }
    .modal-body { padding: var(--space-md); }
    .modal-hero { height: 180px; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
    .menu-toggle-label { display: none; }
    .menu-toggle { padding: 10px 14px; }
    .contact-meta-strip { grid-template-columns: 1fr; }
    .newsletter-row { grid-template-columns: 1fr; }
    .channel-card {
        grid-template-columns: auto 1fr;
        gap: var(--space-sm);
    }
    .channel-arrow { display: none; }
}
