/* ═══════════════════════════════════════════════════════════════════════
   SVB INVESTMENTS — DESIGN SYSTEM
   Editorial / archival treatment. Brand-consistent with
   stephanievonbismarck.com (navy · cream · teal, Cormorant + Questrial).
   ═══════════════════════════════════════════════════════════════════════ */

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

img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ── 2. TOKENS ─────────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --navy:        #122C34;
    --navy-deep:   #0B1D23;
    --navy-soft:   #1B3A44;
    --cream:       #FFFFE1;
    --teal:        #018E88;
    --teal-bright: #14A79F;

    /* Extended neutrals */
    --paper:       #FAF8EF;
    --paper-warm:  #F2EFE2;
    --sand:        #C3B79B;
    --ink:         #0E2129;

    /* Semantic — reassigned per section theme */
    --bg:          var(--paper);
    --fg:          var(--ink);
    --fg-muted:    rgba(14, 33, 41, 0.62);
    --fg-faint:    rgba(14, 33, 41, 0.40);
    --line:        rgba(14, 33, 41, 0.14);
    --line-soft:   rgba(14, 33, 41, 0.08);
    --accent:      var(--teal);

    /* Type */
    --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --font-body:    'Questrial', -apple-system, 'Segoe UI', sans-serif;

    --fs-display-1: clamp(3rem, 8.5vw, 7.5rem);
    --fs-display-2: clamp(2.35rem, 5.4vw, 4.5rem);
    --fs-display-3: clamp(1.75rem, 3vw, 2.6rem);
    --fs-lead:      clamp(1.05rem, 1.35vw, 1.3rem);
    --fs-body:      1rem;
    --fs-small:     0.875rem;
    --fs-label:     0.72rem;

    /* Space */
    --gutter:   clamp(1.5rem, 6vw, 7rem);
    --section:  clamp(5rem, 11vh, 9.5rem);
    --shell:    1440px;

    /* Motion */
    --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --dur:       0.6s;

    --nav-h: 78px;
}

/* ── 3. THEMES ─────────────────────────────────────────────────────────── */
.theme-paper {
    --bg: var(--paper); --fg: var(--ink);
    --fg-muted: rgba(14, 33, 41, 0.62); --fg-faint: rgba(14, 33, 41, 0.38);
    --line: rgba(14, 33, 41, 0.14); --line-soft: rgba(14, 33, 41, 0.07);
}
.theme-warm { --bg: var(--paper-warm); --fg: var(--ink);
    --fg-muted: rgba(14, 33, 41, 0.62); --fg-faint: rgba(14, 33, 41, 0.38);
    --line: rgba(14, 33, 41, 0.14); --line-soft: rgba(14, 33, 41, 0.07);
}
.theme-navy {
    --bg: var(--navy); --fg: var(--cream);
    --fg-muted: rgba(255, 255, 225, 0.66); --fg-faint: rgba(255, 255, 225, 0.40);
    --line: rgba(255, 255, 225, 0.16); --line-soft: rgba(255, 255, 225, 0.08);
}
.theme-ink {
    --bg: var(--navy-deep); --fg: var(--cream);
    --fg-muted: rgba(255, 255, 225, 0.62); --fg-faint: rgba(255, 255, 225, 0.36);
    --line: rgba(255, 255, 225, 0.14); --line-soft: rgba(255, 255, 225, 0.07);
}

/* ── 4. BASE ───────────────────────────────────────────────────────────── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--teal); color: var(--cream); }

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

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--gutter);
    z-index: 999;
    background: var(--navy);
    color: var(--cream);
    padding: 0.85rem 1.5rem;
    font-size: var(--fs-small);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ── 5. LAYOUT PRIMITIVES ──────────────────────────────────────────────── */
.section {
    background: var(--bg);
    color: var(--fg);
    padding: var(--section) 0;
    position: relative;
}

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

.rule { height: 1px; background: var(--line); border: 0; }

/* Section head: sticky label column beside content */
.head {
    display: grid;
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 5rem);
    align-items: start;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
/* Below this the 200px label column leaves too little room for the heading. */
@media (max-width: 780px) {
    .head { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: var(--fs-label);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}
/* Long eyebrows (the hero's especially) must wrap on narrow screens rather
   than run off the edge — nowrap only once there is room for it. */
@media (min-width: 700px) { .eyebrow { white-space: nowrap; } }
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: currentColor;
    flex: none;
}
.eyebrow--center { justify-content: center; }

/* ── 6. TYPOGRAPHY ─────────────────────────────────────────────────────── */
.display-1, .display-2, .display-3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.018em;
    text-wrap: balance;
}
.display-1 { font-size: var(--fs-display-1); line-height: 0.98; }
.display-2 { font-size: var(--fs-display-2); line-height: 1.06; }
.display-3 { font-size: var(--fs-display-3); line-height: 1.18; letter-spacing: -0.01em; }

.display-1 em, .display-2 em, .display-3 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.display-1 strong, .display-2 strong { font-weight: 700; }

.lead {
    font-size: var(--fs-lead);
    line-height: 1.72;
    color: var(--fg-muted);
    max-width: 56ch;
}

.prose p { color: var(--fg-muted); margin-bottom: 1.3rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.meta {
    font-size: var(--fs-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-faint);
}

.serif-quote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.75rem);
    line-height: 1.32;
    font-weight: 400;
    letter-spacing: -0.012em;
    text-wrap: balance;
}
.serif-quote em { font-style: italic; color: var(--accent); }

/* ── 7. BUTTONS & LINKS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2.1rem;
    font-size: var(--fs-label);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
    isolation: isolate;
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform 0.4s var(--ease); }

.btn--solid { background: var(--teal); color: #F4FFFE; }
.btn--solid:hover { background: #016D68; }

.btn--outline { border-color: var(--line); color: var(--fg); }
.btn--outline::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}
.btn--outline:hover { color: #F4FFFE; border-color: var(--accent); }
.btn--outline:hover::before { transform: scaleX(1); }
.btn--outline:hover svg { transform: translateX(3px); }

.btn--ghost { color: var(--fg); padding-inline: 0; }
.btn--ghost::after {
    content: ''; position: absolute; left: 0; bottom: 0.55rem;
    width: 100%; height: 1px; background: currentColor;
    transform: scaleX(1); transform-origin: right;
    transition: transform 0.45s var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleX(0); }

.link-underline {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.45s var(--ease-out), color 0.3s;
    padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; }

/* ── 8. SCROLL PROGRESS ────────────────────────────────────────────────── */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--teal-bright);
    z-index: 200;
    pointer-events: none;
}

/* ── 9. NAV ────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 150;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.45s var(--ease), height 0.45s var(--ease),
                box-shadow 0.45s var(--ease), border-color 0.45s;
    border-bottom: 1px solid transparent;
}
.nav__inner {
    width: 100%; max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav.is-stuck {
    height: 66px;
    background: rgba(11, 29, 35, 0.86);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: rgba(255, 255, 225, 0.09);
}
/* Over light sections the bar inverts */
.nav.is-light { color: var(--ink); }
.nav.is-light.is-stuck {
    background: rgba(250, 248, 239, 0.9);
    border-bottom-color: rgba(14, 33, 41, 0.1);
}
.nav:not(.is-light) { color: var(--cream); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}
.brand__mark { width: 34px; height: 34px; flex: none; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.brand__sub {
    font-size: 0.56rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav__link {
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.72;
    position: relative;
    padding: 0.4rem 0;
    transition: opacity 0.3s;
}
.nav__link::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--teal-bright);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { opacity: 1; color: var(--teal-bright); }

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

/* Language switch */
.lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 28%, transparent);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}
.lang__btn {
    padding: 0.4rem 0.65rem;
    text-transform: uppercase;
    opacity: 0.55;
    transition: opacity 0.25s, background 0.25s, color 0.25s;
}
.lang__btn[aria-pressed="true"] {
    opacity: 1;
    background: var(--teal);
    color: #F4FFFE;
}
.lang__btn:hover { opacity: 1; }

.nav__cta { display: none; }
@media (min-width: 1100px) { .nav__cta { display: inline-flex; padding: 0.75rem 1.5rem; } }

/* Burger */
.burger {
    display: none;
    width: 40px; height: 40px;
    position: relative;
    z-index: 210;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.burger span {
    display: block; width: 24px; height: 1.5px;
    background: currentColor;
    transition: transform 0.4s var(--ease-out), opacity 0.25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--navy-deep);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem var(--gutter) 3rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease-out);
    visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__list { display: flex; flex-direction: column; gap: 0.35rem; }
.drawer__link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.25rem);
    line-height: 1.25;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover { color: var(--teal-bright); }
.drawer__link .num {
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--teal);
    opacity: 0.8;
}
.drawer__foot {
    margin-top: auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 225, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-small);
    color: rgba(255, 255, 225, 0.6);
}

@media (max-width: 1024px) {
    .nav__links { display: none; }
    .burger { display: flex; }
}

/* Narrow phones: the wordmark, the language switch and the burger have to
   share one row without the brand wrapping onto two lines. */
@media (max-width: 460px) {
    .nav__inner { gap: 0.75rem; }
    .brand { gap: 0.6rem; }
    .brand__mark { width: 28px; height: 28px; }
    .brand__name { font-size: 1.05rem; }
    .brand__sub { letter-spacing: 0.22em; font-size: 0.52rem; }
    .nav__actions { gap: 0.5rem; }
    .lang__btn { padding: 0.35rem 0.5rem; font-size: 0.62rem; }
    .burger { width: 34px; }
}
.brand__name, .brand__sub { white-space: nowrap; }

/* ── 10. HERO ──────────────────────────────────────────────────────────── */
.hero {
    /* The hero carries no theme class, so it must set its own semantic tokens —
       otherwise .btn--outline inherits the light-theme ink colour and vanishes. */
    --fg: var(--cream);
    --fg-muted: rgba(255, 255, 225, 0.72);
    --fg-faint: rgba(255, 255, 225, 0.42);
    --line: rgba(255, 255, 225, 0.28);
    --line-soft: rgba(255, 255, 225, 0.1);
    --accent: var(--teal-bright);

    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--nav-h) + 4rem);
    padding-bottom: clamp(2rem, 5vh, 4rem);
    color: var(--cream);
    background: var(--navy-deep);
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
    width: 100%; height: 118%;
    object-fit: cover;
    filter: brightness(0.44) contrast(1.06) saturate(0.82);
    will-change: transform;
}
.hero__media::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 29, 35, 0.82) 0%, rgba(11, 29, 35, 0.22) 38%, rgba(11, 29, 35, 0.92) 100%),
        radial-gradient(120% 80% at 15% 90%, rgba(1, 142, 136, 0.20), transparent 60%);
}

/* minmax(0,1fr), not 1fr — an `auto` minimum lets the nested facts grid push
   the track wider than the shell and overflow the viewport on small screens. */
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
}
.hero__grid > * { min-width: 0; }

.hero__headline { margin-top: 1.6rem; max-width: 15ch; }
.hero__lead { margin-top: 1.75rem; max-width: 46ch; color: rgba(255, 255, 225, 0.74); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero__actions .btn--outline { border-color: rgba(255, 255, 225, 0.32); }

/* Hero facts strip */
.hero__facts {
    margin-top: clamp(3rem, 7vh, 5rem);
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 225, 0.16);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem 2rem;
}
.hero__fact { display: flex; flex-direction: column; gap: 0.35rem; }
.hero__fact dt {
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 225, 0.42);
}
.hero__fact dd {
    font-family: var(--font-display);
    font-size: 1.22rem;
    letter-spacing: 0.01em;
}

.hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(2rem, 5vh, 4rem);
    display: none;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 225, 0.45);
    writing-mode: vertical-rl;
}
@media (min-width: 1100px) { .hero__scroll { display: flex; } }
.hero__scroll i {
    display: block; width: 1px; height: 56px;
    background: linear-gradient(180deg, rgba(255,255,225,0.5), transparent);
    animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue {
    0%   { transform: scaleY(0.25); transform-origin: top; opacity: 0.2; }
    50%  { transform: scaleY(1);    transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1);    transform-origin: bottom; }
    100% { transform: scaleY(0.25); transform-origin: bottom; opacity: 0.2; }
}

/* ── 11. MANIFESTO ─────────────────────────────────────────────────────── */
.manifesto__statement { max-width: 22ch; }

.manifesto__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: clamp(1.75rem, 4vw, 4rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.signature {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.signature__name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--fg);
}
.signature__role {
    font-size: var(--fs-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-faint);
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}

/* ── 12. PILLARS ───────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar {
    padding: clamp(2rem, 3.2vw, 3.25rem) clamp(1.5rem, 2.4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: background 0.5s var(--ease);
}
.pillar:first-child { border-left: 1px solid var(--line); }
.pillar::before {
    content: '';
    position: absolute; inset: auto 0 0 0;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.6s var(--ease-out);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover { background: rgba(1, 142, 136, 0.045); }

.pillar__num {
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: 1.75rem;
    display: block;
}
.pillar__icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.5rem; }
.pillar__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin-bottom: 0.9rem; }
.pillar__desc { color: var(--fg-muted); font-size: 0.96rem; margin-bottom: 1.5rem; }
.pillar__list { display: flex; flex-direction: column; gap: 0.55rem; }
.pillar__list li {
    display: flex; gap: 0.65rem; align-items: baseline;
    font-size: var(--fs-small); color: var(--fg-muted);
}
.pillar__list li::before {
    content: ''; width: 5px; height: 5px; flex: none;
    border: 1px solid var(--accent); transform: rotate(45deg); translate: 0 -1px;
}

@media (max-width: 900px) {
    .pillars { grid-template-columns: 1fr; }
    .pillar { border-left: 1px solid var(--line); }
}

/* ── 13. PORTFOLIO ─────────────────────────────────────────────────────── */
.filters {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.filter {
    padding: 0.55rem 1.25rem;
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--fg-muted);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filter:hover { color: var(--fg); border-color: var(--fg-faint); }
.filter[aria-pressed="true"] {
    background: var(--accent); border-color: var(--accent); color: #F4FFFE;
}

.projects { display: flex; flex-direction: column; }

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    border-top: 1px solid var(--line);
    text-align: left;
    width: 100%;
    color: inherit;
    transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project:nth-child(even) .project__media { order: 2; }
.project.is-hidden { display: none; }

.project__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--paper-warm);
}
.project__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease);
}
.project:hover .project__media img { transform: scale(1.06); }
.project__media::after {
    content: '';
    position: absolute; inset: 12px;
    border: 1px solid rgba(255, 255, 225, 0.55);
    opacity: 0; transform: scale(1.04);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
    pointer-events: none;
}
.project:hover .project__media::after { opacity: 1; transform: scale(1); }

.project__status {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(11, 29, 35, 0.82);
    backdrop-filter: blur(6px);
    color: var(--cream);
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
}
.project__status i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal-bright);
    flex: none;
    position: relative;
}
/* Compositor-friendly ping: transform + opacity on a ring, not box-shadow. */
.project__status--live i::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--teal-bright);
    animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(3.4); opacity: 0; }
    100% { transform: scale(3.4); opacity: 0; }
}

.project__index {
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    color: var(--accent);
    display: block;
    margin-bottom: 1.1rem;
}
.project__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.1; }
.project__place {
    font-size: var(--fs-label);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-top: 0.7rem;
}
.project__blurb { color: var(--fg-muted); margin-top: 1.4rem; max-width: 46ch; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.tag {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    color: var(--fg-faint);
}

.project__open {
    display: inline-flex; align-items: center; gap: 0.7rem;
    margin-top: 2rem;
    font-size: var(--fs-label);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}
.project__open svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.project:hover .project__open svg { transform: translateX(5px); }

@media (max-width: 860px) {
    .project { grid-template-columns: 1fr; gap: 1.75rem; }
    .project:nth-child(even) .project__media { order: 0; }
}

/* ── 14. CASE STUDY PANEL ──────────────────────────────────────────────── */
.case-backdrop {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(11, 29, 35, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.case-backdrop.is-open { opacity: 1; visibility: visible; }

.case {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(880px, 100%);
    z-index: 310;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    transition: transform 0.7s var(--ease-out);
    box-shadow: -30px 0 80px rgba(11, 29, 35, 0.28);
}
.case.is-open { transform: none; }

.case__bar {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(250, 248, 239, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.case__bar-label {
    font-size: var(--fs-label);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
}
.case__nav { display: flex; gap: 0.4rem; align-items: center; }
.case__btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.case__btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.case__btn svg { width: 16px; height: 16px; }
.case__btn[disabled] { opacity: 0.3; pointer-events: none; }

.case__hero { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-warm); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }

.case__body { padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3rem) 4rem; }
.case__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.06; font-weight: 400; }
.case__place {
    font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--fg-faint); margin-top: 0.7rem;
}
.case__intro { margin-top: 1.75rem; font-size: 1.06rem; line-height: 1.78; color: var(--fg-muted); }

.case__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 1.75rem 0;
    border-block: 1px solid var(--line);
}
.case__facts dt {
    font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--fg-faint); margin-bottom: 0.45rem;
}
.case__facts dd { font-family: var(--font-display); font-size: 1.15rem; }

.case__subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 2.5rem 0 1.1rem;
}
.case__points { display: flex; flex-direction: column; gap: 0.85rem; }
.case__points li {
    display: flex; gap: 0.85rem; align-items: baseline;
    color: var(--fg-muted); font-size: 0.97rem;
}
.case__points li::before {
    content: ''; width: 6px; height: 6px; flex: none;
    border: 1px solid var(--teal); transform: rotate(45deg); translate: 0 -1px;
}

.case__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.gal {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--paper-warm);
    cursor: zoom-in;
}
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gal:hover img { transform: scale(1.07); }
.gal figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 1.75rem 0.85rem 0.7rem;
    background: linear-gradient(transparent, rgba(11, 29, 35, 0.85));
    color: var(--cream);
    font-size: 0.7rem; letter-spacing: 0.06em;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gal:hover figcaption { opacity: 1; transform: none; }

.case__cta {
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between;
}

/* Server-rendered source for the panels — hidden but crawlable */
.case-source { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 15. LIGHTBOX ──────────────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(8, 22, 27, 0.96);
    display: grid; place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 100%; max-height: 82vh;
    object-fit: contain;
    transform: scale(0.97);
    transition: transform 0.5s var(--ease-out);
}
.lightbox.is-open img { transform: none; }
.lightbox__caption {
    position: absolute; left: 50%; bottom: clamp(1rem, 4vh, 2.5rem);
    transform: translateX(-50%);
    color: rgba(255, 255, 225, 0.7);
    font-size: var(--fs-small);
    letter-spacing: 0.08em;
    text-align: center;
    max-width: 60ch;
}
.lightbox__close {
    position: absolute; top: clamp(1rem, 3vh, 2rem); right: clamp(1rem, 3vw, 2rem);
    width: 46px; height: 46px;
    display: grid; place-items: center;
    color: var(--cream);
    border: 1px solid rgba(255, 255, 225, 0.25);
    transition: background 0.3s;
}
.lightbox__close:hover { background: rgba(255, 255, 225, 0.12); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__arrow {
    position: absolute; top: 50%; translate: 0 -50%;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    color: var(--cream);
    border: 1px solid rgba(255, 255, 225, 0.2);
    transition: background 0.3s;
}
.lightbox__arrow:hover { background: rgba(255, 255, 225, 0.12); }
.lightbox__arrow svg { width: 18px; height: 18px; }
.lightbox__arrow--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__arrow--next { right: clamp(0.5rem, 2vw, 2rem); }

/* ── 16. PROCESS ───────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    counter-reset: step;
}
.step { position: relative; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.step::before {
    content: '';
    position: absolute; top: -1px; left: 0;
    width: 0; height: 1px; background: var(--accent);
    transition: width 1s var(--ease-out);
}
.step.is-visible::before { width: 100%; }
.step__num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.45;
    margin-bottom: 1rem;
    display: block;
}
.step__title { font-family: var(--font-display); font-size: 1.42rem; margin-bottom: 0.7rem; }
.step__desc { color: var(--fg-muted); font-size: 0.93rem; }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── 17. RECORD / STATS ────────────────────────────────────────────────── */
.record { position: relative; overflow: hidden; }
.record__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
}
.stat { border-left: 1px solid var(--line); padding-left: clamp(1rem, 1.6vw, 1.75rem); }
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.2vw, 4.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stat__label {
    margin-top: 0.75rem;
    font-size: var(--fs-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-faint);
}
.stat__note { margin-top: 0.5rem; font-size: 0.82rem; color: var(--fg-faint); }

@media (max-width: 860px) { .record__grid { grid-template-columns: repeat(2, 1fr); } }

/* ── 18. VOICE / MEDIA ─────────────────────────────────────────────────── */
.voice { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.voice__cards { display: flex; flex-direction: column; gap: 1rem; }
.voice__card {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.6rem;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.voice__card:hover { border-color: var(--accent); background: rgba(1, 142, 136, 0.05); transform: translateX(4px); }
.voice__card svg.ico { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 3px; }
.voice__card h3 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; margin-bottom: 0.35rem; }
.voice__card p { font-size: 0.9rem; color: var(--fg-muted); }
.voice__card .arrow { margin-left: auto; width: 16px; height: 16px; color: var(--fg-faint); flex: none; transition: transform 0.4s var(--ease); }
.voice__card:hover .arrow { transform: translateX(4px); color: var(--accent); }

@media (max-width: 900px) { .voice { grid-template-columns: 1fr; } }

/* ── 19. CONTACT ───────────────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }

.contact__details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.detail { display: flex; gap: 1rem; align-items: flex-start; }
.detail svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 5px; }
.detail dt { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 0.2rem; }
.detail dd { font-size: 1rem; }
.detail a { text-decoration: none; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.field { display: flex; flex-direction: column; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--fg-faint); margin-bottom: 0.6rem;
}
.field input, .field select, .field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0;
    font-size: 1rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.35s;
    border-radius: 0;
}
.field select { appearance: none; cursor: pointer; padding-right: 1.75rem; }
.field select option { background: var(--navy-deep); color: var(--cream); }
.field--select::after {
    content: '';
    position: absolute; right: 4px; bottom: 1.15rem;
    width: 7px; height: 7px;
    border-right: 1px solid var(--fg-faint);
    border-bottom: 1px solid var(--fg-faint);
    transform: rotate(45deg);
    pointer-events: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: #E4674F; }
.field__error {
    font-size: 0.76rem; color: #E4674F;
    margin-top: 0.45rem; min-height: 1rem;
    opacity: 0; transform: translateY(-3px);
    transition: opacity 0.3s, transform 0.3s;
}
.field.has-error .field__error { opacity: 1; transform: none; }

.consent { grid-column: 1 / -1; display: flex; gap: 0.85rem; align-items: flex-start; }
.consent input { appearance: none; width: 18px; height: 18px; flex: none; margin-top: 3px;
    border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: '✓'; display: grid; place-items: center; color: #F4FFFE; font-size: 12px; line-height: 16px; }
.consent.has-error input { border-color: #E4674F; }
.consent label { font-size: 0.82rem; color: var(--fg-muted); letter-spacing: 0; text-transform: none; margin: 0; line-height: 1.6; }
.consent a { color: var(--accent); }

.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
.form__note { font-size: 0.8rem; color: var(--fg-faint); max-width: 34ch; }

.hp { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }

.form__status {
    grid-column: 1 / -1;
    display: none;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    font-size: 0.9rem;
}
.form__status.is-shown { display: flex; }
.form__status.is-ok { border-color: var(--teal); background: rgba(1, 142, 136, 0.1); }
.form__status.is-bad { border-color: #E4674F; background: rgba(228, 103, 79, 0.1); }
.form__status svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }

button.btn[aria-busy="true"] { opacity: 0.65; pointer-events: none; }

@media (max-width: 900px) {
    .contact__grid { grid-template-columns: 1fr; }
    .form { grid-template-columns: 1fr; }
}

/* ── 20. FOOTER ────────────────────────────────────────────────────────── */
.footer { background: var(--navy-deep); color: var(--cream); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 225, 0.1);
}
.footer__blurb { color: rgba(255, 255, 225, 0.55); font-size: 0.92rem; margin-top: 1.5rem; max-width: 40ch; }
.footer__col h4 {
    font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 1.25rem; font-weight: 400;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a {
    font-size: 0.9rem; color: rgba(255, 255, 225, 0.6);
    text-decoration: none; transition: color 0.3s;
}
.footer__col a:hover { color: var(--cream); }

.footer__bottom {
    display: flex; flex-wrap: wrap; gap: 1rem 2rem;
    justify-content: space-between; align-items: center;
    padding: 1.75rem 0 2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 225, 0.38);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a { text-decoration: none; transition: color 0.3s; }
.footer__legal a:hover { color: rgba(255, 255, 225, 0.8); }

/* Studio credit — quiet by default, resolves on hover. */
.footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 225, 0.32);
    transition: color 0.35s var(--ease);
}
.footer__credit strong {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 225, 0.55);
    transition: color 0.35s var(--ease);
}
.footer__credit svg {
    width: 11px; height: 11px;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.footer__credit:hover { color: rgba(255, 255, 225, 0.6); }
.footer__credit:hover strong { color: var(--teal); }
.footer__credit:hover svg { opacity: 1; transform: none; }

@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

/* ── 21. LEGAL / SUBPAGE ───────────────────────────────────────────────── */
.subpage { padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 6rem)); }
.subpage__title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 400; line-height: 1.05; }
.legal { max-width: 72ch; margin-top: 3rem; }
.legal h2 {
    font-family: var(--font-display); font-size: 1.65rem; font-weight: 500;
    margin: 2.75rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 0.95rem; letter-spacing: 0.06em; margin: 1.75rem 0 0.6rem; }
.legal p, .legal li { color: var(--fg-muted); margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--accent); }
.legal .placeholder {
    display: inline-block;
    background: rgba(1, 142, 136, 0.12);
    border-bottom: 1px dashed var(--teal);
    padding: 0 0.3rem;
    color: var(--teal);
}

/* ── 22. GRAIN ─────────────────────────────────────────────────────────── */
/* The grain sits ABOVE the content at a very low opacity, so it must not
   reposition children — an earlier `.grain > * { position: relative }` broke
   absolutely positioned media inside grained sections. */
.grain { position: relative; }
.grain::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
    mix-blend-mode: overlay;
}

/* ── 23. REVEAL ANIMATIONS ─────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal="mask"] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.05s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
[data-reveal="mask"].is-visible { clip-path: inset(0 0 0 0); }

[data-reveal="fade"] { transform: none; }

/* ── 24. REDUCED MOTION ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .grain::after { display: none; }
    .hero__scroll i { animation: none; }
}

/* ── 25. PRINT ─────────────────────────────────────────────────────────── */
@media print {
    .nav, .drawer, .progress, .hero__scroll, .case, .case-backdrop, .lightbox, .filters, .form { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 1.5rem 0; break-inside: avoid; }
    [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
