/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --bg:       #F8F6F2;       /* warm cream — Anthropic-ish */
    --bg-alt:   #F0EDE7;
    --dark:     #0D0C0B;       /* near-black, warm */
    --ink:      #1A1714;
    --ink-2:    #6B6760;
    --ink-3:    #B5B0A8;
    --rule:     #E2DDD6;
    --white:    #FFFFFF;

    --ff: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-h: 64px;
    --max:   1160px;
    --px:    clamp(1.25rem, 5vw, 2rem);

    --ease: 180ms ease;
    --ease-out: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── BASE ───────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px);
}

.section {
    padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.rule {
    border: none;
    border-top: 1px solid var(--rule);
    max-width: calc(var(--max) - 4rem);
    margin: 0 auto;
}

/* ─── TYPE ───────────────────────────────────────────────── */
.eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1.25rem;
}

.eyebrow-inv { color: rgba(255,255,255,0.3); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.375rem;
    background: var(--ink);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background var(--ease), transform var(--ease);
    white-space: nowrap;
}
.btn-solid:hover { background: #3a3530; transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 0.6875rem 0;
    transition: color var(--ease);
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost svg { transition: transform var(--ease); }
.btn-ghost:hover svg { transform: translate(2px,-2px); }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
    background: rgba(248, 246, 242, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--rule);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color var(--ease), background var(--ease);
}

.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }

.nav-cta {
    background: var(--ink) !important;
    color: var(--white) !important;
    margin-left: 4px;
}
.nav-cta:hover { background: #3a3530 !important; }

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background var(--ease);
}
.nav-burger:hover { background: var(--bg-alt); }
.nav-burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transform-origin: center;
    transition: transform var(--ease), opacity var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
    display: none;
    flex-direction: column;
    padding: 0.5rem var(--px) 1.5rem;
    background: rgba(248,246,242,0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--rule);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.8125rem 0;
    border-bottom: 1px solid var(--rule);
}
.nav-drawer a:last-child { border-bottom: none; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
}

.hero-body {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: center;
    padding: 5rem 0;
}

.hero-h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.375rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    max-width: 620px;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Portrait */
.portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #2a251f 0%, #1a1510 100%);
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.portrait img.hidden { display: none; }

.portrait-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(255,255,255,0.7);
    z-index: 0;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 5rem;
    align-items: start;
}

.about-img-col { position: relative; }

.about-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #2a251f 0%, #1a1510 100%);
}

.about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.about-portrait img.hidden { display: none; }

.portrait-fallback.sm {
    font-size: 2.5rem;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.6;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.about-p {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-p:last-child { margin-bottom: 0; }

/* ─── FOCUS ──────────────────────────────────────────────── */
.focus-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    margin-top: 2rem;
}

.focus-col {
    padding: 2rem 2rem 2rem 0;
    border-right: 1px solid var(--rule);
    padding-right: 2rem;
}

.focus-col:last-child { border-right: none; padding-right: 0; }
.focus-col:not(:first-child) { padding-left: 2rem; }

.focus-num {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-bottom: 1.25rem;
}

.focus-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.625rem;
    line-height: 1.35;
}

.focus-p {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.7;
}

/* ─── INSIGHTS ───────────────────────────────────────────── */
.insight-list {
    margin-top: 2rem;
    border-top: 1px solid var(--rule);
}

.insight-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.375rem 0;
    border-bottom: 1px solid var(--rule);
    transition: background var(--ease);
}

.insight-n {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.insight-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.insight-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
}

.insight-row-anchor {
    display: contents;
}

.insight-row-link {
    cursor: pointer;
    transition: background var(--ease);
}

.insight-row-link:hover { background: var(--bg-alt); }
.insight-row-link:hover .insight-title { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.insight-badge-live {
    background: var(--ink) !important;
    color: var(--white) !important;
    border-color: var(--ink) !important;
}

.insight-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--bg-alt);
    border: 1px solid var(--rule);
    padding: 0.1875rem 0.5625rem;
    border-radius: 99px;
    white-space: nowrap;
}


/* ─── PHILOSOPHY (DARK) ──────────────────────────────────── */
.dark-section {
    background: var(--dark);
    padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.principles {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.principle {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.625rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.p-num {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
    width: 2rem;
    font-variant-numeric: tabular-nums;
}

.p-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    letter-spacing: -0.02em;
    line-height: 1.4;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-section { border-top: 1px solid var(--rule); }

.contact-center {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.contact-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.contact-sub {
    font-size: 1.0625rem;
    color: var(--ink-2);
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--white);
    text-align: left;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.contact-card:hover {
    border-color: var(--ink);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.contact-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    flex-shrink: 0;
    width: 3.5rem;
}

.contact-card-val {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-arrow {
    color: var(--ink-3);
    flex-shrink: 0;
    transition: color var(--ease), transform var(--ease);
}
.contact-card:hover .contact-arrow { color: var(--ink); transform: translate(2px,-2px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--rule);
    padding: 1.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.footer-nav {
    display: flex;
    gap: 0.125rem;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--ink-2);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    transition: color var(--ease), background var(--ease);
}
.footer-nav a:hover { color: var(--ink); background: var(--bg-alt); }

.footer-copy {
    font-size: 0.8125rem;
    color: var(--ink-3);
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger focus cols */
.focus-col:nth-child(2)[data-animate] { transition-delay:  70ms; }
.focus-col:nth-child(3)[data-animate] { transition-delay: 140ms; }
.focus-col:nth-child(4)[data-animate] { transition-delay: 210ms; }

/* Stagger insights */
.insight-row:nth-child(2)[data-animate] { transition-delay:  50ms; }
.insight-row:nth-child(3)[data-animate] { transition-delay: 100ms; }
.insight-row:nth-child(4)[data-animate] { transition-delay: 150ms; }
.insight-row:nth-child(5)[data-animate] { transition-delay: 200ms; }

/* Stagger principles */
.principle:nth-child(2)[data-animate] { transition-delay:  60ms; }
.principle:nth-child(3)[data-animate] { transition-delay: 120ms; }
.principle:nth-child(4)[data-animate] { transition-delay: 180ms; }
.principle:nth-child(5)[data-animate] { transition-delay: 240ms; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-body {
        grid-template-columns: 1fr 340px;
        gap: 3.5rem;
    }

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

    .focus-col:nth-child(2) { border-right: none; }
    .focus-col:nth-child(3) { border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); }
    .focus-col:nth-child(4) { border-top: 1px solid var(--rule); }

    .about-grid {
        grid-template-columns: 240px 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links  { display: none; }
    .nav-burger { display: flex; }

    .hero-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0;
        text-align: center;
    }

    .hero-left { display: flex; flex-direction: column; align-items: center; }
    .hero-sub  { max-width: 100%; }
    .hero-cta  { justify-content: center; }

    .hero-right { order: -1; }

    .portrait {
        width: 220px;
        margin: 0 auto;
    }

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

    .about-portrait {
        width: 180px;
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .about-text-col { text-align: center; }
    .about-text-col .eyebrow { text-align: left; }

    .focus-row { grid-template-columns: 1fr; }
    .focus-col {
        border-right: none !important;
        border-top: 1px solid var(--rule) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .focus-col:first-child { border-top: none !important; }

    .insight-row {
        grid-template-columns: 2rem 1fr auto;
        gap: 0.875rem;
    }
    .insight-tag { display: none; }

.principle { gap: 1.25rem; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-h1 { font-size: 2.25rem; }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn-solid, .btn-ghost { justify-content: center; width: 100%; }

    .contact-card-val { font-size: 0.875rem; }
}
