/* Headquarters Ventures — site styles */

:root {
    --paper: #f3ede1;
    --paper-2: #e9e1d0;
    --ink: #16150f;
    --ink-2: #57534a;
    --ink-3: #8a857a;
    --line: rgba(22, 21, 15, 0.14);
    --line-strong: rgba(22, 21, 15, 0.32);
    --accent: #ffd200;

    --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1360px;
    --header-h: 72px;
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin: 0;
}

.mark {
    background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
    padding: 0 0.04em;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand img { width: 56px; height: auto; }

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

.nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color 0.15s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.nav .btn { color: var(--paper); padding: 10px 18px; }
.nav .btn:hover { color: var(--ink); }

.arrow { transition: transform 0.2s; }
a:hover .arrow { transform: translateX(4px); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    margin-right: -8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 24px var(--gutter);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
    .nav a {
        font-family: var(--font-display);
        font-size: 34px;
        font-weight: 600;
        letter-spacing: -0.03em;
        color: var(--ink);
        padding: 6px 0;
    }
    .nav .btn { margin-top: 20px; font-family: var(--font-body); font-size: 16px; letter-spacing: 0; padding: 14px 24px; }
    .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(56px, 10vw, 140px) 0 clamp(48px, 7vw, 96px);
}

.hero h1 {
    font-size: clamp(48px, 9.4vw, 148px);
    max-width: 13ch;
}

.hero-foot {
    margin-top: clamp(36px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    border-top: 1px solid var(--line-strong);
    padding-top: 28px;
}

.hero-foot p {
    margin: 0;
    max-width: 560px;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.45;
    color: var(--ink-2);
}

.hero-foot p strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .hero-foot { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 0;
    user-select: none;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 34px);
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.marquee-track span::after {
    content: "";
    width: 10px;
    height: 10px;
    margin: 0 clamp(20px, 3vw, 40px);
    border-radius: 50%;
    background: var(--accent);
    border: 1.5px solid var(--ink);
}

@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
    font-size: clamp(36px, 5.2vw, 76px);
    max-width: 16ch;
}

.section-head .eyebrow { margin-bottom: 18px; }

.link-arrow .arrow { display: inline-block; margin-left: 6px; }

.link-arrow {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 2px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .section-head { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}

.stat {
    padding: 28px 24px 8px 0;
    border-right: 1px solid var(--line);
}

.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }

.stat-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(40px, 5.6vw, 84px);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.stat-label small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }

@media (max-width: 760px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(3) { padding-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Pillars (What we do) ---------- */

.pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

.pillar {
    padding: 28px 28px 0 0;
}

.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }

.pillar-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-3);
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 40px 0 12px;
}

.pillar p { margin: 0; color: var(--ink-2); font-size: 16px; }

@media (min-width: 961px) {
    .pillars--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
    .pillar:nth-child(n + 3) { margin-top: 40px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
    .pillars { grid-template-columns: 1fr; }
    .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
    .pillar + .pillar { margin-top: 32px; border-top: 1px solid var(--line); }
    .pillar h3 { margin-top: 20px; }
}

/* ---------- Venture cards ---------- */

.venture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

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

.venture {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 0;
}

.venture:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.venture-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c, var(--ink));
    color: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(18px, 2vw, 26px);
}

.venture-cover::before {
    /* print-grain so flat colors feel like the logo's stamp texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.5;
    mix-blend-mode: multiply;
}

.venture-cover-name {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 3.2vw, 46px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    transition: transform 0.3s ease;
}

.venture:hover .venture-cover-name { transform: translateY(-6px); }

.venture-badge {
    position: absolute;
    top: clamp(14px, 1.6vw, 20px);
    left: clamp(18px, 2vw, 26px);
    right: clamp(18px, 2vw, 26px);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.venture-body { padding: 16px 0 0; }

.venture-body p {
    margin: 0;
    font-size: 15.5px;
    color: var(--ink-2);
    line-height: 1.45;
}

.venture-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-3);
}

.venture-meta span + span::before { content: "·"; margin-right: 14px; }

.tag-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
}

/* ---------- Filters ---------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.chip {
    border: 1px solid var(--line-strong);
    background: transparent;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: rgba(243, 237, 225, 0.6); }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.select {
    appearance: none;
    border: 1px solid var(--line-strong);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316150f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
    border-radius: 999px;
    padding: 8px 38px 8px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

.empty { padding: 48px 0; color: var(--ink-2); }

/* ---------- Venture dialog ---------- */

.venture-dialog {
    border: 0;
    padding: 0;
    width: min(880px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    background: var(--paper);
    color: var(--ink);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.venture-dialog::backdrop { background: rgba(22, 21, 15, 0.55); backdrop-filter: blur(2px); }

.dialog-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
}

.dialog-grid .venture-cover { aspect-ratio: auto; min-height: 100%; border-radius: 0; }
.dialog-grid .venture-cover-name { font-size: clamp(36px, 4vw, 54px); }

.dialog-body { padding: clamp(24px, 3.5vw, 44px); }
.dialog-body h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 8px 0 6px; }
.dialog-body .founder { color: var(--ink-2); margin: 0 0 20px; font-size: 15px; }
.dialog-body .lede { font-size: 18px; line-height: 1.45; margin: 0 0 24px; }

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 24px;
    border-top: 1px solid var(--line);
}

.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }

.dialog-body h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin: 20px 0 6px;
}

.dialog-body h3 + p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--paper);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 700px) {
    .dialog-grid { grid-template-columns: 1fr; }
    .dialog-grid .venture-cover { min-height: 180px; }
}

/* ---------- Manifesto band ---------- */

.band {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(72px, 11vw, 160px) 0;
}

.band .eyebrow { color: rgba(243, 237, 225, 0.6); }

.band blockquote {
    margin: 20px 0 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(34px, 5.4vw, 80px);
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 18ch;
}

.band blockquote em { font-style: normal; color: var(--accent); }

.band-foot {
    margin-top: 40px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(243, 237, 225, 0.7);
}

.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band .btn:hover { background: transparent; color: var(--paper); }

/* ---------- Two-column prose ---------- */

.split {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(24px, 6vw, 96px);
}

.split h2 { font-size: clamp(32px, 3.8vw, 54px); }

.prose p { margin: 0 0 1.1em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); }
.prose p:first-child { color: var(--ink); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; }

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

/* ---------- Stage ladder ---------- */

.ladder { border-top: 1px solid var(--line-strong); }

.rung {
    display: grid;
    grid-template-columns: 80px minmax(0, 3fr) minmax(0, 6fr);
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.rung-num { font-family: var(--font-display); font-weight: 600; color: var(--ink-3); }
.rung h3 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.rung p { margin: 0; color: var(--ink-2); }

@media (max-width: 860px) {
    .rung { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; }
    .rung p { grid-column: 2; }
}

/* ---------- Team ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}

.team-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 960px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.person img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--paper-2);
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s;
}

.person:hover img { filter: none; }

.person h3 {
    margin: 16px 0 2px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.team-grid--compact .person h3 { font-size: 17px; margin-top: 12px; }

.person .role { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.person .bio { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-2); }

.person .socials { display: flex; gap: 14px; margin-top: 12px; }
.person .socials a { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* ---------- Page header ---------- */

.page-head {
    padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px);
}

.page-head h1 { font-size: clamp(48px, 8vw, 120px); }

.page-head p {
    margin: 28px 0 0;
    max-width: 640px;
    font-size: clamp(17px, 1.6vw, 21px);
    color: var(--ink-2);
}

/* ---------- Newsletter ---------- */

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.newsletter h2 { font-size: clamp(36px, 4.6vw, 68px); }
.newsletter p { color: var(--ink-2); font-size: 18px; margin: 20px 0 0; max-width: 460px; }
.newsletter-embed { min-height: 120px; }
.newsletter-embed iframe { max-width: 100%; }

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

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(56px, 7vw, 96px) 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-word {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 3.2vw, 46px);
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0;
}

.footer-top h4 {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(243, 237, 225, 0.5);
}

.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li + li { margin-top: 8px; }
.footer-top a { text-decoration: none; color: rgba(243, 237, 225, 0.85); }
.footer-top a:hover { color: var(--accent); }

.footer-bottom {
    margin-top: clamp(48px, 6vw, 88px);
    padding-top: 24px;
    border-top: 1px solid rgba(243, 237, 225, 0.15);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(243, 237, 225, 0.5);
}

@media (max-width: 1100px) {
    .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
    .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top > :first-child { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
