/* ── INUS LABS — a16z register ──────────────────────────────────────────
   Cream editorial pages, dark cinematic home, deco display type.
   Display: Italiana · Serif: Newsreader · Sans: Inter                    */

:root {
    --cream: #F6F4EE;
    --cream-2: #EFEBE1;
    --ink: #181510;
    --muted: #6F6A5E;
    --hairline: #DBD6C8;
    --green: #3E5A45;
    --gold-1: #8A6B38;
    --gold-2: #DCC088;
    --dark: #080706;
    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --deco: 'Italiana', 'Times New Roman', serif;
    --pad: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
::selection { background: var(--green); color: var(--cream); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ── top bar ── */
.topbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px var(--pad);
}
.wordmark {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-family: var(--deco); font-size: 17px; letter-spacing: .38em;
    text-indent: .38em; text-transform: uppercase; white-space: nowrap;
}
.wordmark:hover { color: inherit; opacity: .7; }
.menu-btn {
    background: none; border: 0; cursor: pointer; padding: 8px;
    display: flex; flex-direction: column; gap: 5px; color: inherit;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; }
.theme-dark .topbar { color: #EDE9DF; }

/* ── drawer ── */
.scrim {
    position: fixed; inset: 0; z-index: 40; background: rgba(8, 7, 6, .35);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
    width: min(400px, 88vw); background: var(--cream-2); color: var(--ink);
    padding: 26px 40px 34px; display: flex; flex-direction: column;
    transform: translateX(-102%); transition: transform .35s cubic-bezier(.25, .7, .3, 1);
    visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: 30px 0 80px rgba(8, 7, 6, .18); }
.drawer .close-btn {
    align-self: flex-end; background: none; border: 0; cursor: pointer;
    font-family: var(--sans); font-size: 22px; line-height: 1; color: var(--ink); padding: 8px;
}
.drawer nav { margin-top: 34px; display: flex; flex-direction: column; }
.drawer nav a {
    font-family: var(--deco); font-size: 31px; letter-spacing: .02em;
    padding: 13px 0; border-bottom: 1px solid transparent;
}
.drawer nav a:hover { color: var(--green); }
.drawer .drawer-foot {
    margin-top: auto; font-family: var(--sans); font-size: 12px;
    letter-spacing: .08em; color: var(--muted);
}
.drawer .drawer-foot a { display: inline-block; margin-right: 18px; }

/* ── shared text pieces ── */
.eyebrow {
    font-family: var(--sans); font-size: 11px; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.chip-new {
    display: inline-block; vertical-align: 2px; margin-right: 9px;
    font-family: var(--sans); font-size: 9.5px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    background: var(--green); color: var(--cream); padding: 3px 7px 2px; border-radius: 2px;
}
.arrow-link {
    display: inline-block; font-family: var(--sans); font-size: 12.5px;
    font-weight: 500; letter-spacing: .06em;
}
.arrow-link::after {
    content: '\27F6'; margin-left: 12px;
    display: inline-block; transition: transform .25s ease;
}
.arrow-link:hover::after { transform: translateX(6px); }
.btn-outline {
    display: inline-block; font-family: var(--sans); font-size: 11px;
    font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid var(--ink); padding: 12px 26px; background: none;
    cursor: pointer; transition: background .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ── home hero ── */
.theme-dark { background: var(--dark); }
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: flex-end;
    background: var(--dark) url('assets/images/hero-valley.jpg') center / cover no-repeat;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8, 7, 6, .78) 0%, rgba(8, 7, 6, .06) 40%, rgba(8, 7, 6, .34) 100%);
}
.hero-bottom { position: relative; z-index: 2; padding: 0 var(--pad) 56px; }
.deco {
    font-family: var(--deco); font-weight: 400; text-transform: uppercase;
    font-size: clamp(44px, 7.4vw, 108px); line-height: 1.04; letter-spacing: .035em;
    background: linear-gradient(100deg, var(--gold-1) 4%, var(--gold-2) 46%, var(--gold-1) 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .arrow-link { margin-top: 26px; color: #EDE9DF; }
.hero .arrow-link:hover { color: var(--gold-2); }

@media (prefers-reduced-motion: no-preference) {
    .rise { opacity: 0; transform: translateY(10px); animation: rise .9s cubic-bezier(.22, .61, .36, 1) forwards; }
    .d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; }
    @keyframes rise { to { opacity: 1; transform: none; } }
}

.theme-dark .light-wrap { background: var(--cream); color: var(--ink); }
.intro h2 {
    font-family: var(--serif); font-weight: 500; margin-top: 18px;
    font-size: clamp(30px, 4vw, 46px); line-height: 1.15; max-width: 24ch;
}
.intro .lede { margin-top: 20px; max-width: 56ch; font-size: 19px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 16px 44px; margin-top: 30px; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px 72px; align-items: center; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
.feature-card { display: block; }
.feature-card img { width: 100%; height: auto; display: block; }
.feature-card .eyebrow { display: block; margin-top: 16px; }
.feature-card .f-title { display: block; margin-top: 8px; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.feature-card:hover { color: inherit; }
.feature-card:hover .f-title { color: var(--green); }
.feature-card .arrow-link { margin-top: 12px; }

/* image page-hero (dark variant) */
.hero--page { min-height: 74svh; }
.hero--page .eyebrow { color: #CFC9BA; }
.hero--page .page-title {
    font-family: var(--serif); font-weight: 500; margin-top: 16px;
    font-size: clamp(34px, 4.4vw, 54px); line-height: 1.14; letter-spacing: -.01em;
    max-width: 22ch; color: #F4F1E8;
}
.hero--page .lede { margin-top: 18px; max-width: 56ch; font-size: 18.5px; color: #E2DDD0; }

/* ── page hero (cream subpages) ── */
.page-hero { padding: 150px var(--pad) 30px; max-width: 1200px; margin: 0 auto; }
.page-hero h1 {
    font-family: var(--serif); font-weight: 500; margin-top: 18px;
    font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.01em;
    max-width: 20ch;
}
.page-hero .lede { margin-top: 22px; max-width: 58ch; font-size: 19px; color: var(--ink); }

/* ── content bands ── */
.band { padding: 48px var(--pad) 72px; max-width: 1200px; margin: 0 auto; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.band-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }

/* editorial rows */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 48px; align-items: start; }
@media (max-width: 900px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.row { border-top: 1px solid var(--hairline); padding: 20px 0 22px; }
.row .eyebrow { display: block; margin-bottom: 9px; }
.row h3, .row .title {
    font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.32; display: block;
}
.row .title:hover, .row h3 a:hover { color: var(--green); }
.row .byline { margin-top: 7px; font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.row .desc { margin-top: 10px; font-size: 16px; color: var(--ink); max-width: 56ch; }
.row .arrow-link { margin-top: 14px; }
.row .count {
    float: right; font-family: var(--sans); font-size: 13px; color: var(--muted);
    font-variant-numeric: tabular-nums; padding-top: 4px;
}

/* people rows (contributors / fellows) */
.person { border-top: 1px solid var(--hairline); padding: 13px 0 15px; }
.person .name { display: block; font-family: var(--serif); font-size: 18.5px; line-height: 1.3; }
.person .affil { display: block; margin-top: 2px; font-family: var(--sans); font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }

/* mission prose */
.prose { max-width: 720px; }
.prose section { border-top: 1px solid var(--hairline); padding: 34px 0 38px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.25; margin-bottom: 14px; }
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }

.epigraph {
    text-align: center; font-family: var(--serif); font-style: italic;
    font-size: clamp(26px, 3vw, 34px); line-height: 1.3; color: var(--ink);
    margin: 84px 0 24px;
}

/* ── footer ── */
.site-footer { background: var(--dark); color: #B5AFA2; padding: 64px var(--pad) 34px; }
.site-footer .foot-top {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 28px; max-width: 1200px; margin: 0 auto;
    border-bottom: 1px solid rgba(237, 233, 223, .14); padding-bottom: 38px;
}
.site-footer .foot-mark { font-family: var(--deco); font-size: 24px; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: #EDE9DF; }
.site-footer .foot-tag { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; }
.site-footer nav a:hover { color: var(--gold-2); }
.site-footer .foot-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
    max-width: 1200px; margin: 26px auto 0;
    font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: #7C766A;
}

@media (max-width: 640px) {
    .page-hero { padding-top: 120px; }
    .wordmark { font-size: 14px; }
    .row .count { float: none; display: block; padding-top: 6px; }
}
