/* ==========================================================================
   BISCOTTI ENTENTE — house brand
   Partners who build. A studio + holding company.
   Motor-racing palette: graphite carbon + cool bone, a scarlet pop, a petrol
   cool tone. Classy but quick.
   Display: Bricolage Grotesque · Body: Figtree · Labels/figures: Space Mono
   ========================================================================== */

:root {
  /* Surfaces — cool brushed-silver / pit-garage, distinctly not warm */
  --paper:   #EEF0F1;
  --paper-2: #E2E4E7;
  --paper-3: #D1D5D9;
  --card:    #FAFBFC;

  /* Ink — cool graphite / carbon */
  --ink:     #14161A;
  --espresso:#0E1014;   /* dark "carbon" section background (var name kept) */
  --text-1:  #14161A;
  --text-2:  #4B5058;
  --text-3:  #848A92;
  --on-ink:  #EEF1F3;
  --on-ink-2:#969CA5;

  /* Petrol / steel — cool, classy secondary (var name --lapis kept) */
  --lapis:      oklch(0.50 0.090 236);
  --lapis-deep: oklch(0.40 0.082 238);
  --lapis-tint: oklch(0.93 0.026 236);
  --lapis-line: oklch(0.85 0.040 236);
  --lapis-on:   #EEF1F3;

  /* Rosso scarlet — the exciting racing pop (var name --marm kept) */
  --marm:      oklch(0.565 0.218 27);
  --marm-deep: oklch(0.495 0.215 27);
  --marm-tint: oklch(0.92 0.052 28);

  /* Lines — cool silver */
  --line:    #DFE1E4;
  --line-2:  #C9CCD0;
  --line-ink:rgba(238,241,243,0.15);

  /* Signal */
  --pos:    oklch(0.52 0.10 162);
  --pos-bg: oklch(0.93 0.04 162);
  --beta:   oklch(0.62 0.16 50);
  --beta-bg:oklch(0.93 0.05 60);

  /* Type */
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:    'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry — friendly but composed */
  --r-1: 5px;
  --r-2: 9px;
  --r-3: 13px;
  --r-4: 20px;
  --wrap: 1220px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--marm); color: #fff; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 34px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 34px; }
.section { padding: 96px 0; }
.section-sm { padding: 58px 0; }
.section.alt { background: var(--paper-2); }
.section.espresso { background: var(--espresso); color: var(--on-ink); }
.section.lapis { background: var(--lapis-deep); color: var(--on-ink); }
@media (max-width: 760px) { .section { padding: 64px 0; } .wrap, .wrap-narrow { padding: 0 22px; } }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; color: var(--text-1); }
.display { font-family: var(--display); font-size: clamp(44px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.96; }
.h1 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.028em; }
.h2 { font-size: clamp(29px, 3.4vw, 44px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -0.02em; }
.h4 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.015em; }
.serif-em { font-family: var(--display); font-style: italic; font-weight: 500; }
em, .it { font-style: italic; }
.lead { font-family: var(--sans); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); font-weight: 400; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.fig { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.03em; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lapis); margin: 0 0 20px;
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.marm { color: var(--marm-deep); }
.section.espresso .eyebrow, .section.lapis .eyebrow { color: var(--marm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #0f0b05; }
.btn-lapis { background: var(--lapis); color: var(--lapis-on); }
.btn-lapis:hover { background: var(--lapis-deep); }
.btn-marm { background: var(--marm); color: #fff; }
.btn-marm:hover { background: var(--marm-deep); color: #fff; }
.btn-out { background: transparent; color: var(--text-1); border-color: var(--line-2); }
.btn-out:hover { border-color: var(--ink); background: rgba(23,25,28,0.04); }
.btn-on-dark { background: var(--on-ink); color: var(--espresso); }
.btn-on-dark:hover { background: #fff; }
.btn-ghost-dark { background: transparent; color: var(--on-ink); border-color: var(--line-ink); }
.btn-ghost-dark:hover { border-color: var(--on-ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn .ar { transition: transform .16s ease; flex-shrink: 0; }
.btn:hover .ar { transform: translateX(3px); }

.link-arrow { color: var(--lapis); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; font-size: 16px; letter-spacing: -0.01em; }
.link-arrow:hover { gap: 11px; }
.link-arrow svg { flex-shrink: 0; transition: transform .16s ease; }
.section.espresso .link-arrow, .section.lapis .link-arrow { color: var(--marm); }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 100px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.lapis { background: var(--lapis-tint); color: var(--lapis-deep); border-color: var(--lapis-line); }
.pill.marm { background: var(--marm-tint); color: var(--marm-deep); border-color: transparent; }
.pill.solid { background: var(--ink); color: var(--on-ink); border-color: transparent; }

/* status dot */
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.status.live::before { background: var(--pos); box-shadow: 0 0 0 3px var(--pos-bg); }
.status.beta::before { background: var(--beta); box-shadow: 0 0 0 3px var(--beta-bg); }
.status.incubating::before { background: var(--marm); box-shadow: 0 0 0 3px var(--marm-tint); }
.status.acquired::before { background: var(--lapis); box-shadow: 0 0 0 3px var(--lapis-tint); }

/* ---------- Image placeholders ---------- */
.img {
  position: relative; border-radius: var(--r-3); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  background-image: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(20,22,26,0.045) 16px 32px);
}
.img::after {
  content: attr(data-label);
  position: absolute; left: 13px; bottom: 13px;
  font-size: 11px; font-family: var(--mono); color: var(--text-3);
  background: rgba(238,240,241,0.92); padding: 4px 8px; border-radius: 5px;
}
.img.no-label::after { content: none; }
.img-16-9 { aspect-ratio: 16 / 9; }
.img-4-3 { aspect-ratio: 4 / 3; }
.img-3-2 { aspect-ratio: 3 / 2; }
.img-1-1 { aspect-ratio: 1 / 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-pad { padding: 28px; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(23,25,28,0.42); border-color: var(--line-2); }

/* venture / product glyph tile */
.glyph {
  width: 52px; height: 52px; border-radius: var(--r-2); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em;
}
.glyph.lapis { background: var(--lapis-tint); color: var(--lapis-deep); border: 1px solid var(--lapis-line); }
.glyph.marm  { background: var(--marm-tint); color: var(--marm-deep); border: 1px solid transparent; }
.glyph.ink   { background: var(--ink); color: var(--on-ink); }
.glyph.paper { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.glyph.lg { width: 64px; height: 64px; font-size: 26px; border-radius: var(--r-3); }

/* venture card */
.vcard { display: flex; flex-direction: column; gap: 18px; padding: 26px; height: 100%; }
.vcard .vc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vcard .vc-name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.025em; }
.vcard .vc-desc { color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.vcard .vc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Seal / stamp motif (the quirk) ---------- */
.seal {
  width: 132px; height: 132px; position: relative; color: var(--marm-deep);
  flex-shrink: 0;
}
.seal svg { width: 100%; height: 100%; }
.seal .seal-spin { transform-origin: 50% 50%; animation: sealspin 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { .seal .seal-spin { animation: none; } }
@keyframes sealspin { to { transform: rotate(360deg); } }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--card); }
table.be { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.be th, table.be td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--line); }
table.be thead th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 400; background: var(--paper); }
table.be tbody tr:last-child td { border-bottom: 0; }
table.be tbody tr:hover td { background: var(--paper); }
table.be .num { text-align: right; font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- Stats ---------- */
.stat .stat-v { font-family: var(--mono); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-1); }
.stat .stat-v .unit { font-size: 0.46em; color: var(--text-2); margin-left: 3px; font-weight: 400; }
.stat .stat-l { font-size: 13.5px; color: var(--text-2); margin-top: 11px; }
.section.espresso .stat .stat-v, .section.lapis .stat .stat-v { color: var(--on-ink); }
.section.espresso .stat .stat-l, .section.lapis .stat .stat-l { color: var(--on-ink-2); }

/* ---------- Utilities ---------- */
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 24px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 44px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 46px; flex-wrap: wrap; }
.sec-head .h2 { max-width: 20ch; }
.sec-head p { max-width: 46ch; color: var(--text-2); margin: 16px 0 0; }
.sec-head .sec-head-cta { flex-shrink: 0; }

/* ---------- Reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: transform, opacity; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }
