:root {
  --abbey-50: #f6f6f6;
  --abbey-100: #e7e7e7;
  --abbey-200: #c7c7c7;
  --abbey-500: #646e76;
  --abbey-700: #454a50;
  --abbey-900: #090f15;
  --blue-50: #f0f8fe;
  --blue-600: #0b75be;
  --blue-800: #0c4b78;
  --blue-950: #0a2a45;
  --white: #ffffff;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abbey-50);
  color: var(--abbey-900);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol { margin: 0; }
a { color: var(--blue-600); }
a:hover { color: var(--blue-800); }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.only-mobile { display: none; }

/* Patterns */
.grid-paper {
  background-color: var(--abbey-50);
  background-image: linear-gradient(var(--abbey-100) 1px, transparent 1px), linear-gradient(90deg, var(--abbey-100) 1px, transparent 1px);
  background-size: 32px 32px;
}
.dot-field {
  background-color: var(--blue-800);
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.dissolve-dense { background: repeating-conic-gradient(var(--blue-800) 0 25%, transparent 0 50%) 0 0 / 32px 32px; }
.dissolve-sparse { background: repeating-conic-gradient(var(--blue-800) 0 25%, transparent 0 100%) 0 0 / 32px 32px; }

/* Shared type */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.eyebrow span { font-family: var(--mono); font-size: 13px; color: var(--blue-600); }
.eyebrow .label { text-transform: uppercase; letter-spacing: 0.1em; }
.eyebrow .tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-800); border: 1px solid var(--blue-800); padding: 4px 8px; }
.h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; color: var(--blue-800); }
.h2-lg { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.035em; }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--abbey-500); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 24px;
  text-align: center;
}
.btn-blue { color: var(--white); background: var(--blue-800); }
.btn-blue:hover { color: var(--white); background: var(--blue-950); }
.btn-outline { color: var(--abbey-900); background: var(--white); border: 1px solid var(--abbey-900); padding: 15px 24px; font-weight: 400; }
.btn-outline:hover { color: var(--abbey-900); background: var(--abbey-50); }
.btn-ghost { color: var(--abbey-900); border: 1px solid var(--abbey-900); }
.btn-ghost:hover { color: var(--white); background: var(--abbey-900); }
.btn-white { color: var(--blue-950); background: var(--white); }
.btn-white:hover { color: var(--blue-950); background: var(--blue-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header { position: relative; border-bottom: 1px solid var(--abbey-100); background: var(--abbey-50); }
.site-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--abbey-900); }
.brand:hover { color: var(--abbey-900); }
.brand img { width: 33px; height: 22px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand-labs { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--abbey-500); border-left: 1px solid var(--abbey-200); padding-left: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--abbey-700); text-decoration: none; }
.nav a:hover { color: var(--blue-800); }
.nav .nav-cta { color: var(--abbey-900); border: 1px solid var(--abbey-900); padding: 12px 16px; }
.nav .nav-cta:hover { color: var(--white); background: var(--abbey-900); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--abbey-100); padding: 0; color: var(--abbey-900); cursor: pointer; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--abbey-100); }
.hero-main { flex: 1.2 1 560px; min-width: 0; position: relative; overflow: hidden; display: flex; justify-content: flex-end; }
.hero-shark { position: absolute; left: -64px; top: 50%; transform: translateY(-50%); width: 600px; max-width: 80%; height: auto; opacity: 0.08; pointer-events: none; }
.hero-main .dissolve-sparse { position: absolute; top: 0; bottom: 0; right: 32px; width: 32px; }
.hero-main .dissolve-dense { position: absolute; top: 0; bottom: 0; right: 0; width: 32px; }
.hero-copy { position: relative; width: 100%; max-width: 660px; padding: 104px 104px 104px 40px; display: flex; flex-direction: column; gap: 28px; }
.hero-eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-600); }
.hero h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; color: var(--blue-800); }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--abbey-700); }
.hero-sub { font-size: 16px; line-height: 1.6; color: var(--abbey-500); }
.hero-side { flex: 1 1 440px; min-width: 0; padding: 72px 48px; display: flex; align-items: center; }

/* Lab index */
.lab-index { width: 100%; max-width: 460px; background: var(--white); border: 1px solid var(--abbey-100); }
.lab-index-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--abbey-100); font-family: var(--mono); font-size: 11px; color: var(--abbey-500); }
.lab-index-head p:first-child { text-transform: uppercase; letter-spacing: 0.08em; }
.lab-row { display: flex; align-items: baseline; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--abbey-100); text-decoration: none; color: var(--abbey-900); }
.lab-row:hover { color: var(--abbey-900); background: var(--blue-50); }
.lab-row .num { font-family: var(--mono); font-size: 12px; color: var(--abbey-500); }
.lab-row .name { flex: 1 1 auto; font-size: 17px; font-weight: 600; }
.lab-row .arrow { color: var(--abbey-500); }
.lab-row.primary { background: var(--blue-50); }
.lab-row.primary .num { color: var(--blue-600); }
.lab-row .tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-800); }
.lab-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 16px 20px; background: var(--abbey-50); text-decoration: none; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.lab-foot span:first-child { letter-spacing: 0.08em; color: var(--abbey-500); }
.lab-foot span:last-child { letter-spacing: 0.06em; font-weight: 700; color: var(--blue-600); }
.lab-foot:hover span:last-child { color: var(--blue-800); }

/* Sections */
.section { border-bottom: 1px solid var(--abbey-100); }
.section.white { background: var(--white); }
.section-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 20px; }

/* Curation */
#curation .section-inner { padding-top: 104px; padding-bottom: 104px; gap: 64px; }
#curation .section-head { max-width: 800px; }
.curation-lede { font-size: 19px; line-height: 1.65; color: var(--abbey-700); }
.block { display: flex; flex-direction: column; gap: 20px; }
.tiles { display: flex; flex-wrap: wrap; border-top: 1px solid var(--abbey-100); border-left: 1px solid var(--abbey-100); }
.tile { flex: 1 1 180px; min-width: 0; padding: 28px 24px; border-right: 1px solid var(--abbey-100); border-bottom: 1px solid var(--abbey-100); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tile h3 { font-size: 17px; font-weight: 600; }
.icon { width: 48px; height: 48px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-800); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.steps-scroll { overflow-x: auto; }
.steps { list-style: none; padding: 0; min-width: 960px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: 18px; }
.step-rail { display: flex; align-items: center; }
.step-node { flex: 0 0 auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--blue-800); background: var(--white); font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--blue-800); }
.step-line { flex: 1 1 auto; height: 2px; background: var(--blue-800); }
.step-body { padding-right: 24px; display: flex; flex-direction: column; gap: 6px; }
.step-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.step-body p { font-size: 14px; line-height: 1.5; color: var(--abbey-500); }
.step-body a { font-family: var(--mono); font-size: 12px; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; text-decoration: none; }
.step.last .step-node { background: var(--blue-800); color: var(--white); }
.step.last .step-body { padding-right: 0; }

.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding: 32px; background: var(--blue-950); }
.cta-band p { flex: 1 1 420px; min-width: 0; font-size: 22px; line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; color: var(--white); }

/* Advisory and writing cards */
#advisory .section-inner { padding-top: 104px; padding-bottom: 104px; gap: 48px; }
#advisory .section-head { max-width: 760px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 440px; min-width: 0; background: var(--white); border: 1px solid var(--abbey-100); padding: 32px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--abbey-900); }
a.card:hover { color: var(--abbey-900); border-color: var(--blue-800); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.6; color: var(--abbey-700); }
.card .card-num { font-family: var(--mono); font-size: 12px; color: var(--abbey-500); }
.card .card-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--abbey-500); }
.card .card-url { font-family: var(--mono); font-size: 12px; color: var(--abbey-500); }
.card .card-link { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--blue-600); }
.advisory-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.advisory-foot p { font-family: var(--mono); font-size: 12px; color: var(--abbey-500); }
.text-link { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--blue-600); padding: 12px 0 4px; }

/* Venture */
.venture { flex-direction: row; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.venture .section-head { flex: 999 1 520px; min-width: 0; }
.venture-copy { font-size: 18px; line-height: 1.65; color: var(--abbey-700); max-width: 60ch; }
.venture .btn { flex: 0 0 auto; }

/* Team */
.team .tile { flex-basis: 240px; gap: 14px; }
.team .tile p { font-size: 14px; line-height: 1.55; color: var(--abbey-500); }

/* Final CTA */
.final-cta { background: var(--blue-800); }
.final-cta .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.final-cta .copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.final-cta h2 { font-size: 36px; letter-spacing: -0.03em; font-weight: 600; color: var(--white); }
.final-cta p { font-size: 17px; line-height: 1.6; color: var(--abbey-100); }
.final-cta .btn { flex: 0 0 auto; }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--abbey-700); }
.footer-brand img { width: 30px; height: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--abbey-700); text-decoration: none; }
.footer-nav a:hover { color: var(--blue-800); }
.footer-bottom { border-top: 1px solid var(--abbey-100); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 12px; line-height: 1.6; color: var(--abbey-500); }
.footer-bottom p:first-child { flex: 1 1 520px; min-width: 0; }

/* Stacked hero (tablet and below) */
@media (max-width: 999px) {
  .hero { flex-direction: column; flex-wrap: nowrap; }
  .hero-main { flex: none; flex-direction: column; justify-content: flex-start; }
  .hero-main .dissolve-sparse, .hero-main .dissolve-dense { position: relative; inset: auto; width: auto; height: 32px; }
  .hero-copy { max-width: 760px; padding: 80px 40px 64px; }
  .hero-side { flex: none; padding: 48px 40px 56px; justify-content: center; }
  .hero-shark { max-width: none; width: 520px; }
}

/* Mobile */
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .only-mobile { display: initial; }
  .only-desktop { display: none; }

  .site-header .wrap { min-height: 60px; flex-wrap: nowrap; }
  .brand { gap: 10px; }
  .brand img { width: 30px; height: 20px; }
  .brand-name { font-size: 16px; }
  .brand-labs { font-size: 11px; padding-left: 10px; }
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--abbey-50); border-bottom: 1px solid var(--abbey-100); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--abbey-100); }
  .nav .nav-cta { margin-top: 16px; text-align: center; padding: 14px 16px; }

  .hero-main { background-size: 24px 24px; }
  .hero-shark { top: 36px; transform: none; width: 360px; }
  .hero-copy { max-width: none; padding: 48px 20px 40px; gap: 20px; }
  .hero-eyebrow { font-size: 11px; }
  .hero h1 { font-size: 42px; line-height: 1.06; letter-spacing: -0.03em; }
  .hero-lede { font-size: 16px; }
  .hero-sub { font-size: 15px; }
  .btn-row { flex-direction: column; gap: 10px; margin-top: 4px; }
  .btn { font-size: 12px; padding: 16px 0; }
  .btn-outline { padding: 15px 0; }
  .hero-side { padding: 24px 20px 32px; display: block; }

  .lab-index { max-width: none; }
  .lab-index-head, .lab-row .arrow { display: none; }
  .lab-row { gap: 14px; padding: 14px 16px; }
  .lab-row .num { font-size: 11px; }
  .lab-row .name { font-size: 15px; }
  .lab-row .tag { font-size: 9px; }
  .lab-foot { flex-wrap: nowrap; padding: 14px 16px; font-size: 10px; }

  .section-inner, #curation .section-inner, #advisory .section-inner { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  #curation .section-inner { gap: 36px; }
  .section-head { gap: 14px; }
  .eyebrow { gap: 10px; }
  .eyebrow span { font-size: 11px; }
  .eyebrow .tag { font-size: 9px; padding: 3px 6px; }
  .h2 { font-size: 30px; line-height: 1.12; }
  .h2-lg { font-size: 32px; line-height: 1.1; }
  .curation-lede, .venture-copy { font-size: 16px; line-height: 1.6; }
  .kicker { font-size: 11px; }
  .block { gap: 12px; }

  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 16px; gap: 10px; }
  .tile h3 { font-size: 15px; }
  .icon { width: 40px; height: 40px; }
  .icon svg { width: 20px; height: 20px; }
  .tiles-work .tile:last-child { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; }
  .team .tile p { font-size: 13px; line-height: 1.5; }

  .steps-scroll { overflow: visible; }
  .steps { min-width: 0; display: flex; flex-direction: column; }
  .step { flex-direction: row; gap: 16px; }
  .step-rail { flex-direction: column; }
  .step-node { width: 40px; height: 40px; font-size: 13px; }
  .step-line { width: 2px; height: auto; min-height: 20px; }
  .step-body { padding: 8px 0 24px; gap: 4px; }
  .step.last .step-body { padding-bottom: 0; }
  .step-body h3 { font-size: 17px; }
  .step-body a { font-size: 11px; line-height: 1.8; }

  .cta-band { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px 20px; }
  .cta-band p { flex: none; font-size: 18px; }

  .cards { flex-direction: column; gap: 16px; }
  .card { flex: none; padding: 20px; gap: 8px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 15px; }
  .advisory-foot { flex-direction: column; align-items: stretch; }
  .text-link { font-size: 12px; text-align: center; border: 1px solid var(--blue-600); padding: 14px 0; }

  .venture { flex-direction: column; align-items: stretch; gap: 16px; }
  .venture .section-head { flex: none; }
  .venture .btn { margin-top: 8px; }

  .final-cta .wrap { padding-top: 48px; padding-bottom: 48px; flex-direction: column; align-items: stretch; gap: 16px; }
  .final-cta .copy { flex: none; }
  .final-cta h2 { font-size: 28px; letter-spacing: -0.025em; }
  .final-cta p { font-size: 16px; }

  .site-footer .wrap { padding-top: 32px; padding-bottom: 32px; gap: 18px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-nav { gap: 0 20px; }
  .footer-nav a { font-size: 11px; padding: 10px 0; }
  .footer-bottom { flex-direction: column; font-size: 11px; padding-top: 16px; }
  .footer-bottom p:first-child { flex: none; }
}
