/* Senva website styles. Brand: navy, cream, teal, mint; Cormorant Garamond + Outfit (self-hosted). */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #1F3A5F;
  --cream: #F6F1E7;
  --paper: #FFFDF9;
  --teal: #276B64;
  --teal-bright: #2E8C83;
  --mint: #9FD8D1;
  --pale: #E3EFEC;
  --pale-line: #C5DAD5;
  --line: #DCD3C3;
  --ink: #1C2733;
  --muted: #4A5562;
  --on-navy: #D9E2EC;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--sans); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--paper); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Buttons */
.button { display: inline-block; border: 0; border-radius: 999px; padding: 15px 28px; font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; background: var(--teal); color: #FFFFFF; }
.button:hover { background: var(--navy); color: #FFFFFF; }
.button-mint { background: var(--mint); color: var(--navy); }
.button-mint:hover { background: #BFE6E0; color: var(--navy); }
.button-quiet { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); padding: 13px 24px; }
.button-quiet:hover { background: var(--teal); color: #FFFFFF; }

/* Site header: stays at the top while you scroll */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font: 600 31px/1 var(--serif); letter-spacing: 0.06em; }
.site-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--on-navy); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--paper); }
.site-nav a.is-current { color: var(--mint); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-nav .nav-cta { margin-left: 12px; padding: 9px 18px; color: var(--paper); border: 1px solid rgba(246, 241, 231, 0.45); }
.site-nav .nav-cta:hover { background: rgba(246, 241, 231, 0.1); color: var(--paper); }
.nav-toggle { display: none; }

/* Hero (navy) */
.hero { background: var(--navy); color: var(--paper); padding: 40px 0 104px; }
.hero-title { font: 600 clamp(46px, 6.6vw, 92px)/1 var(--serif); color: var(--mint); letter-spacing: -0.01em; padding-top: 24px; }
.hero-title span { display: block; text-wrap: balance; }
.hero-title span:nth-child(2) { padding-left: 0.6em; }
.hero-title span:nth-child(3) { padding-left: 1.2em; }
.hero-sub { max-width: 540px; margin: 44px 0 0 auto; }
.intro { color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.launch-note { color: var(--on-navy); font-size: 16px; }

/* Sections */
.section { padding: 112px 0; }
.section.follow { padding-top: 24px; }
.section-title { font: 600 clamp(36px, 4.6vw, 56px)/1.08 var(--serif); color: var(--navy); max-width: 17em; text-wrap: balance; }
.section-lede { color: var(--muted); max-width: 36em; margin-top: 18px; }

/* How it works */
.steps { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps li { border-top: 2px solid var(--navy); padding-top: 18px; }
.step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.step-num { font: 600 60px/1 var(--serif); color: var(--teal); font-variant-numeric: lining-nums; }
.step-icon { width: 52px; height: 52px; flex: none; color: var(--navy); }
.step-icon path, .step-icon circle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step-icon .accent { stroke: var(--teal-bright); stroke-width: 2.2; }
.step-icon .dot { fill: var(--teal-bright); stroke: none; }
.steps h3 { font: 600 21px/1.3 var(--sans); color: var(--navy); margin-top: 14px; }
.steps p { color: var(--muted); font-size: 17px; margin-top: 8px; }

/* Epigenetic, not genetic (science summary) */
.band { background: var(--pale); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split-lede { font-size: 20px; line-height: 1.6; max-width: 26em; margin-top: 24px; }
.findings { display: grid; gap: 28px; }
.finding { border-top: 1px solid var(--pale-line); padding-top: 18px; }
.finding h3 { font: 600 27px/1.15 var(--serif); color: var(--navy); }
.finding p { color: var(--muted); margin-top: 8px; }
.findings-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; border-top: 1px solid var(--pale-line); padding-top: 24px; }
@media (min-width: 961px) { .split > .split-head { position: sticky; top: calc(var(--header-h) + 40px); } }

/* Our own model */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; margin-top: 56px; }
.point { border-top: 1px solid var(--line); padding-top: 20px; }
.point h3 { font: 600 30px/1.15 var(--serif); color: var(--navy); }
.point p { color: var(--muted); margin-top: 8px; max-width: 30em; }

/* Where we are */
.timeline { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline li { position: relative; padding: 30px 28px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--teal-bright); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-bright); }
.timeline li.next::before { background: #B9D3CE; }
.timeline li:last-child::before { display: none; }
.timeline li.future::after { background: var(--cream); border: 2px solid var(--teal-bright); }
.timeline time { display: block; font-weight: 600; color: var(--navy); }
.timeline p { color: var(--muted); font-size: 17px; margin-top: 4px; max-width: 15em; }

/* News */
.news { margin-top: 48px; max-width: 880px; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--teal); font-weight: 600; font-size: 16px; padding-top: 2px; }
.news-item h3 { font: 600 21px/1.3 var(--sans); color: var(--navy); }
.news-item p { color: var(--muted); margin-top: 6px; max-width: 38em; }
.news-item a { font-weight: 500; }
.news-photo { margin-top: 18px; max-width: 560px; }
.news-photo img { width: 100%; border-radius: 14px; background: var(--line); }
.news-photo figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; margin-top: 52px; }
.member { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 24px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.member img { width: 144px; height: 144px; border-radius: 50%; background: var(--line); }
.member h3 { font: 600 30px/1.15 var(--serif); color: var(--navy); }
.member-role { color: var(--teal); font-weight: 500; font-size: 16px; margin-top: 6px; }
.member-bio { color: var(--muted); margin-top: 10px; }

/* Questions */
.faq { margin-top: 44px; max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 44px 20px 0; font-weight: 500; font-size: 19px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--sans); color: var(--teal); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 40em; }

/* Waiting list (navy) */
.signup { background: var(--navy); color: var(--paper); }
.signup .section-title { color: var(--paper); }
.signup .section-lede { color: var(--on-navy); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.signup-card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 32px; }
.field { display: block; font-weight: 500; font-size: 16px; }
.field + .field { margin-top: 16px; }
.optional { color: var(--muted); font-weight: 400; }
.field input { display: block; width: 100%; margin-top: 6px; font: 400 17px/1.4 var(--sans); color: var(--ink); background: #FFFFFF; border: 1px solid #BFB4A2; border-radius: 10px; padding: 12px 14px; }
.field input:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--teal); }
.signup-card .button { width: 100%; margin-top: 22px; }
.signup-card .button:disabled { opacity: 0.7; cursor: default; }
.form-status { margin-top: 14px; font-size: 15px; }
.form-status.error { color: #A2372C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks h3 { font: 600 34px/1.15 var(--serif); color: var(--navy); }
.thanks p { color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { padding: 76px 0 44px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer h2 { font: 600 16px/1.4 var(--sans); color: var(--navy); }
.footer p, .footer li { font-size: 16px; color: var(--muted); }
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: 6px; }
.footer h2 + ul { margin-top: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-brand span { font: 600 28px/1 var(--serif); letter-spacing: 0.06em; }
.footer-brand + p { margin-top: 14px; max-width: 24em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Inner pages: science, privacy, not found */
.page-hero { background: var(--navy); color: var(--paper); padding: 48px 0 76px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--on-navy); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--on-navy); }
.crumbs a:hover { color: var(--paper); }
.page-hero h1 { font: 600 clamp(44px, 6vw, 80px)/1.02 var(--serif); color: var(--mint); letter-spacing: -0.01em; max-width: 13em; margin-top: 22px; text-wrap: balance; }
.page-hero .lede { color: var(--on-navy); font-size: 20px; max-width: 34em; margin-top: 26px; }
.page-hero .byline { color: var(--on-navy); font-size: 15px; margin-top: 18px; }
.page-hero .actions { margin-top: 32px; }

.article { padding: 64px 0 32px; }
.article-body { max-width: 720px; }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0 22px; }
.toc h2 { font: 600 16px/1.4 var(--sans); color: var(--navy); }
.toc ol { margin-top: 10px; padding-left: 1.3em; columns: 2; column-gap: 40px; font-size: 16px; }
.toc li { break-inside: avoid; }
.toc li + li { margin-top: 4px; }
.article-body > h2 { font: 600 clamp(30px, 3.4vw, 40px)/1.15 var(--serif); color: var(--navy); margin-top: 60px; text-wrap: balance; }
.article-body > p { margin-top: 16px; }
.article-body > h2 + p { margin-top: 18px; }

.figure { margin-top: 44px; width: min(1072px, calc(100vw - 48px)); }
.figure-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; }
.panel h3 { font: 600 17px/1.35 var(--sans); color: var(--navy); }
.panel svg { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.figure figcaption { font-size: 15px; color: var(--muted); max-width: 52em; margin-top: 14px; }
.fig-muted { font-family: var(--sans); font-size: 15px; fill: var(--muted); }
.fig-strong { font-family: var(--sans); font-size: 16px; font-weight: 600; fill: var(--ink); }
.fig-big { font-family: var(--serif); font-size: 42px; font-weight: 600; fill: var(--navy); }
.fig-dna { font-family: var(--sans); font-size: 18px; font-weight: 500; fill: var(--navy); }

.article-cta { margin-top: 64px; background: var(--navy); color: var(--paper); border-radius: 22px; padding: 36px 36px 38px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; max-width: 1072px; }
.article-cta p { font: 600 clamp(26px, 3vw, 34px)/1.15 var(--serif); color: var(--mint); max-width: 18em; }

.references { margin-top: 72px; max-width: 760px; border-top: 1px solid var(--line); padding-top: 28px; }
.references h2 { font: 600 30px/1.2 var(--serif); color: var(--navy); }
.references ol { margin-top: 14px; padding-left: 1.4em; font-size: 16px; color: var(--muted); }
.references li { margin-top: 10px; padding-left: 4px; }
.references li::marker { color: var(--teal); font-weight: 600; }
.references a { word-break: break-word; }

.prose { max-width: 720px; padding: 64px 0 40px; }
.prose h2 { font: 600 28px/1.2 var(--serif); color: var(--navy); margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin-top: 8px; }
.prose li { margin-top: 6px; }

/* Responsive */
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--paper); border: 1px solid rgba(246, 241, 231, 0.45); border-radius: 999px; padding: 10px 16px; font: 500 16px/1 var(--sans); cursor: pointer; }
  .nav-toggle:hover { background: rgba(246, 241, 231, 0.1); }
  .nav-toggle-icon { position: relative; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .nav-toggle-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--navy); border-top: 1px solid rgba(246, 241, 231, 0.14); padding: 4px 24px 24px; box-shadow: 0 20px 32px rgba(15, 30, 50, 0.28); }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; max-width: 1072px; margin: 0 auto; }
  .js .site-nav a { padding: 14px 2px; border-radius: 0; font-size: 19px; border-bottom: 1px solid rgba(246, 241, 231, 0.14); }
  .js .site-nav .nav-cta { margin: 20px 0 0; padding: 14px 18px; text-align: center; border: 0; border-radius: 999px; background: var(--mint); color: var(--navy); }
  .js .site-nav .nav-cta:hover { background: #BFE6E0; color: var(--navy); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-bar { flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .split, .signup-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-sub { margin-left: 0; }
  .steps, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .team { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .figure-panels { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .js .site-nav { padding: 4px 16px 20px; }
  .brand svg { width: 32px; height: 32px; }
  .brand span { font-size: 28px; }
  .hero { padding: 28px 0 72px; }
  .hero-title { padding-top: 12px; }
  .hero-title span:nth-child(2), .hero-title span:nth-child(3) { padding-left: 0; }
  .hero-sub { margin-top: 32px; }
  .section { padding: 80px 0; }
  .section.follow { padding-top: 16px; }
  .steps, .points, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .step-icon { width: 46px; height: 46px; }
  .split-lede { font-size: 18px; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .timeline li { padding: 0 0 28px 34px; }
  .timeline li::before { top: 14px; bottom: -2px; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline li::after { top: 4px; }
  .timeline p { max-width: none; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .member { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
  .member img { width: 96px; height: 96px; }
  .member h3 { font-size: 27px; }
  .signup-card { padding: 24px 20px; }
  .page-hero { padding: 32px 0 56px; }
  .page-hero .lede { font-size: 18px; }
  .article { padding-top: 44px; }
  .toc ol { columns: 1; }
  .figure { width: 100%; }
  .panel { padding: 16px 14px 12px; }
  .article-cta { padding: 28px 22px 30px; }
}
