/* EntangleBio site. House style from the decks (brief, Oct 2026).
   One scrolling page. Sections are split by alternating bands: ink, lavender, white, violet. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-ink: #231d46;
  --brand-lavender: #f5f3fc;
  --brand-cream: #faf8f3;
  --brand-stone: #e9e4d8;
  --brand-violet: #6d28d9;
  --brand-violet-2: #7c3aed;
  --brand-teal: #1aa5b8;
  --brand-coral: #eb5564;

  --surface: #faf8f3;
  --card: #ffffff;
  --text: #231d46;
  --text-muted: #615c75;
  --accent: #6d28d9;
  --accent-hover: #7c3aed;
  --on-accent: #ffffff;
  --line: #e4ded2;
  --focus: #6d28d9;

  --font-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-max: 1200px;
  --text-max: 640px;
  --gutter: 40px;
  --section: 160px;
  --header-h: 88px;
  --radius-pill: 999px;
  color-scheme: light;
}
[data-theme="white"] { --surface: #ffffff; --card: #faf8f3; }
[data-theme="ink"] {
  --surface: #231d46;
  --card: #2c2554;
  --text: #faf8f3;
  --text-muted: #b3adc9;
  --accent: #b9a4f5;
  --accent-hover: #cdbdf8;
  --on-accent: #231d46;
  --line: #3d3668;
  --focus: #b9a4f5;
}
[data-theme="violet"] {
  --surface: #4a2f9e;
  --card: #5638ad;
  --text: #ffffff;
  --text-muted: #ddd5f5;
  --accent: #d9ccfb;
  --accent-hover: #ffffff;
  --on-accent: #3b1a85;
  --line: rgba(255, 255, 255, 0.22);
  --focus: #ffffff;
}
@media (max-width: 720px) {
  :root { --gutter: 24px; --section: 96px; --header-h: 116px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--brand-cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 16px; z-index: 30; }
[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--gutter); }
.band { background: var(--surface); color: var(--text); position: relative; }
.section { padding-block: calc(var(--section) / 2); }
.section--first { padding-top: 64px; }

/* Type */
h1, h2, h3, p { margin: 0; }
.display, .h1, .h2 { font-weight: 700; color: var(--text); text-wrap: balance; }
.display { font-size: 72px; line-height: 76px; letter-spacing: -0.025em; max-width: 860px; }
.h1 { font-size: 52px; line-height: 58px; letter-spacing: -0.02em; max-width: 920px; }
.h2 { font-size: 40px; line-height: 48px; letter-spacing: -0.015em; max-width: 800px; }
.h3 { font-size: 22px; line-height: 30px; font-weight: 600; }
.hl { color: var(--accent); font-style: normal; }
[data-theme="white"] .hl, :root .band:not([data-theme]) .hl { color: var(--brand-violet); }
.lead { font-size: 20px; line-height: 30px; max-width: var(--text-max); }
.body { max-width: var(--text-max); }
.body p + p { margin-top: 16px; }
.muted { color: var(--text-muted); }
.small { font-size: 15px; line-height: 22px; }
.label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.stack { display: grid; gap: 24px; align-content: start; }
.stack--tight { gap: 12px; }
.stack--loose { gap: 56px; }
@media (max-width: 720px) {
  .display { font-size: 42px; line-height: 46px; }
  .h1 { font-size: 34px; line-height: 40px; }
  .h2 { font-size: 29px; line-height: 35px; }
  .h3 { font-size: 20px; line-height: 28px; }
  .lead { font-size: 18px; line-height: 28px; }
  .stack--loose { gap: 36px; }
}

/* Section kicker: label on a hairline that runs the full width */
.kicker { display: flex; align-items: center; gap: 16px; }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker__n { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 16px/20px var(--font-sans);
  padding: 14px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.band:not([data-theme]) .btn--primary, [data-theme="white"] .btn--primary { background: var(--brand-violet); color: #fff; }
.header .btn--primary { background: #b6a5f0; color: var(--brand-ink); }
.header .btn--primary:hover { background: #cdbdf8; color: var(--brand-ink); }
.band:not([data-theme]) .btn--primary:hover, [data-theme="white"] .btn--primary:hover { background: var(--brand-violet-2); color: #fff; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Header: sticky, logo left, four anchor links right */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--brand-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--brand-violet); }
.nav .btn { padding: 10px 20px; font-size: 15px; }
@media (max-width: 760px) {
  .header__inner { flex-wrap: wrap; padding-block: 14px; row-gap: 10px; }
  .header__logo img { height: 34px; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .nav a:not(.btn) { font-size: 15px; }
  .nav .btn { padding: 8px 14px; font-size: 14px; }
}

/* Hero: ink band with a live network */
.hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 80px; }
.hero__grid > * { min-width: 0; }
.hero__viz { position: relative; height: 520px; }
.hero__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__legend { position: absolute; left: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.hero__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: 56px 40px; gap: 24px; }
  .hero__viz { height: 320px; }
}

/* Statement screens */
.statement { padding-block: calc(var(--section) * 0.75); }
.statement .h1 { max-width: 980px; }

/* Two statements side by side, split by a hairline */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair > .h2 { max-width: none; padding-right: 40px; }
.pair > .h2 + .h2 { padding: 0 0 0 40px; border-left: 1px solid var(--line); }
@media (max-width: 820px) {
  .pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pair > .h2 { padding-right: 0; }
  .pair > .h2 + .h2 { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Stats panel with glyphs */
.panel { background: var(--card); border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: grid; gap: 10px; min-width: 0; padding: 32px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-size: 60px; line-height: 64px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.stat__cap { font-size: 15px; line-height: 22px; color: var(--brand-violet); font-weight: 600; }
.glyph { width: 56px; height: 40px; }
.glyph line { stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; }
.glyph .n { fill: var(--brand-violet); }
.glyph .t { fill: var(--brand-teal); }
.glyph .c { fill: var(--brand-coral); }
.glyph .i { fill: var(--brand-ink); }
@media (max-width: 820px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 24px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat__num { font-size: 44px; line-height: 48px; }
}

/* Cards: square corners, no shadow, hairline on hover */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); padding: 32px; display: grid; gap: 10px; align-content: start; min-width: 0; border: 1px solid transparent; border-top: 3px solid var(--line); transition: border-color .2s ease; }
.card:hover { border-color: var(--line); border-top-color: var(--brand-violet); }
.card .muted { font-size: 16px; line-height: 24px; }
.card__n { font-size: 14px; font-weight: 700; color: var(--brand-violet); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); } .card { padding: 24px; } }

/* Progress track */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track li { position: relative; padding: 36px 24px 0 0; min-width: 0; font-size: 16px; line-height: 24px; }
.track li::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); }
.track li.done::before { background: var(--accent); }
.track .dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.track li.done .dot { background: var(--accent); border-color: var(--accent); }
.track li.now .dot { border-color: var(--brand-teal); background: var(--brand-teal); }
.track li.now .dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--brand-teal); animation: ping 2.4s ease-out infinite; }
.track b { display: block; font-weight: 600; color: var(--text); }
.track span { color: var(--text-muted); font-size: 14px; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 820px) {
  .track { grid-template-columns: minmax(0, 1fr); }
  .track li { padding: 0 0 24px 40px; }
  .track li::before { left: 9px; right: auto; top: 20px; bottom: 0; width: 2px; height: auto; }
  .track li:last-child::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .track li.now .dot::after { animation: none; opacity: .5; } }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 80px; }
.two > * { min-width: 0; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* News: dated links, hairlines */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.news time { color: var(--text-muted); font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .news li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* People: two rows of four, black and white, colour on hover */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { display: grid; grid-template-rows: auto auto auto 1fr; grid-row: span 4; min-width: 0; background: var(--card); }
@supports (grid-template-rows: subgrid) { .person { grid-template-rows: subgrid; row-gap: 0; } }
.person picture { display: block; }
.person__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--brand-stone); }
.person__photo--empty { display: grid; place-items: center; color: var(--text-muted); font-size: 13px; line-height: 18px; text-align: center; padding: 8px; background: var(--brand-stone); }
.person__name { padding: 18px 16px 2px; font-size: 18px; line-height: 25px; font-weight: 600; letter-spacing: -0.01em; }
.person__role { padding: 0 16px; font-size: 14px; line-height: 20px; color: var(--brand-violet); font-weight: 600; }
.person__facts { list-style: none; margin: 12px 16px 24px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.person__facts li { position: relative; padding-left: 14px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.person__facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-violet); }
/* Four across: every name stays on one line, shrinking slightly on narrower laptop screens */
@media (min-width: 1100px) { .person__name { white-space: nowrap; font-size: clamp(14px, 1.25vw, 18px); } }
@media (min-width: 1100px) { .person__role { white-space: nowrap; font-size: 12px; } }
@media (min-width: 1200px) { .person__role { font-size: 13px; } }

/* Split: text left, visual right */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Story: the 43% / 57% dot grid */
.story { align-items: center; }
.bigq { font-size: 52px; line-height: 58px; font-weight: 700; letter-spacing: -0.02em; color: #a83246; }
.dots { width: 100%; max-width: 520px; height: auto; display: block; margin-left: auto; }
@media (max-width: 900px) { .dots { margin-left: 0; } }
.dots .yes { fill: #c4b3f7; }
.dots .no { fill: #a83246; }
@media (max-width: 720px) { .bigq { font-size: 36px; line-height: 42px; } }

/* Approach steps: numbered, with an arrow-free flow line on top */
.cards--steps .card { border-top-color: var(--brand-violet); }
.cards--steps .card:hover { border-color: transparent; border-top-color: var(--brand-violet); }

/* Approach close: statement, then three outcomes under a purple line */
.statement-line { font-size: 28px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; max-width: 900px; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--brand-violet); }
.outcomes > div { padding: 20px 32px 0 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.outcomes > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.outcomes .h3 { font-size: 20px; line-height: 28px; color: var(--brand-violet); }
.outcomes .muted { font-size: 16px; line-height: 24px; }
@media (max-width: 820px) {
  .statement-line { font-size: 22px; line-height: 30px; }
  .outcomes { grid-template-columns: minmax(0, 1fr); }
  .outcomes > div, .outcomes > div + div { padding: 16px 0; border-left: 0; }
  .outcomes > div + div { border-top: 1px solid var(--line); }
}

/* Classical today / quantum as complexity grows */
.cq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cq__col { padding: 24px 40px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cq__col + .cq__col { padding-left: 40px; border-left: 1px solid var(--line); }
.cq .label { color: var(--accent); }
@media (max-width: 820px) {
  .cq { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .cq__col, .cq__col + .cq__col { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Hamiltonian line and classical -> quantum flow */
.ham { max-width: 760px; }
.ham__term { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.cq--flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.cq--flow .cq__col + .cq__col, .cq--flow .cq__arrow + .cq__col { border-left: 0; padding-left: 40px; }
.cq__arrow { align-self: center; padding: 24px 0 0; font-size: 32px; line-height: 1; color: var(--accent); }
@media (max-width: 820px) {
  .ham__term { font-size: 24px; line-height: 30px; }
  .cq--flow { grid-template-columns: minmax(0, 1fr); }
  .cq--flow .cq__arrow + .cq__col { padding-left: 0; }
  .cq__arrow { padding: 4px 0; transform: rotate(90deg); justify-self: start; }
}

/* Team: four founders and advisors, then five team members */
.team-sub { margin-top: 24px; }
.people--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 1100px) {
  .people--5 .person__name { font-size: clamp(13px, 1.02vw, 15px); padding-inline: 14px; }
  .people--5 .person__role { white-space: normal; padding-inline: 14px; }
  .people--5 .person__facts { margin-inline: 14px; }
}
@media (max-width: 1099px) { .people--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .people, .people--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { gap: 12px; } .person__name { font-size: 15px; line-height: 21px; } .person__name { padding: 12px 12px 2px; } .person__role { padding: 0 12px; } .person__facts { margin: 10px 12px 16px; } .person__facts li { font-size: 13px; line-height: 18px; } }

/* Collaborate */
.cta { padding-block: 120px; display: grid; gap: 48px; }
.who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.who li { padding-block: 18px; border-top: 1px solid var(--line); min-width: 0; }
.who strong { display: block; font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.who span { color: var(--text-muted); font-size: 16px; line-height: 24px; }
.btn--light { background: #ffffff; color: var(--brand-violet); }
.btn--light:hover { background: var(--brand-cream); color: var(--brand-violet); }
.cta .link { color: #fff; }
@media (max-width: 820px) { .who { grid-template-columns: minmax(0, 1fr); } .cta { padding-block: 80px; } }

/* Contact block: two clearly labelled ways to email us */
.contact { display: grid; gap: 16px; }
.contact__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1000px; }
.contact__option { background: var(--card); padding: 28px 32px 32px; display: grid; gap: 12px; align-content: start; justify-items: start; border-top: 3px solid rgba(255, 255, 255, 0.35); }
.contact__step { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-violet); font-weight: 700; font-size: 16px; line-height: 1; }
.contact__note { font-size: 16px; line-height: 24px; color: var(--text-muted); max-width: 420px; }
.contact__value { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact .btn { margin-top: 4px; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }
.contact__status { min-height: 24px; font-size: 16px; line-height: 24px; font-weight: 600; color: #fff; }
@media (min-width: 1100px) { .contact__status { white-space: nowrap; } }
@media (max-width: 820px) {
  .contact__options { grid-template-columns: minmax(0, 1fr); }
  .contact__option { padding: 24px; }
  .contact__value { font-size: 20px; line-height: 28px; }
}

/* Reveal on scroll (only when JavaScript runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Footer */
.footer { padding-block: 48px 40px; display: grid; gap: 32px; }
.footer-band { border-top: 1px solid #ebe6db; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.footer__logo img { height: 40px; width: auto; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--accent); }
.footer__base { border-top: 1px solid var(--line); padding-top: 24px; font-size: 15px; color: var(--text-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Legal pages */
.legal { max-width: var(--text-max); display: grid; gap: 16px; }
.legal h2 { font-size: 22px; line-height: 30px; font-weight: 600; margin-top: 24px; }
.legal ul { margin: 0; padding-left: 20px; }
.draft-note { background: var(--card); padding: 16px 20px; font-size: 15px; }
