/* ==========================================================================
   Luca Zinicola Consulting — styles.css
   Vanilla CSS, no framework. Light theme default, dark via prefers-color-scheme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (Light theme — default)
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette — light */
    --bg:               #FAF7F2;   /* warm eggshell */
    --surface:          #FFFFFF;   /* cards, nav */
    --surface-alt:      #F4F0E8;   /* subtle alt surfaces */
    --text:             #1C2B4A;   /* primary navy */
    --text-secondary:   #5C6B7A;
    --accent:           #C4923A;   /* warm amber */
    --accent-strong:    #A77A28;
    --accent-soft:      rgba(196, 146, 58, 0.08);
    --border:           #E8ECF4;
    --border-strong:    #D6DCE8;
    --available:        #2E9E5F;   /* green pulse dot */

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Scale */
    --fs-xs:   0.8125rem;   /* 13px */
    --fs-sm:   0.9375rem;   /* 15px */
    --fs-base: 1rem;        /* 16px */
    --fs-md:   1.125rem;    /* 18px */
    --fs-lg:   1.375rem;    /* 22px */
    --fs-xl:   1.75rem;     /* 28px */
    --fs-2xl:  2.25rem;     /* 36px */
    --fs-3xl:  3rem;        /* 48px */
    --fs-4xl:  3.75rem;     /* 60px */

    /* Spacing */
    --container-max: 1200px;
    --gutter: 1.5rem;

    /* Radii & shadows */
    --radius-sm:  6px;
    --radius:    10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(28, 43, 74, 0.04), 0 1px 3px rgba(28, 43, 74, 0.04);
    --shadow:    0 4px 16px rgba(28, 43, 74, 0.06), 0 1px 3px rgba(28, 43, 74, 0.04);
    --shadow-lg: 0 12px 40px rgba(28, 43, 74, 0.08), 0 4px 12px rgba(28, 43, 74, 0.04);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 160ms;
    --t-med:  280ms;
    --t-slow: 480ms;

    /* Header */
    --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Design tokens — Dark theme (automatic)
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:             #0a0f1e;
        --surface:        #0d1527;
        --surface-alt:    #111b30;
        --text:           #F1F5F9;
        --text-secondary: rgba(226, 232, 240, 0.62);
        --accent:         #67E8F9;   /* cyan */
        --accent-strong:  #22D3EE;
        --accent-soft:    rgba(103, 232, 249, 0.08);
        --border:         rgba(255, 255, 255, 0.07);
        --border-strong:  rgba(255, 255, 255, 0.12);
        --available:      #34D399;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow:    0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--text);
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    z-index: 1000;
    font-size: var(--fs-sm);
    font-weight: 500;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.2vw, var(--fs-2xl));
    font-weight: 500;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 rgba(28, 43, 74, 0.02), 0 8px 24px rgba(28, 43, 74, 0.04);
}

@media (prefers-color-scheme: dark) {
    .site-header.is-scrolled {
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}

.brand-name {
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--text);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: border-color var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease);
}

.brand:hover .brand-mark {
    background: var(--text);
    color: var(--bg);
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width var(--t-med) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link-cta {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--text);
    border-radius: 999px;
    transition: background-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease);
}

.nav-link-cta::after { display: none; }

.nav-link-cta:hover {
    background: var(--text);
    color: var(--bg);
}

/* Hamburger button */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: background-color var(--t-fast) var(--ease);
}

.hamburger:hover {
    background: var(--accent-soft);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--t-med) var(--ease),
                opacity var(--t-fast) var(--ease);
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease),
                transform var(--t-med) var(--ease),
                visibility 0s linear var(--t-med);
    z-index: 90;
}

.mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity var(--t-med) var(--ease),
                transform var(--t-med) var(--ease),
                visibility 0s linear 0s;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 0.75rem var(--gutter) 1.5rem;
}

.mobile-link {
    padding: 1rem 0.25rem;
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color var(--t-fast) var(--ease),
                padding-left var(--t-fast) var(--ease);
}

.mobile-link:last-child { border-bottom: none; }

.mobile-link:hover,
.mobile-link.active {
    color: var(--accent);
    padding-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
    overflow: hidden;
}

/* Subtle infrastructure grid lines — geometric, not clipart */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
    opacity: 0.6;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.hero-text {
    max-width: 36rem;
}

/* Availability bar */
.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem 0.45rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.availability-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--available);
    flex-shrink: 0;
}

.availability-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--available);
    animation: pulse-dot 2s var(--ease) infinite;
}

@keyframes pulse-dot {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(2.6);  opacity: 0;   }
    100% { transform: scale(2.6);  opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
    .availability-dot::before { animation: none; }
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, var(--fs-4xl));
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-title-accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
    display: block;
}

.hero-lede {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 34rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.hero-meta {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Portrait */
.hero-portrait {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-alt);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--t-slow) var(--ease);
}

.portrait-frame:hover img {
    transform: scale(1.02);
}

/* Decorative corner accents — geometric, evoking infrastructure framing */
.portrait-corner {
    position: absolute;
    width: 48px;
    height: 48px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}

.portrait-corner-tl {
    top: -8px;
    left: -8px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.portrait-corner-br {
    bottom: -8px;
    right: -8px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
    white-space: nowrap;
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--t-fast) var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
    .btn-primary { color: var(--bg); }
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Stats strip
   -------------------------------------------------------------------------- */
.stats {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
}

.stat {
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(-1 * clamp(0.5rem, 1.5vw, 1rem));
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: var(--border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, var(--fs-3xl));
    font-weight: 500;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.stat-plus {
    color: var(--accent);
    font-weight: 400;
}

.stat-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Clients strip
   -------------------------------------------------------------------------- */
.clients {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    text-align: center;
}

.clients-eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.clients-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.client-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
    transition: border-color var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease),
                transform var(--t-fast) var(--ease);
}

.client-badge:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. Positioning section
   -------------------------------------------------------------------------- */
.positioning {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.positioning-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.positioning-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

@media (max-width: 1024px) {
    .positioning-intro { position: static; }
}

.positioning-body p {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.positioning-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Pillars
   -------------------------------------------------------------------------- */
.pillars {
    padding: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar {
    padding: 2rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--t-med) var(--ease),
                box-shadow var(--t-med) var(--ease),
                border-color var(--t-med) var(--ease);
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.pillar-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--accent);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.pillar-title {
    font-size: var(--fs-lg);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.pillar p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. Closing CTA
   -------------------------------------------------------------------------- */
.closing-cta {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.closing-inner {
    text-align: center;
    max-width: 44rem;
    margin-inline: auto;
}

.closing-rule {
    width: 48px;
    height: 1.5px;
    background: var(--accent);
    margin: 0 auto 1.75rem;
}

.closing-title {
    font-size: clamp(1.875rem, 4vw, var(--fs-2xl));
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.closing-lede {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.closing-cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    margin-bottom: 3rem;
}

.footer-brand-col .brand-footer {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.65;
    max-width: 26rem;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.7rem;
}

.footer-links a,
.footer-contact a {
    font-size: var(--fs-sm);
    color: var(--text);
    transition: color var(--t-fast) var(--ease);
}

.footer-contact li {
    font-size: var(--fs-sm);
    color: var(--text);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

.footer-bottom p { margin: 0; }

.footer-fineprint {
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

/* Tablet & small laptop */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .hero-text { max-width: none; }

    .portrait-frame {
        max-width: 380px;
        margin-inline: auto;
    }

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

    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 36rem;
        margin-inline: auto;
    }

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

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .nav-desktop { display: none; }
    .hamburger { display: flex; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .stat:nth-child(2)::after { display: none; }
    .stat:not(:last-child)::after { right: -0.5rem; }

    .hero-title { letter-spacing: -0.02em; }

    .hero-cta .btn {
        width: 100%;
        max-width: 22rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand-col { grid-column: auto; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat:not(:last-child)::after { display: none; }

    .clients-row { gap: 0.5rem; }
    .client-badge {
        padding: 0.5rem 1rem;
        font-size: var(--fs-xs);
    }

    .portrait-corner {
        width: 36px;
        height: 36px;
    }
}

/* --------------------------------------------------------------------------
   15. Focus styles (accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible,
.nav-link-cta:focus-visible {
    outline-offset: 4px;
}

/* ==========================================================================
   17. PROJECTS PAGE — case study index, case study layout, metric strip
   ========================================================================== */

/* --- Case study index nav (sticky-like jump links) --- */
.cs-index {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.cs-index-list {
    counter-reset: cs-index;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-index-list li {
    list-style: none;
}

.cs-index-list a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease),
                transform var(--t-fast) var(--ease);
    text-decoration: none;
    color: var(--text);
    height: 100%;
}

.cs-index-list a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.cs-index-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--accent);
    flex-shrink: 0;
}

.cs-index-title {
    font-size: var(--fs-sm);
    line-height: 1.4;
    font-weight: 500;
}

/* --- Case study container --- */
.case-study {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.case-study-alt {
    background: var(--surface);
}

.case-study:last-of-type {
    border-bottom: 1px solid var(--border);
}

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

/* --- Context aside (sticky on desktop) --- */
.cs-context {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
}

.cs-num {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cs-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 1.875rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 2rem;
}

.cs-meta {
    margin: 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--border);
}

.cs-meta-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.cs-meta-row:last-child {
    border-bottom: none;
}

.cs-meta dt {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.cs-meta dd {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: 1.45;
}

/* --- Case study body (Challenge / Approach / Outcome) --- */
.cs-body {
    min-width: 0; /* prevent grid overflow */
}

.cs-section {
    margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.cs-section:last-of-type {
    margin-bottom: 2.5rem;
}

.cs-section-title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.cs-body .cs-section h3.cs-section-title + p,
.cs-body .cs-section p {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

.cs-body .cs-section p:last-child {
    margin-bottom: 0;
}

/* --- Metric strip (in-case-study summary numbers) --- */
.cs-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding: 1.75rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    list-style: none;
}

.case-study-alt .cs-metrics {
    background: var(--bg);
}

.cs-metrics li {
    text-align: center;
    padding: 0.5rem;
    list-style: none;
}

.cs-metric-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.cs-metric-plus {
    color: var(--accent);
    font-weight: 400;
}

.cs-metric-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

/* --- Placeholder state (case studies awaiting interview) --- */
.cs-section-placeholder {
    padding: 1.75rem;
    background: var(--bg);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.case-study-alt .cs-section-placeholder {
    background: var(--surface);
}

.cs-placeholder-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.cs-section-placeholder .cs-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.01em;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cs-placeholder-cta {
    margin-top: 1.5rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cs-inline-link {
    font-weight: 600;
    color: var(--accent);
    transition: color var(--t-fast) var(--ease);
}

.cs-inline-link:hover {
    color: var(--accent-strong);
}

/* --- Responsive overrides for projects page --- */
@media (max-width: 1024px) {
    .cs-index-list {
        grid-template-columns: 1fr;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cs-context {
        position: static;
    }

    .cs-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-meta-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.7rem 0;
    }

    .cs-metrics {
        padding: 1.25rem;
        gap: 1.25rem 0.75rem;
    }

    .cs-metric-num {
        font-size: 1.625rem;
    }
}

/* ==========================================================================
   18. SERVICES PAGE — service cards, sectors blocks, B2B engagement card
   ========================================================================== */

/* --- Services grid --- */
.services-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--t-med) var(--ease),
                box-shadow var(--t-med) var(--ease),
                border-color var(--t-med) var(--ease);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.service-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--accent);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.service-title {
    font-size: clamp(1.25rem, 2.4vw, 1.625rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-examples {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.service-examples li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: 1.55;
}

.service-examples li:last-child {
    margin-bottom: 0;
}

.service-examples li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.5rem;
    height: 1px;
    background: var(--accent);
}

/* --- Sectors section --- */
.sectors-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.sectors-block {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.sectors-block .section-title {
    margin-bottom: 1.25rem;
    font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}

.sectors-lede {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 32rem;
}

.sector-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sector-list li {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
    gap: 0.4rem;
}

.sector-list li:last-child {
    border-bottom: 1px solid var(--border);
}

.sector-name {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    color: var(--text);
    font-weight: 500;
}

.sector-detail {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.55;
}

.sectors-block-alt .sector-name {
    color: var(--accent);
}

/* --- B2B engagement card --- */
.b2b-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.b2b-card {
    position: relative;
    max-width: 60rem;
    margin-inline: auto;
    padding: clamp(2.5rem, 5vw, 4rem);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Geometric corner accents echoing the homepage portrait frame */
.b2b-corner {
    position: absolute;
    width: 56px;
    height: 56px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}

.b2b-corner-tl {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: var(--radius-lg);
}

.b2b-corner-br {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: var(--radius-lg);
}

.b2b-eyebrow {
    margin-bottom: 1.25rem;
}

.b2b-title {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.b2b-body {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 46rem;
}

.b2b-meta {
    margin: 2.25rem 0 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.b2b-meta-row {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.b2b-meta-row:last-child {
    border-bottom: none;
}

.b2b-meta dt {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.b2b-meta dd {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: 1.55;
}

.b2b-cta {
    margin-top: 0.5rem;
}

/* --- Responsive overrides for services page --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 36rem;
        margin-inline: auto;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .b2b-meta-row {
        grid-template-columns: 10rem 1fr;
    }
}

@media (max-width: 768px) {
    .b2b-meta-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.7rem 0;
    }

    .b2b-corner {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   19. CONTACT PAGE — form, input fields, contact info card
   ========================================================================== */

.contact-section {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

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

/* --- Form --- */
.contact-form-wrap .section-title {
    margin-bottom: 2.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.form-req {
    color: var(--accent);
    font-weight: 700;
}

.form-opt {
    font-size: var(--fs-xs);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    width: 100%;
    transition: border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--text-secondary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg);
}

.form-textarea {
    resize: vertical;
    min-height: 8rem;
    font-family: var(--font-body);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: var(--border-strong);
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-note {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 26rem;
    margin: 0;
}

.form-submit {
    flex-shrink: 0;
}

/* --- Form status (success / error messages from JS) --- */
.form-status {
    font-size: var(--fs-sm);
    line-height: 1.55;
    padding: 0;
    margin: 0;
    min-height: 1rem;
}

.form-status.is-success {
    padding: 1rem 1.25rem;
    background: rgba(46, 158, 95, 0.08);
    border: 1px solid rgba(46, 158, 95, 0.3);
    color: var(--available);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.form-status.is-error {
    padding: 1rem 1.25rem;
    background: rgba(196, 80, 80, 0.08);
    border: 1px solid rgba(196, 80, 80, 0.3);
    color: #B85050;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .form-status.is-error {
        background: rgba(248, 113, 113, 0.1);
        border-color: rgba(248, 113, 113, 0.3);
        color: #F87171;
    }
}

/* --- Contact info card (right column) --- */
.contact-info {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.contact-card {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-card-title {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1.75rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.contact-info-value {
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
    transition: color var(--t-fast) var(--ease);
}

a.contact-info-value:hover {
    color: var(--accent);
}

.contact-card-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem 0.45rem 0.7rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Responsive overrides for contact page --- */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit {
        width: 100%;
    }
}

/* ==========================================================================
   20. LEGAL PAGES — impressum, privacy policy typography
   ========================================================================== */

.legal-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-content {
    max-width: 48rem;
}

.legal-content p {
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

.legal-h2 {
    font-size: clamp(1.25rem, 2.3vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

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

.legal-h3 {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    margin: 1.75rem 0 0.75rem;
}

.legal-list {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.legal-list li {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast) var(--ease);
}

.legal-content a:hover {
    color: var(--accent-strong);
}

.legal-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.875em;
    padding: 0.1em 0.4em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

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

.legal-update {
    margin-top: 3rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm) !important;
    font-style: italic;
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   21. FOOTER LEGAL ROW — Impressum / Privacy / Cookie preferences
   ========================================================================== */

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

.footer-legal a,
.footer-legal-link {
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: color var(--t-fast) var(--ease);
}

.footer-legal a:hover,
.footer-legal-link:hover {
    color: var(--accent);
}

.footer-legal span[aria-hidden] {
    color: var(--border-strong);
}

/* ==========================================================================
   22. COOKIE BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -8px 32px rgba(28, 43, 74, 0.08);
    transform: translateY(110%);
    transition: transform var(--t-slow) var(--ease);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: clamp(1.25rem, 2.5vw, 1.75rem) var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.cookie-banner-text {
    max-width: 42rem;
}

.cookie-banner-title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.cookie-banner-body {
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 0.4rem;
}

.cookie-banner-links {
    font-size: var(--fs-xs);
    margin: 0;
}

.cookie-banner-links a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.65rem 1.1rem;
    font-size: var(--fs-sm);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem var(--gutter);
    }

    .cookie-banner-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   23. COOKIE SETTINGS MODAL
   ========================================================================== */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease);
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 43, 74, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (prefers-color-scheme: dark) {
    .cookie-modal-backdrop {
        background: rgba(0, 0, 0, 0.6);
    }
}

.cookie-modal-inner {
    position: relative;
    max-width: 36rem;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    transform: scale(0.96);
    transition: transform var(--t-med) var(--ease);
}

.cookie-modal.is-visible .cookie-modal-inner {
    transform: scale(1);
}

.cookie-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease);
}

.cookie-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.cookie-modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 1.875rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 0.75rem;
    padding-right: 2rem;
}

.cookie-modal-lede {
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 2rem;
}

/* Cookie category block */
.cookie-category {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.cookie-category:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.005em;
}

.cookie-category-body {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--border-strong);
    border-radius: 999px;
    transition: background-color var(--t-fast) var(--ease);
    flex-shrink: 0;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--surface);
    border-radius: 50%;
    transition: transform var(--t-fast) var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cookie-toggle-label {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.cookie-toggle-locked {
    font-size: var(--fs-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.cookie-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cookie-modal-actions {
        flex-direction: column-reverse;
    }

    .cookie-modal-actions .btn {
        width: 100%;
    }
}

/* Lock body scroll when mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   16. ABOUT PAGE — page-hero, origin, timeline, callout, credentials
   ========================================================================== */

/* --- Page hero (used on subpages: About, Projects, Services, Contact) --- */
.page-hero {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--border);
}

.page-hero-inner {
    max-width: 56rem;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, var(--fs-3xl));
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.page-hero-accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
    display: block;
}

.page-hero-lede {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 46rem;
}

/* --- Section head (eyebrow + title combination, reused) --- */
.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- Origin section --- */
.origin {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.origin-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.origin-body p {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.origin-body p:last-child { margin-bottom: 0; }

/* --- Career timeline --- */
.timeline-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 64rem;
    margin-inline: auto;
}

/* Vertical rail line */
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: linear-gradient(to bottom,
        var(--border-strong) 0%,
        var(--border-strong) 92%,
        transparent 100%);
}

.tl-entry {
    position: relative;
    padding-left: 3.25rem;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tl-entry:last-child {
    padding-bottom: 0;
}

.tl-marker {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    position: relative;
    z-index: 1;
    transition: transform var(--t-med) var(--ease),
                box-shadow var(--t-med) var(--ease);
}

.tl-dot-current {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-dot-current::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    animation: pulse-dot 2.4s var(--ease) infinite;
    z-index: -1;
}

.tl-entry:hover .tl-dot {
    transform: scale(1.15);
}

.tl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

.tl-period {
    color: var(--accent);
    font-weight: 600;
}

.tl-location::before {
    content: '·';
    margin-right: 0.6rem;
    color: var(--border-strong);
}

.tl-role {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.tl-org {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.tl-body {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 46rem;
}

/* --- Callout (EPU / inbound interest) --- */
.callout-section {
    padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.callout {
    position: relative;
    max-width: 60rem;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.25rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.callout-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.callout-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.callout-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.callout-body {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.callout-body:last-child {
    margin-bottom: 0;
}

/* --- Credentials (Education / Certifications / Languages) --- */
.credentials {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cred-card {
    padding: 2rem 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--t-med) var(--ease),
                box-shadow var(--t-med) var(--ease),
                border-color var(--t-med) var(--ease);
}

.cred-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.cred-title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.cred-item {
    margin-bottom: 0;
}

.cred-primary {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.cred-secondary {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cred-note {
    font-size: var(--fs-sm);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
}

.cred-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cred-list li {
    font-size: var(--fs-sm);
    color: var(--text);
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.45;
}

.cred-list li:last-child {
    border-bottom: none;
}

.cred-lang li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.lang-name {
    font-weight: 500;
    color: var(--text);
}

.lang-level {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    text-align: right;
    letter-spacing: 0.02em;
}

/* --- Responsive overrides for about page --- */
@media (max-width: 1024px) {
    .origin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .origin-intro { position: static; }

    .credentials-grid {
        grid-template-columns: 1fr;
        max-width: 36rem;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .tl-entry {
        padding-left: 2.25rem;
    }

    .timeline::before {
        left: 7px;
    }

    .tl-marker {
        width: 16px;
        height: 16px;
        top: 0.4rem;
    }

    .tl-dot {
        width: 10px;
        height: 10px;
    }

    .tl-role {
        font-size: 1.25rem;
    }

    .callout {
        padding: 1.75rem 1.5rem;
    }
}
