/* Front Row Angels v3
   paper #F6F6F3 (cool off-white), surface #ECEDEA (light grey band), line #DCDED8,
   navy #061030 (darker than the palette navy, hero + contact + text), navy-deep #030A22,
   forest #09231A (Dekel's dark green, model section + light-section buttons),
   olive #3E5A45 (small accents: numbers, roles), muted #5C5C57. No orange. */
:root {
  --paper: #F6F6F3;
  --surface: #ECEDEA;
  --line: #DCDED8;
  --navy: #061030;
  --navy-deep: #030A22;
  --forest: #09231A;
  --forest-hover: #0F3527;
  --green: #2A5C45;
  --olive: #2A5C45;
  --muted: #5C5C57;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1152px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--serif); letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type ---------- */
h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; max-width: 14ch; }
h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; max-width: 20ch; }
h3 { font-size: 30px; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 36em; margin-top: 28px; }
.prose p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--muted); }
.prose p + p { margin-top: 24px; }
.prose .ink { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 13px 26px; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-paper { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-paper:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(246, 246, 243, 0.4); }
.btn-ghost:hover { border-color: var(--green); background: var(--green); color: var(--paper); }
.btn-forest { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-hover); border-color: var(--forest-hover); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 246, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-mark { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--green); }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; padding: 22px 0; }
.menu { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 190px; padding: 6px 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(6,16,48,0.10);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.menu a { display: block; padding: 9px 16px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--navy); }
.menu a:hover { background: var(--surface); color: var(--green); }
.nav-item:hover .menu, .nav-item:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links .nav-cta { color: var(--navy); border: 1px solid rgba(6, 16, 48, 0.25); padding: 8px 16px; border-radius: 2px; }
.nav-links .nav-cta:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: var(--paper); border-top: 1px solid var(--line); }
.mobile-menu a { padding: 16px var(--gutter); color: var(--navy); text-decoration: none; font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--paper); background: var(--navy-deep) url('/img/hero-coast.jpg') center right / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,10,34,0.92) 0%, rgba(3,10,34,0.66) 45%, rgba(3,10,34,0.18) 100%), linear-gradient(180deg, rgba(3,10,34,0.35) 0%, rgba(3,10,34,0) 40%, rgba(3,10,34,0.55) 100%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 8vw, 120px); }
.hero .lede { color: rgba(246, 246, 243, 0.72); max-width: 34em; }

/* seat map: first row taken */
.seats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 384px; width: 100%; justify-self: end; }
.seat { display: block; aspect-ratio: 1; border-radius: 2px; border: 1px solid rgba(246, 246, 243, 0.22); }
.seat.on { background: var(--green); border-color: var(--green); }

/* ---------- Stats ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 48px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(44px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.01em; }
.stat p { margin-top: 12px; font-size: 16px; line-height: 1.4; color: var(--navy); }
.stat-src { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); text-decoration: none; text-underline-offset: 4px; }
.stat-src:hover { text-decoration: underline; color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 9vw, 128px) 0; scroll-margin-top: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.thesis { border-bottom: 1px solid var(--line); }

/* Sub-sections in one flow */
.flow { scroll-margin-top: 90px; }
.flow.sub { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.focus .flow.sub { position: relative; z-index: 1; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.logo-cell { aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Focus: physics bubbles (positions driven by script.js) */
.focus { position: relative; overflow: hidden; background: var(--paper); }
.focus::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url('/img/focus-plant.jpg') center / cover no-repeat; opacity: 0.10; filter: grayscale(1) contrast(0.9); }
.focus::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--paper) 0%, rgba(246,246,243,0) 30%, rgba(246,246,243,0) 70%, var(--paper) 100%); }
.focus .wrap, .focus .flow { position: relative; z-index: 1; }
.bubbles { position: relative; height: 560px; margin-top: 24px; }
.bubble { position: absolute; top: 0; left: 0; width: var(--s, 220px); aspect-ratio: 1; will-change: transform; touch-action: none; user-select: none; -webkit-user-select: none; }
.b1 { --s: 236px; } .b2 { --s: 200px; } .b3 { --s: 214px; } .b4 { --s: 226px; } .b5 { --s: 208px; }
.b-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative;
  width: 100%; height: 100%; padding: 14%; border-radius: 50%; cursor: grab; border: 0;
  font-family: var(--sans); color: var(--navy); text-shadow: 0 1px 14px rgba(255,255,255,0.9), 0 0 2px rgba(255,255,255,0.8);
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.45) 9%, rgba(255,255,255,0) 26%),
    radial-gradient(circle at 72% 78%, rgba(255,255,255,0.7) 0, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 20% 70%, rgba(200,225,255,0.25) 0, rgba(200,225,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.28) 88%, rgba(255,255,255,0.55) 100%);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.1); backdrop-filter: blur(1.5px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), inset 0 0 22px rgba(255,255,255,0.5), inset -12px -16px 34px rgba(6,16,48,0.08), inset 10px 12px 30px rgba(255,255,255,0.35), 0 18px 40px rgba(6,16,48,0.08);
  transition: transform .35s ease, box-shadow .35s ease, padding .35s ease; }
/* soft white rim instead of colour */
.b-inner::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0.9;
  background: radial-gradient(circle closest-side, rgba(255,255,255,0) 0 calc(100% - 10px), rgba(255,255,255,0.55) calc(100% - 6px), rgba(255,255,255,0.95) calc(100% - 2px), rgba(255,255,255,0) 100%); }
.b-inner::after { content: ""; position: absolute; width: 9%; height: 9%; border-radius: 50%; right: 20%; bottom: 22%; transition: opacity .25s;
  background: radial-gradient(circle at 35% 30%, #fff 0, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0) 100%); }
.b-num { font-family: var(--serif); font-size: 15px; color: var(--green); margin-bottom: 4px; }
.b-title { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.1; transition: font-size .35s ease; }
.b-desc { display: block; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; font-size: 12px; line-height: 1.35; color: var(--muted);
  transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease; }
.bubble:hover, .bubble.open, .bubble.dragging { z-index: 2; }
.bubble.dragging .b-inner { cursor: grabbing; transition: none; }
.bubble:hover .b-inner, .bubble.open .b-inner { transform: scale(1.38); padding: 11%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), inset 0 0 26px rgba(255,255,255,0.7), inset -12px -16px 34px rgba(6,16,48,0.08), inset 10px 12px 30px rgba(255,255,255,0.5), 0 28px 60px rgba(6,16,48,0.12);
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.45) 9%, rgba(255,255,255,0) 26%),
    radial-gradient(circle at 72% 78%, rgba(255,255,255,0.7) 0, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.45) 0, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.55) 88%, rgba(255,255,255,0.75) 100%); }
.bubble:hover .b-desc, .bubble.open .b-desc { max-height: 9em; opacity: 1; margin-top: 8px; }
.bubble:hover .b-title, .bubble.open .b-title { font-size: clamp(19px, 1.5vw, 22px); }
.bubble:hover .b-num, .bubble.open .b-num { margin-bottom: 2px; }
.bubble:hover .b-inner::after, .bubble.open .b-inner::after { opacity: 0; }
.b-inner:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

/* Model */
.model { background: var(--forest); color: var(--paper); }
.model h2 { color: var(--paper); max-width: 22ch; }
.model .lede { color: rgba(246, 246, 243, 0.72); max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: rgba(246, 246, 243, 0.16); border-radius: 2px; overflow: hidden; }
.card { background: var(--forest); padding: 32px; }
.card h3 { color: var(--paper); font-size: 28px; }
.card p { margin-top: 14px; color: rgba(246, 246, 243, 0.72); line-height: 1.6; }

/* Team */
.team { background: var(--surface); border-top: 1px solid var(--line); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; }
.photo { aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1); }
.person h3 { margin-top: 24px; }
.role { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--olive); }
.person p:not(.role) { margin-top: 16px; color: var(--muted); line-height: 1.6; }
.link { display: inline-block; margin-top: 20px; font-size: 15px; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--olive); }

/* Investment team: sliding carousel with drag momentum */
.investors { background: var(--paper); border-top: 1px solid var(--line); padding-bottom: clamp(80px, 9vw, 128px); }
.track-wrap { position: relative; overflow: hidden; margin-top: 56px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.track-wrap.dragging { cursor: grabbing; }
.track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.tcard { margin: 0; flex: 0 0 auto; width: 240px; }
.tcard img { width: 240px; height: 240px; object-fit: cover; object-position: 50% 0; filter: grayscale(1); background: var(--surface); display: block; pointer-events: none; }
.tcard figcaption { padding-top: 12px; }
.tname { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--navy); }
.trole { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.track-wrap::before, .track-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.track-wrap::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(246,246,243,0)); }
.track-wrap::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(246,246,243,0)); }

/* Contact + footer */
.contact { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--paper); padding-bottom: 0; }
.contact h2 { color: var(--paper); font-size: clamp(44px, 6vw, 78px); max-width: 22ch; line-height: 1.05; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border: 1px solid rgba(246, 246, 243, 0.18); border-radius: 2px; }
.contact-card h3 { color: var(--paper); }
.contact-card p { margin-top: 14px; flex: 1; color: rgba(246, 246, 243, 0.7); line-height: 1.6; }
.contact-card .btn { margin-top: 32px; }
.footer { margin-top: clamp(80px, 9vw, 128px); border-top: 1px solid rgba(246, 246, 243, 0.12); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: rgba(246, 246, 243, 0.55); }
.footer-mark { height: 30px; width: auto; margin-bottom: 18px; opacity: .9; }
.footer-inner a { color: rgba(246, 246, 243, 0.8); text-decoration: none; }
.footer-inner a:hover { color: var(--paper); }
.disclaimer { max-width: 36em; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .seats { justify-self: start; max-width: 320px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0; }
  .stat:first-child { border-top: 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; height: auto; padding: 0 16px; }
  .bubble { position: static; transform: none !important; --s: 164px; flex: 0 0 var(--s); width: var(--s); height: var(--s); touch-action: auto; }
  .b-inner { cursor: pointer; }
  .bubble.open .b-inner { transform: scale(1.6); padding: 10%; }
  .bubble.open .b-title { font-size: 17px; }
  .bubble.open .b-desc { font-size: 10.5px; line-height: 1.3; }
  .bubble:nth-child(even) { margin-top: 28px; }
  .b-title { font-size: 20px; }
  .b-desc { font-size: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .disclaimer { text-align: left; }
}
@media (max-width: 760px) {
  .hero { background-image: url('/img/hero-coast-m.jpg'); }
  .focus::before { background-image: url('/img/focus-plant-m.jpg'); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .brand-mark { height: 24px; }
  h3 { font-size: 26px; }
  .tcard { width: 180px; } .tcard img { width: 180px; height: 180px; } .tname { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubbles { display: flex; flex-wrap: wrap; gap: 24px; height: auto; }
  .bubble { position: static; transform: none !important; }
}
