/* Layout and tokens modeled on a16z.com's WR25 theme; colors swapped for the vnev palette. */
:root {
  --navy: #1b365f;
  --navy-deep: #0a1729;
  --cream: #fdf2d5;

  --body-bg: #f6f4ee;          /* travertine */
  --card-bg: #fbfaf6;
  --flyout-bg: #f3f0e9;        /* spring wood */
  --panel-bg: #f6f4ee;
  --panel-border: #ebe7db;     /* pearl bush */
  --line: #e7e1d2;
  --truffle: #727069;
  --loggia: #aca08d;
  --loggia-3: #c7bda9;
  --hover-warm: #e1d9c7;

  --gold-hi: #f8e9c2;
  --gold: #c9a56a;
  --gold-lo: #8a6a3c;

  --social-bg: #504e4a;
  --social-bg-hover: #c7bda9;
  --social-color: #fff;
  --footer-text: #fff;

  --heading-2: clamp(1.5rem, 1.4032rem + .3854vw, 1.75rem);
  --heading-4: clamp(.875rem, .8393rem + .1786vw, 1rem);

  --font-primary: "Cormorant", "Times New Roman", serif;      /* stands in for Orpheus Pro */
  --font-secondary: "Hanken Grotesk", system-ui, sans-serif;  /* stands in for Domaine Sans Text */
  --font-tertiary: "Newsreader", Georgia, serif;              /* stands in for Domaine Text */
  --font-display: "Antonio", "Oswald", sans-serif;
  --font-logo: "Josefin Sans", "Futura", sans-serif;

  --hh: 56px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* expo out — long, soft landing */
  --ease-in: cubic-bezier(.7, 0, .84, 0);       /* expo in */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { height: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

/* ---------- Page transitions ----------
   Browsers with cross-document View Transitions (Chrome, Edge, Safari) crossfade between
   pages natively while the header stays put. Others get the JS fallback in main.js
   (.no-vt / .is-leaving). */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .32s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
::view-transition-group(site-header) { animation-duration: .5s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.no-vt .wrapper { animation: vt-in .7s var(--ease-out) both; }
.no-vt.is-leaving .wrapper { opacity: 0; transform: translateY(-6px); transition: opacity .28s var(--ease-in-out), transform .28s var(--ease-in-out); }

/* Filtered grids ease to their new height instead of snapping */
[data-filter-target] { transition: min-height .6s var(--ease-out); }
.is-filtering-in { animation: card-in .6s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.empty:not(.is-hidden) { animation: card-in .5s var(--ease-out) both; }
body { font-family: var(--font-tertiary); font-weight: 300; line-height: 1.75; color: #000; background: var(--navy-deep); -webkit-font-smoothing: antialiased; }
body.menu-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a[aria-disabled="true"] { cursor: default; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Wrapper (hero + footer share one background on home) ---------- */
.wrapper { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: clip; isolation: isolate; }

.bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; pointer-events: none; }
.bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#0000 30%, #000 100%); }
body.is-home { background: #000; } /* matches .bg so overscroll never flashes navy */
/* Homepage is a single, non-scrolling screen: hero fills whatever space the footer leaves. */
html:has(body.is-home) { overflow: hidden; overscroll-behavior: none; scrollbar-gutter: auto; }
body.is-home { overflow: hidden; overscroll-behavior: none; }
.is-home .wrapper { height: 100vh; height: 100dvh; min-height: 0; }
.is-home .hero { flex: 1; min-height: 0; }
.bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1s ease; }
.bg__video.is-ready { opacity: 1; }
.bg__grain { position: absolute; inset: 0; opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; color: #fff; }
.header__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#00000070, #0000); }
.header__blur { position: absolute; inset: 0 0 20px; pointer-events: none; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(#000 70%, #0000 100%); -webkit-mask-image: linear-gradient(#000 70%, #0000 100%); }
/* Inner pages: header is transparent over the page, turns solid once scrolled */
.is-inner .header__bg { background: var(--tone, var(--navy)); opacity: 0; transition: opacity .4s ease; }
.is-inner .header.is-scrolled .header__bg { opacity: 1; }
.is-inner .header__blur { display: none; }
.header__inner { position: relative; max-width: 1440px; height: var(--hh); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.header__btn { width: 40px; height: 40px; display: grid; place-items: center; transition: color .3s; }
.header__btn--menu { margin-left: -8px; }
.header__btn:hover, .logo:hover { color: var(--hover-warm); }
.logo { position: absolute; left: 50%; transform: translateX(-50%); padding: 8px 8px 8px calc(8px + .14em); font-family: var(--font-logo); font-weight: 300; font-size: 22px; letter-spacing: .14em; line-height: 1; transition: color .3s, opacity .3s; }

/* Three-line menu icon; lines ease into a staggered shape on hover */
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; height: 1.2px; width: 100%; background: currentColor; border-radius: 1px; transition: width .5s var(--ease-out), transform .5s var(--ease-out); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6.4px; }
.burger i:nth-child(3) { bottom: 0; }
.header__btn--menu:hover .burger i:nth-child(2) { width: 70%; }
.header__btn--menu:hover .burger i:nth-child(3) { width: 45%; }

/* ---------- Expanding search ---------- */
.search { position: relative; width: 40px; height: 40px; margin-right: -8px; }
.search__form { position: absolute; top: 0; right: 0; height: 40px; width: 40px; padding-right: 38px; display: flex; align-items: center; border-radius: 999px; border: 1px solid transparent; overflow: hidden;
  transition: width .6s var(--ease-out), background-color .4s ease, border-color .4s ease, box-shadow .4s ease; }
.search__form input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 18px; border: 0; background: none; outline: none; color: #fff; font: 300 15px var(--font-secondary); opacity: 0; transition: opacity .3s ease; }
.search__form input::placeholder { color: #ffffff8c; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__toggle { position: absolute; top: 0; right: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: color .3s; }
.search__toggle:hover { color: var(--hover-warm); }
.search.is-open .search__form { width: min(360px, calc(100vw - 32px)); background: #ffffff14; border-color: #ffffff38; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #ffffff12, 0 8px 32px #0000004d; }
.search.is-open .search__form input { opacity: 1; transition: opacity .4s ease .15s; }
.search__results { position: absolute; top: 48px; right: 0; width: min(360px, calc(100vw - 32px)); padding: 8px; background: var(--body-bg); color: #000; border-radius: 16px; box-shadow: 0 20px 50px #00000033;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .4s var(--ease-out), visibility 0s .25s; }
.search.has-results .search__results { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .4s var(--ease-out); }
.search__results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 16px; line-height: 1.4; }
.search__results a small { font: 300 12px/1.8 var(--font-secondary); color: var(--truffle); }
.search__results a:hover, .search__results a.is-active { background: var(--panel-border); }
.search__empty { padding: 10px 14px; font-size: 14px; color: var(--truffle); }
/* On phones the open search covers the logo and menu button, so fade them out */
@media (max-width: 560px) { .header__inner:has(.search.is-open) :is(.logo, .header__btn--menu) { opacity: 0; pointer-events: none; } }

/* ---------- Hero (home) ---------- */
.hero { min-height: 100vh; display: flex; align-items: flex-end; padding: 96px 0 56px; color: #fff; }
.hero__inner { position: relative; width: 100%; max-width: 1392px; margin: 0 auto; padding: 0 32px; }
.hero__title { padding: .06em 0; white-space: nowrap; /* padding keeps glyph edges inside the clipped gradient */ font-family: var(--font-display); font-weight: 200; font-size: clamp(34px, 10vw, 84px); line-height: .95; letter-spacing: .005em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 30%, var(--gold-hi) 45%, var(--gold) 60%, var(--gold-lo) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite, fadeUp 1.4s var(--ease-out) both; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero__cta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(16px, 2.5vw, 32px); max-width: 100%; }
.hero__arrow { width: clamp(44px, 6vw, 80px); color: var(--gold); animation: fadeUp 1.4s .2s var(--ease-out) both; transition: right .5s var(--ease-out), color .3s; }
.hero__cta:hover .hero__arrow { color: var(--hover-warm); }
.hero__arrow::before { top: 6px; border-top-width: 2px; }
.hero__arrow::after { top: 2px; right: 2px; width: 9px; height: 9px; border-width: 2px 2px 0 0; }

.arrow-long { position: relative; right: 0; display: inline-block; flex: none; width: 50px; height: 15px; transition: right .5s var(--ease-out); }
.arrow-long::before { content: ""; position: absolute; left: 0; right: 1px; top: 7px; border-top: 1px solid currentColor; }
.arrow-long::after { content: ""; position: absolute; right: 1px; top: 4px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
a:hover .arrow-long { right: -8px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 101; color: var(--footer-text); font-family: var(--font-tertiary); }
.footer__inner { max-width: 1440px; margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lockup { display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.lockup:hover { opacity: .75; }
.lockup img { flex: none; width: 48px; height: 48px; border-radius: 22%; object-fit: contain; object-position: center; }
.lockup span { font-family: var(--font-logo); font-weight: 300; font-size: 22px; letter-spacing: .14em; line-height: 1; }
.footer__meta { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 22px; font-size: 13px; }
.footer__meta .socials { width: 100%; justify-content: flex-end; transform: translateY(4px); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a[href]:hover { color: var(--hover-warm); }

.is-inner { --social-bg: #ffffff1f; --social-bg-hover: #ffffff3d; }
.is-inner .footer { border-top: 1px solid #ffffff24; margin-top: auto; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--social-bg); color: var(--social-color); transition: background .3s, color .3s; }
.socials a[href]:hover { background: var(--social-bg-hover); color: #fff; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.socials--light a { background: transparent; color: #000; }
.socials--light a[href]:hover { background: var(--panel-border); color: #000; }
.socials--light svg { width: 18px; height: 18px; }

/* ---------- Menu flyout ---------- */
.flyout { position: fixed; inset: 0; z-index: 1002; background: #0003; color: var(--truffle); overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility 0s .9s; }
.flyout.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s ease; }
.flyout.is-closing { opacity: 0; transition: opacity .35s ease .3s; }
.flyout__menu { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--flyout-bg); box-shadow: 0 20px 50px #00000040;
  transform: translate3d(-100%, 0, 0); will-change: transform; }
.flyout.is-active .flyout__menu { transform: none; transition: transform .8s var(--ease-out); }
.flyout.is-closing .flyout__menu { transform: translate3d(-100%, 0, 0); transition: transform .55s var(--ease-in-out); }

/* Staggered entrance for menu contents */
.flyout__level-one > *, .flyout__socials { opacity: 0; transform: translate3d(-18px, 0, 0); }
.flyout.is-active .flyout__level-one > *, .flyout.is-active .flyout__socials { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease-out), color .2s; }
.flyout.is-closing .flyout__level-one > *, .flyout.is-closing .flyout__socials { opacity: 0; transition: opacity .2s ease; }
.flyout.is-active .flyout__level-one > :nth-child(1) { transition-delay: .18s, .18s, 0s; }
.flyout.is-active .flyout__level-one > :nth-child(2) { transition-delay: .22s, .22s, 0s; }
.flyout.is-active .flyout__level-one > :nth-child(3) { transition-delay: .26s, .26s, 0s; }
.flyout.is-active .flyout__level-one > :nth-child(4) { transition-delay: .30s, .30s, 0s; }
.flyout.is-active .flyout__level-one > :nth-child(5) { transition-delay: .34s, .34s, 0s; }
.flyout.is-active .flyout__level-one > :nth-child(6) { transition-delay: .38s, .38s, 0s; }
.flyout.is-active .flyout__socials { transition-delay: .44s, .44s; }

.flyout__close-anchor[data-close-anchor="root"] { position: absolute; right: 32px; top: 32px; z-index: 10; }
.flyout__close { display: grid; place-items: center; width: 28px; height: 28px; margin: -6px; color: #000; transition: color .2s, transform .5s var(--ease-out); }
.flyout__close:hover { color: var(--truffle); transform: rotate(90deg); }

.flyout__level-one { flex: 1; min-height: 0; overflow-y: auto; padding: 114px 32px 32px; display: flex; flex-direction: column; gap: 32px; scrollbar-width: none; }
.l1 { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; font-family: var(--font-primary); font-weight: 400; font-size: var(--heading-2); letter-spacing: .28px; line-height: 1.357; color: var(--truffle); }
.l1:hover, .l1.is-active, .l1.is-current { color: #000; }
.chev { width: 8px; height: 8px; margin-right: 4px; border-top: 1.6px solid var(--loggia); border-right: 1.6px solid var(--loggia); transform: rotate(45deg); flex: none; transition: transform .5s var(--ease-out); }
.l1:hover .chev, .l1.is-active .chev { transform: translateX(3px) rotate(45deg); }
.flyout__socials { padding: 0 32px 40px; gap: 4px; }

/* Level-two panels */
.panel { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; display: flex; flex-direction: column; background: var(--panel-bg); border-left: 1px solid var(--panel-border); z-index: 2;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(-24%, 0, 0);
  transition: transform .4s var(--ease-in-out), opacity .35s ease, visibility 0s .4s; }
.panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: transform .7s var(--ease-out), opacity .5s ease; }
.panel.is-entering { transform: translate3d(-100%, 0, 0); opacity: 0; transition: none; }
.panel__head { height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--loggia-3); }
.panel__head span { font-size: var(--heading-4); font-weight: 300; line-height: 1.375; color: #000; }
.panel__back { width: 24px; height: 24px; position: relative; }
.panel__back::before { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 9px; border-left: 1.4px solid #000; border-bottom: 1.4px solid #000; transform: rotate(45deg); }
.panel__head .flyout__close { margin: 0 0 0 auto; }
.panel__body { flex: 1; overflow-y: auto; padding: 48px 32px 80px; display: flex; flex-direction: column; gap: 26px; scrollbar-width: none; }
.panel__body a { font-family: var(--font-tertiary); font-weight: 300; font-size: 18px; line-height: 1.4; color: var(--truffle); opacity: 0; transform: translate3d(-10px, 0, 0); transition: color .2s; }
.panel.is-active .panel__body a { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--ease-out), color .2s; }
.panel.is-active .panel__body a:nth-child(n) { transition-delay: calc(.08s + var(--i, 0) * .03s), calc(.08s + var(--i, 0) * .03s), 0s; }
.panel__body a[href]:hover, .panel__body a.is-current { color: #000; }
.panel__body a[aria-disabled="true"] { color: var(--loggia); }

@media (min-width: 1024px) {
  .flyout__menu { width: 320px; }
  .panel { left: 320px; width: 320px; }
  .panel__head { border-bottom: 0; padding: 0 24px; justify-content: flex-end; }
  .panel__head .panel__back, .panel__head span { display: none; }
  .panel__body { padding: 44px 44px 80px 32px; gap: 14px; }
  .panel__body a { font-size: 16px; }
}
@media (min-width: 1280px) {
  .flyout__menu { width: 420px; }
  .flyout__level-one { padding-left: 56px; padding-right: 56px; }
  .flyout__socials { padding-left: 56px; padding-right: 56px; }
  .panel { left: 420px; width: 420px; }
  .panel__body { padding-left: 56px; }
}

/* ---------- Subscribe modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1003; background: #00000080; display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.modal__box { position: relative; width: min(560px, 100%); background: var(--body-bg); border-radius: 16px; padding: 48px 40px 40px; transform: translateY(16px) scale(.985); transition: transform .7s var(--ease-out); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.modal__close:hover { background: var(--panel-border); }
.modal__eyebrow { font: 400 11px/1.45 var(--font-secondary); text-transform: uppercase; letter-spacing: .12em; color: var(--truffle); }
.modal__title { margin: 10px 0 28px; font-family: var(--font-primary); font-weight: 400; font-size: 34px; line-height: 1.15; color: #000; }
.modal__form { display: flex; gap: 8px; }
.modal__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; background: #0000000f; border: 1px solid var(--hover-warm); border-radius: 999px; font: 300 15px var(--font-secondary); outline: none; }
.modal__form input:focus { border-color: var(--loggia); }
.modal__form button, .button { height: 48px; padding: 0 24px; border-radius: 999px; background: var(--navy); color: var(--cream); font: 400 14px var(--font-secondary); transition: background .2s; }
.modal__form button:hover, .button:hover { background: var(--navy-deep); }

/* ================= Inner pages =================
   Dark pages like a16z's: the whole page is a faint lattice (or a solid color),
   with content in white and translucent cards on top. Patterns come from scripts/make-patterns.py. */
.tone-pattern-navy { --tone: #1b365f; background: #1b365f url("/assets/pattern-navy.svg") top center / 256px auto repeat; }
.tone-pattern-gray { --tone: #46474b; background: #46474b url("/assets/pattern-gray.svg") top center / 256px auto repeat; }
.tone-pattern-red { --tone: #5c1a24; background: #5c1a24 url("/assets/pattern-red.svg") top center / 256px auto repeat; }
.tone-pattern-green { --tone: #1f3d2c; background: #1f3d2c url("/assets/pattern-green.svg") top center / 256px auto repeat; }
.tone-navy { --tone: #1b365f; background: #1b365f; }
.tone-gray { --tone: #46474b; background: #46474b; }

.is-inner {
  --ink: #fff;
  --ink-2: #ffffffc2;
  --ink-3: #ffffff8c;
  --rule: #ffffff24;
  --card: #ffffff1c;
  --card-hover: #ffffff2b;
  --accent: var(--gold-hi);
  color: var(--ink);
}
.page { color: var(--ink); }
.container { max-width: 1392px; margin: 0 auto; padding: 0 32px; }

.page-hero { position: relative; padding: calc(var(--hh) + 88px) 0 40px; }
.page-hero__eyebrow { margin-bottom: 14px; font: 300 13px/1.4 var(--font-secondary); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); animation: fadeUp 1.2s var(--ease-out) both; }
.page-hero__title { font-family: var(--font-primary); font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: 1; letter-spacing: -.01em; animation: fadeUp 1.2s var(--ease-out) both; }
.page-hero__lede { max-width: 640px; margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); animation: fadeUp 1.2s .1s var(--ease-out) both; }
.page-hero + .section .section__head:first-child { border-top: 0; }


.section { padding: 40px 0 72px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; margin-bottom: 32px; border-top: 1px solid var(--rule); }
.section__title { font-family: var(--font-primary); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font: 300 14px var(--font-secondary); color: var(--ink); transition: color .3s; }
.text-link:hover { color: var(--accent); }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.65; color: var(--ink-2); }

/* Legal pages (terms, privacy, disclosures) and sitemap */
.legal { font-size: 17px; gap: 16px; }
.legal h2 { margin-top: 28px; font-family: var(--font-primary); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.2; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }
.legal ul { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: disc; }
.legal strong { font-weight: 400; color: var(--ink); }
.legal__caps { font-size: 14px; line-height: 1.6; letter-spacing: .01em; color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); transition: color .3s; }
.legal a:hover { color: var(--accent); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal h2 { scroll-margin-top: calc(var(--hh) + 24px); }
.toc { position: sticky; top: calc(var(--hh) + 24px); max-height: calc(100vh - var(--hh) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff40 transparent; }
.toc__label { display: block; margin-bottom: 16px; font: 300 13px/1.4 var(--font-secondary); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); list-style: none; pointer-events: none; }
.toc__label::-webkit-details-marker { display: none; }
.toc__list { display: flex; flex-direction: column; list-style: none; padding: 0; border-left: 1px solid var(--rule); }
.toc__list a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font: 300 14px/1.4 var(--font-secondary); color: var(--ink-3); transition: color .3s, border-color .3s; }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--ink); border-left-color: var(--accent); }
.sitemap { gap: 40px 24px; }
.sitemap__title { margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--font-primary); font-weight: 400; font-size: 24px; }
.sitemap ul { display: flex; flex-direction: column; gap: 12px; }
.sitemap .text-link { font-size: 16px; }

.grid { display: grid; gap: 12px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.is-hidden { display: none !important; }

.filters, .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pills { margin-bottom: 0; }
.chip { padding: 8px 16px; border: 1px solid #ffffff40; border-radius: 999px; font: 300 14px/1.3 var(--font-secondary); color: var(--ink-2); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.chip--static, .chip--static:hover { border-color: #ffffff40; color: var(--ink-2); }

/* Cards: translucent tiles like a16z's portfolio grid */
.co { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 1; padding: 28px 24px 20px; text-align: center; background: var(--card); border-radius: 6px; transition: background .4s ease, transform .6s var(--ease-out); }
.co:hover { background: var(--card-hover); transform: translateY(-3px); }
.co__mark { width: 48px; height: 48px; margin-top: auto; margin-bottom: 6px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--navy); font: 500 24px var(--font-primary); }
.co__mark--img { width: 88px; height: 88px; margin-bottom: 10px; object-fit: cover; border-radius: 18px; background: #fff; }
.co__name { font-family: var(--font-primary); font-weight: 500; font-size: 26px; line-height: 1.15; }
.co__desc { max-width: 240px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.co__meta { margin-top: auto; display: flex; gap: 10px; font: 300 12px var(--font-secondary); letter-spacing: .04em; color: var(--ink-3); }
.co__meta span + span::before { content: "·"; margin-right: 10px; }

.grid--people { row-gap: 32px; }
.person { display: block; }
.person__photo { aspect-ratio: 4 / 5; margin-bottom: 14px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: var(--card); transition: background .4s ease, transform .8s var(--ease-out); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person__photo span { font: 400 clamp(40px, 4vw, 60px) var(--font-primary); color: var(--cream); letter-spacing: .04em; }
.person:hover .person__photo { background: var(--card-hover); transform: scale(1.015); }
.person__name { font-family: var(--font-primary); font-weight: 500; font-size: 22px; line-height: 1.25; transition: color .3s; }
.person:hover .person__name { color: var(--accent); }
.person__role { font: 300 14px/1.5 var(--font-secondary); color: var(--ink-3); }

/* Filter search (team, portfolio): a round button in line with the chips that expands into a glass field */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.filter-bar .filters { margin-bottom: 0; }
.filter-search { position: relative; width: 36px; height: 36px; border: 1px solid #ffffff40; border-radius: 999px; overflow: hidden; transition: width .6s var(--ease-out), background-color .4s ease, border-color .3s, box-shadow .4s ease; }
.filter-search:hover { border-color: var(--ink); }
.filter-search__toggle { position: absolute; top: 0; left: 0; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-2); }
.filter-search__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.filter-search input { width: 100%; height: 100%; padding: 0 16px 0 36px; border: 0; background: none; outline: none; font: 300 14px/1.3 var(--font-secondary); color: var(--ink); opacity: 0; transition: opacity .3s ease; }
.filter-search input::placeholder { color: var(--ink-3); }
.filter-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.filter-search.is-open { width: min(260px, 100%); border-color: #ffffff38; background: #ffffff14; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 #ffffff33, 0 8px 24px #00000026; }
.filter-search.is-open input { opacity: 1; transition: opacity .4s ease .15s; }

/* "More <group>" list on a team member page */
.more-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.more-head .section__title { font-size: clamp(22px, 1.8vw, 26px); }
.more-head .text-link { font-size: 13px; color: var(--ink-2); }
.person-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: -1px; }
.person-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-row__name { font-family: var(--font-primary); font-size: 20px; line-height: 1.2; transition: color .3s; }
.person-row__role { font: 300 12px/1.4 var(--font-secondary); letter-spacing: .02em; color: var(--ink-3); }
.person-row__main:hover .person-row__name { color: var(--accent); }
.person-row__links { flex: none; gap: 8px; }
.person-row__links a { width: 38px; height: 38px; background: var(--card); }
.person-row__links a[href]:hover { background: var(--card-hover); }
.person-row__links svg { width: 14px; height: 14px; }

/* Team member page (solid-color page) */
.bio { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.bio__photo { margin: 0; background: #5b5c61; }
.bio__photo span { color: var(--cream); }
.bio__facts { margin-top: 36px; border-top: 1px solid var(--rule); }
.bio__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.bio__facts dt { font: 300 12px var(--font-secondary); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bio__facts dd { font-size: 17px; }
.bio__facts .pills { margin: 0; }
.bio__facts .text-link { font-size: 16px; }

/* Back to grid */
.back { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 9px 18px 9px 14px; border: 1px solid #ffffff40; border-radius: 999px; font: 300 13px var(--font-secondary); letter-spacing: .04em; color: var(--ink); transition: border-color .3s, background .3s, gap .5s var(--ease-out); }
.back:hover { border-color: var(--ink); background: #ffffff14; gap: 16px; }
.arrow-long--back { width: 30px; transform: scaleX(-1); }
a.back:hover .arrow-long { right: 0; }
.section--back { padding: 0 0 72px; }
.section--back .back { margin-bottom: 0; }

/* Portfolio company page */
.company { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; align-items: start; }
.company__logo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px #00000040; }
.company__logo--mark { display: grid; place-items: center; background: var(--cream); color: var(--navy); font: 500 96px var(--font-primary); }
.company__heading { margin-bottom: 18px; font: 300 12px var(--font-secondary); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.company__body .bio__facts { margin-top: 36px; }
.company__socials { gap: 8px; }
.company__socials a { width: 38px; height: 38px; }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.founder { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--card); border-radius: 6px; }
.founder__photo { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #efe9dc, #d7cfbd); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder__photo span { font: 400 30px var(--font-primary); color: var(--navy); }
.founder__name { font-family: var(--font-primary); font-weight: 500; font-size: 24px; line-height: 1.2; }
.founder__role { font: 300 14px/1.5 var(--font-secondary); color: var(--ink-3); }
.founder__links { margin-top: 10px; gap: 6px; }
.founder__links a { width: 34px; height: 34px; }
.founder__links svg { width: 14px; height: 14px; }
.button--link { display: inline-flex; align-items: center; margin-top: 32px; }
.empty { font-size: 18px; color: var(--ink-2); }



.values .value { padding: 28px; background: var(--card); border-radius: 6px; }
.value h3 { font-family: var(--font-primary); font-weight: 500; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Apply: track cards and the application forms */
.track { display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 32px 28px 28px; background: var(--card); border-radius: 6px; transition: background .3s; }
.apply__intro { margin-bottom: 40px; }
.track:hover { background: var(--card-hover); }
.track__title { font-family: var(--font-primary); font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; }
.track__desc { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.track__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font: 300 14px var(--font-secondary); transition: color .3s; }
.track:hover .track__cta { color: var(--accent); }

.apply { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px; align-items: start; }
.apply__about { position: sticky; top: calc(var(--hh) + 24px); }
.apply__facts { margin-top: 0; }
.apply__facts > div { grid-template-columns: 1fr; gap: 4px; align-items: start; }
.apply__facts dd { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.apply__form { display: flex; flex-direction: column; gap: 48px; max-width: 720px; }
.apply__group { border: 0; display: flex; flex-direction: column; gap: 28px; }
.apply__group legend { float: left; width: 100%; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-family: var(--font-primary); font-size: 21px; line-height: 1.25; }
.field__opt { margin-left: 6px; font: 300 11px var(--font-secondary); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.field__hint { font: 300 13px/1.5 var(--font-secondary); color: var(--ink-3); }
.field input, .field textarea, .field select { width: 100%; margin-top: 4px; padding: 13px 16px; border: 1px solid #ffffff33; border-radius: 6px; background: #00000026; outline: none; font: 300 16px/1.5 var(--font-secondary); color: var(--ink); transition: border-color .2s, background .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 64px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { color: #000; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #00000038; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #f2a38f; }
.field__error { font: 300 13px var(--font-secondary); color: #f2a38f; }
.video-prompt { padding: 24px 24px 20px; border-left: 2px solid var(--accent); background: var(--card); border-radius: 0 6px 6px 0; }
.video-prompt__label { font: 300 12px var(--font-secondary); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.video-prompt__text { margin: 8px 0 12px; font-family: var(--font-primary); font-size: 22px; line-height: 1.35; }
.apply__submit { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 8px; border-top: 1px solid var(--rule); }
.apply__submit .button { margin-top: 20px; }
.apply__submit .button:disabled { opacity: .6; cursor: default; }
.apply__status { margin-top: 20px; font: 300 14px/1.5 var(--font-secondary); color: var(--ink-2); }
.apply__status.is-error { color: #f2a38f; }
.apply__done { padding: 32px 28px; background: var(--card); border-radius: 6px; }
.apply__done h2 { font-family: var(--font-primary); font-weight: 400; font-size: 32px; line-height: 1.1; margin-bottom: 8px; }
.apply__done p { color: var(--ink-2); }

.is-inner .button { background: var(--cream); color: var(--navy); }
.is-inner .button:hover { background: #fff; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .is-home .hero { padding-bottom: 8px; }
  .footer__inner { padding: 44px 32px 27px; }
}
@media (min-width: 1440px) {
  .footer__inner { padding-left: 56px; padding-right: 56px; }
}
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio, .company, .apply { grid-template-columns: 1fr; gap: 32px; }
  .apply__about { position: static; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-height: none; padding: 16px 20px; background: var(--card); border-radius: 6px; }
  .toc__label { margin: 0; pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc__label::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink-2); }
  .toc[open] .toc__label::after { content: "\2212"; }
  .toc[open] .toc__list { margin-top: 16px; }
  .company__logo { max-width: 220px; }
  .bio__photo { max-width: 260px; }
  .person-rows { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .footer__inner { flex-direction: column; align-items: stretch; gap: 32px; position: relative; }
  .footer__brand { order: 2; padding-bottom: 40px; }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer__meta .socials { justify-content: flex-start; gap: 16px; transform: none; }
  .footer__copy { position: absolute; bottom: 24px; left: 32px; }
  .footer__links { flex-direction: column; gap: 16px; }
  /* Home is one non-scrolling screen, so its footer collapses to two short rows (the header already carries the logo):
     socials + ©, then the legal links inline. */
  .is-home .footer__inner { padding: 16px 20px 20px; gap: 0; }
  .is-home .footer__brand { display: none; }
  .is-home .footer__meta { flex-direction: row; align-items: center; gap: 14px 16px; font-size: 12px; }
  .is-home .footer__meta .socials { width: auto; gap: 10px; }
  .is-home .footer__meta .socials a { width: 34px; height: 34px; }
  .is-home .footer__meta .socials svg { width: 14px; height: 14px; }
  .is-home .footer__copy { position: static; margin-left: auto; opacity: .7; }
  .is-home .footer__links { width: 100%; flex-direction: row; gap: 6px 18px; }
  .modal__box { padding: 44px 24px 28px; }
  .modal__form { flex-direction: column; }
}
@media (max-width: 560px) {
  .container, .hero__inner { padding: 0 20px; }
  .header__inner { padding: 0 16px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .co { padding: 18px 12px 14px; }
  .co__name { font-size: 20px; }
  .co__desc { display: none; }
  .grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .page-hero { padding-top: calc(var(--hh) + 56px); padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
