/* Nanosync Biotech
   Quiet luxury: serif titles, clean sans text, generous white space, brand greens. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2-variations"), url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic.woff2") format("woff2-variations"), url("../fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2-variations"), url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --forest: #0B3D2E;      /* primary brand green: titles, buttons */
  --leaf:   #1A7F45;      /* readable green for links and small accents */
  --signal: #2ECC71;      /* secondary brand green: used sparingly, never for text on white */
  --paper:  #FFFFFF;
  --stone:  #F3F6F4;      /* faint green-white for quiet bands */
  --ink:    #1E2B25;
  --muted:  #5E6E67;
  --hair:   #DCE4DF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-xl: clamp(7rem, 16vw, 14rem);
  --space-l:  clamp(5rem, 10vw, 9rem);
  --space-m:  clamp(3rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--forest);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.8vw, 5.25rem); line-height: 1.08; letter-spacing: -.012em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.01em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.25; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 1.1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--forest); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }

/* Small tracked capitals: reserved for navigation, buttons and datelines */
.caps {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 5.5rem; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 54px; }
.wordmark {
  font-family: var(--sans); font-weight: 400; font-size: .95rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--forest);
}
.wordmark b { font-weight: 400; color: var(--leaf); }

.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .7em; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; color: var(--forest); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--hair);
    padding: 1rem var(--gutter) 2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--hair); }
  .nav a.btn { margin-top: 1.5rem; border-bottom: 1px solid var(--forest); width: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .9rem 2.1rem;
  background: var(--forest); color: #fff; border: 1px solid var(--forest);
  text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: #fff; color: var(--forest); }
.btn--line { background: transparent; color: var(--forest); }
.btn--line:hover { background: var(--forest); color: #fff; }
.nav .btn { min-height: 2.75rem; padding: .6rem 1.4rem; color: #fff; }
.nav .btn:hover { color: var(--forest); }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--forest);
  border-bottom: 1px solid var(--forest); padding-bottom: .35rem;
}
.text-link:hover { color: var(--leaf); border-color: var(--leaf); }

/* ---------- Page openers ---------- */
.hero {
  min-height: calc(100vh - 5.5rem); min-height: calc(100svh - 5.5rem);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0; text-align: center;
}
.hero .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.hero h1 { font-size: clamp(2.6rem, min(6.4vw, 11vh), 6rem); line-height: 1.05; }
.hero .sub {
  margin: clamp(1.5rem, 3.5vh, 2.5rem) auto 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.4;
  color: var(--leaf); max-width: none; white-space: nowrap;
}
@media (max-width: 900px) { .hero .sub { white-space: normal; text-wrap: balance; max-width: 30rem; } }
.hero .lede {
  margin: clamp(1.25rem, 3vh, 2rem) auto 0; max-width: none;
  font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 2.1; color: var(--muted);
}
@media (max-width: 640px) { .hero .lede br { display: none; } .hero .lede { line-height: 1.8; max-width: 30rem; } }
.hero .actions { margin-top: clamp(1.75rem, 4.5vh, 3rem); }
.hero-italic { font-style: italic; }

.page-head { padding: var(--space-l) 0 var(--space-m); }
.page-head h1 { max-width: 16ch; }
.page-head--center { text-align: center; }
.page-head--center h1 { max-width: none; }
.page-head--center .intro { margin-inline: auto; max-width: 44rem; }
.page-head .intro { margin-top: 2.25rem; font-size: 1.2rem; line-height: 1.7; color: var(--ink); max-width: 40rem; }

.section { padding: var(--space-l) 0; }
.section--stone { background: var(--stone); }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* ---------- Home: three principles ---------- */
.principles {
  list-style: none; margin: 0 auto; padding: 0; max-width: 72rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 4rem); text-align: center;
}
.principles li { display: flex; flex-direction: column; align-items: center; }
.principles .num { font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1; color: var(--signal); }
.principles h2 { margin-top: 1.25rem; font-size: clamp(1.2rem, 1.75vw, 1.6rem); line-height: 1.3; white-space: nowrap; }
.principles p { margin-top: 1rem; color: var(--muted); max-width: 22rem; }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .principles h2 { white-space: normal; font-size: 1.6rem; }
}

.closing { padding: clamp(4.5rem, 9vw, 7.5rem) 0; text-align: center; }
.section:not(.section--stone) + .closing { padding-top: 0; }
.closing blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.15; color: var(--forest);
}
.closing .actions { margin-top: 3rem; }

/* ---------- Approach ---------- */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.steps li {
  display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: baseline;
  padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--hair);
}
.steps .num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1; color: var(--signal); }
.steps h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.steps p { color: var(--muted); }
@media (max-width: 860px) {
  .steps li { grid-template-columns: 4rem 1fr; }
  .steps p { grid-column: 2; }
}
.footnote-line { margin-top: var(--space-m); color: var(--muted); font-size: 1.05rem; }
.measure { max-width: 64rem; }
.measure .intro, .measure .footnote-line { max-width: none; }
.measure h1 { max-width: none; }

/* ---------- Approach cycle ---------- */
.cycle {
  list-style: none; margin: 0 auto; padding: 0; max-width: 72rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem); text-align: center; position: relative;
}
.cycle::before {               /* thread connecting the four icons */
  content: ""; position: absolute; top: 2.25rem; left: 12.5%; right: 12.5%;
  border-top: 1px solid var(--hair);
}
.cycle li { position: relative; display: flex; flex-direction: column; align-items: center; }
.cycle-icon {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--forest); position: relative; z-index: 1;
}
.cycle-icon svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: var(--forest); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cycle-num { margin-top: 1.5rem; font-family: var(--serif); font-size: 1rem; color: var(--leaf); }
.cycle h2 { margin-top: .35rem; font-size: clamp(1.45rem, 2vw, 1.85rem); }
.cycle p { margin-top: .75rem; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 15rem; }
.cycle-return {
  position: relative; margin: 2.5rem auto 0; max-width: 72rem;
  height: 2.25rem; border: 1px solid var(--hair); border-top: 0;
  border-radius: 0 0 1.5rem 1.5rem; width: 75%;
}
.cycle-return::before {        /* arrow head pointing back up to step 1 */
  content: ""; position: absolute; left: -5px; top: -2px; width: 9px; height: 9px;
  border-left: 1px solid var(--leaf); border-top: 1px solid var(--leaf); transform: rotate(45deg);
}
.cycle-return span {
  position: absolute; left: 50%; bottom: -.8rem; transform: translateX(-50%);
  background: var(--paper); padding: 0 1rem; white-space: nowrap;
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf);
}
.footnote-line.center { margin-inline: auto; text-align: center; max-width: 46rem; text-wrap: balance; margin-top: clamp(4rem, 8vw, 6rem); }
@media (max-width: 860px) {
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .cycle::before { display: none; }
  .cycle-return { width: auto; height: auto; border: 0; margin-top: 2.5rem; text-align: center; }
  .cycle-return::before { display: none; }
  .cycle-return span { position: static; transform: none; white-space: normal; }
}

/* ---------- Team ---------- */
.team { list-style: none; margin: 0 auto; padding: 0; max-width: 60rem; border-top: 1px solid var(--hair); }
.team li {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.25rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--hair);
}
.team img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--stone); }
.team h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.team .role { margin-top: .6rem; color: var(--leaf); }
.team .bio { margin-top: 1.1rem; font-size: 1.12rem; line-height: 1.7; color: var(--ink); max-width: 34rem; }
@media (max-width: 640px) {
  .team li { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .team h2 { font-size: 1.35rem; }
  .team .role { font-size: .7rem; }
  .team .bio { font-size: 1rem; margin-top: .75rem; }
}

/* ---------- Press ---------- */
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.press-list li { border-bottom: 1px solid var(--hair); }
.press-list a {
  display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
  gap: clamp(1rem, 4vw, 4rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-decoration: none; color: inherit;
}
.press-list .date { color: var(--muted); padding-top: .55rem; }
.press-list h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); transition: color .2s ease; }
.press-list p { margin-top: 1rem; color: var(--muted); }
.press-list .more { display: inline-block; margin-top: 1.5rem; }
.press-list a:hover h2 { color: var(--leaf); }
@media (max-width: 700px) { .press-list a { grid-template-columns: 1fr; gap: .5rem; } .press-list .date { padding-top: 0; } }
.press-contact { margin-top: var(--space-m); color: var(--muted); }

.article { padding: var(--space-l) 0 var(--space-xl); }
.article .wrap { max-width: 44rem; }
.article .dateline { color: var(--muted); }
.article h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-top: 1.5rem; }
.article .standfirst { margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.article .body { margin-top: 3rem; }
.article .body p { font-size: 1.1rem; line-height: 1.85; }
.article blockquote {
  margin: 3rem 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--signal);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--forest);
}
.article blockquote cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); }
.article .media { margin: 3rem 0; }
.article .media img, .article .media video { display: block; width: 100%; height: auto; background: var(--stone); }
.article .media--video video { max-width: 22rem; margin-inline: auto; }
.article .media figcaption { margin-top: .9rem; font-size: .92rem; color: var(--muted); text-align: center; }
.article .about { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--hair); font-size: .98rem; color: var(--muted); }
.article .about h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.back { display: inline-block; margin-bottom: 2.5rem; }

/* ---------- Early access ---------- */
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; padding: var(--space-l) 0 var(--space-xl); }
.apply .intro { margin-top: 2.25rem; font-size: 1.15rem; }
.apply .aside { margin-top: 2rem; color: var(--muted); font-size: 1rem; }
@media (max-width: 880px) { .apply { grid-template-columns: 1fr; } }

.form .field { display: grid; gap: .6rem; margin-bottom: 2rem; }
.form label.lbl { font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); }
.form input[type="text"], .form input[type="email"], .form select {
  width: 100%; min-height: 3rem;
  padding: .5rem 0; border: 0; border-bottom: 1px solid #9FB3A9; border-radius: 0;
  background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.form input:focus-visible, .form select:focus-visible { outline: none; border-bottom: 2px solid var(--forest); }
.form [aria-invalid="true"] { border-bottom-color: #B42318; }
.error { color: #B42318; font-size: .92rem; }
.consent { display: grid; grid-template-columns: 1.3rem 1fr; gap: .9rem; align-items: start; font-size: .95rem; line-height: 1.6; color: var(--muted); margin: .5rem 0 .75rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin: .25rem 0 0; accent-color: var(--forest); }
.consent-error { display: block; margin-bottom: 1rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 1.5rem; width: 100%; }
.form-status { margin-top: 1.25rem; }
.form-status.is-error { color: #B42318; }
.form-done h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.form-done p { margin-top: 1.25rem; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Newsletter ---------- */
.letter { padding: var(--space-l) 0; background: var(--stone); }
.letter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.letter h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.letter h2 .with { font-style: italic; color: var(--leaf); }
.letter .lead { margin-top: 1.25rem; color: var(--muted); }
.letter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1.5rem; align-items: end; }
.letter-form label.lbl { grid-column: 1 / -1; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); margin-bottom: .4rem; }
.letter-form input[type="email"] { width: 100%; min-height: 3.25rem; padding: .5rem 0; border: 0; border-bottom: 1px solid #9FB3A9; border-radius: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink); }
.letter-form input[type="email"]:focus-visible { outline: none; border-bottom: 2px solid var(--forest); }
.letter-form .small { grid-column: 1 / -1; margin-top: 1rem; font-size: .88rem; color: var(--muted); max-width: none; }
.letter-form .form-status, .letter-form .error { grid-column: 1 / -1; margin-top: .75rem; }
.letter-embed { min-width: 0; }
.letter-embed .small { margin-top: 1rem; font-size: .88rem; color: var(--muted); max-width: none; }
.letter-done { color: var(--forest); font-family: var(--serif); font-size: 1.4rem; }
@media (max-width: 760px) { .letter .wrap { grid-template-columns: 1fr; } .letter-form { grid-template-columns: 1fr; } .letter-form .btn { margin-top: 1.25rem; } }
.optin { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: var(--space-m) 0 3rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer .tag { margin-top: 1.25rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--forest); }
.site-footer .note { margin-top: .75rem; color: var(--muted); }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--leaf); text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--hair); color: var(--muted); font-size: .88rem; max-width: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal { padding: var(--space-l) 0 var(--space-xl); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.legal h2 { font-size: 1.55rem; margin-top: 3rem; }
.legal p, .legal ul, .legal address { margin-top: .9rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.legal .updated { margin-top: 1.25rem; color: var(--muted); }
mark.todo { background: #FFF1B8; color: #5C4400; padding: .05em .3em; outline: 1px dashed #C9A100; }

/* One quiet entrance on page load; respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .rise-2 { animation-delay: .15s; }
  .rise-3 { animation-delay: .3s; }
  .rise-4 { animation-delay: .45s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
