/* Code Blue — investor/partner homepage
   Aesthetic: Apple/Airbnb/Linear/Nuance Audio — quiet, editorial, confident.
   Palette: deep ink + paper warm-white + a single clinical indigo, a calm sage, a soft clay.
   Type: Manrope display (tight), Fraunces-free — we stay w/ Manrope + Inter body for clarity. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* earthy, trust-rooted palette — not the old wix blue */
  --paper:   #F6F4EF;   /* warm paper white */
  --paper-2: #EFEBE2;   /* slightly deeper paper */
  --ink:     #111210;   /* near-black with warmth */
  --ink-2:   #2B2E28;
  --ink-60:  rgba(17,18,16,0.62);
  --ink-40:  rgba(17,18,16,0.42);
  --ink-20:  rgba(17,18,16,0.14);
  --ink-10:  rgba(17,18,16,0.08);

  --indigo:  #2B3FA8;   /* clinical indigo — single accent */
  --indigo-2:#1C2A7A;
  --sage:    #B5C0A0;   /* human warmth */
  --clay:    #D4A687;   /* tertiary accent, used sparingly */
  --line:    rgba(17,18,16,0.12);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --container: 1240px;

  --f-display: "Manrope", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ---------- type ---------- */
h1, h2, h3, h4, h5 { font-family: var(--f-display); margin: 0; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-weight: 500; font-size: clamp(52px, 7.2vw, 112px); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-weight: 500; font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0; }
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 58ch;
  text-wrap: pretty;
  font-weight: 400;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
}
.kicker .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  margin-right: 10px;
  transform: translateY(-1px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  font-family: var(--f-body);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--indigo); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-20); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-2); transform: translateY(-1px); }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .btn-link:hover .arrow { transform: translateX(3px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-20);
  padding-bottom: 4px;
}
.btn-link:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(120%);
  background: rgba(246,244,239,0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--ink-10); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo .mark {
  width: 22px; height: 22px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo .mark svg { width: 22px; height: 22px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-60);
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--ink-10); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
}
.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero h1 .soft { color: var(--ink-40); }
.hero h1 .mark-underline {
  position: relative;
  display: inline-block;
}
.hero h1 .mark-underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.09em;
  background: var(--indigo);
}

.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero-meta .lead { max-width: 44ch; font-size: 20px; }
.hero-actions { display: flex; gap: 12px; align-items: center; justify-self: end; }

/* hero image block — human moment, understated */
.hero-media {
  margin-top: 72px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7.8;
  background: var(--ink);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(0.98);
}
.hero-media .media-caption {
  position: absolute;
  left: 36px; bottom: 32px;
  color: var(--paper);
  max-width: 420px;
}
.hero-media .media-caption .kicker { color: rgba(246,244,239,0.7); }
.hero-media .media-caption .kicker .dot { background: var(--sage); }
.hero-media .media-caption .t {
  font-family: var(--f-display); font-weight: 500;
  font-size: 22px; line-height: 1.25;
  margin-top: 12px;
  letter-spacing: -0.02em;
}
.hero-media .media-chip {
  position: absolute;
  top: 32px; right: 32px;
  background: rgba(246,244,239,0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero-media .media-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,192,160,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(181,192,160,0); }
}

/* alt hero: second-person ("you're ok") — huge typographic */
body[data-hero="reassurance"] .hero-media { display: none; }
body[data-hero="reassurance"] .hero h1 { font-size: clamp(72px, 12vw, 220px); font-weight: 300; letter-spacing: -0.06em; line-height: 0.88; }
body[data-hero="reassurance"] .hero-meta { margin-top: 72px; }

body[data-hero="seconds"] .hero-media { display: none; }
body[data-hero="seconds"] .hero h1 { font-size: clamp(64px, 9vw, 160px); font-weight: 500; line-height: 0.95; }

/* ---------- marquee / proof strip ---------- */
.strip {
  padding: 28px 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  overflow: hidden;
}
.strip-row {
  display: flex; align-items: center;
  gap: 64px;
  white-space: nowrap;
}
.strip-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  flex-shrink: 0;
}
.strip-names {
  display: flex; gap: 56px; align-items: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-60);
}
.strip-names span { display: inline-flex; align-items: center; gap: 12px; }
.strip-names span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-20);
}

/* ---------- thesis / founder letter ---------- */
.thesis { padding: 160px 0 120px; }
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.thesis-body p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 36ch;
  text-wrap: pretty;
}
.thesis-body p + p { margin-top: 28px; }
.thesis-body p .em { color: var(--indigo); }
.thesis-sig {
  margin-top: 40px;
  display: flex; gap: 14px; align-items: center;
}
.thesis-sig .av {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--paper-2);
}
.thesis-sig .av img { width: 100%; height: 100%; object-fit: cover; }
.thesis-sig .n { font-weight: 600; font-size: 14px; }
.thesis-sig .r { font-size: 13px; color: var(--ink-60); }

/* ---------- opportunity / numbers (investor hooks) ---------- */
.opp {
  padding: 120px 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  margin: 0 32px;
  position: relative;
  overflow: hidden;
}
.opp h2 { color: var(--paper); }
.opp .kicker { color: rgba(246,244,239,0.55); }
.opp .kicker .dot { background: var(--sage); }
.opp-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 0 64px;
  align-items: end;
  margin-bottom: 72px;
}
.opp-head .lead { color: rgba(246,244,239,0.72); max-width: 42ch; font-size: 20px; }

.opp-grid {
  padding: 0 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(246,244,239,0.14);
}
.opp-cell {
  padding: 40px 0 0;
  border-right: 1px solid rgba(246,244,239,0.14);
  padding-right: 24px;
}
.opp-cell:last-child { border-right: none; }
.opp-cell + .opp-cell { padding-left: 24px; }
.opp-cell .k {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.opp-cell .k .u { font-size: 0.4em; color: var(--sage); vertical-align: 0.4em; margin-left: 4px; font-weight: 500; }
.opp-cell .l {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(246,244,239,0.7);
  max-width: 28ch;
  line-height: 1.5;
}
.opp-cell .src {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.35);
}

/* ---------- product — quiet detail section ---------- */
.product { padding: 160px 0; }
.product-head { max-width: 780px; margin-bottom: 80px; }
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.product-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #EFEBE2 0%, #E8E4D9 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-10);
}
.product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17,18,16,0.35));
  pointer-events: none;
  z-index: 3;
}

.pv-real {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ---- Face scan: barely-there corner brackets + soft landmark dots ---- */
.pv-face-scan {
  position: absolute;
  /* Over his face — upper-center area of the photo */
  left: 34%; top: 10%;
  width: 32%; aspect-ratio: 0.95;
  z-index: 4;
  animation: pv-breathe 4.5s ease-in-out infinite;
}
@keyframes pv-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
.pv-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(181, 192, 160, 1);
  box-shadow: 0 0 12px rgba(181, 192, 160, 0.7);
}
.pv-corner.tl { top: 0;    left: 0;    border-right: 0; border-bottom: 0; }
.pv-corner.tr { top: 0;    right: 0;   border-left:  0; border-bottom: 0; }
.pv-corner.bl { bottom: 0; left: 0;    border-right: 0; border-top:    0; }
.pv-corner.br { bottom: 0; right: 0;   border-left:  0; border-top:    0; }
.pv-landmark {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(181, 192, 160, 1);
  box-shadow: 0 0 10px rgba(181, 192, 160, 0.9), 0 0 2px #fff;
  transform: translate(-50%, -50%);
  animation: pv-twinkle 2.8s ease-in-out infinite;
}
.pv-landmark:nth-child(6) { animation-delay: 0.4s; }
.pv-landmark:nth-child(7) { animation-delay: 0.8s; }
.pv-landmark:nth-child(8) { animation-delay: 1.2s; }
.pv-landmark:nth-child(9) { animation-delay: 1.6s; }
@keyframes pv-twinkle {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ---- Phone listening: soft wave rings from the phone ---- */
.pv-listen {
  position: absolute;
  /* Phone is bottom-right in this photo */
  left: 82%; top: 82%;
  width: 0; height: 0;
  z-index: 4;
  pointer-events: none;
}
.pv-ring {
  position: absolute;
  left: 0; top: 0;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  border: 2px solid rgba(181, 192, 160, 0.95);
  box-shadow: 0 0 14px rgba(181, 192, 160, 0.5);
  opacity: 0;
  animation: pv-pulse 3.2s ease-out infinite;
}
.pv-ring:nth-child(2) { animation-delay: 1.05s; }
.pv-ring:nth-child(3) { animation-delay: 2.1s; }
@keyframes pv-pulse {
  0%   { transform: scale(0.3); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.product-annotate { z-index: 5; }
.product-annotate {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  color: var(--paper);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-annotate .pa { display: flex; flex-direction: column; gap: 4px; }
.product-annotate .v { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; text-transform: none; font-weight: 500; }

.product-list { display: flex; flex-direction: column; gap: 4px; }
.product-item {
  padding: 32px 0;
  border-top: 1px solid var(--ink-10);
  display: grid; grid-template-columns: 44px 1fr; gap: 24px;
}
.product-item:last-child { border-bottom: 1px solid var(--ink-10); }
.product-item .n {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-40);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.product-item h3 { margin-bottom: 8px; }
.product-item p { color: var(--ink-60); font-size: 16px; max-width: 50ch; }

/* ---------- team (the star section) ---------- */
.team { padding: 160px 0; background: var(--paper-2); }
.team-head { max-width: 860px; margin-bottom: 72px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--ink-10);
  background: var(--ink-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.member {
  background: var(--paper);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  gap: 20px;
  min-height: 420px;
  transition: background .25s;
  position: relative;
}
.member:hover { background: #FAF8F3; }
.member-top { display: flex; gap: 18px; align-items: flex-start; }
.member-top > div:last-child { min-width: 0; flex: 1; }
.member .avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  flex-shrink: 0;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .name { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.member .role {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-weight: 500;
}
.member .pedigree { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.member .pedigree .pd {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px;
  color: var(--ink-60);
}
.member .pedigree .pd::before {
  content: "—"; color: var(--ink-40); flex-shrink: 0;
}
.member .pedigree .pd b { color: var(--ink); font-weight: 600; }

.team-foot {
  margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.team-foot .note { color: var(--ink-60); font-size: 15px; max-width: 48ch; }

/* ---------- press / recognition ---------- */
.press { padding: 160px 0; }
.press-head { margin-bottom: 64px; max-width: 780px; }
.press-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.press-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ink-10);
  background: var(--paper-2);
  aspect-ratio: 4/5;
  display: flex; align-items: end;
}
.press-card.wide { aspect-ratio: auto; min-height: 100%; }
.press-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.press-card .cap {
  position: relative; z-index: 2;
  padding: 28px;
  background: linear-gradient(transparent, rgba(17,18,16,0.88));
  color: var(--paper);
  width: 100%;
}
.press-card .cap .t {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.press-card .cap .h {
  margin-top: 6px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.press-card.feature {
  background: var(--ink);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  color: var(--paper);
}
.press-card.feature .kicker { color: rgba(246,244,239,0.55); }
.press-card.feature .kicker .dot { background: var(--sage); }
.press-card.feature .big {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-top: 16px;
  text-wrap: pretty;
}
.press-card.feature .src {
  margin-top: 32px;
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: rgba(246,244,239,0.7);
}
.press-card.feature .src .s { font-weight: 600; color: var(--paper); }

/* ---------- partners ---------- */
.partners {
  padding: 120px 0;
  border-top: 1px solid var(--ink-10);
}
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.partners-logos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-10);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius);
  overflow: hidden;
}
.partners-logos .lo {
  background: var(--paper);
  padding: 48px 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 130px;
}
.partners-logos .lo img { max-height: 36px; width: auto; filter: saturate(0) contrast(1.1); opacity: 0.8; }

/* ---------- cta (investor-led) ---------- */
.cta {
  padding: 160px 0;
  background: var(--ink);
  color: var(--paper);
}
.cta h2 { color: var(--paper); }
.cta .kicker { color: rgba(246,244,239,0.55); }
.cta .kicker .dot { background: var(--sage); }
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.cta-left h2 { max-width: 16ch; }
.cta-left p { color: rgba(246,244,239,0.72); margin-top: 24px; max-width: 42ch; font-size: 18px; }

.cta-paths { display: flex; flex-direction: column; gap: 2px; background: rgba(246,244,239,0.12); border-radius: var(--radius); overflow: hidden; }
.cta-path {
  background: var(--ink);
  padding: 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  align-items: center;
  transition: background .2s;
  cursor: pointer;
}
.cta-path:hover { background: rgba(246,244,239,0.04); }
.cta-path .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,244,239,0.5); }
.cta-path .h { font-family: var(--f-display); font-weight: 500; font-size: 22px; margin-top: 4px; letter-spacing: -0.02em; }
.cta-path .d { color: rgba(246,244,239,0.65); font-size: 14.5px; margin-top: 6px; max-width: 42ch; }
.cta-path .go {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246,244,239,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.cta-path:hover .go { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateX(4px); }

/* ---------- footer ---------- */
footer { padding: 64px 0 40px; }
.foot-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}
.foot-wordmark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.foot-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  align-self: end;
  text-align: right;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding: 40px 0 24px;
}
.foot-about p { color: var(--ink-60); font-size: 14.5px; max-width: 32ch; }
.foot-col h5 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 16px 0;
}
.foot-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  padding: 4px 0;
}
.foot-col a:hover { color: var(--indigo); }
.foot-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-40);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- tweak panel ---------- */
#tweak-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--ink-20);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(17,18,16,0.12), 0 8px 20px rgba(17,18,16,0.06);
  width: 300px;
  font-family: var(--f-body);
  display: none;
}
#tweak-panel.open { display: block; }
#tweak-panel h5 {
  margin: 0 0 14px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
}
#tweak-panel .tweak { margin-bottom: 16px; }
#tweak-panel .tweak label {
  display: block;
  font-size: 12px;
  color: var(--ink-60);
  margin-bottom: 6px;
  font-weight: 500;
}
#tweak-panel .seg {
  display: flex;
  border: 1px solid var(--ink-20);
  border-radius: 10px;
  padding: 2px;
  background: var(--paper-2);
}
#tweak-panel .seg button {
  flex: 1;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-60);
}
#tweak-panel .seg button.on { background: var(--ink); color: var(--paper); }
#tweak-panel .close {
  position: absolute; top: 10px; right: 12px;
  font-size: 20px; color: var(--ink-40);
  line-height: 1;
}

/* palette variants */
body[data-palette="neutral"] { /* default */ }
body[data-palette="clinical"] { --indigo: #1C4ED8; --indigo-2: #133FA8; --sage: #9EC5A8; }
body[data-palette="warm"]     { --indigo: #9C4A2E; --indigo-2: #7A3822; --sage: #C9B89C; --paper: #F4EFE6; --paper-2: #EADFC9; }
body[data-palette="fog"]      { --indigo: #37465A; --indigo-2: #242F3D; --sage: #B3C0C6; --paper: #EEF0F1; --paper-2: #E2E6E8; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
  .thesis-grid { grid-template-columns: 1fr; gap: 40px; }
  .opp-head { grid-template-columns: 1fr; gap: 32px; padding: 0 40px; }
  .opp-grid { grid-template-columns: repeat(2, 1fr); padding: 0 40px; }
  .opp-cell:nth-child(2) { border-right: none; }
  .opp-cell:nth-child(3), .opp-cell:nth-child(4) { border-top: 1px solid rgba(246,244,239,0.14); padding-top: 40px; margin-top: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr 1fr; }
  .press-card.feature { grid-column: 1 / -1; aspect-ratio: auto; min-height: 260px; }
  .partners-grid { grid-template-columns: 1fr; }
  .partners-logos { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container, .wide, .hero-content { padding: 0 20px; }
  .opp { margin: 0 20px; }
  .opp-head, .opp-grid { padding: 0 24px; }
  .opp-grid { grid-template-columns: 1fr; }
  .opp-cell { border-right: none; padding-left: 0 !important; padding-right: 0; }
  .opp-cell + .opp-cell { border-top: 1px solid rgba(246,244,239,0.14); padding-top: 32px; margin-top: 32px; }
  .team-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .partners-logos { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero, .thesis, .product, .team, .press, .partners, .cta { padding-top: 80px; padding-bottom: 80px; }
}
