/* ==========================================================
   2048 Ventures — "1b Editorial Serif" direction (full site)
   Tokens: paper #FBFAF7 · hairline #E9E6DE · card #F6F3ED
   row hover #F3EFE7 · input border #D8D3C8 · ink #11273E
   secondary #11273E · muted #7C766B · quote #11273E · red #C1121F
   Type: Source Serif 4 (display) · Archivo (UI). No mono.
   ========================================================== */

:root {
  --bg: #FBFAF7;
  --hairline: #E9E6DE;
  --card: #F6F3ED;
  --row-hover: #F3EFE7;
  --input-border: #D8D3C8;
  --ink: #11273E;
  --secondary: #11273E;
  --muted: #7C766B;
  --quote: #11273E;
  --red: #C1121F;
  --serif: 'Inter', Helvetica, sans-serif;
  --sans: 'Inter', Helvetica, sans-serif;
  --ui: 'Inter', Helvetica, sans-serif;
  --gutter: 56px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

a { text-decoration: none; color: var(--red); }
a:hover { color: var(--ink); }

/* ---------- Shared shell ---------- */
.nav-bar {
  font-family: var(--ui);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  /* nav stays visible while scrolling, on every page and device */
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
}
.nav-logo { height: 96px; margin: -24px 0 -24px -37px; display: block; }
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-link.is-active { color: var(--ink); }

.site-footer {
  font-family: var(--ui);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-social { display: flex; gap: 24px; }
.footer-subscribe { font-weight: 600; }

main { flex: 1; }
.container { padding: 72px var(--gutter) 96px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.page-heading {
  margin: 0 0 48px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.accent { font-style: normal; font-weight: 700; color: var(--red); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 700;
  flex-shrink: 0;
}
.tint-red { background: #C1121F; } .tint-blue { background: #2A78D6; }
.tint-slate { background: #2E4A73; } .tint-maroon { background: #8A2F3B; }
.tint-navy2 { background: #33507A; } .tint-gray { background: #3D5678; }

.filter-btn {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  color: var(--secondary);
  border: 1px solid var(--input-border);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active { background: var(--red); border-color: var(--red); color: #FFFFFF; }

/* ---------- Home ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
  padding: 0 var(--gutter) 60px;
}
.hero > *:not(.constellation) { position: relative; z-index: 1; }
.hero-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 940px;
}
.rot-word {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  display: inline-block;
  animation: wordIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.3em); }
  to   { opacity: 1; transform: translateY(0); }
}
.sub-row { display: flex; align-items: flex-start; gap: 40px; }
.sub-row .sub-rule { margin-top: 16px; }
.sub-rule { width: 96px; height: 3px; background: var(--red); flex-shrink: 0; }
.sub-text { margin: 0; font-size: 23px; line-height: 1.55; color: var(--secondary); max-width: 640px; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
}
.arrow-red { color: var(--red); }

.constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- About ---------- */
.manifesto { padding: 96px var(--gutter) 88px; }
.manifesto-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 980px;
}
.manifesto-sub { display: flex; align-items: center; gap: 40px; margin-top: 44px; }
.manifesto-sub p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--secondary); max-width: 560px; }

.how-section { padding: 0 var(--gutter) 96px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-cell {
  background: var(--card);
  border: 1.5px solid var(--red);
  padding: 32px;
}
.how-label { font-size: 13px; letter-spacing: 0.12em; color: var(--red); margin-bottom: 18px; }
.how-stat { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.how-body { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--secondary); }

.founder-section { padding: 0 var(--gutter) 96px; }
.founder-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 48px; }
.founder-heading { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; }
.founder-count { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.quote-masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
/* start (not stretch): expanding one quote must not stretch its row
   neighbor; resting evenness comes from the clamp + min-height */
.quote-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .quote-card:hover {
    transform: scale(1.045);
    box-shadow: 0 12px 32px rgba(17, 39, 62, 0.18);
    z-index: 2;
  }
}
.watch-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
}
.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--red);
  border-radius: 50%;
  font-size: 13px;
}
.quote-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--quote); flex: 1; }
.quote-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-byline .avatar { width: 44px; height: 44px; font-size: 15px; }
.quote-meta { display: flex; flex-direction: column; gap: 2px; }
.quote-name { font-weight: 600; font-size: 15px; }
.quote-role { font-size: 12px; color: var(--muted); }
.quote-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
@media (hover: hover) {
  .quote-card:hover .quote-overlay { opacity: 1; }
}
.quote-overlay-initials {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
.quote-overlay-bar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 24px;
  background: rgba(16,25,42,0.75);
}
.quote-overlay-name { font-weight: 700; font-size: 16px; color: #FFFFFF; }
.quote-overlay-role { font-size: 12px; color: #C6D0DD; }
/* tint gradients for the overlay backgrounds */
.grad-red { background: linear-gradient(180deg, #C1121F 0%, #10192A 130%); }
.grad-blue { background: linear-gradient(180deg, #2A78D6 0%, #10192A 130%); }
.grad-slate { background: linear-gradient(180deg, #2E4A73 0%, #10192A 130%); }
.grad-maroon { background: linear-gradient(180deg, #8A2F3B 0%, #10192A 130%); }
.grad-navy2 { background: linear-gradient(180deg, #33507A 0%, #10192A 130%); }
.grad-gray { background: linear-gradient(180deg, #3D5678 0%, #10192A 130%); }

/* ---------- Companies ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 60px; margin-bottom: 72px; }
.featured-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--hairline);
}
.card-top { display: flex; align-items: center; justify-content: space-between; }
.co-name { font-family: var(--serif); font-size: 23px; font-weight: 700; }
.vertical-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1px solid rgba(193, 18, 31, 0.6);
  padding: 5px 10px;
}
.co-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--secondary); }
.meta-row { display: flex; gap: 28px; font-size: 12px; color: var(--muted); }
.meta-row b { font-weight: 400; color: var(--quote); }
.co-quote {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  line-height: 1.6;
  color: var(--quote);
}
.card-bottom { display: flex; align-items: center; justify-content: space-between; }
.ceo-chip { display: flex; align-items: center; gap: 12px; }
.ceo-chip .avatar { width: 40px; height: 40px; font-size: 14px; }
.ceo-meta { display: flex; flex-direction: column; gap: 2px; }
.ceo-name { font-weight: 600; font-size: 14px; }
.ceo-role { font-size: 11px; color: var(--muted); }
.co-visit { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); }
.watch-link.small { margin: 0; }
.watch-link.small .play-btn { width: 32px; height: 32px; font-size: 11px; }

.company-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.company-row {
  display: grid;
  grid-template-columns: 144px 220px 1fr 90px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (hover: hover) {
  .company-row:hover { background: var(--row-hover); }
}
.company-row .avatar { width: 40px; height: 40px; font-size: 14px; }
.row-name { font-weight: 600; font-size: 17px; color: var(--ink); }
.row-desc { font-size: 15px; color: var(--secondary); }
.row-stage { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-align: right; text-transform: uppercase; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.team-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); }
.team-photo { position: relative; padding-top: 100%; overflow: hidden; }
.team-photo .fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.team-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
.team-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  background: rgba(17, 39, 62, 0.92);
}
.team-photo:hover .team-overlay,
.team-photo:focus-within .team-overlay { opacity: 1; }
.team-bio { margin: 0; font-size: 13px; line-height: 1.55; color: #E6ECF4; }
.team-fav { font-size: 11px; line-height: 1.7; color: #8FA0B8; letter-spacing: 0.04em; }
.team-fav b { font-weight: 400; color: #E6ECF4; }
.team-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.team-meta { display: flex; flex-direction: column; gap: 4px; }
.team-name { font-weight: 700; font-size: 16px; }
.team-title { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.team-socials { display: flex; gap: 8px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--input-border);
  font-size: 12px;
  color: var(--muted);
}
.social-btn:hover { color: var(--red); border-color: var(--red); }

/* ---------- Blog ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  margin-bottom: 64px;
  background: var(--card);
  border: 1px solid var(--hairline);
}
.featured-left { display: flex; flex-direction: column; gap: 18px; }
.featured-meta-row { display: flex; gap: 16px; align-items: center; font-size: 12px; letter-spacing: 0.12em; }
.featured-tag { color: var(--red); border: 1px solid rgba(193, 18, 31, 0.6); padding: 5px 10px; }
.featured-meta { color: var(--muted); }
.featured-title { font-family: var(--serif); font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.featured-excerpt { font-size: 17px; line-height: 1.6; color: var(--secondary); }
.featured-read { font-size: 13px; color: var(--red); }
.featured-img { position: relative; padding-top: 62.5%; background: var(--ink); }
/* Wide monitors: the page has no max-width, so without this the 50/50 split
   lets the featured image grow past its source size and go soft. Cap the
   image column; the text column takes the remaining width. */
@media (min-width: 1600px) {
  .featured-post { grid-template-columns: minmax(0, 1fr) 640px; }
}
.featured-img span {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 72px; font-weight: 600; color: rgba(255, 255, 255, 0.25);
}
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}
.blog-filters { display: flex; gap: 10px; }
.subscribe-unit { display: flex; gap: 10px; }
.subscribe-input {
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--ink);
  outline: none;
  width: 220px;
}
.subscribe-input::placeholder { color: var(--muted); }
.subscribe-btn {
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 12px 20px;
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
  cursor: pointer;
}
.post-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.post-row {
  display: grid;
  grid-template-columns: 130px 110px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (hover: hover) {
  .post-row:hover { background: var(--row-hover); }
}
.post-date { font-size: 12px; color: var(--muted); }
.post-cat { font-size: 11px; letter-spacing: 0.1em; }
.post-cat { color: var(--red); }
.post-title { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.post-arrow { font-size: 16px; color: var(--red); }
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}
.page-nav {
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.page-nav:hover { color: var(--red); }
.page-nav:disabled { color: var(--input-border); cursor: default; }
.page-nav:disabled:hover { color: var(--input-border); }

/* ---------- Subscribe modal ---------- */
.sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 39, 62, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.sub-overlay.open { opacity: 1; }
.sub-modal {
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 64px 56px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(10px);
  transition: transform 0.25s;
}
.sub-overlay.open .sub-modal { transform: translateY(0); }
.sub-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--input-border);
  background: transparent;
  font-size: 14px;
  color: var(--secondary);
  cursor: pointer;
}
.sub-close:hover { color: var(--red); border-color: var(--red); }
.sub-eyebrow { font-size: 13px; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 20px; }
.sub-heading {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
}
.sub-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.sub-input {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--input-border);
  background: #FFFFFF;
  color: var(--ink);
  min-width: 0;
}
.sub-submit {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 24px;
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
  cursor: pointer;
}
.sub-note { margin-top: 18px; font-size: 12px; letter-spacing: 0.06em; color: var(--secondary); min-height: 16px; }

/* ---------- Focus + motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .constellation { display: none; }
  .rot-word { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --gutter: 40px; }
  .page-heading { font-size: 36px; }
  .hero-heading { font-size: 38px; }
  .manifesto-heading { font-size: 34px; }
  .nav-logo { height: 80px; margin: -20px 0 -20px -31px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-masonry { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .company-row { grid-template-columns: 48px 170px 1fr 110px; }
}
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .page-heading { font-size: 30px; }
  .hero-heading { font-size: 30px; line-height: 1.22; }
  .manifesto-heading { font-size: 27px; }
  .manifesto { padding-top: 56px; padding-bottom: 56px; }
  /* Stack rule above the tagline; short rule + full width = tagline wraps on 2 lines */
  .manifesto-sub { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
  .manifesto-sub .sub-rule { width: 44px; }
  .manifesto-sub p { font-size: 19px; }
  .nav-bar { flex-direction: row; }
  .nav-logo { height: 72px; margin: -18px 0 -18px -28px; }
  .nav-links { gap: 14px; font-size: 11px; }
  .sub-text { font-size: 18px; }
  .how-grid { grid-template-columns: 1fr; }
  .founder-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .quote-masonry { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .company-row { grid-template-columns: 40px 1fr 90px; }
  .row-desc { display: none; }
  .card-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .blog-toolbar { flex-direction: column; align-items: flex-start; }
  .post-row { grid-template-columns: 100px 1fr auto; }
  .post-cat { display: none; }
  .sub-modal { padding: 48px 24px; }
  .sub-heading { font-size: 26px; }
  .sub-form { flex-direction: column; gap: 10px; }
  .sub-input { border-right: 1px solid var(--input-border); }
}

/* ---------- Startup Hacks callout (Blog) ---------- */
.hacks-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--red);
}
.hacks-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}
.hacks-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .hacks-callout { padding: 24px 20px; margin-top: 48px; }
  .hacks-text { font-size: 19px; }
}

/* ---------- Article (blog post) ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* The &larr; glyph varies wildly across system fonts (Android draws it small
   and baseline-low). Render a masked SVG arrow instead: identical everywhere,
   vertically centered on the text by the flex parent. */
.article-back .arrow-red {
  font-size: 0;                 /* hide the glyph, keep the element */
  display: inline-block;
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M6 1 1.5 6 6 11M2 6h13.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M6 1 1.5 6 6 11M2 6h13.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.article-back {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.article-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.article-standfirst {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--secondary);
}
.article-rule { width: 96px; height: 3px; background: var(--red); margin-bottom: 40px; }
.article-body { font-size: 18px; line-height: 1.75; color: var(--quote); }
.article-body p { margin: 0 0 28px; }
/* Uniform section headings: h2/h3/h4 all render identically so articles
   look consistent regardless of which level the source post used */
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 40px 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.pull-quote {
  margin: 44px 0;
  padding-left: 28px;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.article-author .avatar { width: 52px; height: 52px; font-size: 17px; }
.author-name { font-weight: 700; font-size: 16px; }
.author-role { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.article-subscribe {
  margin-top: 64px;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-subscribe-text { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }
@media (max-width: 767px) {
  .article-title { font-size: 34px; }
  .article-standfirst { font-size: 19px; }
  .article-body { font-size: 17px; }
  .pull-quote { font-size: 21px; }
}

/* ---------- Thesis page ---------- */
.thesis-hero { padding: 96px var(--gutter) 72px; }
.thesis-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 980px;
}
.thesis-list { padding: 0 var(--gutter) 96px; max-width: 1040px; }
.thesis-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--hairline);
}
.thesis-item:first-child { border-top: 1px solid var(--hairline); }
.thesis-num {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--red);
  padding-top: 8px;
}
.thesis-stat {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}
.thesis-body { margin: 0; font-size: 17px; line-height: 1.7; color: var(--secondary); max-width: 640px; }
.thesis-cta { padding: 0 var(--gutter) 96px; }
@media (max-width: 767px) {
  .thesis-heading { font-size: 27px; }
  .thesis-item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}

/* ---------- Article refinements (real post anatomy) ---------- */
.article-authors { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 36px; }
.article-author-chip { display: flex; align-items: center; gap: 12px; }
.article-author-chip .avatar { width: 44px; height: 44px; font-size: 15px; }
.article-hero-img { position: relative; padding-top: 52%; background: var(--ink); margin-bottom: 44px; }
.article-hero-img span {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 64px; font-weight: 600;
  color: rgba(255,255,255,0.25);
}
.article-body ul { margin: 0 0 28px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; line-height: 1.65; }
.article-body a { color: var(--red); border-bottom: 1px solid rgba(193,18,31,0.3); }
.article-body a:hover { border-bottom-color: var(--red); }
.article-body b { color: var(--ink); }

/* ---------- Newsletter + recent posts (post footer sections) ---------- */
.newsletter-section {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--hairline);
  text-align: center;
}
.newsletter-heading { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.newsletter-blurb { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--secondary); }
.newsletter-section .subscribe-unit { justify-content: center; }

.recent-section { max-width: 1040px; margin: 72px auto 0; }
.recent-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.recent-heading { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.browse-all {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
}
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recent-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: var(--card); border: 1px solid var(--hairline);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .recent-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(17, 39, 62,0.12); }
}
.recent-meta { display: flex; gap: 12px; font-size: 11px; letter-spacing: 0.1em; }
.recent-date { color: var(--muted); }
.recent-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.recent-excerpt { font-size: 14px; line-height: 1.55; color: var(--secondary); }
.recent-read { margin-top: auto; font-size: 12px; letter-spacing: 0.08em; color: var(--red); }

/* ---------- Theses series (thesis page) ---------- */
.theses-series { padding: 0 var(--gutter) 96px; max-width: 1040px; }
.series-heading { margin: 0 0 32px; font-family: var(--serif); font-size: 32px; font-weight: 600; }
@media (max-width: 991px) { .recent-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .article-hero-img span { font-size: 44px; }
  .newsletter-section { padding: 28px 20px; }
}

.quote-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quote-foot .quote-byline { margin-top: 0; }
.quote-foot .watch-link { margin-bottom: 0; }

/* ---------- Team: long-form member rows (live-site format) ---------- */
.team-intro { margin: 0 0 8px; font-size: 17px; line-height: 1.7; color: var(--secondary); max-width: 1040px; }
.team-intro b { color: var(--ink); }
.member-list { margin-top: 40px; }
.member-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 48px;
  margin-bottom: 28px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.member-row.in-view { opacity: 1; transform: translateY(0); }
.member-photo-wrap { align-self: start; }
.member-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 12px;
}
.member-name { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.member-title { font-size: 17px; color: var(--secondary); margin-bottom: 20px; }
.member-divider { height: 1px; background: rgba(17, 39, 62, 0.15); margin-bottom: 24px; }
.member-bio p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--secondary); }
.member-bio b { color: var(--ink); }
.member-bio a { color: var(--ink); text-decoration: underline; }
.member-bio a:hover { color: var(--red); }
.member-tags { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.member-tags .vertical-tag {
  background: var(--red);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
  .member-row { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 767px) {
  .member-row { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  /* scoped to .member-row: the compact team cards must keep full-width photos */
  .member-row .member-photo-wrap { max-width: 260px; }
  .member-name { font-size: 22px; }
}


/* Typing cursor for the rotating word */
.rot-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  margin-left: 6px;
  background: var(--red);
  vertical-align: baseline;
  animation: cursorBlink 1s steps(2, start) infinite;
}
@keyframes cursorBlink { to { visibility: hidden; } }

/* Founder card: quote on top (photo replaces it on hover), info bar below */
.quote-top { position: relative; padding: 32px; flex: 1; min-height: 210px; overflow: hidden; }
.quote-top .quote-text { flex: none; }
.quote-photo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; font-weight: 800; color: rgba(255,255,255,0.35);
}
@media (hover: hover) {
  .quote-card:hover .quote-photo { opacity: 1; }
}
.quote-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 24px; border-top: 1px solid var(--hairline);
}
.quote-bottom .quote-byline { margin-top: 0; }
.quote-bottom .watch-link { margin-bottom: 0; }

/* Footer social links: red by default, navy on hover (matches nav) */

/* ---------- Mobile refinements ---------- */
/* Safety net only: real overflows should be fixed at the source, not hidden.
   (body only: overflow on html can break position: sticky) */
body { overflow-x: hidden; }
@media (max-width: 767px) {
  .nav-bar { flex-wrap: nowrap; gap: 8px; padding: 14px 16px; }
  .nav-logo { height: 44px; margin: -10px 0 -10px -16px; }
  /* (dead pre-hamburger .nav-links row rules removed — fullscreen menu styles them now) */
  .sub-row { flex-direction: column; gap: 16px; }
  .sub-row .sub-rule { margin-top: 0; }
  .hero { padding-top: 24px; gap: 28px; }
  .featured-card, .featured-post { padding: 24px 20px; }
  .quote-top { padding: 24px 20px; min-height: 170px; }
  .quote-bottom { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .how-cell { padding: 24px 20px; }
  .article { padding: 0; }
  .article-title { font-size: 30px; }
  .blog-pagination { font-size: 12px; }
  .page-nav { padding: 8px 12px; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding: 18px 20px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 10px 12px; font-size: 12px; }
  /* iOS Safari auto-zooms when a focused input is under 16px — prevent the jump */
  .subscribe-input, .sub-input { font-size: 16px; }
  /* fixed 220px input + button overflow narrow newsletter boxes:
     let the input flex to the available width instead */
  .subscribe-unit { width: 100%; }
  .subscribe-input { flex: 1 1 auto; min-width: 0; width: auto; }
  .subscribe-btn { flex: 0 0 auto; padding: 12px 16px; }
  /* Short quotes shouldn't reserve desktop-sized empty space on phones */
  .sq-quote-top { min-height: 0; }
  .video-card { min-height: 260px; }
}

/* ---------- Video lightbox ---------- */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 39, 62, 0.82);
  opacity: 0;
  transition: opacity 0.25s;
}
.video-overlay.open { opacity: 1; }
.video-box { position: relative; width: min(960px, 100%); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; display: block; }
.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
}
.video-close:hover { color: var(--red); border-color: var(--red); }

/* Company logos with initials fallback */
.logo-chip {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.logo-chip .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 14px; }

/* ---------- Mobile hamburger nav ---------- */
.nav-burger { display: none; }
@media (max-width: 767px) {
  .nav-bar { flex-wrap: nowrap; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 90;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 20px;
  }
  body.nav-open .nav-links { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: var(--red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 95;
  }
  .nav-burger span { display: block; height: 2px; background: #FFFFFF; border-radius: 2px; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-logo { height: 52px; margin: -12px 0 -12px -16px; }
}

.quote-photo { display: flex; align-items: center; justify-content: center; }
.founder-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.45);
}
.quote-photo-ini { font-size: 84px; font-weight: 800; color: rgba(255,255,255,0.35); }
.byline-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Founder video tiles (placeholders until real videos) */
.video-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 280px;
  background: var(--ink);
  border: 1px solid var(--hairline);
}
.video-tile-play {
  width: 56px; height: 56px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
}
.video-tile-label { font-size: 12px; letter-spacing: 0.1em; color: #C6D0DD; }

.video-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
}
.video-top .video-tile-play { position: static; }

/* Wide founder feature: photo third + quote */
.feature-rect {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  margin: 24px 0 0;
  background: var(--card);
  border: 1px solid var(--hairline);
}
.feature-rect-photo { background: var(--ink); display: flex; align-items: center; justify-content: center; min-height: 260px; }
.feature-rect-photo img { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.45); }
.feature-rect-body { padding: 32px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.feature-rect-quote { font-size: 19px; }
.feature-rect-name { display: flex; flex-direction: column; }

/* Company list rows: red drawn icons */
.co-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.co-icon svg { width: 26px; height: 26px; }
.co-with { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-top: 14px; }
.co-quote { font-size: 15px; margin-top: 14px; }
.featured-card .card-content { display: flex; flex-direction: column; align-items: flex-start; }
.featured-card { display: flex; flex-direction: column; padding: 0; }
.featured-card .quote-top { padding: 28px; min-height: 0; }
.featured-card .co-desc { margin: 10px 0 0; }

/* Team: compact centered cards */
.team-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 40px 0 0;
}
.member-card {
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.member-photo-wrap { position: relative; }
.member-card .member-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 15%; display: block; border-radius: 0; }
.member-card-info { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px 18px; text-align: left; border-top: 1.5px solid var(--ink); }
.member-card .member-name { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.member-card .member-title { font-size: 13px; color: var(--secondary); margin: 0; }
.member-links { display: flex; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
/* 44px-friendly tap targets; negative margins keep the visual footprint identical */
.member-links a { padding: 10px 4px; margin: -10px 0; }
.member-links a:first-child { margin-left: -4px; }
.book-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* label pinned at the top so it never drifts or clips while cycling books */
  justify-content: flex-start;
  gap: 14px;
  padding: 24px 20px 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  overflow: hidden;
}
@media (hover: hover) {
  .member-card:hover .book-overlay { opacity: 1; }
}
.book-label { font-size: 10px; letter-spacing: 0.14em; color: #C6D0DD; flex: 0 0 auto; }
/* flexible stage: fills the space between label and title, so covers render
   as large as the card allows without ever clipping either */
.book-art {
  color: var(--red);
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-art svg { width: 140px; height: 92px; }
.book-title { font-size: 19px; line-height: 1.3; font-weight: 700; color: #FFFFFF; text-align: center; flex: 0 0 auto; }
@media (max-width: 767px) {
  .feature-rect { grid-template-columns: 1fr; }
  .team-grid-compact { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .team-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sequoia-style founder cards ---------- */
.sq-card { border: none; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; }
.sq-quote-top { padding: 40px 36px; flex: 1; min-height: 260px; }
.sq-quote-text { font-size: 21px; line-height: 1.55; font-weight: 400; font-style: normal; color: var(--ink); }
.sq-bottom { border-top: 1px solid var(--hairline); padding: 20px 36px 26px; }
.sq-bottom .byline-photo { width: 72px; height: 72px; }

/* Video tile: navy, alive before you touch it */
.video-card { position: relative; border: none; border-radius: 16px; overflow: hidden; background: var(--ink); min-height: 340px; }
.video-fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; color: #FFFFFF; }
.video-fill::before {
  content: "";
  position: absolute;
  top: -50%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: sheenDrift 5.5s ease-in-out infinite;
}
@keyframes sheenDrift {
  0%   { transform: translateX(0); }
  60%  { transform: translateX(340%); }
  100% { transform: translateX(340%); }
}
.video-play-float {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
  font-size: 13px;
  animation: playPulse 2.6s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
.video-card:hover .video-fill::before { animation-duration: 2.2s; }
.video-card:hover .video-play-float { background: var(--red); border-color: var(--red); }
.video-card-byline { position: absolute; left: 26px; bottom: 24px; display: flex; align-items: center; gap: 12px; }
.video-avatar { width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.6); }
.video-name { color: #FFFFFF; font-size: 17px; }
.video-role { color: #C6D0DD; }
@media (prefers-reduced-motion: reduce) {
  .video-fill::before, .video-play-float { animation: none; }
}

.sq-mini .sq-quote-top { min-height: 150px; padding: 28px 30px; }
.sq-mini .sq-quote-text { font-size: 17px; }
.sq-mini .sq-bottom { padding: 16px 30px 20px; }
.sq-mini .byline-photo, .sq-mini .avatar { width: 44px; height: 44px; }

.book-art img {
  /* absolutely centered inside the flexible stage: percentage max-height
     resolves against the stage's real height in every browser */
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  max-width: 72%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  display: block;
}

/* Company list: photo circles (fallback to drawn icons) */
.co-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--hairline); background: #FFF; flex-shrink: 0; }

/* Quote clamp + read-more (tiles stay even; MORE expands) */
.sq-quote-text { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.sq-card.open .sq-quote-text { -webkit-line-clamp: unset; display: block; }
.quote-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  /* 44px-friendly tap target; negative margins keep the visual footprint identical */
  padding: 12px 12px;
  margin-left: -12px; margin-right: -12px; margin-bottom: -12px;
}
.quote-more:hover { color: var(--ink); }

/* Blog category words: rectangular outline */
.post-cat { border: 1.5px solid currentColor; padding: 3px 10px; width: fit-content; justify-self: start; align-self: center; white-space: nowrap; }

/* Spotlight vertical tag: top-right, red outline */
.featured-card { position: relative; }
/* Name + vertical tag share a flex header row, so they are ALWAYS
   vertically centered on each other at any viewport width */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.card-head .co-name { min-width: 0; }
.featured-card .vertical-tag {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

/* Company rows: founder face stacks */
.co-photos { display: flex; align-items: center; flex-shrink: 0; max-width: 144px; overflow: hidden; }
.co-photos .co-photo { width: 48px; height: 48px; }
.co-photos .co-photo + .co-photo { margin-left: -20px; }
.co-photos .co-photo { border: 2px solid #FFFFFF; }
.co-photos .co-photo + .co-photo { margin-left: -12px; }
.avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }

/* Spotlight: multiple founder chips per tile */
/* Grid: founder positions line up across ALL cards (2 cols on phones, 3 on desktop) */
.founder-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.founder-chips .ceo-chip { min-width: 0; }
.founder-chips .ceo-meta { min-width: 0; }
.founder-chips .ceo-name { white-space: nowrap; overflow: hidden; display: block; }

/* Bigger founder faces */
.founder-chips .avatar-img,
.founder-chips .avatar { width: 54px; height: 54px; }
.founder-chips .avatar { font-size: 16px; }

/* Article internals: images, figures, captions, quotes from migrated posts */
.article-body img { max-width: 100%; height: auto; display: block; margin: 28px auto; }
/* multi-image posts: figures/pictures space evenly, no double margins */
.article-body picture { display: block; margin: 28px 0; }
.article-body figure { margin: 32px 0; }
.article-body figure img, .article-body picture img,
.article-body figure picture { margin: 0 auto; }
/* Video embeds from migrated posts (migrate_blog.py assigns .article-embed) */
.article-embed {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
  margin: 28px 0;
}
.article-body iframe { max-width: 100%; }
.article-body figure { margin: 32px 0; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.article-body blockquote { border-left: 3px solid var(--red); margin: 28px 0; padding: 4px 0 4px 20px; font-style: italic; color: var(--secondary); }
.article-body ul, .article-body ol { margin: 20px 0; padding-left: 28px; }
.article-body li { margin: 8px 0; }

/* About: extra side breathing room */
.about-main { padding-left: 48px; padding-right: 48px; }
@media (max-width: 767px) { .about-main { padding-left: 0; padding-right: 0; } }

/* Quote wall: paragraph rhythm inside quotes */
.sq-quote-text p { margin: 0 0 14px; }
.sq-quote-text p:last-child { margin-bottom: 0; }

.rot-line { display: inline; }

/* ---------- Mobile pass 2 (feedback from device testing) ---------- */
@media (max-width: 767px) {
  /* rotating word + cursor always start their own line on phones */
  .rot-line { display: block; }
  /* Founder quote wall (About): editorial 21px is too loud on a phone */
  .sq-quote-text { font-size: 17px; line-height: 1.6; }
  .sq-quote-top { padding: 24px 20px; }
  .sq-bottom { padding: 16px 20px 20px; }
  .sq-bottom .byline-photo { width: 56px; height: 56px; }

  /* Companies list: one clean founder circle per row on phones, sized to
     its own grid column so it never clips */
  .company-row { grid-template-columns: 48px 1fr 84px; }
  .co-photos { max-width: 48px; }
  .co-photos .co-photo { width: 48px; height: 48px; border-width: 0; }
  .co-photos .co-photo + .co-photo { display: none; }
  .logo-chip { width: 48px; height: 48px; }
  .company-row .avatar { width: 48px; height: 48px; }

  /* Spotlight cards: founders always side by side, two per row — a third
     wraps underneath. Avatar stacks on top so the name gets the full chip
     width and stays on ONE line (main.js shrinks the rare too-long name). */
  .founder-chips { gap: 16px 12px; }
  /* container spans the card; the 2-col grid does the even splitting and
     column alignment (solo/odd chips auto-place in column 1) */
  .quote-bottom .founder-chips { flex: 1 1 100%; width: 100%; }
  .founder-chips .ceo-chip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .founder-chips .ceo-meta { align-items: center; width: 100%; }
  .founder-chips .ceo-name {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px;
  }
  .founder-chips .avatar-img,
  .founder-chips .avatar { width: 52px; height: 52px; }
  .founder-chips .avatar { font-size: 14px; }

  /* Team book overlay: slightly smaller title on phones */
  .book-title { font-size: 17px; }

  /* Unified article section headings, phone size */
  .article-body h2, .article-body h3, .article-body h4 { font-size: 21px; }

  /* Blog featured post: compact card instead of a full screen of scrolling */
  .featured-post { padding: 24px 20px; gap: 20px; margin-bottom: 40px; }
  .featured-title { font-size: 22px; }
  .featured-excerpt {
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .featured-img { padding-top: 52%; }
}




/* ---------- Featured tiles: founder rows align across side-by-side cards ----------
   Each card spans two shared grid rows (text | founders) via subgrid, so the
   founders section starts at the same height on every card in the row.
   Inter-card spacing moves from row-gap to card margin so the two zones
   inside a card stay flush (hairline between them, as before). */
.featured-grid { row-gap: 0; margin-bottom: 32px; }
.featured-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 0;
  align-content: start;
  margin-bottom: 40px;
}
/* Founders anchor to the TOP of the shared bottom section: the first row
   of chips lands at the same height on every card, and a card with fewer
   founders leaves its empty space at the bottom instead of centering */
.featured-card .quote-bottom { align-items: flex-start; }

/* ---------- Team redesign: sections, portraits, bio expanders ---------- */
.team-intro { max-width: none; margin: 0 0 56px; font-size: 17px; line-height: 1.7; color: var(--secondary); }
.team-section { margin-top: 24px; }
.team-section + .team-section { margin-top: 72px; }
.team-eyebrow {
  display: flex; align-items: center; gap: 24px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 36px;
}
.eyebrow-rule { flex: 1 1 auto; height: 1px; background: var(--hairline); }
.team-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 36px;
}
.team-wrap { max-width: 1000px; margin: 0 auto; }
.tcard { display: flex; flex-direction: column; min-width: 0; }
.tcard-photo-wrap { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.tcard-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) {
  .tcard:hover .book-overlay { opacity: 1; }
}
.tcard-rule { height: 2px; background: var(--red); margin: 16px 0 14px; }
.tcard-namerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tcard-name { font-size: 20px; font-weight: 700; color: var(--ink); transition: color 0.2s ease; }
.tcard.bio-open .tcard-name { color: var(--red); }
.tcard-title { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tcard-bio { display: none; margin-top: 4px; }
.tcard-bio p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--secondary); }
.tcard.bio-open .tcard-bio { display: block; }
/* LinkedIn / X are always visible — no appear/disappear */
.tcard-links { display: flex; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tcard-links a { padding: 10px 4px; margin: -10px 0; }
.tcard-links a:first-child { margin-left: -4px; }
@media (max-width: 991px) {
  .team-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
}
@media (max-width: 767px) {
  .team-grid3 { grid-template-columns: 1fr; gap: 44px; }
  .team-intro { margin-bottom: 40px; }
  .team-section + .team-section { margin-top: 56px; }
}

/* ---------- Featured cards: exactly three founders fit one row (desktop) ----------
   Mobile keeps its 2-column grid (2 + 1 aligned underneath). */
@media (min-width: 768px) {
  /* Always three columns on desktop, so founder #2 and #3 sit in the same
     position on every card (1 | 2 | 3) whether a card has one, two or three */
  .founder-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
  }
  /* chips keep the standard ROW layout (avatar left, name beside it),
     identical to two-founder cards — just slightly smaller avatars so
     three fit; the name shrink-to-fit handles long names */
  .founder-chips:has(> .ceo-chip:nth-child(3):last-child) .ceo-chip {
    gap: 10px;
  }
  .founder-chips:has(> .ceo-chip:nth-child(3):last-child) .ceo-name {
    white-space: nowrap;
    overflow: hidden;
    display: block;
  }
  .founder-chips:has(> .ceo-chip:nth-child(3):last-child) .avatar-img,
  .founder-chips:has(> .ceo-chip:nth-child(3):last-child) .avatar {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Company tiles raise on hover, like the About quote tiles ---------- */
.featured-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
@media (hover: hover) {
  .featured-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(17, 39, 62, 0.14);
    z-index: 2;
  }
}

/* ---------- 2048: the game (easter egg) ----------
   Layout system ported from the original 2048 (Gabriele Cirulli, MIT),
   rebranded to the 2048 Ventures palette. Engine: js/game2048.js */
.egg-link { color: var(--red); font-weight: 600; text-decoration: none; cursor: pointer; }
.egg-link:hover { color: var(--ink); }
body.g2048-lock { overflow: hidden; }

.g2048-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(17, 39, 62, 0.55);
  padding: 16px; overflow-y: auto;
}
.g2048-modal.open { display: flex; }
.g2048-panel {
  background: var(--bg);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 64px rgba(17, 39, 62, 0.35);
  padding: 24px;
  width: 548px; max-width: 96vw;
}
.g2048-modal .heading { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.g2048-modal h1.title { font-size: 44px; font-weight: 800; color: var(--red); margin: 0; line-height: 1; }
.g2048-modal .scores-container { display: flex; gap: 8px; margin-left: auto; }
.g2048-modal .score-container,
.g2048-modal .best-container {
  position: relative; background: var(--ink); color: #FFFFFF;
  font-size: 20px; font-weight: 700; line-height: 1;
  padding: 20px 14px 10px; min-width: 64px; text-align: center;
}
.g2048-modal .score-container:after,
.g2048-modal .best-container:after {
  position: absolute; top: 7px; left: 0; right: 0;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: #C6D0DD;
}
.g2048-modal .score-container:after { content: "SCORE"; }
.g2048-modal .best-container:after { content: "BEST"; }
.g2048-modal .score-addition {
  position: absolute; right: 8px; top: 4px;
  font-size: 18px; font-weight: 800; color: var(--red);
  z-index: 5; animation: g2048-move-up 600ms ease-in both;
}
.g2048-close {
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--muted); padding: 6px; margin: -6px -6px -6px 0;
}
.g2048-close:hover { color: var(--red); }
.g2048-modal .above-game { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 14px; }
.g2048-modal .game-intro { margin: 0; font-size: 14px; color: var(--secondary); }
.g2048-modal .game-intro strong { color: var(--red); }
.g2048-modal .restart-button,
.g2048-modal .retry-button,
.g2048-modal .keep-playing-button {
  background: var(--red); color: #FFFFFF; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 16px; white-space: nowrap; display: inline-block;
}
.g2048-modal .restart-button:hover,
.g2048-modal .retry-button:hover,
.g2048-modal .keep-playing-button:hover { background: var(--ink); color: #FFFFFF; }

/* board: original geometry (500px field, 15px gap, 106.25px tiles) */
.g2048-modal .game-container {
  position: relative;
  transform: translateZ(0);   /* own compositing layer: tile slides never
                                 repaint the page behind the scrim */
  width: 500px; height: 500px;
  padding: 15px; box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--hairline);
  margin: 0 auto;
  touch-action: none;
}
.g2048-modal .grid-container { position: absolute; z-index: 1; }
.g2048-modal .grid-row { margin-bottom: 15px; }
.g2048-modal .grid-row:last-child { margin-bottom: 0; }
.g2048-modal .grid-row:after { content: ""; display: block; clear: both; }
.g2048-modal .grid-cell {
  width: 106.25px; height: 106.25px;
  margin-right: 15px; float: left;
  background: var(--hairline);
}
.g2048-modal .grid-cell:last-child { margin-right: 0; }
.g2048-modal .tile-container { position: absolute; z-index: 2; }
.g2048-modal .tile,
.g2048-modal .tile .tile-inner { width: 106.25px; height: 106.25px; line-height: 106.25px; }
.g2048-modal .tile {
  position: absolute;
  transition: 100ms ease-in-out;
  transition-property: transform;
  will-change: transform;
}
.g2048-modal .tile .tile-inner {
  text-align: center; font-weight: 800; font-size: 42px;
  color: var(--ink); background: #E6ECF4;
}
.g2048-modal .tile.tile-position-1-1 { transform: translate(0.0px, 0.0px); }
.g2048-modal .tile.tile-position-1-2 { transform: translate(0.0px, 121.25px); }
.g2048-modal .tile.tile-position-1-3 { transform: translate(0.0px, 242.5px); }
.g2048-modal .tile.tile-position-1-4 { transform: translate(0.0px, 363.75px); }
.g2048-modal .tile.tile-position-2-1 { transform: translate(121.25px, 0.0px); }
.g2048-modal .tile.tile-position-2-2 { transform: translate(121.25px, 121.25px); }
.g2048-modal .tile.tile-position-2-3 { transform: translate(121.25px, 242.5px); }
.g2048-modal .tile.tile-position-2-4 { transform: translate(121.25px, 363.75px); }
.g2048-modal .tile.tile-position-3-1 { transform: translate(242.5px, 0.0px); }
.g2048-modal .tile.tile-position-3-2 { transform: translate(242.5px, 121.25px); }
.g2048-modal .tile.tile-position-3-3 { transform: translate(242.5px, 242.5px); }
.g2048-modal .tile.tile-position-3-4 { transform: translate(242.5px, 363.75px); }
.g2048-modal .tile.tile-position-4-1 { transform: translate(363.75px, 0.0px); }
.g2048-modal .tile.tile-position-4-2 { transform: translate(363.75px, 121.25px); }
.g2048-modal .tile.tile-position-4-3 { transform: translate(363.75px, 242.5px); }
.g2048-modal .tile.tile-position-4-4 { transform: translate(363.75px, 363.75px); }

/* brand ramp: near-paper -> exact navy at 128 -> exact red at 2048 */
.g2048-modal .tile.tile-2 .tile-inner { background: #F0F4F9; }
.g2048-modal .tile.tile-4 .tile-inner { background: #D1D7DF; }
.g2048-modal .tile.tile-8 .tile-inner { background: #ADB6C1; }
.g2048-modal .tile.tile-16 .tile-inner { background: #85929F; color: #FFFFFF; }
.g2048-modal .tile.tile-32 .tile-inner { background: #5D6D7E; color: #FFFFFF; }
.g2048-modal .tile.tile-64 .tile-inner { background: #35485C; color: #FFFFFF; }
.g2048-modal .tile.tile-128 .tile-inner { background: #11273E; color: #FFFFFF; font-size: 36px; }
.g2048-modal .tile.tile-256 .tile-inner { background: #4F2033; color: #FFFFFF; font-size: 36px; }
.g2048-modal .tile.tile-512 .tile-inner { background: #83192A; color: #FFFFFF; font-size: 36px; }
.g2048-modal .tile.tile-1024 .tile-inner { background: #AC1523; color: #FFFFFF; font-size: 30px; }
.g2048-modal .tile.tile-2048 .tile-inner { background: #C1121F; color: #FFFFFF; font-size: 30px; box-shadow: 0 0 28px rgba(193, 18, 31, 0.55); }
.g2048-modal .tile.tile-super .tile-inner { background: #7A0E18; color: #FFFFFF; font-size: 24px; }

.g2048-modal .tile-new .tile-inner { animation: g2048-appear 200ms ease 100ms backwards; }
.g2048-modal .tile-merged .tile-inner { animation: g2048-pop 200ms ease 100ms backwards; }

.g2048-modal .game-message {
  display: none;
  position: absolute; inset: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  text-align: center;
  animation: g2048-fade-in 800ms ease 400ms both;
}
.g2048-modal .game-message p {
  font-size: 32px; font-weight: 800; color: var(--ink);
  margin: 0; padding-top: 175px;
}
.g2048-modal .game-message .lower { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.g2048-modal .game-message .keep-playing-button { display: none; }
.g2048-modal .game-message.game-won,
.g2048-modal .game-message.game-over { display: block; }
.g2048-modal .game-message.game-won .keep-playing-button { display: inline-block; }

@keyframes g2048-appear { from { opacity: 0; transform: scale(0); } }
@keyframes g2048-pop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } }
@keyframes g2048-fade-in { from { opacity: 0; } }
@keyframes g2048-move-up { from { transform: translateY(0); opacity: 1; }
                            to { transform: translateY(-24px); opacity: 0; } }

/* compact board on small screens (original: 280px field, 10px gap, 57.5px tiles) */
@media (max-width: 600px) {
  .g2048-panel { padding: 18px 16px; width: auto; }
  .g2048-modal h1.title { font-size: 32px; }
  .g2048-modal .game-intro { font-size: 12px; }
  .g2048-modal .game-container { width: 280px; height: 280px; padding: 10px; }
  .g2048-modal .grid-row { margin-bottom: 10px; }
  .g2048-modal .grid-cell { width: 57.5px; height: 57.5px; margin-right: 10px; }
  .g2048-modal .tile,
  .g2048-modal .tile .tile-inner { width: 57.5px; height: 57.5px; line-height: 57.5px; }
  .g2048-modal .tile .tile-inner { font-size: 24px; }
  .g2048-modal .tile.tile-128 .tile-inner,
  .g2048-modal .tile.tile-256 .tile-inner,
  .g2048-modal .tile.tile-512 .tile-inner { font-size: 20px; }
  .g2048-modal .tile.tile-1024 .tile-inner,
  .g2048-modal .tile.tile-2048 .tile-inner { font-size: 16px; }
  .g2048-modal .tile.tile-super .tile-inner { font-size: 13px; }
  .g2048-modal .game-message p { padding-top: 95px; font-size: 24px; }
  .g2048-modal .game-message .lower { margin-top: 16px; }
  .g2048-modal .tile.tile-position-1-1 { transform: translate(0.0px, 0.0px); }
  .g2048-modal .tile.tile-position-1-2 { transform: translate(0.0px, 67.5px); }
  .g2048-modal .tile.tile-position-1-3 { transform: translate(0.0px, 135.0px); }
  .g2048-modal .tile.tile-position-1-4 { transform: translate(0.0px, 202.5px); }
  .g2048-modal .tile.tile-position-2-1 { transform: translate(67.5px, 0.0px); }
  .g2048-modal .tile.tile-position-2-2 { transform: translate(67.5px, 67.5px); }
  .g2048-modal .tile.tile-position-2-3 { transform: translate(67.5px, 135.0px); }
  .g2048-modal .tile.tile-position-2-4 { transform: translate(67.5px, 202.5px); }
  .g2048-modal .tile.tile-position-3-1 { transform: translate(135.0px, 0.0px); }
  .g2048-modal .tile.tile-position-3-2 { transform: translate(135.0px, 67.5px); }
  .g2048-modal .tile.tile-position-3-3 { transform: translate(135.0px, 135.0px); }
  .g2048-modal .tile.tile-position-3-4 { transform: translate(135.0px, 202.5px); }
  .g2048-modal .tile.tile-position-4-1 { transform: translate(202.5px, 0.0px); }
  .g2048-modal .tile.tile-position-4-2 { transform: translate(202.5px, 67.5px); }
  .g2048-modal .tile.tile-position-4-3 { transform: translate(202.5px, 135.0px); }
  .g2048-modal .tile.tile-position-4-4 { transform: translate(202.5px, 202.5px); }
}


/* Co-authored quotes: two founder photos share one byline */
.byline-faces { display: inline-flex; align-items: center; flex-shrink: 0; }
.byline-faces .byline-photo + .byline-photo { margin-left: -14px; }
.sq-bottom .byline-faces .byline-photo + .byline-photo { margin-left: -20px; }

/* ---------- Article bylines on mobile: keep authors on one row ----------
   The byline markup carries inline styles from the migration script, so
   these overrides need !important. Photos and type shrink as the author
   count grows so two, three or four names still fit side by side. */
@media (max-width: 767px) {
  .article-byline {
    flex-wrap: nowrap !important;
    gap: 0 14px !important;
    align-items: center !important;
  }
  .article-byline .byline-author {
    gap: clamp(7px, 2.2vw, 11px) !important;
    min-width: 0;
    font-size: clamp(13px, 4vw, 17px);
    white-space: nowrap;
  }
  .article-byline .byline-author img {
    width: clamp(32px, 9.5vw, 42px) !important;
    height: clamp(32px, 9.5vw, 42px) !important;
  }
  /* three or more authors: sizes scale with the viewport so the row fills
     the screen instead of shrinking to a fixed tiny size; names truncate
     only if they still would not fit */
  .article-byline:has(.byline-author:nth-child(3)) {
    gap: 0 clamp(6px, 2vw, 14px) !important;
  }
  .article-byline:has(.byline-author:nth-child(3)) .byline-author {
    gap: clamp(5px, 1.6vw, 9px) !important;
    font-size: clamp(11px, 3.4vw, 15px);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
  }
  .article-byline:has(.byline-author:nth-child(3)) .byline-author img {
    width: clamp(24px, 7.4vw, 34px) !important;
    height: clamp(24px, 7.4vw, 34px) !important;
  }
  /* four or more */
  .article-byline:has(.byline-author:nth-child(4)) .byline-author {
    font-size: clamp(10px, 2.9vw, 13px);
    gap: clamp(4px, 1.2vw, 7px) !important;
  }
  .article-byline:has(.byline-author:nth-child(4)) .byline-author img {
    width: clamp(20px, 6vw, 28px) !important;
    height: clamp(20px, 6vw, 28px) !important;
  }
}

/* Startup Hacks inline link */
.hacks-inline { text-decoration: none; }
.hacks-inline:hover .accent { color: var(--ink); }

/* Team intro: the Latin stays brand red (plain text, not a link) */
.latin-accent { color: var(--red); font-weight: 600; }

/* ---------- Quote cards with a video ----------
   The founder photo is the play button (red ring + badge) and a small
   WATCH VIDEO line sits under the role. Both links carry .watch-link so
   YouTube URLs open in the lightbox (js/main.js). */
.byline-play { position: relative; display: block; flex-shrink: 0; margin: 0; gap: 0; border-radius: 50%; line-height: 0; }
.byline-play .byline-photo, .byline-play .avatar { box-shadow: 0 0 0 2px var(--red); }
.byline-play .byline-faces { display: flex; }
.play-badge {
  position: absolute; right: -3px; bottom: -3px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #FFFFFF;
  border: 2px solid var(--card);
  transition: transform 0.2s;
}
.play-badge svg { display: block; width: 8px; height: 10px; }
.byline-play:hover .play-badge { transform: scale(1.12); }
.watch-text { display: inline-flex; align-items: center; gap: 0; margin: 5px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--red); text-decoration: none; }
.watch-text:hover { color: var(--ink); }
.watch-dur { font-weight: 500; }
@media (max-width: 767px) {
  .play-badge { width: 22px; height: 22px; }
  .play-badge svg { width: 7px; height: 9px; }
}

/* ==========================================================
   Dark theme — brand navy #11273E backdrop, brand red #C1121F,
   white (#FFFFFF) for all non-red text. Cards use a slightly
   lighter navy shade so surfaces read against the backdrop.
   Activated by js/main.js via html[data-theme]; the media query
   paints OS-dark visitors correctly before main.js runs.
   ========================================================== */
html[data-theme="dark"] {
  --bg: #11273E;
  --hairline: #2A3F58;
  --card: #1B324D;
  --row-hover: #1A3252;
  --input-border: #3A4F6B;
  --ink: #FFFFFF;
  --secondary: #FFFFFF;
  --muted: #FFFFFF;
  --quote: #FFFFFF;
  --red: #C1121F;
  color-scheme: dark;
}
/* explicit light choice must beat the OS-dark media query below */
html[data-theme="light"] {
  --bg: #FBFAF7;
  --hairline: #E9E6DE;
  --card: #F6F3ED;
  --row-hover: #F3EFE7;
  --input-border: #D8D3C8;
  --ink: #11273E;
  --secondary: #11273E;
  --muted: #7C766B;
  --quote: #11273E;
  --red: #C1121F;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #11273E;
    --hairline: #2A3F58;
    --card: #1B324D;
    --row-hover: #1A3252;
    --input-border: #3A4F6B;
    --ink: #FFFFFF;
    --secondary: #FFFFFF;
    --muted: #FFFFFF;
    --quote: #FFFFFF;
    --red: #C1121F;
    color-scheme: dark;
  }
}

/* ---------- Dark: hardcoded light-theme colors ---------- */
html[data-theme="dark"] .member-row { background: var(--card); border-color: var(--hairline); }
html[data-theme="dark"] .member-card { background: var(--card); border-color: var(--hairline); }
html[data-theme="dark"] .member-card-info { border-top-color: var(--hairline); }
html[data-theme="dark"] .member-divider { background: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .sub-input { background: var(--bg); }
html[data-theme="dark"] .co-photos .co-photo { border-color: var(--bg); }
/* var(--ink) becomes white in dark mode: these surfaces must stay navy */
html[data-theme="dark"] .book-overlay { background: #11273E; }
html[data-theme="dark"] .featured-img,
html[data-theme="dark"] .article-hero-img,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .video-top,
html[data-theme="dark"] .video-tile { background: #0D1F35; }
html[data-theme="dark"] .g2048-modal .game-message { background: rgba(17, 39, 62, 0.92); }
html[data-theme="dark"] .g2048-modal .score-container,
html[data-theme="dark"] .g2048-modal .best-container { background: #0D1F35; }
/* navy shadows read as glow on dark: use black instead */
html[data-theme="dark"] .g2048-panel { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); }
/* dark: small red labels go bold — normal weight gets lost on navy */
html[data-theme="dark"] .how-label,
html[data-theme="dark"] .vertical-tag,
html[data-theme="dark"] .post-cat,
html[data-theme="dark"] .post-arrow { font-weight: 700; }
/* dark: dates stay greyish, the way --muted reads on paper */
html[data-theme="dark"] .post-date,
html[data-theme="dark"] .recent-date,
html[data-theme="dark"] .featured-meta,
html[data-theme="dark"] .article-meta { color: #9AA6B5; }
/* 2048 game: compress the brand ramp into the dark range so the early tiles
   don't glow near-white on navy; numbers stay white throughout. The red
   half of the ramp (256+) is untouched. */
html[data-theme="dark"] .g2048-modal .tile .tile-inner { color: #FFFFFF; }
html[data-theme="dark"] .g2048-modal .tile.tile-2 .tile-inner { background: #33475F; }
html[data-theme="dark"] .g2048-modal .tile.tile-4 .tile-inner { background: #2B3E56; }
html[data-theme="dark"] .g2048-modal .tile.tile-8 .tile-inner { background: #23354C; }
html[data-theme="dark"] .g2048-modal .tile.tile-16 .tile-inner { background: #1D2E44; }
html[data-theme="dark"] .g2048-modal .tile.tile-32 .tile-inner { background: #182A3E; }
html[data-theme="dark"] .g2048-modal .tile.tile-64 .tile-inner { background: #142639; }
html[data-theme="dark"] .g2048-modal .tile.tile-128 .tile-inner { background: #11273E; }
@media (hover: hover) {
  html[data-theme="dark"] .quote-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
  html[data-theme="dark"] .featured-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
  html[data-theme="dark"] .recent-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4); }
}

/* ---------- Theme toggle (button injected by js/main.js) ----------
   Lives in the footer, right side where Subscribe used to sit:
   "/Subscribe /LinkedIn /X" left, "/Light" right. Styled like the
   other footer links. */
.theme-toggle {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  color: var(--secondary);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--red); }
