/* Marlowe site styles.
   Brand: graphite #2B2B2B, ink #1A1A1A, sand #F4F4EF, green #82CE7E, deep green #4C7849.
   Sections pick a palette with data-tone (dark = graphite, ink = near-black). */

@view-transition { navigation: auto; }

:root {
  --green: #82CE7E;
  --green-deep: #4C7849;
  --graphite: #2B2B2B;
  --ink: #1A1A1A;
  --sand: #F4F4EF;
  --radius: 24px;
  --radius-sm: 12px;
  --overlap: 32px;
  --gutter: 24px;
  --max: 1200px;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display-weight: 600;
  --display-track: -0.035em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  background: var(--sand);
  color: var(--graphite);
}
img { max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent, var(--green-deep)); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--ink); }

/* ---------- Tones ---------- */
[data-tone] { background: var(--bg); color: var(--fg); }
[data-tone="dark"] {
  --bg: #2B2B2B; --fg: #F4F4EF; --muted: #C9C9C4; --faint: #9A9A97;
  --line: rgba(244, 244, 239, .14); --surface: #343433; --surface-2: #3D3D3C;
  --accent: #82CE7E; --dia: #3D3D3C; --glass: rgba(28, 28, 28, .88);
}
[data-tone="ink"] {
  --bg: #1A1A1A; --fg: #F4F4EF; --muted: #C9C9C4; --faint: #9A9A97;
  --line: rgba(244, 244, 239, .12); --surface: #222222; --surface-2: #2B2B2B;
  --accent: #82CE7E; --dia: #292929; --glass: rgba(20, 20, 20, .8);
}
[data-tone="sand"] {
  --bg: #F4F4EF; --fg: #2B2B2B; --muted: #4A4A49; --faint: #676766;
  --line: #DBDBD6; --surface: #FFFFFF; --surface-2: #E0E0DB;
  --accent: #4C7849; --dia: #E6E6E0; --glass: rgba(244, 244, 239, .78);
}
[data-tone="white"] {
  --bg: #FFFFFF; --fg: #2B2B2B; --muted: #4A4A49; --faint: #676766;
  --line: #DBDBD6; --surface: #F4F4EF; --surface-2: #E0E0DB;
  --accent: #4C7849; --dia: #F0F0EB; --glass: rgba(255, 255, 255, .78);
}

/* ---------- Primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.mono, .eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: currentColor; transform: rotate(45deg);
}
.display {
  font-weight: var(--display-weight);
  font-size: clamp(2.125rem, 5.4vw, 4.5rem);
  line-height: 1.02; letter-spacing: var(--display-track);
  text-wrap: balance;
}
.lead {
  font-weight: 500; font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5; color: var(--muted); text-wrap: pretty;
}
.logo { display: inline-flex; }
.logo img { display: block; height: 100%; width: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  background: var(--green); color: var(--ink);
  font-weight: 600; font-size: 17px; text-decoration: none;
  border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
}
.btn::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-radius: 2px; background: currentColor; transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(130, 206, 126, .55); }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: var(--green); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Banner ---------- */
.banner {
  display: flex; align-items: center; justify-content: center; gap: 6px 12px; flex-wrap: wrap;
  min-height: 44px; padding: 10px var(--gutter);
  background: var(--green); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; text-align: center;
}
.banner span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.banner svg { display: none; }
.banner span { transition: color .2s; }
.banner:hover span { color: var(--sand); }

/* ---------- Nav (floating pill) ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: min(var(--max), calc(100% - 24px)); height: 60px;
  margin: 12px auto -72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 22px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow .4s, background .4s;
  view-transition-name: nav;
}
.nav.scrolled { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .35); }
.nav .logo { height: 22px; align-items: center; min-height: 44px; }
.nav .logo img { height: 22px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  position: relative; color: var(--fg); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: 12px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.nav-links a[aria-current="page"] { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.nav-links a[aria-current="page"]::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 1.5px; background: var(--green); transform: rotate(45deg) translateY(-1px);
}
@media (max-width: 360px) {
  .nav { height: 56px; padding: 0 6px 0 14px; gap: 6px; border-radius: 18px; }
  .nav .logo, .nav .logo img { height: 18px; }
  .nav-links a { padding: 9px 8px; font-size: 14px; }
  .nav-links a[aria-current="page"]::before { width: 5px; height: 5px; margin-right: 5px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 12%, rgba(130, 206, 126, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(130, 206, 126, .07), transparent 70%);
}
.diamonds { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner {
  min-height: min(100svh, 1000px);
  padding-block: 168px calc(120px + var(--overlap));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: clamp(28px, 3.4vw, 44px);
  will-change: transform, opacity;
}
.hero .logo { height: clamp(40px, 5vw, 64px); }
.hero h1 {
  font-weight: var(--display-weight);
  font-size: clamp(2.125rem, 10vw, 7.5rem);
  line-height: .98; letter-spacing: -0.045em;
}
.hero h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { max-width: 620px; font-size: clamp(1.1875rem, 1.9vw, 1.375rem); }

.js .hero h1 .line > span { animation: rise 1.1s var(--ease) both; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
.js .hero .logo, .js .hero .lead, .js .hero .btn { animation: fade-up 1s var(--ease) both; }
.js .hero .logo { animation-delay: 0s; }
.js .hero .lead { animation-delay: .28s; }
.js .hero .btn { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Sections that slide over what came before */
main { position: relative; z-index: 1; }
.over {
  border-radius: var(--overlap) var(--overlap) 0 0;
  margin-top: calc(-1 * var(--overlap));
}
.under { padding-bottom: calc(clamp(88px, 12vw, 168px) + var(--overlap)); }

/* ---------- Home: problem ---------- */
.split { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .split > .sticky { position: sticky; top: 128px; }
}
.cards { display: grid; gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(28px, 3.4vw, 40px);
  display: grid; gap: 14px;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(130, 206, 126, .2), transparent 60%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 55%, var(--line)); box-shadow: 0 24px 60px -30px rgba(26, 26, 26, .35); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.card p { color: var(--muted); max-width: 44ch; }
.card .mono { margin-bottom: clamp(20px, 4vw, 48px); }

/* Capacity wall: a little tighter than the default section rhythm */
.section.wall { padding-block: clamp(72px, 9.5vw, 136px) calc(clamp(72px, 9.5vw, 136px) + var(--overlap)); }
.wall .card { padding: clamp(24px, 3vw, 34px); }
.wall .card .mono { margin-bottom: clamp(12px, 2.6vw, 30px); }

.statement {
  margin-top: clamp(88px, 12vw, 160px);
  font-weight: var(--display-weight); font-size: clamp(1.75rem, 4.6vw, 4rem);
  line-height: 1.08; letter-spacing: var(--display-track);
  max-width: 20ch; text-wrap: balance;
}
.statement .w { transition: opacity .25s linear; }
@media (min-width: 900px) { .statement { max-width: none; } }
.statement-section .statement { margin-top: 0; }

/* ---------- Home: factory ---------- */
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) {
  .section-head.two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; }
}
.stack-fig {
  border-radius: var(--radius); overflow: hidden; background: #2B2B2B;
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 40px 100px -50px rgba(26, 26, 26, .6);
}
.stack-fig picture { display: block; }
.stack-fig img { display: block; width: 100%; height: auto; }
.next { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: 28px; }
.next-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 24px; }
.next-list li { position: relative; padding-top: 24px; display: grid; gap: 14px; align-content: start; }
.next-list li::before, .next-list li::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
}
.next-list li::before { background: var(--line); }
.next-list li::after { background: var(--accent); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .15s; }
.js .next-list li:not(.in)::after { transform: scaleX(0); }
.next-list .t { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; text-wrap: pretty; }

/* ---------- Closers (CTA / Careers) ---------- */
.closer { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(104px, 14vw, 200px); }
.closer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 90% 100%, rgba(130, 206, 126, .18), transparent 70%);
}
.closer .wrap { display: grid; gap: clamp(28px, 4vw, 48px); justify-items: start; }
.closer .display { font-size: clamp(2.25rem, 7vw, 6rem); max-width: 14ch; }
.closer .lead { max-width: 720px; color: var(--fg); font-size: clamp(1.1875rem, 2vw, 1.4375rem); }

/* ---------- Footer ---------- */
.footer { padding-block: 48px; color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .logo { height: 22px; min-height: 44px; align-items: center; }
.footer .logo img { height: 22px; }
.footer span { font-family: var(--mono); letter-spacing: .02em; }

/* ---------- Sub-page headers ---------- */
.page-head { padding-top: clamp(150px, 18vw, 220px); }
.page-title {
  font-weight: var(--display-weight); font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: .98; letter-spacing: -0.045em;
}

/* ---------- About ---------- */
.story { display: grid; gap: 32px; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: end; } }
.story p { font-weight: 500; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.55; text-wrap: pretty; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 20px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 519px) { .people { grid-template-columns: 1fr 1fr; gap: 32px 12px; } }
@media (max-width: 380px) { .people { grid-template-columns: 1fr; gap: 44px; } }
.person { display: grid; gap: 12px; align-content: start; }
.headshot {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(130, 206, 126, .22), transparent 60%),
    var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint);
  transition: transform .6s var(--ease);
}
.person:hover .headshot { transform: scale(.985); }
.headshot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.person .role { font-size: 15px; font-weight: 500; color: var(--accent); }
.person .bio { font-size: 15px; line-height: 1.5; color: var(--muted); }
.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; justify-self: start;
  font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none;
  transition: color .2s;
}
.link svg { display: block; flex: none; width: 19px; height: 19px; margin-left: -2px; transition: transform .3s var(--ease); }
.link:hover { color: var(--accent); }
.link:hover svg { transform: translate(2px, -2px); }
.advisors {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline;
}
.advisors h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.advisors b { font-weight: 600; }
.advisors .dot { color: var(--faint); padding: 0 6px; }
.team-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px;
  font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 500;
}
@media (max-width: 519px) { .team-list { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.team-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  transition: padding .35s var(--ease), color .2s;
}
.team-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 1.5px; flex: none;
  background: var(--green); transform: rotate(45deg) scale(0);
  margin-left: -17px; transition: transform .35s var(--ease), margin .35s var(--ease);
}
@media (hover: hover) {
  .team-list li:hover::before { transform: rotate(45deg) scale(1); margin-left: 0; }
}
/* Fixed 4 per row (2 on small screens); a short last row is centred, e.g. 4 + 3 */
.investors { --cols: 4; --gap: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); }
.investors > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 719px) { .investors { --cols: 2; } }
@media (max-width: 519px) { .investors { --gap: 8px; } }
.investors li {
  min-height: 128px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.investors li:hover { transform: translateY(-3px); border-color: var(--green); }
.investors li { position: relative; }
.investors li > a {
  position: absolute; inset: 0; border-radius: inherit;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  color: inherit; text-decoration: none;
}
.investors li > a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.investors li:has(> a:focus-visible) { border-color: var(--green); }
.investors .n { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; letter-spacing: -0.02em; }
.investors .inv-logo {
  display: block; width: auto; height: auto; max-width: 78%; max-height: var(--h, 44px);
  filter: brightness(0) invert(.95); /* one-colour sand on the dark tiles */
}
.investors .tbd { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.note { margin-top: 36px; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--muted); }

/* ---------- Blog index ---------- */
.blog-main { min-height: 100svh; padding-bottom: clamp(88px, 12vw, 160px); }
.post-list { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.post-list > li { border-bottom: 1px solid var(--line); }
.post-row { position: relative; display: grid; gap: 28px; padding: clamp(28px, 4vw, 48px) 0; align-items: center; }
@media (min-width: 800px) { .post-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.post-thumb { display: block; border-radius: var(--radius); overflow: hidden; background: #2B2B2B; }
.post-thumb img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.post-row:hover .post-thumb img { transform: scale(1.04); }
.post-body { display: grid; gap: 16px; max-width: 700px; }
.post-body h2 { font-size: clamp(1.625rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.post-body h2 a { color: var(--fg); text-decoration: none; background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.post-body h2 a::after { content: ""; position: absolute; inset: 0; }
.post-row:hover .post-body h2 a { background-size: 100% 2px; }
.post-body .desc { font-size: 18px; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--faint); }

/* ---------- Article ---------- */
.post-head { padding-bottom: clamp(56px, 7vw, 96px); }
.post-head .wrap { max-width: 928px; display: grid; gap: 28px; justify-items: start; }
.post-head h1 { font-weight: var(--display-weight); font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--accent); }
.back svg { display: none; }
.back:hover { color: var(--fg); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; color: var(--muted); }
.byline .who { font-weight: 500; color: var(--fg); }
@media (max-width: 519px) {
  .byline > span[aria-hidden="true"] { display: none; }
  .byline time { flex-basis: 100%; }
}
.post-body-wrap { padding: clamp(56px, 7vw, 88px) var(--gutter) clamp(88px, 12vw, 160px); }
.prose { max-width: 680px; margin: 0 auto; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.7; display: flex; flex-direction: column; gap: 24px; }
.prose > p:first-child { font-size: clamp(1.25rem, 2vw, 1.4375rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.prose h2 { margin-top: 40px; font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.prose .sig { font-style: italic; color: var(--muted); }
.prose figure { margin: 24px 0; }
@media (min-width: 720px) {
  .prose figure { position: relative; left: 50%; translate: -50% 0; width: min(1040px, calc(100vw - 48px)); }
}

/* Partner quotes */
.prose figure.quote { position: static; translate: none; width: auto; margin: 24px 0; padding: 0 0 0 28px; border-left: 3px solid var(--green); display: grid; gap: 12px; }
.prose .quote blockquote { margin: 0; }
.prose .quote blockquote p { font-size: inherit; line-height: inherit; font-weight: 500; color: var(--fg); text-wrap: pretty; }
.prose .quote blockquote p::before { content: "\201C"; }
.prose .quote blockquote p::after { content: "\201D"; }
.prose .quote figcaption { display: flex; flex-wrap: wrap; gap: 0 .4em; font-size: inherit; line-height: inherit; color: var(--muted); }
.prose .quote figcaption .who { color: var(--fg); font-weight: 600; }
.prose .quote figcaption .who::after { content: ","; }
@media (max-width: 559px) { .prose figure.quote { padding-left: 20px; } }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(28px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .card.rv.in, .js .investors li.rv.in { transition: opacity .9s var(--ease) var(--d, 0s), transform .6s var(--ease), border-color .3s, box-shadow .5s var(--ease); }

/* ---------- Night Shift: dark everywhere, glow, glass ---------- */
body { background: var(--ink); }
.banner { background: #111; color: var(--sand); border-bottom: 1px solid rgba(244, 244, 239, .1); }
.banner span { color: var(--green); }
.hero h1 .line:nth-child(2) { color: var(--green); }
.hero::before {
  background:
    radial-gradient(55% 60% at 85% 10%, rgba(130, 206, 126, .22), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(130, 206, 126, .1), transparent 70%);
}
.card { background: linear-gradient(160deg, rgba(244, 244, 239, .07), rgba(244, 244, 239, .02)); }
.card:hover { box-shadow: 0 30px 80px -40px rgba(130, 206, 126, .5); }
.stack-fig { border: 1px solid rgba(244, 244, 239, .1); box-shadow: 0 60px 140px -60px rgba(130, 206, 126, .35); }
.investors li { background: linear-gradient(160deg, rgba(244, 244, 239, .06), rgba(244, 244, 239, .015)); }
.headshot { background: radial-gradient(120% 80% at 100% 0%, rgba(130, 206, 126, .2), transparent 60%), var(--surface-2); }
.section + .section:not(.over), .post-body-wrap { border-top: 1px solid var(--line); }

/* ---------- Small-screen density ---------- */
@media (max-width: 519px) {
  .banner {
    min-height: 44px; padding: 6px 12px; gap: 2px 8px;
    font-size: 13px; line-height: 1.25;
  }
  .banner span { font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .next-list li:not(.in)::after { transform: none; }
  @view-transition { navigation: none; }
}
