/* ============================================================
   Soumya Swaraj — AWWWARDS-grade portfolio stylesheet
   Editorial serif + modern sans · calm, founder-vibe
   ============================================================ */

/* Scroll progress — thin gold filament across the top */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 500;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(201,168,107,0), rgba(201,168,107,0.9) 40%, rgba(243,233,210,1) 70%, rgba(201,168,107,0.9));
    box-shadow: 0 0 12px rgba(201,168,107,0.55);
    transform-origin: left;
    transition: width .18s linear;
}

/* Accessible-but-hidden content (SEO / AEO / screen readers) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    /* — Palette — */
    --bg-deep:     #0E1513;
    --bg-dark:     #121A18;
    --bg-muted:    #1A2421;
    --bg-green:    #1F2D27;
    --bg-light:    #EFECE4;
    --bg-paper:    #F5F2EA;
    --bg-warm:     #E9E2D2;          /* warmer cream for human section */
    --bg-warm-2:   #D8CEB8;

    --text-light:  #F4F1EA;
    --text-dim:    rgba(244,241,234,0.62);
    --text-faint:  rgba(244,241,234,0.36);
    --text-dark:   #141C1A;

    --accent-gold: #C9A86B;
    --accent-cream:#F3E9D2;
    --accent-rust: #8A6A30;
    --accent-soft: rgba(201,168,107,0.18);

    --line:        rgba(244,241,234,0.08);
    --line-strong: rgba(244,241,234,0.16);
    --line-dark:   rgba(20,28,26,0.12);

    /* — Type — */
    --font-serif:  'Playfair Display', 'Times New Roman', serif;
    --font-sans:   'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-mono:   'JetBrains Mono', ui-monospace, monospace;

    /* — Metrics — */
    --pad-x: clamp(1.25rem, 4vw, 4rem);
    --ease:  cubic-bezier(0.7, 0, 0.2, 1);
}

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

html, body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    cursor: none;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(201,168,107,0.05), transparent 45%),
        radial-gradient(ellipse at 80% 100%, rgba(41,71,60,0.35), transparent 55%),
        var(--bg-dark);
}
body.modal-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
em, .italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

/* =============== Loader =============== */
.loader {
    position: fixed; inset: 0;
    background-color: var(--bg-deep);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}
.loader::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201,168,107,0.08), transparent 60%);
}
.loader-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.loader-stage { position: relative; width: 160px; height: 160px; display: flex; justify-content: center; align-items: center; }
.loader-ring-svg {
    position: absolute; inset: 0;
    animation: spinSlow 14s linear infinite;
}
.loader-ring { stroke-dasharray: 452; stroke-dashoffset: 452; animation: drawRing 2.8s var(--ease) infinite; }
.loader-owl {
    position: relative;
    z-index: 2;
    animation: owlLoaderEntrance 1.1s cubic-bezier(.2,.9,.25,1.1) both;
    filter: drop-shadow(0 8px 18px rgba(201,168,107,0.25));
}
@keyframes drawRing { 0% { stroke-dashoffset: 452; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -452; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes owlLoaderEntrance {
    0%   { opacity: 0; transform: translateY(14px) scale(0.7); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.loader-meta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loader-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-faint); }
.loader-progress { font-family: var(--font-serif); font-size: 3rem; color: var(--text-light); display: flex; align-items: baseline; gap: 0.25em; }
.loader-unit { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-faint); }
.progress-track { width: 220px; height: 1px; background: var(--line); overflow: hidden; position: relative; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--accent-gold), var(--accent-cream)); }

/* =============== Ambient / Background =============== */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ambient-orb { position: absolute; width: 55vw; height: 55vw; border-radius: 50%; filter: blur(120px); opacity: 0.35; mix-blend-mode: screen; }
.orb-1 { top: -15%; left: -10%; background: radial-gradient(circle, rgba(201,168,107,0.45), transparent 70%); animation: float1 24s ease-in-out infinite; }
.orb-2 { bottom: -20%; right: -15%; background: radial-gradient(circle, rgba(45,90,75,0.9), transparent 70%); animation: float2 30s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(6vw,8vh) scale(1.1);} }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-8vw,-6vh) scale(1.15);} }
.ambient-noise {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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");
}

.bg-grid { position: fixed; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(9, 1fr); padding: 0 var(--pad-x); pointer-events: none; }
.bg-grid span { border-left: 1px solid var(--line); }
.bg-grid span:last-child { border-right: 1px solid var(--line); }

/* =============== Cursor =============== */
.cursor, .cursor-follow {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease), height .35s var(--ease),
                border-color .35s var(--ease), background .35s var(--ease),
                opacity .35s var(--ease);
    mix-blend-mode: difference;
}
.cursor { width: 6px; height: 6px; background: var(--accent-cream); border-radius: 50%; }
.cursor-dot { display: none; }
.cursor-follow { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.45); border-radius: 50%; backdrop-filter: blur(2px); }
.cursor.hover { width: 14px; height: 14px; }
.cursor-follow.hover { width: 70px; height: 70px; border-color: var(--accent-gold); background: rgba(201,168,107,0.08); }

/* =============== Navigation =============== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem var(--pad-x);
    gap: 1.5rem;
    border-bottom: 1px solid transparent;
    transition:
        background .45s var(--ease),
        backdrop-filter .45s var(--ease),
        border-color .45s var(--ease),
        padding .45s var(--ease);
}
.navbar::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,107,0.35) 30%, rgba(201,168,107,0.35) 70%, transparent);
    opacity: 0;
    transition: opacity .45s var(--ease);
    pointer-events: none;
}
.navbar.scrolled {
    background: rgba(12,18,16,0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--line);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.navbar.scrolled::after { opacity: 1; }

/* — Brand (left column) — */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}
.nav-logo::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 6px;
    background: rgba(201,168,107,0.08);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.nav-logo:hover::after { opacity: 1; }
.nav-mark { display: block; }

/* — Animated owl character (shared) — */
.owl-char { overflow: visible; }
.owl-char .ow-owl {
    transform-box: fill-box;
    transform-origin: center 70%;
    animation: owlBob 3.2s ease-in-out infinite;
}
.owl-char .ow-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: owlBlink 4.8s ease-in-out infinite;
}
.owl-char .ow-eye-r { animation-delay: 0.05s; }
.owl-char .ow-cloud-a {
    transform-box: fill-box;
    transform-origin: center;
    animation: cloudDriftA 6.5s ease-in-out infinite;
}
.owl-char .ow-cloud-b {
    transform-box: fill-box;
    transform-origin: center;
    animation: cloudDriftB 8s ease-in-out infinite;
}
.owl-char .ow-cloud-c {
    transform-box: fill-box;
    transform-origin: center;
    animation: cloudDriftB 9.2s ease-in-out infinite reverse;
}
.nav-logo:hover .owl-char .ow-owl { animation: owlHop 0.55s ease-out; }
.nav-logo:hover .owl-char .ow-eye { animation: owlBlink 0.3s ease-in-out; }

@keyframes owlBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-1.2px) rotate(-0.6deg); }
}
@keyframes owlBlink {
    0%, 88%, 100% { transform: scaleY(1); }
    92%, 96%      { transform: scaleY(0.08); }
}
@keyframes owlHop {
    0%   { transform: translateY(0) scale(1); }
    40%  { transform: translateY(-3px) scale(1.04, 0.96); }
    70%  { transform: translateY(0) scale(0.98, 1.02); }
    100% { transform: translateY(0) scale(1); }
}
@keyframes cloudDriftA {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(2px); }
}
@keyframes cloudDriftB {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-2.5px); }
}
@media (prefers-reduced-motion: reduce) {
    .owl-mark .ow-owl,
    .owl-mark .ow-eye,
    .owl-mark .ow-cloud-a,
    .owl-mark .ow-cloud-b,
    .owl-mark .ow-cloud-c { animation: none !important; }
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    overflow: hidden;
}
.nav-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: nowrap;
}
.nav-role {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    max-height: 1.4em;
    opacity: 1;
    transition: max-height .45s var(--ease), opacity .45s var(--ease);
}
.navbar.scrolled .nav-role {
    max-height: 0;
    opacity: 0;
}

/* — Center links — */
.nav-center { display: flex; justify-content: center; }
.nav-links { display: flex; gap: 0.15rem; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    border-radius: 50px;
    transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-link::after { display: none; }
.nav-link:hover { color: var(--text-light); background: rgba(255,255,255,0.06); }
.nav-link.active {
    color: var(--text-light);
    background: rgba(255,255,255,0.08);
}
.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--accent-gold);
}

/* — Actions (right column) — */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}
.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}
.pulse-sm {
    width: 5px; height: 5px;
    background: #6ACB8F;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseRing 2.4s ease-out infinite;
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.55rem 1.05rem;
    background: var(--text-light);
    color: var(--text-dark);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: none;
    transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-cta svg { flex-shrink: 0; }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }
.nav-cta:hover {
    transform: translateY(-1px);
    background: var(--accent-cream);
    box-shadow: 0 6px 20px rgba(201,168,107,0.25);
}

/* =============== Hero =============== */
.hero {
    min-height: 100vh;
    padding: calc(6rem + 2vh) var(--pad-x) 3rem;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --mx: 50%;
    --my: 40%;
}

/* ——— Hero background (shader + layers) ——— */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg-deep);
}

/* CSS fallback — shown if WebGL fails, otherwise lives under the canvas as a deep base */
.hero-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(201,168,107,0.22), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(45,90,75,0.5), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(184,82,52,0.15), transparent 70%),
        linear-gradient(180deg, #0E1513 0%, #080C0B 100%);
    filter: blur(30px) saturate(1.1);
    opacity: 1;
    transform: scale(1.05);
}

/* WebGL canvas */
.hero-shader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}
.hero-shader.is-ready { opacity: 1; }

/* Film grain on top for tactile finish */
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.91  0 0 0 0 0.82  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.5;
    pointer-events: none;
}

/* Edge vignette for title legibility */
.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(14,21,19,0.55) 95%),
        linear-gradient(180deg, rgba(14,21,19,0.35) 0%, transparent 18%, transparent 70%, rgba(14,21,19,0.9) 100%);
}

/* Content-area scrim — deepens background directly behind the hero text.
   Very subtle on desktop, assertive on mobile where the shader can otherwise clash with copy. */
.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(14,21,19,0.0)  0%,
            rgba(14,21,19,0.35) 25%,
            rgba(14,21,19,0.55) 55%,
            rgba(14,21,19,0.85) 100%);
    opacity: 0;
    transition: opacity .6s var(--ease);
}

@media (max-width: 900px) {
    .hero-scrim { opacity: 1; }
    .hero-vignette {
        background:
            radial-gradient(ellipse at 50% 45%, rgba(14,21,19,0.15) 0%, rgba(14,21,19,0.7) 95%),
            linear-gradient(180deg, rgba(14,21,19,0.55) 0%, rgba(14,21,19,0.1) 22%, transparent 55%, rgba(14,21,19,0.95) 100%);
    }
    .hero-shader { opacity: 0; }
    .hero-shader.is-ready { opacity: 0.75; }
    .hero-grain { opacity: 0.35; }
}
@media (max-width: 560px) {
    .hero-vignette {
        background:
            radial-gradient(ellipse at 50% 40%, rgba(14,21,19,0.25) 0%, rgba(14,21,19,0.85) 95%),
            linear-gradient(180deg, rgba(14,21,19,0.7) 0%, rgba(14,21,19,0.2) 28%, rgba(14,21,19,0.3) 60%, rgba(14,21,19,0.98) 100%);
    }
    .hero-shader.is-ready { opacity: 0.6; }
}

.hero-top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.pulse { width: 7px; height: 7px; background: #6ACB8F; border-radius: 50%; box-shadow: 0 0 0 0 rgba(106,203,143,0.7); animation: pulseRing 2.4s ease-out infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(106,203,143,0.55); } 100% { box-shadow: 0 0 0 14px rgba(106,203,143,0); } }

.hero-meta { display: inline-flex; gap: 0.85rem; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.dot-sep { color: var(--accent-gold); opacity: 0.7; }

.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6rem) 0 2rem; gap: clamp(2rem, 4vw, 3.5rem); }

.hero-title {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(3rem, 10vw, 10.5rem);
    line-height: 0.96; letter-spacing: -0.02em;
    color: var(--text-light);
}
.hero-title .line { display: block; overflow: hidden; position: relative; }
.hero-title .word { display: inline-block; }
.hero-title .italic { color: var(--accent-cream); font-style: italic; font-weight: 500; }
.hero-title .punct { color: var(--accent-gold); }

.hero-sub { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: 3rem; max-width: 1100px; align-items: start; }
.hero-role { display: inline-flex; align-items: center; gap: 0.85rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); padding-top: 0.4rem; }
.role-dash { width: 32px; height: 1px; background: var(--accent-gold); }
.hero-lede { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; color: var(--text-dim); max-width: 620px; }
.hero-lede::first-line { color: var(--text-light); }

.hero-cta-row { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; position: relative; }

.btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 60px;
    font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
    overflow: hidden;
    transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
    border: 1px solid var(--line-strong);
    isolation: isolate;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -140%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255,255,255,0.0) 35%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.0) 65%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left .9s cubic-bezier(.2,.9,.25,1);
    pointer-events: none;
    z-index: 0;
}
.btn:hover::before { left: 140%; }
.btn > * { position: relative; z-index: 1; }
.btn-text { display: inline-block; position: relative; overflow: hidden; height: 1.25em; }
.btn-text span { display: block; transition: transform .55s var(--ease); }
.btn-text span + span { position: absolute; top: 100%; left: 0; }
.btn:hover .btn-text span { transform: translateY(-100%); }
.btn-arrow { transition: transform .4s var(--ease); font-family: var(--font-serif); }
.btn:hover .btn-arrow { transform: translateX(6px) rotate(-10deg); }

.btn-primary { background: var(--accent-cream); color: var(--bg-deep); border-color: var(--accent-cream); }
.btn-primary:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201,168,107,0.28);
}
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { color: var(--accent-cream); border-color: var(--accent-gold); }
.btn-solid { background: var(--bg-deep); color: var(--text-light); border-color: var(--bg-deep); }
.btn-solid:hover { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--bg-deep); }
.btn-outline { background: transparent; color: var(--bg-deep); border-color: var(--line-dark); }
.btn-outline:hover { background: var(--bg-deep); color: var(--text-light); border-color: var(--bg-deep); }

.hero-scroll { margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.hero-scroll svg { animation: scrollBob 2.4s ease-in-out infinite; }
@keyframes scrollBob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* =============== Scroll Marquee =============== */
.scroll-marquee {
    padding: 6vh 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    display: flex; flex-direction: column; gap: 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(201,168,107,0.02), transparent);
}
.sm-track { display: flex; gap: 2.5rem; align-items: center; white-space: nowrap; font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 8rem); font-weight: 400; line-height: 1; color: var(--text-light); will-change: transform; }
.sm-track-2 { font-size: clamp(1.4rem, 3.2vw, 3rem); color: var(--text-dim); font-weight: 300; }
.sm-star { color: var(--accent-gold); font-size: 0.7em; }

/* =============== Philosophy =============== */
.philosophy { position: relative; padding: clamp(7rem, 16vh, 14rem) var(--pad-x); display: grid; place-items: center; }
.philosophy-aura { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,107,0.18), transparent 70%); filter: blur(80px); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.8; }

.philosophy-label { display: inline-flex; align-items: center; gap: 0.85rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2.25rem; position: relative; z-index: 2; }
.philosophy-label .num { color: var(--accent-gold); font-weight: 500; }
.philosophy-label .sep { width: 32px; height: 1px; background: var(--accent-gold); opacity: 0.6; }
.philosophy-label.light { color: rgba(20,28,26,0.66); }
.philosophy-label.light .num { color: var(--bg-deep); }
.philosophy-label.light .sep { background: var(--bg-deep); }
.philosophy-label.warm { color: rgba(20,28,26,0.66); }
.philosophy-label.warm .num { color: var(--accent-rust); }
.philosophy-label.warm .sep { background: var(--accent-rust); }
.philosophy-label.light-mini { font-size: 0.65rem; margin-bottom: 0.75rem; color: rgba(20,28,26,0.6); }
.philosophy-label.light-mini .num { color: var(--bg-deep); }
.philosophy-label.light-mini .sep { background: var(--bg-deep); width: 20px; }

.glass {
    position: relative; z-index: 2;
    max-width: 900px;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--line-strong); border-radius: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 50%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.glass::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    background: linear-gradient(135deg, rgba(201,168,107,0.5), transparent 40%, transparent 60%, rgba(201,168,107,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    padding: 1px; pointer-events: none; opacity: 0.6;
}

.section-title {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    line-height: 1.02; letter-spacing: -0.02em;
    color: var(--text-light);
}
.section-title em { color: var(--accent-cream); }
.section-title.right { text-align: right; }
.section-title.warm { color: var(--bg-deep); }
.section-title.warm em { color: var(--accent-rust); }

.philosophy-body { margin-top: 2.5rem; max-width: 70ch; font-size: 1.07rem; line-height: 1.85; color: var(--text-dim); display: flex; flex-direction: column; gap: 1.4rem; }
.philosophy-body strong { color: var(--text-light); font-weight: 600; }
.philosophy-body .drop::first-letter { font-family: var(--font-serif); font-size: 3.4em; font-weight: 500; float: left; line-height: 0.85; margin: 0.12em 0.12em 0 0; color: var(--accent-gold); }
.philosophy-body .accent { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.4; color: var(--text-light); padding-top: 0.5rem; border-top: 1px solid var(--line); }
.philosophy-body .accent em { color: var(--accent-cream); font-style: italic; }

.signature { margin-top: 2rem; display: inline-flex; align-items: center; gap: 1rem; color: var(--accent-gold); font-family: var(--font-serif); font-style: italic; font-size: 1rem; }
.signature-path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.signature.in-view .signature-path { animation: drawSig 2s var(--ease) forwards; }
@keyframes drawSig { to { stroke-dashoffset: 0; } }

/* =============== Pillars =============== */
.pillars { padding: clamp(5rem, 12vh, 10rem) var(--pad-x) clamp(4rem, 8vh, 8rem); }
.pillars-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: rgba(255,255,255,0.015); }
.pillar { position: relative; padding: clamp(2rem, 3.5vw, 3.25rem); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.5rem; min-height: 480px; overflow: hidden; transition: background .5s var(--ease); }
.pillar:last-child { border-right: none; }
.pillar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, rgba(201,168,107,0.1), transparent 60%); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.pillar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,107,0.55) 50%, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .7s cubic-bezier(.2,.9,.25,1);
    pointer-events: none;
}
.pillar:hover::before { opacity: 1; }
.pillar:hover::after { transform: scaleX(1); }
.pillar:hover { background: rgba(255,255,255,0.02); }
.pillar-num { font-family: var(--font-serif); font-size: 1rem; color: var(--accent-gold); letter-spacing: 0.2em; }
.pillar-icon { color: var(--accent-cream); transition: transform .6s var(--ease), color .6s var(--ease); margin: 1rem 0; }
.pillar:hover .pillar-icon { transform: translateY(-6px); color: var(--accent-gold); }
.pillar-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--text-light); }
.pillar-title em { color: var(--accent-cream); }
.pillar-body { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; max-width: 36ch; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1rem; }
.pillar-tags span { padding: 0.3rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 50px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--text-dim); }
.pillar-arrow { position: absolute; top: 1.75rem; right: 1.75rem; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--text-dim); transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.pillar:hover .pillar-arrow { background: var(--accent-gold); color: var(--bg-deep); border-color: var(--accent-gold); transform: rotate(-45deg); }

/* =============== Stats =============== */
.stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 5rem var(--pad-x);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 0 var(--pad-x);
    background: rgba(255,255,255,0.015);
    backdrop-filter: blur(6px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.stat-top {
    display: inline-flex; align-items: baseline; gap: 0.08em;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
    line-height: 1;
    white-space: nowrap;
}
.stat-num { color: var(--text-light); display: inline-block; }
.stat-unit { color: var(--accent-gold); display: inline-block; }
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: center;
    white-space: nowrap;
}
.stat-sep { width: 1px; height: 56px; background: var(--line); }

/* =============== Strategy Intro =============== */
.strategy-intro { position: relative; min-height: 60vh; padding: 8vh var(--pad-x); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.strategy-title { display: flex; flex-direction: column; gap: 2rem; }
.spinning-badge { position: relative; animation: spinSlow 25s linear infinite; }
.spin-text { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 2.5px; text-transform: uppercase; }
.badge-core circle { transform-origin: 70px 70px; }

/* =============== Project Blocks =============== */
.blocks-container { padding-bottom: 10vh; position: relative; isolation: isolate; }
.brutal-block {
    width: 100%;
    min-height: 92vh;
    padding: clamp(3rem, 7vh, 7rem) var(--pad-x);
    position: sticky; top: 0;
    overflow: hidden;
    display: flex; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.light-block { background: var(--bg-paper); color: var(--text-dark); }
.light-block .block-tag { color: rgba(20,28,26,0.6); }
.light-block .block-sub { color: rgba(20,28,26,0.7); }
.green-block { background: var(--bg-green); color: var(--text-light); background-image: radial-gradient(ellipse at top right, rgba(201,168,107,0.12), transparent 60%); }

.block-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; width: 100%; position: relative; z-index: 2; align-items: end; }
.full-width-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
.block-header-wrap.center { text-align: center; align-items: center; display: flex; flex-direction: column; }
.block-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.block-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.6rem, 7.5vw, 7.5rem); line-height: 0.98; letter-spacing: -0.02em; }
.block-title em { font-family: var(--font-serif); font-style: italic; color: var(--accent-gold); }
.light-block .block-title em { color: var(--accent-rust); }
.block-sub { margin-top: 1rem; font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 520px; }
.block-logo { max-width: 160px; max-height: 52px; object-fit: contain; margin-top: 1.5rem; opacity: 0.9; }
.block-text { max-width: 560px; font-size: 1.02rem; line-height: 1.75; color: rgba(255,255,255,0.8); }
.light-block .block-text { color: rgba(20,28,26,0.78); }
.block-text p { margin-bottom: 1.3rem; }
.block-text strong { color: var(--text-light); font-weight: 600; }
.light-block .block-text strong { color: var(--bg-deep); }

.feature-list { list-style: none; margin: 0.5rem 0 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.feature-list li {
    display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: start;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.light-block .feature-list li { border-color: rgba(20,28,26,0.08); }
.feature-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.light-block .feature-list li:last-child { border-bottom-color: rgba(20,28,26,0.08); }
.fl-tag {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent-gold); padding-top: 0.1em;
}
.feature-list p { margin: 0; font-size: 0.98rem; line-height: 1.65; }

.impact-pill {
    display: block;
    padding: 0.9rem 1.1rem;
    border-left: 2px solid var(--accent-gold);
    background: rgba(201,168,107,0.06);
    border-radius: 2px;
    font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; line-height: 1.55;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1rem;
}
.light-block .impact-pill { background: rgba(201,168,107,0.14); color: var(--text-dark); }
.impact-pill strong { font-family: var(--font-sans); font-style: normal; font-weight: 600; color: var(--accent-gold); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.74rem; margin-right: 0.3rem; }
.light-block .impact-pill strong { color: var(--accent-rust); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.8rem; padding-bottom: 0.3rem; border-bottom: 1px solid currentColor; font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em; transition: gap .4s var(--ease), color .4s var(--ease); }
.link-arrow:hover { gap: 1.1rem; color: var(--accent-gold); }
.light-block .link-arrow:hover { color: var(--accent-rust); }

.ai-logos-strip { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; margin: 1.4rem 0; padding: 1.1rem 1.3rem; background: rgba(0,0,0,0.2); border-radius: 50px; border: 1px solid rgba(255,255,255,0.06); }
.ai-logos-strip img { height: 20px; object-fit: contain; filter: grayscale(100%) brightness(220%) opacity(0.85); transition: filter .4s var(--ease), transform .4s var(--ease); }
.ai-logos-strip img:hover { filter: none; transform: scale(1.15); }

.aws-certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2.5vw 2vw; margin-top: 3.5rem; width: 100%; }
.aws-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.75rem 1rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 2px; transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease); background: rgba(255,255,255,0.015); }
.aws-item:hover { background: rgba(255,255,255,0.04); border-color: var(--accent-gold); transform: translateY(-4px); }
.aws-item img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 0.9rem; filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.3)); transition: transform .5s var(--ease); }
.aws-item:hover img { transform: rotate(-4deg) scale(1.05); }
.aws-item p { font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); max-width: 180px; line-height: 1.5; }
.aws-item p em { color: var(--accent-gold); font-family: var(--font-serif); font-style: italic; letter-spacing: 0; }

.block-number { position: absolute; right: -1.5vw; bottom: -12vh; font-family: var(--font-serif); font-weight: 400; font-size: 40vw; line-height: 1; opacity: 0.05; z-index: 1; pointer-events: none; letter-spacing: -0.04em; }
.light-block .block-number { color: var(--bg-deep); }
.green-block .block-number { color: var(--text-light); }

/* =============== Big Marquee =============== */
.big-marquee { position: relative; padding: clamp(3rem, 8vh, 6rem) 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(201,168,107,0.04), transparent), var(--bg-dark); }
.bm-track { display: flex; gap: 3.5rem; align-items: center; white-space: nowrap; font-family: var(--font-serif); font-size: clamp(3rem, 10vw, 9rem); font-weight: 500; line-height: 1; color: var(--text-light); will-change: transform; }
.bm-dot { color: var(--accent-gold); font-size: 0.4em; }

/* =============== Track Record =============== */
.record {
    padding: clamp(6rem, 14vh, 12rem) var(--pad-x);
    border-top: 1px solid var(--line);
    position: relative;
}
.record-head { max-width: 960px; margin-bottom: clamp(3rem, 6vh, 5rem); }
.record-lede {
    margin-top: 1.5rem;
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dim);
}
.record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
}
.record-card {
    position: relative;
    padding: clamp(2rem, 3.5vw, 3.25rem);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    transition: transform .5s var(--ease), border-color .5s var(--ease);
    min-height: 440px;
    display: flex; flex-direction: column;
}
.record-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(201,168,107,0.18), transparent 70%);
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity .6s var(--ease);
}
.record-card:hover { transform: translateY(-6px); border-color: var(--accent-gold); }
.record-card:hover::before { opacity: 1; }
.rc-top {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
.rc-year { color: var(--accent-gold); }
.rc-badge { color: var(--text-faint); }
.rc-title {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1; letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.rc-title em { color: var(--accent-cream); }
.rc-metric {
    display: inline-flex; align-items: baseline; gap: 0.08em;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 500;
    line-height: 1;
    color: var(--text-light);
    margin: 0.5rem 0 0.4rem;
}
.rc-unit { color: var(--accent-gold); }
.rc-label {
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
}
.rc-body { color: var(--text-dim); font-size: 0.98rem; line-height: 1.7; }
.rc-line {
    margin: 1.8rem 0 1.2rem;
    height: 1px; background: linear-gradient(90deg, var(--accent-gold), transparent);
}
.rc-meta {
    margin-top: auto;
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-faint);
}

/* ————— Minor works / communities ————— */
.minor-works {
    padding-top: clamp(3rem, 6vh, 5rem);
    border-top: 1px solid var(--line);
}
.mw-head {
    display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
    padding-bottom: 2.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-dim);
    max-width: 900px;
}
.mw-tag {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
}
.mw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.mw-item {
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: rgba(255,255,255,0.02);
    transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.mw-item:hover { background: rgba(255,255,255,0.04); border-color: var(--line-strong); transform: translateY(-3px); }
.mw-item.mw-feature {
    position: relative;
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(201,168,107,0.08) 0%, rgba(201,168,107,0.02) 60%);
    border-color: rgba(201,168,107,0.35);
    overflow: hidden;
}
.mw-item.mw-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(201,168,107,0.18), transparent 55%);
    pointer-events: none;
}
.mw-item.mw-feature .mw-year { color: var(--accent-gold); }
.mw-item.mw-feature .mw-title {
    font-size: 1.5rem;
    font-style: italic;
}
.mw-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 0.28rem 0.6rem;
    border: 1px solid rgba(201,168,107,0.4);
    border-radius: 50px;
    background: rgba(10, 10, 12, 0.4);
}
@media (max-width: 860px) {
    .mw-item.mw-feature { grid-column: span 1; }
    .mw-item.mw-feature .mw-title { font-size: 1.25rem; }
}
.mw-year {
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}
.mw-title {
    font-family: var(--font-serif);
    font-size: 1.15rem; font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.mw-item p { font-size: 0.88rem; line-height: 1.6; color: var(--text-dim); }
.mw-item p strong { color: var(--text-light); font-weight: 600; }
.mw-item p em { color: var(--accent-gold); font-family: var(--font-mono); font-style: normal; font-size: 0.85em; }

/* =============== Origin Story / Timeline =============== */
.origin-story {
    padding: clamp(7rem, 15vh, 14rem) var(--pad-x);
    border-top: 1px solid var(--line);
}
.story-head {
    max-width: 720px;
    margin-bottom: clamp(4rem, 8vh, 7rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}
.story-quote {
    margin-top: 2rem;
    display: inline-flex; gap: 0.85rem; align-items: center;
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
}

.timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto 0 max(0px, calc(50% - 490px));
    padding-left: 5rem;
}
.timeline-rail {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.timeline-node {
    position: relative;
    padding: 0 0 clamp(3rem, 6vh, 5rem);
}
.timeline-node:last-child { padding-bottom: 0; }
.tn-dot {
    position: absolute;
    left: calc(-3rem - 4px);
    top: 0.65rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--bg-dark), 0 0 0 5px var(--line-strong);
}
.tn-dot.pulse-dot::after {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.tn-year {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--accent-soft);
    border-radius: 50px;
    margin-bottom: 1rem;
}
.timeline-node.active .tn-year { background: rgba(201,168,107,0.12); }
.tn-body h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.tn-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 60ch;
}
.tn-body p strong { color: var(--text-light); font-weight: 600; }
.tn-body p em { color: var(--accent-cream); font-family: var(--font-serif); font-style: italic; }

/* =============== Human Element =============== */
.human {
    position: relative;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(201,168,107,0.18), transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(216,206,184,0.35), transparent 60%),
        var(--bg-warm);
    color: var(--text-dark);
    padding: clamp(6rem, 14vh, 12rem) var(--pad-x);
    border-top: 1px solid rgba(20,28,26,0.06);
}
.human-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}
.human-copy { position: relative; }
.human-lede {
    margin: 1.5rem 0 1.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--bg-deep);
    max-width: 540px;
}
.human-body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(20,28,26,0.78);
    max-width: 540px;
}
.human-body em { color: var(--accent-rust); font-weight: 600; }
.human-chips {
    display: flex; flex-wrap: wrap; gap: 0.7rem;
    margin-top: 2.25rem;
}
.chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(20,28,26,0.08);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-rust);
    transition: background .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { background: #fff; transform: translateY(-2px); }
.chip svg { color: var(--accent-rust); }

.human-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    aspect-ratio: 1 / 1.05;
}
.hg-img {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: var(--bg-warm-2);
}
.hg-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s var(--ease), filter .8s var(--ease);
    will-change: transform;
    filter: contrast(1.02) saturate(0.95);
}
.hg-img:hover img { transform: scale(1.05); filter: contrast(1.05) saturate(1.1); }
.hg-img figcaption {
    position: absolute;
    bottom: 0.75rem; left: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-deep);
}
.hg-a { grid-column: 1 / 2; grid-row: 1 / 2; }
.hg-b { grid-column: 2 / 3; grid-row: 1 / 3; }
.hg-c { grid-column: 1 / 2; grid-row: 2 / 3; }

/* — Human section perched owl — */
.human-owl {
    position: absolute;
    top: -52px;
    right: -28px;
    z-index: 3;
    filter: drop-shadow(0 10px 24px rgba(120, 80, 30, 0.25));
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px) rotate(-8deg);
    transition: opacity 1s var(--ease), transform 1.2s cubic-bezier(.2,.9,.25,1.1);
}
.human.is-visible .human-owl,
.human-owl.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}
.human-owl .ow-branch,
.human-owl .ow-leaf {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: drawBranch 1.4s ease-out 0.5s forwards;
}
.human-owl .ow-leaf { animation-delay: 0.9s; animation-duration: 0.8s; }
@keyframes drawBranch {
    to { stroke-dashoffset: 0; }
}
@media (max-width: 860px) {
    .human-owl { top: -40px; right: 0; width: 80px; height: 80px; }
}

/* =============== Footer =============== */
.footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: clamp(6rem, 12vh, 10rem) var(--pad-x) clamp(2rem, 4vh, 3rem);
    border-top: 1px solid rgba(20,28,26,0.08);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-title {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(4rem, 14vw, 14rem);
    line-height: 0.92; letter-spacing: -0.03em;
    margin: 2.5rem 0 4rem;
    color: var(--bg-deep);
}
.footer-title .line { display: block; }
.footer-title .italic { color: var(--accent-rust); }
.footer-title em { color: var(--accent-gold); font-style: italic; }

.footer-title-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin: 2.5rem 0 4rem;
}
.footer-title-row .footer-title { margin: 0; flex: 1; }

/* — Footer waving owl — */
.footer-owl {
    position: relative;
    flex-shrink: 0;
    width: clamp(120px, 14vw, 220px);
    height: clamp(120px, 14vw, 220px);
    margin-top: clamp(1rem, 3vw, 3rem);
    filter: drop-shadow(0 16px 32px rgba(120, 80, 30, 0.22));
    opacity: 0;
    transform: translateY(24px) scale(0.7) rotate(-6deg);
    transition: opacity 1s var(--ease), transform 1.1s cubic-bezier(.2,.9,.25,1.1);
}
.footer-owl.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}
.footer-owl .ow-wave {
    transform-box: fill-box;
    transform-origin: 13px 26px;
    animation: owlWave 2.4s ease-in-out infinite;
}
@keyframes owlWave {
    0%, 60%, 100% { transform: rotate(0deg); }
    70%           { transform: rotate(-28deg); }
    80%           { transform: rotate(14deg); }
    90%           { transform: rotate(-18deg); }
}
@media (max-width: 860px) {
    .footer-title-row { flex-direction: row; align-items: center; gap: 1rem; }
    .footer-owl {
        width: clamp(88px, 22vw, 130px);
        height: clamp(88px, 22vw, 130px);
        margin-top: 0;
        align-self: flex-start;
    }
}
@media (max-width: 520px) {
    .footer-title-row { gap: 0.5rem; }
    .footer-owl { width: 84px; height: 84px; }
}

.footer-cta-row {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
    padding: 2rem 0;
    border-top: 1px solid rgba(20,28,26,0.1);
    border-bottom: 1px solid rgba(20,28,26,0.1);
}

.footer-socials-row {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(20,28,26,0.1);
}
.social-link {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-right: 1px solid rgba(20,28,26,0.1);
    font-family: var(--font-sans);
    color: var(--bg-deep);
    transition: background .3s var(--ease), color .3s var(--ease);
}
.social-link:last-child { border-right: none; }
.social-link:first-child { padding-left: 0; }
.social-link:hover { background: rgba(20,28,26,0.04); }
.sl-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20,28,26,0.55);
}
.sl-handle {
    flex: 1;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--bg-deep);
    margin-left: 0.75rem;
}
.sl-arrow { color: var(--accent-rust); font-size: 1rem; transition: transform .4s var(--ease); }
.social-link:hover .sl-arrow { transform: translate(4px,-4px); }

.footer-bottom { padding-top: 3rem; display: flex; flex-direction: column; gap: 4rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fc-label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(20,28,26,0.5); margin-bottom: 0.6rem; }
.footer-cols p { font-size: 0.95rem; line-height: 1.5; color: var(--bg-deep); }
.footer-legal { display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(20,28,26,0.08); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(20,28,26,0.55); }

/* =============== Modal (Booking) =============== */
.modal {
    position: fixed; inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.modal.is-open {
    display: flex;
    opacity: 1;
}
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(14,21,19,0.75);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.modal-card {
    position: relative;
    width: min(980px, 100%);
    max-height: 94vh;
    background: var(--bg-paper);
    color: var(--text-dark);
    border-radius: 4px;
    border: 1px solid rgba(201,168,107,0.35);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.985);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.modal.is-open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

.modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid rgba(20,28,26,0.08);
    gap: 1rem;
}
.modal-title h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--bg-deep);
}
.modal-title h3 em { color: var(--accent-rust); font-style: italic; }
.modal-title p {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: rgba(20,28,26,0.6);
}
.modal-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(20,28,26,0.15);
    display: grid; place-items: center;
    color: var(--bg-deep);
    flex-shrink: 0;
    transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.modal-close:hover { background: var(--bg-deep); color: var(--bg-paper); transform: rotate(90deg); }

.modal-body {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    min-height: 500px;
    background: var(--bg-paper);
}
.cal-embed-slot {
    width: 100%;
    min-height: 600px;
    height: 100%;
    overflow: scroll;
}
.cal-embed-slot:empty::before {
    content: 'Loading schedule…';
    display: grid; place-items: center;
    width: 100%; height: 600px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(20,28,26,0.5);
}

/* =============== Responsive =============== */
@media (max-width: 1100px) {
    .record-grid { grid-template-columns: 1fr; }
    .mw-grid { grid-template-columns: 1fr 1fr; }
    .footer-socials-row { grid-template-columns: 1fr; }
    .social-link { border-right: none; border-bottom: 1px solid rgba(20,28,26,0.1); padding-left: 0; }
    .social-link:last-child { border-bottom: none; }
    .human-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 960px) {
    /* Nav collapse */
    .navbar { grid-template-columns: 1fr auto; }
    .nav-center { display: none; }
    .nav-status { display: none; }

    .hero-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-sub, .content-grid, .block-content { grid-template-columns: 1fr; gap: 2rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--line); min-height: auto; }
    .pillar:last-child { border-bottom: none; }
    .stats { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stats .stat-sep { display: none; }
    .mw-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; gap: 0.5rem; }
    .strategy-intro { flex-direction: column; align-items: flex-start; }
    .spinning-badge { align-self: flex-end; }
    .cursor, .cursor-follow { display: none; }
    body { cursor: auto; }
    button { cursor: pointer; }

    .timeline { margin-left: 0; padding-left: 2.5rem; }
    .timeline-rail { left: 0.5rem; }
    .tn-dot { left: calc(-2rem + 2px); }

    .feature-list li { grid-template-columns: 1fr; gap: 0.4rem; }

    .human-gallery { aspect-ratio: 1 / 1.1; }
}

@media (max-width: 520px) {
    .hero { padding-top: 7rem; }
    .hero-meta { flex-wrap: wrap; }
    .btn { padding: 0.85rem 1.2rem; font-size: 0.82rem; }
    .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.72rem; }
    .stats { grid-template-columns: 1fr; gap: 2rem; }
    .modal-header { padding: 1.25rem 1.25rem 0.85rem; }
    .modal-card { max-height: 100vh; height: 100vh; border-radius: 0; }
}

/* Mobile legibility — text contrast on top of shader */
@media (max-width: 900px) {
    .hero-title {
        color: #FFFBF1;
        text-shadow: 0 2px 28px rgba(8,12,11,0.75), 0 1px 3px rgba(8,12,11,0.5);
        font-weight: 500;
    }
    .hero-title .italic { color: #F8ECCF; }
    .hero-lede {
        color: rgba(255,248,232,0.92);
        text-shadow: 0 1px 14px rgba(8,12,11,0.7);
    }
    .hero-lede::first-line { color: #FFFBF1; }
    .hero-eyebrow, .hero-meta, .hero-role { color: rgba(255,248,232,0.82); text-shadow: 0 1px 10px rgba(8,12,11,0.6); }
    .hero-meta .dot-sep { color: rgba(255,248,232,0.5); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
