/* =============================================================================
   NWPharmaTech CHR-P / DeSci — public informational site (W04 tokens)
   British English · WCAG AA intent · offline-first (no external CDNs)
   ============================================================================= */

:root {
  --canvas: #f8f8f7;
  --canvas-soft: #f4f5f2;
  --canvas-mute: #eef1f0;
  --line: #e0e4e6;
  --line-strong: #cdd3da;

  --ink-950: #07111f;
  --ink-900: #0a1728;
  --ink-800: #10233c;
  --ink-700: #334158;
  --ink-600: #536177;
  --ink-500: #657187;
  --ink-400: #788497;
  --ink-300: #aeb8c3;

  --blue-600: #1767e8;
  --blue-500: #2f7af0;
  --blue-400: #6da4ff;
  --blue-soft: rgba(23, 103, 232, 0.10);
  --blue-glow: rgba(23, 103, 232, 0.14);

  --hope-600: #2a7a6e;
  --hope-500: #3d9a8b;
  --hope-soft: rgba(61, 154, 139, 0.10);

  --amber: #9a7b4f;
  --amber-soft: rgba(154, 123, 79, 0.12);
  --focus: #1767e8;
  --white: #ffffff;

  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --measure: 36rem;
  --measure-wide: 56rem;
  --measure-xl: 64rem;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 2px rgba(7, 17, 31, 0.04), 0 12px 32px rgba(7, 17, 31, 0.06);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue-600);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink-900); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink-950);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--measure-wide));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}
.wrap-xl {
  width: min(100% - 2.5rem, var(--measure-xl));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1.5px;
  background: var(--blue-600);
  border-radius: 1px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink-950);
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 1.25rem;
}
h1 em {
  font-style: italic;
  color: var(--blue-600);
  font-weight: 500;
}
h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.9rem;
}
h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 36rem;
  margin: 0;
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 248, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
  padding: 0.35rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-950);
  min-width: 0;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink-950); }
.brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.brand-name {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  font-family: inherit;
}
.nav-toggle:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.1rem;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover {
  color: var(--blue-600);
  background: var(--blue-soft);
}
.site-nav a[aria-current="page"] {
  color: var(--blue-600);
  background: var(--blue-soft);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .site-nav a { padding: 0.65rem 0.75rem; }
}

main { flex: 1; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 88% 12%, var(--blue-glow), transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 85%, var(--hope-soft), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 25%, black 15%, transparent 72%);
  pointer-events: none;
  opacity: 0.85;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.hero-note {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  padding: 0.85rem 1.05rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-600);
  background: var(--canvas-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--radius-sm);
}
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 40rem; }

.section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
.section-alt {
  background: var(--canvas-soft);
  border-block: 1px solid var(--line);
}
.section p {
  margin: 0 0 1rem;
  color: var(--ink-600);
  max-width: 42rem;
}
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-600);
  max-width: 42rem;
}
.section li { margin-bottom: 0.45rem; }
.section li:last-child { margin-bottom: 0; }

.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(7, 17, 31, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.card:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-soft);
  color: inherit;
}
.card h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink-950);
}
.card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: none;
}
.card .card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-600);
}

.unmet {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 44rem;
}
.unmet-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-600);
}
.unmet p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--ink-800);
  max-width: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-live {
  color: var(--hope-600);
  background: var(--hope-soft);
  border-color: rgba(61, 154, 139, 0.25);
}
.badge-dev {
  color: var(--blue-600);
  background: var(--blue-soft);
  border-color: rgba(23, 103, 232, 0.2);
}
.badge-proposed {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(154, 123, 79, 0.28);
}
.badge-excluded {
  color: var(--ink-500);
  background: var(--canvas-mute);
  border-color: var(--line-strong);
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--hope-500);
  border-radius: var(--radius-sm);
  max-width: 44rem;
}
.callout.proposed { border-left-color: var(--amber); }
.callout.caution { border-left-color: var(--blue-600); }
.callout p { margin: 0; max-width: none; }
.callout strong { color: var(--ink-900); }

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--canvas-soft);
}
tr:last-child td { border-bottom: none; }
td { color: var(--ink-700); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 44rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.faq-item h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
  letter-spacing: 0;
}
.faq-item p {
  margin: 0;
  font-size: 0.9375rem;
  max-width: none;
}
.faq-group { margin-bottom: 2.5rem; }
.faq-group:last-child { margin-bottom: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  color: var(--white);
  background: var(--ink-950);
  border-color: var(--ink-950);
}
.btn-primary:hover {
  color: var(--white);
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-secondary {
  color: var(--ink-800);
  background: var(--white);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  color: var(--blue-600);
  border-color: var(--blue-400);
  background: var(--blue-soft);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 32rem;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--ink-950);
  border: 1px solid var(--ink-950);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-email:hover {
  color: var(--white);
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.contact-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-500);
  max-width: 36rem;
}

.stub-panel {
  max-width: 36rem;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.stub-panel p { max-width: none; }

.principles {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.principles li {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.principles strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-950);
  margin-bottom: 0.35rem;
}

.site-footer {
  margin-top: auto;
  padding: 2.5rem 0 2.75rem;
  background: var(--ink-950);
  color: var(--ink-300);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.1rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-corp {
  font-size: 0.8125rem;
  color: var(--ink-400);
}
.footer-corp a {
  color: var(--blue-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 164, 255, 0.35);
}
.footer-corp a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  font-size: 0.8125rem;
  color: var(--ink-300);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-400);
  max-width: 48rem;
}
.footer-legal strong {
  color: #c8cfd4;
  font-weight: 600;
}
.footer-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-500);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media print {
  .site-header { position: static; }
  .hero-bg, .hero-grid { display: none; }
  body { background: #fff; color: #111; }
  h1, h2, h3, .brand, .footer-name { color: #111; }
  .site-footer { background: #f5f5f5; color: #333; }
  a { color: #064; }
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; }
}

/* =============================================================================
   Release A — cinematic homepage + navy/turquoise polish
   ============================================================================= */

:root {
  --navy-950: #050b14;
  --navy-900: #07111f;
  --navy-800: #0c1a2e;
  --turquoise-500: #2ec4b6;
  --turquoise-400: #5eead4;
  --turquoise-soft: rgba(46, 196, 182, 0.14);
  --turquoise-glow: rgba(46, 196, 182, 0.28);
}

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

/* Brand mark as img */
img.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

/* Dark header over cinematic hero */
.site-header--dark {
  background: rgba(7, 17, 31, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
}
.site-header--dark .brand { color: var(--white); }
.site-header--dark .brand:hover { color: var(--white); }
.site-header--dark .brand-tag { color: rgba(255, 255, 255, 0.55); }
.site-header--dark .site-nav a {
  color: rgba(255, 255, 255, 0.78);
}
.site-header--dark .site-nav a:hover,
.site-header--dark .site-nav a[aria-current="page"] {
  color: var(--turquoise-400);
  background: var(--turquoise-soft);
}
.site-header--dark .nav-toggle {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
}
.site-header--dark .nav-toggle:hover {
  border-color: var(--turquoise-400);
  color: var(--turquoise-400);
}
@media (max-width: 860px) {
  .site-header--dark .site-nav {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.eyebrow--light {
  color: var(--turquoise-400);
}
.eyebrow--light::before {
  background: var(--turquoise-400);
}

.lede--light {
  color: rgba(232, 240, 248, 0.88);
  max-width: 38rem;
}

.on-dark { color: var(--white) !important; }
.on-dark-muted {
  color: rgba(200, 214, 228, 0.88);
  max-width: 42rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Cinematic hero */
.cine-hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}
.cine-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cine-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  transform: scale(1.02);
}
.cine-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.35) 0%, rgba(5, 11, 20, 0.55) 40%, rgba(5, 11, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 11, 20, 0.75) 0%, rgba(5, 11, 20, 0.25) 55%, rgba(5, 11, 20, 0.55) 100%);
}
.cine-hero__glow {
  position: absolute;
  inset: auto -10% -20% 20%;
  height: 55%;
  background: radial-gradient(ellipse at center, var(--turquoise-glow), transparent 65%);
  opacity: 0.55;
  animation: cine-breathe 10s ease-in-out infinite;
}
@keyframes cine-breathe {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.65; transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .cine-hero__glow { animation: none; }
  .cine-hero__img { transform: none; }
}
.cine-hero__content {
  position: relative;
  z-index: 2;
  max-width: 44rem;
}
.cine-hero h1 {
  color: var(--white);
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1.35rem;
}
.cine-hero h1 em {
  color: var(--turquoise-400);
  font-style: italic;
}
.hero-note--on-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--turquoise-500);
  color: rgba(220, 230, 240, 0.9);
}
.cine-hero__caption {
  position: relative;
  z-index: 2;
  margin: 1.75rem auto 0;
  font-size: 0.75rem;
  color: rgba(174, 184, 195, 0.85);
  letter-spacing: 0.01em;
}

.btn-glow {
  background: var(--turquoise-500);
  border-color: var(--turquoise-500);
  color: var(--navy-950);
}
.btn-glow:hover {
  background: var(--turquoise-400);
  border-color: var(--turquoise-400);
  color: var(--navy-950);
}
.btn-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  color: var(--turquoise-400);
  border-color: var(--turquoise-400);
  background: var(--turquoise-soft);
}

.section-light {
  background: var(--white);
}
.section-navy {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(46, 196, 182, 0.12), transparent 50%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.section-navy h2 { color: var(--white); }

.split-block {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split-block {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split-block--reverse .split-block__copy { order: 2; }
  .split-block--reverse .split-block__figure { order: 1; }
}
.split-block__copy p { max-width: 38rem; }
.split-block__figure {
  margin: 0;
}
.split-block__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.split-block__figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-500);
}

.card--lift:hover {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .card--lift:hover { transform: none; }
}
.card {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

/* Soft turquoise accent on secondary CTAs / hope tokens */
.btn-primary:hover {
  background: var(--turquoise-500);
  border-color: var(--turquoise-500);
  color: var(--navy-950);
}
a.card:hover {
  border-color: var(--turquoise-500);
}

.muted {
  color: var(--ink-500);
  font-size: 0.875rem;
}

.footer-meta a {
  color: var(--ink-400);
  text-decoration: none;
}
.footer-meta a:hover { color: var(--white); }

/* Contact updates anchor panel */
.updates-panel {
  margin-top: 2rem;
  max-width: 44rem;
  padding: 1.35rem 1.5rem;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--turquoise-500);
  border-radius: var(--radius-sm);
}
.updates-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.updates-panel p {
  margin: 0;
  max-width: none;
}


/* Phase 2B P0.5 — secondary nav under Science hub */
.secondary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(15, 35, 55, 0.1);
  font-size: 0.9375rem;
}
.secondary-nav a {
  color: var(--navy-700, #1a3a5c);
  text-decoration: none;
  font-weight: 600;
}
.secondary-nav a:hover {
  color: var(--turquoise-600, #0d9b8a);
  text-decoration: underline;
}

/* Updates list */
.update-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.update-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 35, 55, 0.1);
}
.update-list li:first-child {
  border-top: 1px solid rgba(15, 35, 55, 0.1);
}
.update-list a {
  text-decoration: none;
  color: var(--ink-950, #0b1520);
}
.update-list a:hover { color: var(--turquoise-600, #0d9b8a); }
.update-list .meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: rgba(15, 35, 55, 0.55);
}

/* Programme update registration (kept usable while the ESP is being connected) */
.updates-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.updates-form .form-field {
  display: grid;
  gap: 0.35rem;
}
.updates-form label {
  color: var(--ink-800);
  font-size: 0.9rem;
  font-weight: 600;
}
.updates-form input[type="email"],
.updates-form input[type="text"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.updates-form input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--focus);
}
.updates-form .consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}
.updates-form input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--blue-600);
}
.updates-form .form-status {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--ink-700);
  background: var(--amber-soft);
  border-radius: 8px;
  font-size: 0.875rem;
}
.updates-form button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}
.form-note {
  margin: 1rem 0 0;
}
