/* BioUnbound — site styles
   Palette and type follow the BioUnbound brief (deep teal, Newsreader, Outfit)
   and the seed deck (warm paper ground, ruled stat blocks). */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #03202f;
  --deep-2: #0a3144;
  --ink: #0e2f41;
  --text: #3d4a52;
  --muted: #5d6b74;
  --teal: #067d7e;
  --aqua: #5fc4c4;
  --mist: #f2f8f8;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #d8e3e3;
  --line-dark: rgba(255, 255, 255, 0.18);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 28px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; }
h3 { font-size: 25px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--teal); }

p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 22px;
}
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; }

.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--text); max-width: 60ch; }

.small { font-size: 15px; color: var(--muted); }

/* ---------- header ---------- */

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 26px; padding-bottom: 26px;
}
.brand img { width: 228px; height: auto; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  color: var(--white); text-decoration: none; font-size: 16px; font-weight: 400;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--aqua); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  font: inherit; font-size: 15px; font-weight: 400; padding: 8px 14px; border-radius: 2px; cursor: pointer;
}

/* ---------- hero ---------- */

.hero { position: relative; background: var(--deep); color: var(--white); overflow: hidden; }
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  background: url("../img/molecule.jpg") center / cover no-repeat;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--deep) 0%, rgba(3, 32, 47, 0.72) 32%, rgba(3, 32, 47, 0.18) 100%);
}
.hero .wrap { position: relative; padding-top: 190px; padding-bottom: 72px; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero h1 em, .closing h2 em { display: block; }
.hero h1 em, .dark h2 em { color: var(--aqua); }
.hero .label, .dark .label { color: var(--aqua); }
.hero .lede { color: rgba(255, 255, 255, 0.86); margin: 28px 0 0; max-width: 46ch; }
.hero-sub .wrap { padding-top: 170px; padding-bottom: 84px; }
.hero-sub h1 { font-size: clamp(40px, 5.2vw, 68px); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn {
  display: inline-block; font-family: inherit; font-size: 16px; font-weight: 400; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 2px; border: 1px solid var(--aqua);
  background: var(--aqua); color: var(--deep);
}
.btn:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn.ghost:hover { border-color: var(--white); background: transparent; color: var(--white); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.solid:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 84px; border-top: 1px solid var(--line-dark);
}
.facts div { padding: 22px 26px 0 0; }
.facts div + div { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.facts dt {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 8px;
}
.facts dd { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--white); }
dl { margin: 0; }

/* ---------- sections ---------- */

.section { padding: 104px 0; }
.section.mist { background: var(--mist); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--deep); color: rgba(255, 255, 255, 0.86); position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: var(--white); }
.section-head { margin-bottom: 56px; }
.section-head .lede { margin-top: 22px; }

/* announcement */
.announce { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.announce .when { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--teal); line-height: 1.3; }
.announce .when span {
  display: block; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.announce h2 { margin-bottom: 26px; }

/* ruled columns (from the deck's stat blocks) */
.ruled { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.ruled > div { border-top: 2px solid var(--ink); padding-top: 22px; }
.ruled h3 { margin-bottom: 12px; }
.ruled p { font-size: 17px; }
.dark .ruled > div { border-top-color: var(--aqua); }

/* platform cards (from the brief's two-programs panel) */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.platform { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.platform figure { margin: 0; position: relative; }
.platform figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stage {
  position: absolute; left: 22px; bottom: 18px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--white); color: var(--ink); padding: 6px 12px; border-radius: 999px;
}
.platform .body { padding: 34px 34px 30px; }
.platform h3 { font-size: 30px; margin-bottom: 12px; }
.platform .body > p { font-size: 17px; margin-bottom: 26px; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); padding-top: 4px; }
.spec dd { margin: 0; font-size: 16px; color: var(--ink); }

/* feature rows on the approach page */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-art { order: 2; }
.feature-art img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }
.feature h2 { margin-bottom: 20px; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 8px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink);
}
.steps li::before {
  content: "0" counter(step); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1; color: var(--teal);
}
.goal { margin-top: 26px; font-size: 16px; color: var(--muted); }

/* program path */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: stage; margin-top: 8px; }
.path li { list-style: none; counter-increment: stage; padding: 26px 26px 0 0; border-top: 2px solid var(--line); position: relative; }
.path li::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line);
}
.path li.now { border-top-color: var(--teal); }
.path li.now::before { background: var(--teal); border-color: var(--teal); }
.path .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--teal); display: block; margin-bottom: 6px; }
.path h3 { font-size: 22px; margin-bottom: 8px; }
.path p { font-size: 16px; }
.path .here {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--white); background: var(--teal); padding: 5px 11px; border-radius: 999px;
}
ol.path { padding: 0; margin: 8px 0 0; }

/* panel */
.panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 38px 42px; }
.panel h3 { margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

/* people */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.person { background: var(--white); border: 1px solid var(--line); padding: 38px; }
.person .role { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.person h3 { font-size: 30px; margin-bottom: 16px; }
.person p { font-size: 17px; }

/* contact */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.contacts > div { padding: 26px 26px 6px 0; }
.contacts > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.contacts .role { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.contacts .name { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 0 0 4px; }
.contacts a { font-size: 17px; }

form.enquiry { display: grid; gap: 18px; }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 15px; color: var(--muted); min-height: 22px; }

/* closing band */
.closing { position: relative; }
.closing .hero-art { width: 52%; opacity: 0.9; }
.closing .wrap { position: relative; }
.closing h2 { font-size: clamp(34px, 4.4vw, 58px); }
.closing p { margin-top: 22px; max-width: 44ch; color: rgba(255, 255, 255, 0.86); }

/* footer */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, 0.72); border-top: 1px solid var(--line-dark); padding: 54px 0 40px; font-size: 15px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand img { width: 190px; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.legal { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.legal h2 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua); margin-bottom: 10px; }
.legal p { max-width: 96ch; font-size: 14px; line-height: 1.6; }
.copyright { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .hero-art { width: 100%; opacity: 0.45; }
  .hero-art::after { background: linear-gradient(180deg, rgba(3, 32, 47, 0.55) 0%, var(--deep) 100%); }
  .hero .wrap { padding-top: 150px; padding-bottom: 56px; }
  .hero-sub .wrap { padding-top: 140px; padding-bottom: 60px; }
  .facts, .ruled, .platforms, .feature, .split, .people, .contacts, .announce { grid-template-columns: 1fr; }
  .facts { margin-top: 56px; }
  .facts div, .facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .ruled { gap: 34px; }
  .announce { gap: 22px; }
  .feature { gap: 34px; }
  .feature + .feature { margin-top: 72px; }
  .feature.flip .feature-art { order: 0; }
  .split { gap: 40px; }
  .path { grid-template-columns: 1fr; }
  .path li { padding: 22px 0 26px 30px; border-top: 0; border-left: 2px solid var(--line); }
  .path li.now { border-left-color: var(--teal); }
  .path li::before { top: 26px; left: -8px; }
  .contacts > div, .contacts > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .closing .hero-art { width: 100%; opacity: 0.35; }
  .panel { padding: 30px 26px; }
  .person, .platform .body { padding: 28px 24px; }
}

@media (max-width: 680px) {
  .brand img { width: 184px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 78px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep-2); border: 1px solid var(--line-dark); padding: 8px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a:last-child { border-bottom: 0; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
