/* ============================================================
   KAYA VENTURES — kaya-ventures.com
   Editorial take on the Kaya brand: deep emerald + muted gold,
   Fraunces (display) + Manrope (UI) + GT-style mono for captions.
   ============================================================ */

:root {
    /* Brand — locked */
    --primary: #0F4C3A;       /* Deep Emerald */
    --primary-dark: #003426;
    --primary-deep: #072D22;
    --secondary: #1D2825;     /* Charcoal */
    --accent: #C5A059;        /* Muted Gold */
    --accent-warm: #B08D4B;
    --bg: #F5F1E8;            /* Rice paper */
    --bg-alt: #EDE6D5;
    --bg-deep: #E3D9C2;
    --ink: #1b1c19;
    --ink-muted: #55605B;
    --line: #C9BEA2;
    --white: #ffffff;

    /* Derived */
    --shadow-sm: 0 1px 2px rgba(15, 76, 58, 0.06);
    --shadow: 0 4px 24px rgba(15, 76, 58, 0.08);
    --shadow-lg: 0 30px 60px -20px rgba(15, 76, 58, 0.18);

    /* Type */
    --ff-display: "Fraunces", "Times New Roman", serif;
    --ff-sans: "Manrope", "Inter", system-ui, sans-serif;
    --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Grid */
    --gutter: clamp(20px, 4vw, 56px);
    --max: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--primary); color: var(--bg); }

html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPE SYSTEM
   ============================================================ */
.display {
    font-family: var(--ff-display);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 0.98;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: var(--primary);
}

.eyebrow {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    font-weight: 500;
}

.lede {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(1.25rem, 1.6vw, 1.75rem);
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 62ch;
}

.num {
    font-family: var(--ff-mono);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}
.rule.strong { border-color: var(--secondary); opacity: 0.2; }
.rule.dark { border-color: rgba(255,255,255,0.15); }

section { position: relative; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    background: rgba(245, 241, 232, 0.72);
    border-bottom: 1px solid rgba(201, 190, 162, 0.4);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s;
}
.nav.hidden { transform: translateY(-100%); }
.nav.on-dark {
    background: rgba(7, 45, 34, 0.6);
    border-bottom-color: rgba(255,255,255,0.08);
    color: var(--bg);
}
.nav.on-dark .nav-logo-word,
.nav.on-dark .nav-link,
.nav.on-dark .nav-meta { color: var(--bg); }
/* keep logo mark colors consistent regardless of nav background:
   green disc + gold K in both states */

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-mark { width: 32px; height: 32px; border-radius: 50%; transition: transform .5s; }
.nav-logo:hover .nav-logo-mark { transform: rotate(-12deg); }
.nav-logo-word {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    color: var(--primary);
    font-weight: 500;
}
.nav-logo-word::after {
    content: ".";
    color: var(--accent);
}

.nav-center {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-link {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink);
    position: relative;
    padding: 4px 0;
    transition: color .3s;
}
.nav-link::before {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::before { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-meta {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-meta .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.05); }
}

.btn {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 11px 22px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateY(101%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
    z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn.solid { background: var(--primary); color: var(--bg); }
.btn.solid::before { background: var(--secondary); }
.btn.accent { background: var(--accent); color: var(--secondary); border-color: var(--accent); }
.btn.accent::before { background: var(--secondary); }
.btn.accent:hover { color: var(--bg); }
.btn.ghost { border-color: currentColor; }
.btn .arrow { transition: transform .35s; }
.btn:hover .arrow { transform: translateX(4px); }

.nav.on-dark .btn { color: var(--bg); border-color: var(--bg); }
.nav.on-dark .btn::before { background: var(--accent); }
.nav.on-dark .btn:hover { color: var(--secondary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    padding: 140px var(--gutter) 60px;
    background: var(--primary-deep);
    color: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.15) contrast(1.08) brightness(0.6) saturate(1.1);
    transform: scale(1.05);
    animation: slowZoom 24s ease-in-out infinite alternate;
}
@keyframes slowZoom {
    from { transform: scale(1.02) translateY(0); }
    to   { transform: scale(1.08) translateY(-12px); }
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7,45,34,0.45) 0%, rgba(7,45,34,0.55) 30%, rgba(7,45,34,0.85) 70%, rgba(7,45,34,0.97) 100%),
        linear-gradient(90deg, rgba(7,45,34,0.6), rgba(7,45,34,0.15) 40%, transparent 70%, rgba(7,45,34,0.4));
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 1000px 600px at 80% 20%, rgba(197, 160, 89, 0.15), transparent 60%),
        radial-gradient(ellipse 800px 500px at 10% 90%, rgba(15, 76, 58, 0.6), transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: auto;
    padding-top: 40px;
    position: relative;
    z-index: 3;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-meta {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(245, 241, 232, 0.55);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-meta span b {
    color: var(--accent);
    font-weight: 500;
    margin-right: 10px;
}

.hero-title {
    position: relative;
    z-index: 3;
    margin: 40px 0 0 0;
    font-weight: 300;
    line-height: 1;
}
.hero-title .line {
    display: block;
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 11vw, 11rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    font-weight: 300;
    color: var(--bg);
}
.hero-title .line em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-title .line .amp {
    font-style: italic;
    color: rgba(245, 241, 232, 0.4);
    font-weight: 300;
    padding: 0 0.05em;
}

.hero-bottom {
    position: relative;
    z-index: 3;
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 60px;
    align-items: end;
    border-top: 1px solid rgba(245, 241, 232, 0.12);
    padding-top: 32px;
}
.hero-definition {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.5;
    color: rgba(245, 241, 232, 0.85);
    max-width: 44ch;
}
.hero-definition .word {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}
.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-stat .n {
    font-family: var(--ff-display);
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--bg);
    letter-spacing: -0.02em;
}
.hero-stat .l {
    font-family: var(--ff-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(245, 241, 232, 0.55);
    margin-top: 8px;
}
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.hero-cta .btn {
    color: var(--bg);
    border-color: var(--bg);
}
.hero-cta .btn::before { background: var(--accent); }
.hero-cta .btn:hover { color: var(--secondary); }

.scroll-cue {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.5);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-cue::after {
    content: "";
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollBar 2s ease-in-out infinite;
}
@keyframes scrollBar {
    0%, 100% { transform: scaleY(0.3); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   MEANING / ETYMOLOGY BAND
   ============================================================ */
.meaning {
    padding: 100px var(--gutter);
    background: var(--primary);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.meaning .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}
.meaning-label {
    font-family: var(--ff-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
}
.meaning-text {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--bg);
    text-wrap: pretty;
}
.meaning-text b {
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    position: relative;
}
.meaning-text b::after {
    content: "·";
    color: rgba(197, 160, 89, 0.4);
    margin: 0 0.3em;
}

/* ============================================================
   SECTION INTRO
   ============================================================ */
.section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 120px 0 64px;
    align-items: start;
}
.section-head .kicker { display: flex; flex-direction: column; gap: 12px; }
.section-head .kicker .num {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    text-transform: uppercase;
}
.section-head .kicker h3 {
    font-family: var(--ff-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
}
.section-head .title {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--secondary);
    text-wrap: balance;
}
.section-head .title em {
    font-style: italic;
    color: var(--primary);
}

/* ============================================================
   THESIS / NUMBERED PILLARS
   ============================================================ */
.thesis { padding: 40px var(--gutter) 120px; background: var(--bg); }
.thesis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.pillar {
    padding: 40px 32px 48px 0;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:nth-child(n+2) { padding-left: 32px; }
.pillar .n {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
}
.pillar h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.15;
    color: var(--secondary);
    letter-spacing: -0.02em;
}
.pillar p {
    color: var(--ink-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 40ch;
}

/* ============================================================
   SERVICES LEDGER
   ============================================================ */
.services {
    padding: 120px var(--gutter);
    background: var(--secondary);
    color: var(--bg);
}
.services .section-head .title { color: var(--bg); }
.services .section-head .title em { color: var(--accent); }
.services .section-head .kicker .num,
.services .section-head .kicker h3 { color: rgba(245, 241, 232, 0.5); }

.ledger {
    border-top: 1px solid rgba(245, 241, 232, 0.15);
}
.row {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 40px;
    gap: 40px;
    padding: 32px 8px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.12);
    align-items: center;
    cursor: pointer;
    transition: background .4s, padding .4s;
    position: relative;
}
.row:hover { background: rgba(197, 160, 89, 0.05); padding-left: 20px; }
.row .num {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(245, 241, 232, 0.4);
}
.row h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--bg);
    transition: color .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.row:hover h4 { color: var(--accent); transform: translateX(8px); }
.row p {
    color: rgba(245, 241, 232, 0.65);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 55ch;
}
.row .toggle {
    width: 28px; height: 28px;
    border: 1px solid rgba(245, 241, 232, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    justify-self: end;
}
.row:hover .toggle {
    background: var(--accent);
    border-color: var(--accent);
}
.row .toggle svg { width: 10px; height: 10px; stroke: var(--bg); }
.row:hover .toggle svg { stroke: var(--secondary); }
.row.open { padding-top: 40px; padding-bottom: 16px; background: rgba(197, 160, 89, 0.05); }
.row.open .toggle { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.row.open .toggle svg { stroke: var(--secondary); }
.row.open h4 { color: var(--accent); }

.row-expand {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.2,.8,.2,1), padding .4s;
    padding: 0;
    display: grid;
    grid-template-columns: 80px 1fr 2fr 40px;
    gap: 40px;
}
.row.open .row-expand { max-height: 400px; padding-top: 20px; padding-bottom: 20px; }
.row-expand > div:nth-child(2) { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.row-expand .sub {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.row-expand ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.row-expand li {
    font-size: 0.92rem;
    color: rgba(245, 241, 232, 0.75);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}
.row-expand li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 10px; height: 1px;
    background: var(--accent);
}

/* ============================================================
   APPROACH (numbered process strip)
   ============================================================ */
.approach { padding: 40px var(--gutter) 120px; background: var(--bg); }
.approach-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 100px;
    align-items: start;
}
.approach-side {
    position: sticky;
    top: 100px;
}
.approach-visual {
    margin-top: 40px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-deep);
    position: relative;
}
.approach-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.02);
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.approach-visual:hover img { transform: scale(1.04); }
.approach-visual figcaption {
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bg);
    background: rgba(7, 45, 34, 0.7);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.approach-side h2 {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--secondary);
    margin-bottom: 28px;
}
.approach-side h2 em { font-style: italic; color: var(--primary); }
.approach-side p { color: var(--ink-muted); max-width: 45ch; }

.approach-steps {
    display: flex;
    flex-direction: column;
}
.step {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding-top: 6px;
}
.step h5 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--secondary);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.step p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.6; }

/* ============================================================
   PEOPLE
   ============================================================ */
.people {
    padding: 120px var(--gutter);
    background: var(--bg-alt);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.member {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding: 32px;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: border-color .4s, transform .4s;
}
.member:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}
.member-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--bg-deep);
    position: relative;
    filter: saturate(0.85);
}
.member-photo img {
    object-position: center 20%;
}
.member-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 45, 34, 0.25), transparent 50%);
    pointer-events: none;
}

.member-num {
    position: absolute;
    top: 24px; right: 24px;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--bg);
    background: rgba(15, 76, 58, 0.7);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    z-index: 2;
}
.member h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: -0.015em;
    color: var(--secondary);
    margin-bottom: 6px;
}
.member .role {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 16px;
}
.member p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.member-tags span {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 4px 8px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

/* ============================================================
   OFFICES
   ============================================================ */
.offices {
    padding: 120px var(--gutter);
    background: var(--bg);
}
.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.office {
    padding: 48px;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    transition: transform .4s, border-color .4s;
    overflow: hidden;
}
.office-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin: -48px -48px 8px;
    background: var(--bg-deep);
    position: relative;
}
.office-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.02);
    transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.office:hover .office-image img { transform: scale(1.04); }
.office-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 76, 58, 0.15), transparent 40%);
}
.office:hover { transform: translateY(-4px); border-color: var(--primary); }
.office-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}
.office-head .city {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--secondary);
}
.office-head .time {
    font-family: var(--ff-mono);
    font-size: 14px;
    color: var(--primary);
    text-align: right;
}
.office-head .time .label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
.office-addr {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.55;
}
.office-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    transition: color .3s;
    align-self: flex-start;
    width: 100%;
}
.office-link .arrow {
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    font-size: 14px;
}
.office-link:hover { color: var(--accent); }
.office-link:hover .arrow { transform: translateX(6px); }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
    padding: 140px var(--gutter);
    background: var(--primary-deep);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 20% 30%, rgba(197, 160, 89, 0.12), transparent 60%);
    pointer-events: none;
}
.cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.cta .eyebrow { color: var(--accent); margin-bottom: 32px; display: block; }
.cta h2 {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--bg);
    margin-bottom: 32px;
    text-wrap: balance;
}
.cta h2 em {
    font-style: italic;
    color: var(--accent);
}
.cta p {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.5;
    color: rgba(245, 241, 232, 0.8);
    max-width: 52ch;
    margin: 0 auto 48px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta .btn { color: var(--bg); border-color: var(--bg); }
.cta .btn::before { background: var(--accent); }
.cta .btn:hover { color: var(--secondary); }
.cta .btn.accent { background: var(--accent); color: var(--secondary); }
.cta .btn.accent::before { background: var(--bg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 80px var(--gutter) 40px;
    background: #0A1D16;
    color: rgba(245, 241, 232, 0.6);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}
.footer-brand .nav-logo-word { font-size: 1.8rem; color: var(--bg); }
.footer-brand .nav-logo-mark { width: 40px; height: 40px; }
.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 40ch;
    margin-top: 20px;
}
.footer h5 {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
    font-size: 0.9rem;
    color: rgba(245, 241, 232, 0.7);
    transition: color .3s;
}
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.4);
    gap: 20px;
    flex-wrap: wrap;
}

/* Wordmark hero strip in footer */
.footer-wordmark {
    font-family: var(--ff-display);
    font-weight: 200;
    font-size: clamp(5rem, 20vw, 22rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: rgba(245, 241, 232, 0.04);
    text-align: center;
    margin: 40px 0 -40px;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Type reveal */
.type-reveal .line {
    display: block;
    overflow: hidden;
}
.type-reveal .line > span {
    display: block;
    transform: translateY(105%);
    transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.type-reveal.in .line > span { transform: translateY(0); }
.type-reveal.in .line:nth-child(2) > span { transition-delay: .12s; }
.type-reveal.in .line:nth-child(3) > span { transition-delay: .24s; }
.type-reveal.in .line:nth-child(4) > span { transition-delay: .36s; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 200;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    width: 300px;
    display: none;
    font-family: var(--ff-sans);
    max-height: 80vh;
    overflow-y: auto;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 500;
}
.tweaks-panel .tp-sub {
    font-family: var(--ff-display);
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 16px;
    font-weight: 300;
}
.tp-group {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.tp-group:first-of-type { border-top: none; padding-top: 0; }
.tp-group .lbl {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
    display: block;
}
.tp-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tp-chip {
    font-family: var(--ff-mono);
    font-size: 11px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    transition: all .2s;
    letter-spacing: 0.05em;
}
.tp-chip:hover { border-color: var(--primary); }
.tp-chip.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.tp-swatch-row { display: flex; gap: 8px; }
.tp-swatch {
    width: 32px; height: 32px;
    border: 2px solid var(--line);
    cursor: pointer;
    transition: transform .2s, border-color .2s;
    border-radius: 50%;
}
.tp-swatch:hover { transform: scale(1.1); }
.tp-swatch.active { border-color: var(--ink); transform: scale(1.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .nav-center { display: none; }
    .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
    .hero-cta { align-items: flex-start; }
    .meaning .container { grid-template-columns: 1fr; gap: 24px; }
    .section-head { grid-template-columns: 1fr; gap: 24px; padding-top: 80px; }
    .thesis-grid { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
    .pillar:nth-child(n+2) { padding-left: 0; }
    .row { grid-template-columns: 40px 1fr 32px; gap: 16px; }
    .row p { display: none; }
    .row-expand { grid-template-columns: 40px 1fr 32px; }
    .row-expand > div:nth-child(2) { grid-column: 2 / 3; grid-template-columns: 1fr; gap: 16px; }
    .approach-grid { grid-template-columns: 1fr; gap: 40px; }
    .approach-side { position: static; }
    .team-grid { grid-template-columns: 1fr; }
    /* Single-column mobile: show full portrait (match Anjana's 2:3) — no side-by-side comparison so taller aspect is OK */
    .member-photo { aspect-ratio: 2 / 3; }
    .member-photo img { object-position: center 25%; }
    .offices-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-top { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 20px; }
    .hero-stats { gap: 28px; }
}
@media (max-width: 560px) {
    .footer-top { grid-template-columns: 1fr; }
    .office { padding: 28px; }
    /* Keep office image full-bleed — match reduced mobile padding */
    .office-image { margin: -28px -28px 8px; }
    .tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}

/* ============================================================
   PORTFOLIO TEASE (placeholder — coming soon)
   ============================================================ */
.portfolio-tease {
    padding: 120px var(--gutter);
    background: var(--primary);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.portfolio-tease::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 110%, rgba(197, 160, 89, 0.18), transparent 50%),
        radial-gradient(circle at 85% 0%, rgba(197, 160, 89, 0.08), transparent 45%);
    pointer-events: none;
}
.portfolio-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: end;
    position: relative;
}
.portfolio-tease .eyebrow {
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}
.portfolio-title {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--bg);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    margin-bottom: 0;
}
.portfolio-title em {
    font-style: italic;
    color: var(--accent);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.portfolio-body {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.55;
    color: rgba(245, 241, 232, 0.78);
    max-width: 52ch;
    margin-bottom: 32px;
}
.portfolio-body .pf-num {
    font-family: var(--ff-mono);
    font-feature-settings: "tnum";
    color: var(--accent);
    font-weight: 500;
}
.portfolio-tease .btn {
    color: var(--bg);
    border-color: rgba(245, 241, 232, 0.35);
}
.portfolio-tease .btn::before { background: var(--accent); }
.portfolio-tease .btn:hover { color: var(--secondary); }

@media (max-width: 980px) {
    .portfolio-tease { padding: 80px var(--gutter); }
    .portfolio-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    padding: 160px var(--gutter) 120px;
    background: var(--bg);
    min-height: 100vh;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 100px;
    align-items: start;
}
.contact-side {
    position: sticky;
    top: 120px;
}
.contact-side .kicker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.contact-side .kicker .num {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
}
.contact-side .kicker h3 {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    text-transform: uppercase;
    font-weight: 500;
}
.contact-title {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--secondary);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    margin-bottom: 28px;
}
.contact-title em {
    font-style: italic;
    color: var(--primary);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.contact-lede {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 42ch;
    margin-bottom: 56px;
}
.contact-next {
    border-top: 1px solid var(--line);
    padding-top: 28px;
}
.contact-next > .eyebrow {
    margin-bottom: 18px;
    display: block;
    color: var(--accent);
}
.contact-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.contact-steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.contact-steps .n {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding-top: 4px;
}
.contact-steps h5 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--secondary);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.contact-steps p {
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 48px 44px;
    position: relative;
}
.contact-form-wrap::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px;
    width: 42px; height: 42px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}
.contact-form-wrap::after {
    content: "";
    position: absolute;
    bottom: -1px; right: -1px;
    width: 42px; height: 42px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}
#contactForm .field {
    margin-bottom: 28px;
}
#contactForm label {
    display: block;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
    font-weight: 500;
}
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 0 12px;
    transition: border-color .25s;
    outline: none;
    letter-spacing: -0.01em;
}
#contactForm textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
    font-family: var(--ff-sans);
    font-size: 1rem;
}
#contactForm input:focus,
#contactForm textarea:focus {
    border-bottom-color: var(--primary);
}
#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: var(--ink-muted);
    opacity: 0.5;
}
#contactForm .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}
#contactForm .submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    gap: 16px;
    flex-wrap: wrap;
}
#contactForm .submit-note {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* Thank you state */
.contact-thanks {
    text-align: left;
    padding: 20px 0;
    animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.contact-thanks .kicker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.contact-thanks .kicker .num {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
}
.contact-thanks .kicker h3 {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    text-transform: uppercase;
    font-weight: 500;
}
.contact-thanks h2 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--secondary);
    margin-bottom: 20px;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.contact-thanks p {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 38ch;
    margin-bottom: 32px;
}

@media (max-width: 980px) {
    .contact-page { padding: 120px var(--gutter) 80px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-side { position: static; }
    .contact-form-wrap { padding: 36px 28px; }
}
@media (max-width: 560px) {
    .contact-form-wrap { padding: 28px 22px; }
    #contactForm .submit-row { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
    padding: 140px var(--gutter) 100px;
    background: var(--bg);
    min-height: 80vh;
}
.legal-page > .legal-inner {
    max-width: 780px;
    margin: 0 auto;
}
.legal-page .eyebrow { margin-bottom: 24px; display: block; }
.legal-page h1 {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--secondary);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    margin-bottom: 12px;
}
.legal-page .last-updated {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 48px;
    display: block;
}
.legal-page article h2 {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 44px;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}
.legal-page article p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 16px;
}
.legal-page article ul {
    margin: 16px 0 16px 24px;
    line-height: 1.7;
}
.legal-page .legal-footer-note {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-family: var(--ff-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
