/* ==========================================================================
   Bioinference — site styles
   Plain CSS, no build step. Fonts are self-hosted in /assets/fonts.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Besley";
  src: url("../fonts/besley.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("../fonts/besley-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Ink: taken from the logo (#1B2931) and deepened for dark sections */
  --ink-950: #081217;
  --ink-900: #0d1a20;
  --ink-850: #12222a;
  --ink-800: #172a33;
  --ink-700: #1b2931;
  --ink-600: #2b3e47;

  --slate-600: #4a5a63;
  --slate-500: #5f6f78;
  --slate-400: #8a99a1;
  --slate-300: #b4c0c6;
  --slate-200: #d5dde0;

  /* Teal: logo teal is #3D7778 */
  --teal-700: #2c5c5d;
  --teal-600: #3d7778;
  --teal-500: #4f918e;
  --teal-400: #6fb5ae;
  --teal-300: #97d3ca;
  --teal-200: #c4ebe4;

  --paper: #f7f6f2;
  --paper-2: #efede6;
  --line: #dfdbd1;
  --white: #ffffff;

  --logo-teal: var(--teal-600);

  --font-serif: "Besley", Georgia, "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 76px;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(8, 18, 23, .06), 0 2px 8px -2px rgba(8, 18, 23, .08);
  --shadow: 0 1px 2px rgba(8, 18, 23, .06), 0 20px 48px -20px rgba(8, 18, 23, .28);
  --shadow-lg: 0 2px 6px rgba(8, 18, 23, .08), 0 40px 80px -30px rgba(8, 18, 23, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .04em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--up { transform: rotate(-90deg); }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  background: var(--teal-300); color: var(--ink-900);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* ---------- Eyebrows ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow--light { color: var(--teal-300); }
.hero .eyebrow::before { display: none; }

.pulse {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-300);
  box-shadow: 0 0 0 0 rgba(151, 211, 202, .6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(151, 211, 202, .55); }
  70% { box-shadow: 0 0 0 10px rgba(151, 211, 202, 0); }
  100% { box-shadow: 0 0 0 0 rgba(151, 211, 202, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-700);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.2 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--teal-300), var(--teal-400));
  background: var(--btn-bg);
  --btn-fg: var(--ink-900);
  box-shadow: 0 8px 24px -10px rgba(111, 181, 174, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(111, 181, 174, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .28);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }

.btn-sm { padding: .62rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--white);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s, height .35s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(11, 22, 28, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  --logo-teal: var(--teal-400);
}
.brand-mark { width: 42px; height: 34px; color: currentColor; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}
.lm-line { stroke: currentColor; }
.lm-ink { fill: currentColor; }
.lm-teal { fill: var(--logo-teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
  padding-block: .4rem;
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--teal-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--white); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 40px;
  background:
    radial-gradient(1200px 700px at 85% 30%, rgba(61, 119, 120, .30), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(61, 119, 120, .18), transparent 60%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* fine grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 35%, #000 70%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 35%, #000 70%);
}
.hero-glow {
  position: absolute;
  z-index: -2;
  width: 46vw; height: 46vw;
  max-width: 720px; max-height: 720px;
  right: -8vw; top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 211, 202, .20), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-title {
  font-size: clamp(2.7rem, 5.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15em;
  margin-bottom: .5em;
}
.hero-title em {
  display: block;
  width: fit-content;
  background: linear-gradient(100deg, var(--teal-200) 0%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-foot { position: relative; margin-top: clamp(48px, 8vh, 96px); }
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-pillars li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: 1.3rem 1.5rem 0 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
}
.hero-pillars .mono { color: var(--teal-300); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  background: var(--ink-950);
  color: var(--slate-300);
  border-top: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
  padding-block: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .06em;
  white-space: nowrap;
  padding-inline: 1.6rem;
}
.marquee li::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  margin-left: 3.2rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Frames and chips ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8, 18, 23, .08);
  pointer-events: none;
}
.frame--white { background: var(--white); }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  white-space: nowrap;
}
.float-chip .icon { width: .95em; height: .95em; color: var(--teal-600); }
.float-chip--dark {
  background: rgba(13, 26, 32, .82);
  color: var(--teal-200);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.float-chip .sep { opacity: .45; font-family: var(--font-mono); font-size: .8em; }

/* ---------- Intro ---------- */
.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.statement {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1.12;
  margin-bottom: 1.6rem;
}
.statement em { color: var(--teal-600); }
.intro-copy > p { color: var(--slate-600); font-size: 1.1rem; max-width: 36rem; }

.audience {
  display: grid;
  gap: .25rem;
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.audience li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate-600);
}
.audience strong { color: var(--ink-700); font-weight: 600; }
.audience .icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--white);
  color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}
.audience span { padding-top: .45rem; }

.intro-figure { position: relative; margin: 0; }
.intro-figure .frame { aspect-ratio: 4 / 4.4; }
.intro-figure .float-chip { left: -24px; bottom: 36px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(48px, 7vw, 88px); }
.section-lede { font-size: 1.15rem; color: var(--slate-600); max-width: 38rem; }
.section-head--light .section-lede { color: var(--slate-300); }

/* ---------- Services ---------- */
.services {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px);
}
.service + .service { border-top: 1px solid var(--line); }
.service:last-child { padding-bottom: 0; }
.service--flip .service-figure { order: 2; }

.service-figure { position: relative; margin: 0; }
.service-figure .frame { aspect-ratio: 16 / 11; }
.service-figure--tall .frame { aspect-ratio: 4 / 4.2; }
.service-figure--tall img { object-position: 50% 62%; }
.service-figure .float-chip { right: 20px; bottom: 20px; }
.service:hover .frame img { transform: scale(1.035); }

.service-num {
  display: inline-block;
  color: var(--teal-600);
  font-size: .85rem;
  padding: .3rem .7rem;
  border: 1px solid rgba(61, 119, 120, .35);
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.service-body > p { color: var(--slate-600); }
.service-body h3 { margin-bottom: .7rem; }

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  margin-top: 1.6rem;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .97rem;
  line-height: 1.45;
  color: var(--ink-700);
}
.checks .icon {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(61, 119, 120, .12);
  color: var(--teal-600);
  margin-top: -1px;
}

.callout {
  margin-top: 1.8rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.callout p { font-size: .97rem; color: var(--slate-600); }
.callout-title {
  color: var(--teal-600) !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem !important;
  margin-bottom: .5rem;
}

/* ---------- Approach ---------- */
.approach {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(61, 119, 120, .22), transparent 60%),
    var(--ink-900);
  color: var(--white);
  overflow: hidden;
}
.approach::before {
  /* dotted grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.approach .container { position: relative; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), border-color .4s, background-color .4s;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(151, 211, 202, .35);
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 1.6rem; right: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-300), transparent);
  opacity: .8;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(151, 211, 202, .4);
  color: var(--teal-300);
  font-size: .82rem;
  margin-bottom: 1.6rem;
}
.step h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.step p { color: var(--slate-300); font-size: .98rem; line-height: 1.6; }

/* ---------- Founder ---------- */
.founder { background: var(--paper); }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.founder-card {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 4.6;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(151, 211, 202, .45), transparent 55%),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
  color: var(--white);
  overflow: hidden;
  --logo-teal: var(--teal-300);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--photo { background: var(--paper-2); }
.portrait--photo img { object-position: 50% 22%; transition: transform 1.2s var(--ease); }
.founder-card:hover .portrait--photo img { transform: scale(1.03); }
.portrait--photo::after {
  /* soft brand tint at the base so the photo blends into the card */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(13, 26, 32, .18));
  pointer-events: none;
}
.portrait-mark {
  position: absolute;
  width: 78%;
  height: auto;
  aspect-ratio: 330 / 268;
  right: -22%;
  bottom: -10%;
  color: rgba(255, 255, 255, .06);
  --logo-teal: rgba(151, 211, 202, .18);
}
.portrait-initials {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 11vw, 8rem);
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, var(--white), var(--teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.founder-meta { padding: 1.5rem 1.6rem 1.7rem; }
.founder-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: .1rem; }
.founder-role { color: var(--slate-500); font-size: .95rem; margin-bottom: 1rem; }
.founder-links { display: grid; gap: .55rem; justify-items: start; }
.founder-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--teal-600); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.founder-link:hover { text-decoration: underline; }

.founder-lede {
  font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 38rem;
  margin-bottom: 2.6rem;
}

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--line), var(--teal-400));
}
.timeline li {
  position: relative;
  padding: 0 0 2.1rem 2.6rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--teal-500);
}
.timeline .tl-now::before {
  background: var(--teal-500);
  box-shadow: 0 0 0 6px rgba(79, 145, 142, .18);
}
.tl-org {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-700);
  margin-bottom: .35rem !important;
}
.timeline p:not(.tl-org) { color: var(--slate-600); max-width: 40rem; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(900px 600px at 0% 100%, rgba(61, 119, 120, .25), transparent 60%),
    var(--ink-900);
  color: var(--white);
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact-copy > p { color: var(--slate-300); font-size: 1.1rem; max-width: 30rem; }
.contact-list { margin-top: 2.2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-size: 1.05rem; }
.contact-list .icon {
  width: 44px; height: 44px; padding: 11px;
  border-radius: 50%;
  border: 1px solid rgba(151, 211, 202, .3);
  color: var(--teal-300);
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink-700);
  box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: .45rem;
  color: var(--ink-700);
}
.field .opt { font-weight: 400; color: var(--slate-400); margin-left: .25rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233d7778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
}
.field select:invalid { color: var(--slate-400); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--slate-300); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(79, 145, 142, .16);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c2503f; }

.form-card .btn-primary { margin-top: .4rem; padding-block: 1.05rem; }
.form-status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.is-success { color: var(--teal-700); }
.form-status.is-error { color: #b4432f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--slate-300);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.brand--light { color: var(--white); }
.footer-brand p { margin-top: 1rem; max-width: 18rem; color: var(--slate-400); }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { text-decoration: none; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-title {
  color: var(--teal-300);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem !important;
  margin-bottom: .4rem !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--slate-400);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.to-top:hover { color: var(--white); }

/* ---------- Simple pages (thanks, 404) ---------- */
.simple-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
}
.simple-page .hero-title { max-width: 16ch; margin-inline: auto; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.simple-page .hero-title em { margin-inline: auto; }
.simple-page .hero-lede { margin-inline: auto; }
.simple-page .hero-actions { justify-content: center; }
.simple-badge {
  width: 72px; height: 72px;
  margin: 0 auto 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(151, 211, 202, .4);
  color: var(--teal-300);
  background: rgba(151, 211, 202, .08);
}
.simple-badge .icon { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
/* Elements below the fold get .is-pending from JS, then lose it when scrolled into view. */
.reveal {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-pending { opacity: 0; transform: translateY(24px); }

/* Hero entrance runs in pure CSS on first paint. */
.hero .reveal { animation: rise 1s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .1s; }
.hero .reveal:nth-child(3) { animation-delay: .2s; }
.hero .reveal:nth-child(4) { animation-delay: .3s; }
.hero-foot.reveal { animation-delay: .45s; }
.hero-canvas { animation: fade 2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-block; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(8, 18, 23, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .site-nav a:not(.btn) { font-family: var(--font-serif); font-size: 2rem; color: var(--white); }
  .site-nav .nav-cta { margin-top: 1rem; font-size: 1rem; padding: .95rem 1.6rem; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .hero-pillars { grid-template-columns: 1fr; }
  .hero-pillars li { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }

  .intro-grid,
  .service,
  .founder-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .intro-figure { max-width: 560px; }
  .intro-figure .float-chip { left: 16px; bottom: 16px; }
  .service--flip .service-figure { order: 0; }
  .founder-card { position: relative; top: 0; max-width: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero:not(.simple-page) { min-height: auto; padding-top: calc(var(--header-h) + 56px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-chip { font-size: .82rem; padding: .55rem .85rem; }
  .service-figure .float-chip { right: 12px; bottom: 12px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal.is-pending { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
