/* ==========================================================
   2048 Ventures — "1b Editorial Serif" direction (full site)
   Tokens: paper #FBFAF7 · hairline #E9E6DE · card #F6F3ED
   row hover #F3EFE7 · input border #D8D3C8 · ink #16243A
   secondary #4A5568 · muted #7C766B · quote #233450 · 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: #16243A;
  --secondary: #4A5568;
  --muted: #7C766B;
  --quote: #233450;
  --red: #C1121F;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Archivo', 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: inherit; }
a:hover { color: var(--red); }

/* ---------- Shared shell ---------- */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.nav-logo { height: 96px; margin: -28px 0 -28px -28px; 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(--red); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--secondary);
}
.footer-social { display: flex; gap: 24px; }
.footer-subscribe { font-weight: 600; color: var(--red); }

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: 64px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.accent { font-style: italic; font-weight: 600; 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;
  padding: 0 var(--gutter) 60px;
}
.hero > *:not(.constellation) { position: relative; z-index: 1; }
.hero-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 68px;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 940px;
}
.rot-word {
  font-style: italic;
  font-weight: 600;
  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: center; gap: 40px; margin-top: 48px; }
.sub-rule { width: 56px; height: 3px; background: var(--red); flex-shrink: 0; }
.sub-text { font-size: 20px; line-height: 1.55; color: var(--secondary); max-width: 520px; }
.about-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  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;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 340px at var(--mx, -999px) var(--my, -999px), black 0%, black 45%, transparent 100%);
  mask-image: radial-gradient(circle 340px at var(--mx, -999px) var(--my, -999px), black 0%, black 45%, transparent 100%);
}
@media (hover: none), (pointer: coarse) { .constellation { display: none; } }

/* ---------- About ---------- */
.manifesto { padding: 96px var(--gutter) 88px; }
.manifesto-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1.18;
  font-weight: 400;
  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: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.how-cell { background: var(--bg); padding: 40px; }
.how-cell:first-child { padding-left: 0; }
.how-cell:last-child { padding-right: 0; }
.how-label { font-size: 13px; letter-spacing: 0.12em; color: var(--red); margin-bottom: 18px; }
.how-stat { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.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: 46px; font-weight: 400; }
.founder-count { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.quote-masonry { column-count: 3; column-gap: 24px; }
.quote-card {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--hairline);
}
.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: 17px; line-height: 1.6; color: var(--quote); }
.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;
}
.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: 24px; 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: 30px; font-weight: 600; }
.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); }
.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: 56px 220px 1fr 140px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.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: 24px; }
.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: 96px;
  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: 16px;
  padding: 28px;
  background: rgba(22, 36, 58, 0.92);
}
.team-photo:hover .team-overlay,
.team-photo:focus-within .team-overlay { opacity: 1; }
.team-bio { margin: 0; font-size: 15px; line-height: 1.6; color: #E6ECF4; }
.team-fav { font-size: 12px; 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: 12px; padding: 22px 24px; }
.team-meta { display: flex; flex-direction: column; gap: 4px; }
.team-name { font-weight: 700; font-size: 18px; }
.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: 38px; line-height: 1.18; font-weight: 600; 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); }
.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; }
.subscribe-input {
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid var(--input-border);
  border-right: none;
  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);
}
.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.investments { color: var(--red); }
.post-cat.theses { color: #33507A; }
.post-title { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.post-arrow { font-size: 13px; 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(22, 36, 58, 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; 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);
  border-right: none;
  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: 48px; }
  .hero-heading { font-size: 48px; }
  .manifesto-heading { font-size: 44px; }
  .nav-logo { height: 80px; margin-left: -24px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-cell { padding: 32px 0; }
  .quote-masonry { column-count: 2; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .company-row { grid-template-columns: 48px 170px 1fr 110px; }
}
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .page-heading { font-size: 34px; }
  .hero-heading { font-size: 34px; }
  .manifesto-heading { font-size: 32px; }
  .manifesto { padding-top: 56px; padding-bottom: 56px; }
  .nav-bar { flex-direction: row; }
  .nav-logo { height: 72px; margin: -20px 0 -20px -20px; }
  .nav-links { gap: 14px; font-size: 11px; }
  .sub-text { font-size: 16px; }
  .founder-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .quote-masonry { column-count: 1; }
  .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; }
  .featured-title { font-size: 28px; }
  .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); }
}
