/* ============================================================
   BENJIMAN SCHLEGEL — Author & Content Strategist
   Concept: "Two voices, one mission."
   Dark + electric blue (strategist/creator) with a
   paper-flip Letter section (author). Faith, human-first.
   ============================================================ */

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

:root {
    /* Ink (dark) palette — deep cerulean, built from Benjiman's shirt (#39A1C7) */
    --ink:        #061018;
    --ink-2:      #07151f;
    --surface:    #0c2030;
    --surface-2:  #12303f;
    --line:       rgba(173, 216, 234, 0.10);
    --line-2:     rgba(173, 216, 234, 0.05);
    --line-blue:  rgba(57, 161, 199, 0.32);

    /* Type colors on dark (blue-tinted neutrals) */
    --white:      #eef6fb;
    --muted:      #9fb6c4;
    --muted-2:    #647a88;

    /* Cerulean — Benjiman's shirt color, made into an accessible ramp */
    --blue:       #15728f;   /* primary fills (white text passes AA 4.5:1) */
    --blue-bright:#2a97bd;   /* hover / glow / borders */
    --blue-200:   #6fc7e8;   /* readable inline links / display italics on dark */
    --blue-shirt: #39a1c7;   /* the exact shirt cerulean — accents only */
    --blue-glow:  rgba(57, 161, 199, 0.42);

    /* Paper (light) palette for The Letter */
    --paper:      #f4efe4;
    --paper-2:    #ece5d6;
    --paper-ink:  #16171d;
    --paper-soft: #55534d;
    --paper-line: rgba(20, 21, 26, 0.14);
    --paper-accent: #156a8a;  /* deep cerulean accent on paper */

    /* premium accent themes for initiatives */
    --purple:      #8b6dff;
    --purple-200:  #b9a6ff;
    --purple-line: rgba(139, 109, 255, 0.34);
    --purple-glow: rgba(139, 109, 255, 0.42);
    --gold:        #e6c45c;
    --gold-200:    #f1d98a;
    --gold-line:   rgba(212, 175, 55, 0.38);
    --gold-glow:   rgba(212, 175, 55, 0.34);

    /* Type */
    --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:   'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* System */
    --container: 1180px;
    --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t:      0.32s var(--ease);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle film grain so flat dark areas feel rich, not empty */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue); color: #fff; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    background: var(--blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--r-sm);
    font-weight: 600;
    z-index: 2000;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Visible, on-brand focus for keyboard users */
:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Scroll progress --- */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright));
    z-index: 1500;
    transition: width 0.1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 22px 0;
    transition: padding var(--t), background var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 13px 0;
    border-bottom-color: var(--line);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 600;
}
.nav-logo-mark {
    position: relative;
    overflow: hidden;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: var(--blue);
    color: #fff;
    border-radius: 9px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 6px 20px var(--blue-glow);
}
.nav-logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* When the real avatar loads, drop the blue tile and go circular */
.nav-logo-mark.has-img {
    background: transparent;
    border-radius: 50%;
}
.nav-logo-text {
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--white);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a[data-nav] {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    padding: 9px 14px;
    border-radius: 8px;
    transition: color var(--t), background var(--t);
}
.nav-links a[data-nav]:hover { color: var(--white); background: var(--line-2); }
.nav-links a[data-nav].active { color: var(--white); }
.nav-links a[data-nav].active::before {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--blue-bright);
    margin-right: 7px;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--blue-bright);
}
.nav-cta {
    margin-left: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    padding: 10px 18px;
    border-radius: 9px;
    transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.nav-cta:hover {
    background: var(--blue-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--blue-glow);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--t);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    --pad-y: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: var(--pad-y) 26px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
}
.btn svg { transition: transform var(--t); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
    background: var(--blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px var(--blue-glow);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-200); color: var(--white); transform: translateY(-2px); }
.btn-ink {
    background: var(--paper-ink);
    color: var(--paper);
}
.btn-ink:hover { background: #000; transform: translateY(-2px); }
.btn-ink:hover svg { transform: translate(2px, -2px); }
.btn-full { width: 100%; }

/* ============================================================
   SHARED SECTION PRIMITIVES
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-200);
    margin-bottom: 20px;
}
.eyebrow-ink { color: var(--paper-accent); }
.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 12px var(--blue-bright);
}
.display {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--white);
}
.display em {
    font-style: italic;
    font-weight: 500;
    color: var(--blue-200);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-sub {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 56ch;
}
section { position: relative; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: 150px 28px 80px;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 78% -5%, rgba(57, 161, 199, 0.20), transparent 60%),
        radial-gradient(900px 600px at 10% 110%, rgba(57, 161, 199, 0.12), transparent 60%),
        var(--ink);
}
.hero-shader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.62;
    pointer-events: none;
    /* fade the backdrop out toward the bottom so it blends into the page */
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-glow {
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--blue-glow), transparent 65%);
    filter: blur(40px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s var(--ease);
    z-index: 0;
}
.hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}
/* Signature overlay on the bottom-right of the hero photo (transparent PNG, spills over the edge) */
.portrait-sig {
    position: absolute;
    right: -84px;
    bottom: -74px;
    width: clamp(300px, 96%, 500px);
    height: auto;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 26px;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.9rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--white);
}
.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--blue-200);
}
/* secondary line under the name */
.hero-title-sub {
    display: block;
    margin-top: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--blue-200);
}
.hero-title-and {
    display: block;
    margin-top: 14px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(1rem, 1.8vw, 1.45rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--muted);
}
.hero-lead {
    margin-top: 28px;
    max-width: 50ch;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--muted);
}
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-meta {
    margin-top: 46px;
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat b {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
}
.hero-stat span { font-size: 0.82rem; color: var(--muted-2); letter-spacing: 0.02em; }

/* Portrait */
.hero-portrait { position: relative; }
.portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(150deg, var(--surface), #0c0f17);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04),
                inset 0 -120px 90px -60px rgba(7, 8, 12, 0.85);
    pointer-events: none;
}
.portrait-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 26%;
    z-index: 1;
}
.portrait-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--muted-2);
}
.portrait-fallback small {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--muted-2);
}
.portrait-fallback code {
    color: var(--blue-200);
    font-family: var(--sans);
}
/* When the real image loads, the JS removes .no-photo; default assumes photo present */
.portrait-frame.no-photo .portrait-img { display: none; }
.portrait-frame:not(.no-photo) .portrait-fallback { display: none; }

.portrait-chip {
    position: absolute;
    left: -18px;
    bottom: 26px;
    z-index: 3;
    background: rgba(12, 15, 23, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-blue);
    border-radius: 13px;
    padding: 13px 18px;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}
.portrait-chip-num { display: block; font-weight: 600; font-size: 0.9rem; color: var(--white); }
.portrait-chip-label { display: block; font-size: 0.74rem; color: var(--blue-200); margin-top: 2px; letter-spacing: 0.03em; }

.hero-scroll {
    position: relative;
    z-index: 2;
    align-self: center;
    margin-top: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.hero-scroll-line {
    width: 1px; height: 46px;
    background: linear-gradient(to bottom, var(--blue-bright), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--ink-2);
    padding: 22px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee 34s linear infinite;
}
.marquee-track span {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--muted);
    padding: 0 26px;
    white-space: nowrap;
}
.marquee-track i { color: var(--blue-bright); font-style: normal; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 130px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 72px;
    align-items: start;
}
.about-aside { position: sticky; top: 110px; }
.about-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.role-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--muted);
    background: var(--surface);
    transition: var(--t);
}
.role-tag:hover { border-color: var(--line-blue); color: var(--white); }
.about-statement {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 34px;
}
.about-statement em { font-style: italic; color: var(--blue-200); }
.about-text {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 62ch;
}
.about-figure {
    position: relative;
    margin-top: 76px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
}
.about-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 28%;
    display: block;
}
.about-figure figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 26px 20px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(0deg, rgba(7, 8, 12, 0.8), transparent);
}

/* ============================================================
   THE LETTER — paper / author voice
   ============================================================ */
.letter {
    background: var(--paper);
    color: var(--paper-ink);
    padding: 130px 0;
    position: relative;
    overflow: hidden;
}
/* Deckle-edge feel + warmth */
.letter::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(21, 106, 138, 0.10), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(57, 161, 199, 0.08), transparent 60%);
    pointer-events: none;
}
.letter-inner { position: relative; z-index: 1; }
.letter-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.letter-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--paper-ink);
}
.letter-title .amp {
    font-style: italic;
    font-weight: 400;
    color: var(--paper-accent);
}
.letter-sub {
    margin-top: 22px;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--paper-soft);
}
.letter-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 70px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}
.letter-lead {
    font-family: var(--serif);
    font-size: 1.32rem;
    line-height: 1.7;
    color: var(--paper-ink);
}
.dropcap {
    float: left;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 4.4rem;
    line-height: 0.78;
    padding: 6px 12px 0 0;
    color: var(--paper-accent);
}
.pull-quote {
    margin: 34px 0;
    padding-left: 24px;
    border-left: 3px solid var(--paper-accent);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.45;
    color: var(--paper-ink);
}
.letter-note {
    font-size: 0.95rem;
    color: var(--paper-soft);
    margin-bottom: 24px;
}

/* Book cover mock */
.letter-book { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.book {
    --bw: 230px;
    --bh: 322px;
    --bd: 38px;
    position: relative;
    width: var(--bw);
    height: var(--bh);
    margin: 0 auto;
    perspective: 1600px;
    cursor: grab;
}
.book:active { cursor: grabbing; }
.book-3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(6deg) rotateY(-26deg);
    will-change: transform;
}
.book-face { position: absolute; backface-visibility: hidden; }
.book-front, .book-back { width: var(--bw); height: var(--bh); left: 0; top: 0; }
.book-front { transform: translateZ(calc(var(--bd) / 2)); }
.book-back {
    transform: rotateY(180deg) translateZ(calc(var(--bd) / 2));
    background: #ffffff;
    border-radius: 10px 4px 4px 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.book-spine, .book-edge { width: var(--bd); height: var(--bh); left: calc(50% - var(--bd) / 2); top: 0; }
.book-spine {
    transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
    background: linear-gradient(90deg, #ededed, #ffffff 55%, #f0f0f0);
    border-radius: 3px 0 0 3px;
}
.book-edge {
    transform: rotateY(90deg) translateZ(calc(var(--bw) / 2));
    background: repeating-linear-gradient(90deg, #ffffff 0 1.5px, #eaeaea 1.5px 3px);
}
.book-top, .book-bottom { width: var(--bw); height: var(--bd); left: 0; top: calc(50% - var(--bd) / 2); }
.book-top {
    transform: rotateX(90deg) translateZ(calc(var(--bh) / 2));
    background: repeating-linear-gradient(90deg, #ffffff 0 1.5px, #eaeaea 1.5px 3px);
}
.book-bottom {
    transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2));
    background: repeating-linear-gradient(90deg, #f6f6f6 0 1.5px, #e4e4e4 1.5px 3px);
}
.book-front {
    border-radius: 4px 10px 10px 4px;
    background: linear-gradient(152deg, #202023 0%, #0b0b0d 50%, #050506 100%);
    background-color: #0a0a0c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    color: #fff;
    box-shadow:
        0 36px 70px -26px rgba(10, 10, 14, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
/* Image cover variant (his handwritten white cover) */
.book-front-img {
    background: #fff;
    padding: 0;
    box-shadow:
        0 36px 70px -26px rgba(10, 10, 14, 0.7),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.book-front-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}
/* Soft ambient gloss from the top-left, like light on a laminate cover */
.book-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 78% 8%, rgba(255, 255, 255, 0.14), transparent 46%),
        linear-gradient(158deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}
/* Specular sheen that sweeps across on a loop */
.book-front::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 55%;
    height: 180%;
    background: linear-gradient(105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        transparent 80%);
    transform: rotate(9deg) translateX(-220%);
    animation: bookSheen 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bookSheen {
    0%   { transform: rotate(9deg) translateX(-220%); }
    38%  { transform: rotate(9deg) translateX(360%); }
    100% { transform: rotate(9deg) translateX(360%); }
}
.book-kicker {
    position: relative;
    z-index: 1;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: auto;
    padding-top: 6px;
}
.book-title {
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-weight: 600;
    font-style: italic;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}
.book-rule {
    position: relative;
    z-index: 1;
    width: 38px; height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #fff 50%, rgba(255, 255, 255, 0.2));
    margin: 16px 0;
}
.book-author {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
    padding-bottom: 6px;
}
.book-status {
    font-size: 0.78rem;
    color: var(--paper-soft);
    font-style: italic;
}

/* ============================================================
   PROOF
   ============================================================ */
.proof { padding: 130px 0 110px; background: var(--ink); }
.proof .section-head { margin-bottom: 44px; }
/* Showcase — horizontal scroller by default, upgraded to a 3D marquee via JS */
.showcase {
    overflow-x: auto;
    padding: 12px max(28px, calc((100vw - var(--container)) / 2 + 28px)) 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}
.showcase::-webkit-scrollbar { height: 8px; }
.showcase::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
.showcase-stage { width: max-content; }
.showcase-track { display: flex; gap: 22px; width: max-content; }

/* 3D tilted auto-marquee (JS adds .is-marquee on desktop when motion is allowed) */
.showcase.is-marquee {
    overflow: hidden;
    perspective: 2200px;
    padding-top: 48px;
    padding-bottom: 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.showcase.is-marquee .showcase-stage {
    transform: rotateX(6deg) rotateY(-15deg) rotateZ(1deg);
    transform-style: preserve-3d;
}
.showcase.is-marquee .showcase-track { animation: showcaseMarquee 64s linear infinite; }
.showcase.is-marquee:hover .showcase-track,
.showcase.is-marquee:focus-within .showcase-track { animation-play-state: paused; }
@keyframes showcaseMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.cat {
    flex: 0 0 auto;
    width: 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.cat:hover { border-color: var(--line-blue); transform: translateY(-4px); box-shadow: 0 24px 50px -30px var(--blue-glow); }

.cat-head { display: flex; align-items: center; gap: 13px; }
.cat-avatar {
    position: relative;
    width: 52px; height: 52px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--surface-2), #091824);
    border: 1px solid var(--line-blue);
}
.cat-avatar::after {
    content: attr(data-initials);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--blue-200);
}
.cat-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cat-id { min-width: 0; flex: 1; }
.cat-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--white); line-height: 1.12; }
.cat-handle { display: inline-block; font-size: 0.84rem; color: var(--blue-200); margin-top: 3px; transition: color var(--t); }
.cat-handle:hover { color: var(--blue-bright); text-decoration: underline; }
.cat-index { font-family: var(--serif); font-size: 1rem; color: var(--muted-2); align-self: flex-start; }

.cat-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-date {
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
    color: var(--blue-200);
    padding: 4px 11px;
    border: 1px solid var(--line-blue);
    border-radius: 100px;
    white-space: nowrap;
}
.cat-kind { font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.02em; }

.cat-rail { display: flex; gap: 10px; margin-top: 2px; }
.vid-card { flex: 1 1 0; min-width: 0; text-decoration: none; }
.vid-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.5s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.vid-card-wide .vid-media { aspect-ratio: 16 / 9; }
.vid-card:hover .vid-media, .vid-card:focus-visible .vid-media {
    filter: grayscale(0) brightness(1);
    transform: translateY(-4px);
    border-color: var(--line-blue);
    box-shadow: 0 16px 32px -20px var(--blue-glow);
}
.vid-el, .vid-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    color: #fff;
    background: rgba(6, 16, 24, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: opacity var(--t), transform var(--t);
}
.vid-card:hover .vid-play, .vid-card.playing .vid-play { opacity: 0; transform: scale(0.85); }
.vid-metric {
    position: absolute;
    left: 8px; bottom: 8px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1;
    color: #fff;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(6, 16, 24, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.vid-metric small {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-200);
    margin-top: 2px;
}
.vid-metric-sm { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-200); }
.proof-hint { margin-top: 22px; font-size: 0.85rem; color: var(--muted-2); font-style: italic; }

/* ---- Tilted 3D conveyor stack (front face-on, cards recede) ---- */
.conveyor {
    position: relative;
    margin: 6px auto 0;
    max-width: var(--container);
    padding: 24px 28px 8px;
    perspective: 1300px;
    perspective-origin: 50% 44%;
    overflow: hidden;            /* contain the receding cards; no page side-scroll */
    cursor: grab;
    touch-action: pan-y;          /* let vertical scroll through; we handle horizontal */
}
.conveyor:active { cursor: grabbing; }
.conveyor:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; border-radius: var(--r-md); }
.conveyor-stage {
    position: relative;
    width: 210px;
    height: 496px;
    margin: 0 auto;
    transform-style: preserve-3d;
    /* symmetric fan (previous left, next right); subtle cinematic tilt */
    transform: rotateX(4deg);
}
.conveyor .vid-card {
    position: absolute;
    top: 0; left: 0;
    width: 210px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 12px 14px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    transform-origin: center center;
    transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease), filter 0.8s var(--ease);
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}
.conveyor .vid-card.vid-card-wide { width: 300px; }
@media (max-width: 600px) {
    .conveyor-stage { width: 188px; height: 468px; transform: scale(0.82) rotateX(4deg); }
    .conveyor .vid-card { width: 188px; }
    .conveyor .vid-card.vid-card-wide { width: 264px; }
}
.clip-tag { display: flex; flex-direction: column; gap: 3px; margin-top: 11px; }
.clip-handle { display: flex; align-items: center; gap: 5px; }
.clip-handle .pf { flex: 0 0 auto; opacity: 0.9; }
.clip-stats { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 5px; font-size: 0.72rem; color: var(--muted); }
.clip-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.clip-stats svg { flex: 0 0 auto; opacity: 0.85; color: var(--blue-200); }
.clip-stats .st-note { color: var(--blue-200); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.66rem; }
.clip-brand { font-family: var(--serif); font-weight: 600; font-size: 0.98rem; color: var(--white); line-height: 1.15; }
.clip-handle { font-size: 0.8rem; color: var(--blue-200); }
/* card-level filter controls dimming; media itself stays untreated */
.conveyor .vid-media { filter: none; transform: none; }

/* Electric charge on the card you're currently viewing — flickering edges, no rotating frame */
.conveyor .vid-card.is-active {
    border-color: var(--blue-bright);
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px var(--blue),
        0 0 24px -8px var(--blue-glow);
}
.conveyor .vid-card.is-active::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--r-md) + 1px);
    pointer-events: none;
    z-index: 3;
    box-shadow:
        0 0 0 1px var(--blue-bright),
        0 0 16px 0 var(--blue-glow),
        0 0 44px -6px var(--blue-glow),
        inset 0 0 18px -6px var(--blue-glow);
    animation: ccEdgeFlicker 2.6s linear infinite;
}
/* irregular timing = electric flicker */
@keyframes ccEdgeFlicker {
    0%, 100% { opacity: 1; }
    3%  { opacity: 0.35; }
    5%  { opacity: 1; }
    8%  { opacity: 0.6; }
    10% { opacity: 1; }
    46% { opacity: 1; }
    48% { opacity: 0.3; }
    50% { opacity: 1; }
    68% { opacity: 0.82; }
    70% { opacity: 1; }
    85% { opacity: 0.5; }
    87% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .conveyor .vid-card.is-active::before { animation: none; opacity: 1; }
}

.clip-nav { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.clip-progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.clip-progress-fill { display: block; height: 100%; width: 6%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); border-radius: 3px; transition: width 0.25s var(--ease); }
.clip-count { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }
.clip-count b { color: var(--white); }

.fb-btn {
    width: 44px; height: 44px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--t);
}
.fb-btn:hover { border-color: var(--blue-200); color: var(--blue-bright); transform: translateY(-2px); }
code {
    font-family: 'Space Grotesk', monospace;
    background: var(--surface-2);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.85em;
}

/* ============================================================
   BUILDING
   ============================================================ */
.building { padding: 120px 0; background: var(--ink-2); }
.build-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.build-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 30px 28px;
    overflow: hidden;
    transition: transform var(--t), border-color var(--t);
}
.build-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.build-card:hover { transform: translateY(-6px); border-color: var(--line-blue); }
.build-card:hover::before { transform: scaleX(1); }
.build-num { font-family: var(--serif); color: var(--blue-200); font-weight: 600; font-size: 1rem; }
.build-kind {
    display: block;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
}
/* Initiative profile avatar (image crossfades over initials, animated entrance) */
.build-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.build-meta { display: flex; flex-direction: column; }
.ini-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--surface-2), #091824);
    border: 1px solid var(--line-blue);
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.7);
    animation: iniIn 0.6s var(--ease-out) both;
    transition: transform var(--t);
}
.ini-avatar::after {
    content: attr(data-initials);
    z-index: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--blue-200);
}
.ini-avatar img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s var(--ease), transform 0.7s var(--ease-out);
}
.ini-avatar img.loaded { opacity: 1; transform: scale(1); }
.ini-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 55%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.build-card:hover .ini-avatar { transform: translateY(-2px) scale(1.04); }
@keyframes iniIn { from { opacity: 0; transform: translateY(7px) scale(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ini-avatar { animation: none; }
    .ini-avatar img { transition: opacity 0.2s linear; transform: none; }
}

/* Premium themed initiative cards */
.build-purple {
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(139, 109, 255, 0.12), transparent 55%),
        var(--surface);
    border-color: var(--purple-line);
}
.build-purple::before { background: linear-gradient(90deg, var(--purple), var(--purple-200)); }
.build-purple:hover { border-color: var(--purple); box-shadow: 0 26px 60px -30px var(--purple-glow); }
.build-purple .build-num { color: var(--purple-200); }
.build-purple .ini-avatar { border-color: var(--purple-line); background: linear-gradient(145deg, #221a3a, #140f24); }
.build-purple .ini-avatar::after { color: var(--purple-200); }

.build-gold {
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
        var(--surface);
    border-color: var(--gold-line);
}
.build-gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-200)); }
.build-gold:hover { border-color: var(--gold); box-shadow: 0 26px 60px -30px var(--gold-glow); }
.build-gold .build-num { color: var(--gold-200); }
.build-gold .ini-avatar { border-color: var(--gold-line); background: linear-gradient(145deg, #2a2412, #181307); }
.build-gold .ini-avatar::after { color: var(--gold-200); }
.build-gold .link-arrow { color: var(--gold-200); }
.build-gold .link-arrow:hover { color: var(--gold); }
.build-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--purple-200);
    margin: 14px 0 4px;
    text-shadow: 0 0 22px var(--purple-glow);
}

/* Convictions closing mantra */
.beliefs-mantra {
    margin: 44px 0 0;
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    color: var(--purple);
    text-shadow: 0 0 30px var(--purple-glow);
}
.build-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--white);
    font-size: 1.5rem;
    margin: 14px 0 11px;
}
.build-card p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; flex: 1; }
.build-card p strong { color: var(--white); }
.inl {
    color: var(--blue-200);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--t);
}
.inl:hover { color: var(--blue-bright); }
.build-photo {
    grid-row: span 1;
    padding: 0;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    justify-content: flex-start;
}
.build-photo-inner {
    padding: 30px;
    background: linear-gradient(180deg, rgba(7, 8, 12, 0.95) 12%, rgba(7, 8, 12, 0.6) 58%, transparent);
}
.build-photo-inner > * { position: relative; }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-200);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 18px;
    transition: gap var(--t), color var(--t);
}
.link-arrow:hover { gap: 11px; color: var(--blue-bright); }

/* ============================================================
   WORK — editorial case list
   ============================================================ */
.work { padding: 130px 0; }
.case-list { list-style: none; }
.case {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 28px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
    transition: background var(--t);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case:hover { background: linear-gradient(90deg, var(--line-2), transparent 40%); }
.case-num {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--muted-2);
    line-height: 1;
}
.case:hover .case-num { color: var(--blue-200); }
.case-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.case-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--white);
    letter-spacing: -0.01em;
}
.case-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    white-space: nowrap;
}
.case-main > p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 70ch;
}
.case-main > p strong { color: var(--blue-200); font-weight: 600; }
.case-meta {
    font-family: var(--serif);
    font-style: italic;
    color: var(--muted-2) !important;
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
}

/* Roster */
.roster { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.roster-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 14px;
}
.roster-chips { display: flex; flex-wrap: wrap; gap: 9px; }
/* smooth auto-sliding roster marquee */
.roster-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.roster-marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: rosterSlide 28s linear infinite;
}
.roster-marquee:hover .roster-marquee-track { animation-play-state: paused; }
.roster-marquee .chip { flex: 0 0 auto; }
@keyframes rosterSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .roster-marquee-track { animation: none; flex-wrap: wrap; }
}
.chip {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 13px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--t);
}
.chip:hover { border-color: var(--line-blue); }
.chip b { color: var(--blue-200); }
.roster-note { color: var(--muted-2); font-size: 0.82rem; font-style: italic; margin-top: 14px; }

/* Featured case video */
.case-feature .case-main > p { max-width: 72ch; }
.case-video {
    margin-top: 22px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    max-width: 640px;
}
.case-video video { width: 100%; display: block; background: #000; }

/* ============================================================
   BELIEFS
   ============================================================ */
.beliefs { padding: 130px 0; background: var(--ink-2); }
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.belief {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 40px 38px;
    transition: transform var(--t), border-color var(--t), background var(--t);
}
.belief:hover { transform: translateY(-4px); border-color: var(--line-blue); background: var(--surface-2); }
.belief-num {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-200);
    letter-spacing: 0.06em;
}
.belief h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--white);
    margin: 14px 0 12px;
}
.belief p { color: var(--muted); font-size: 1rem; line-height: 1.75; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 130px 0; }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-head { margin-bottom: 48px; }
.contact-head .display { margin-top: 4px; }
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.field input, .field textarea {
    width: 100%;
    padding: 15px 17px;
    font-family: var(--sans);
    font-size: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--white);
    transition: border-color var(--t), box-shadow var(--t);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(57, 161, 199, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field-error {
    font-size: 0.8rem;
    color: #ff8a8a;
    min-height: 1em;
}
.contact-form .btn-primary { grid-column: 1 / -1; margin-top: 6px; }
.form-status {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.95rem;
    color: var(--blue-200);
    min-height: 1.2em;
}
.contact-alt {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.contact-alt p { color: var(--muted-2); font-size: 0.95rem; margin-bottom: 14px; }
.contact-mail {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--blue-200);
}
.contact-mail:hover { color: var(--blue-bright); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 70px 0 36px; background: var(--ink-2); border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 44px;
}
.footer-logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}
.footer-brand p { color: var(--muted-2); font-size: 0.92rem; margin-top: 10px; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--t);
}
.footer-nav a:hover { color: var(--blue-200); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--muted);
    transition: var(--t);
}
.footer-social a:hover { border-color: var(--line-blue); color: var(--blue-bright); transform: translateY(-2px); }
.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 26px 28px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted-2); letter-spacing: 0.02em; }
.footer-built { font-family: var(--serif); font-style: italic; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-portrait { max-width: 380px; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-aside { position: static; }
    .build-grid { grid-template-columns: 1fr 1fr; }
    .build-photo { grid-column: 1 / -1; }
    .letter-grid { grid-template-columns: 1fr; gap: 48px; }
    .letter-book { order: -1; }
}

@media (max-width: 720px) {
    .container, .nav-inner { padding-left: 22px; padding-right: 22px; }
    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        background: rgba(7, 8, 12, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 1100;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a[data-nav] { font-size: 1.5rem; font-family: var(--serif); padding: 12px 20px; }
    .nav-cta { margin-top: 12px; font-size: 1rem; padding: 14px 28px; }
    .nav-toggle { display: flex; z-index: 1200; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding-top: 120px; }
    .hero-meta { gap: 26px; }
    .hero-portrait { max-width: 100%; }
    .portrait-chip { left: 12px; }

    .build-grid { grid-template-columns: 1fr; }
    .beliefs-grid { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .case { grid-template-columns: 1fr; gap: 12px; }
    .case-num { font-size: 1.6rem; }
    .cat { width: 82vw; max-width: 340px; }
    .marquee-track span { font-size: 1.2rem; padding: 0 18px; }
    .about, .letter, .proof, .building, .work, .beliefs, .contact { padding: 84px 0; }
    .footer-inner { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    .hero-scroll-line { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
