/* ============================================================
   MyPhone / MyBrain — Stylesheet  (editorial redesign)
   Inspired by: aipedagogy.org — warm cream, serif heads, crimson
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
  /* Palette */
  --c-cream:        #F4EFE4;
  --c-cream-dark:   #EDE5D6;
  --c-white:        #FFFFFF;
  --c-crimson:      #1A6B72;
  --c-crimson-dark: #124D53;
  --c-crimson-pale: #E4F3F4;
  --c-ink:          #1C1412;
  --c-body:         #4A3F3A;
  --c-muted:        #9A8A82;
  --c-border:       #E2D9CC;
  --c-dark:         #1C1412;
  --c-dark-mid:     #2E2320;

  /* Surfaces */
  --c-bg:           var(--c-cream);
  --c-bg-alt:       var(--c-white);
  --c-card:         var(--c-white);

  /* Typography */
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sans:  'Lato', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.875rem,  0.84rem  + 0.18vw, 0.9375rem);
  --step-0:  clamp(1rem,      0.96rem  + 0.20vw, 1.0625rem);
  --step-1:  clamp(1.125rem,  1.06rem  + 0.33vw, 1.25rem);
  --step-2:  clamp(1.35rem,   1.21rem  + 0.70vw, 1.625rem);
  --step-3:  clamp(1.6rem,    1.35rem  + 1.24vw, 2.125rem);
  --step-4:  clamp(1.9rem,    1.48rem  + 2.08vw, 2.875rem);
  --step-5:  clamp(2.25rem,   1.58rem  + 3.35vw, 3.875rem);
  --step-6:  clamp(2.75rem,   1.65rem  + 5.50vw, 5.5rem);

  /* Layout */
  --max-w:     1160px;
  --gap:       clamp(1.25rem, 3.5vw, 2.5rem);
  --section-v: clamp(4rem, 8vw, 8rem);
  --nav-h:     64px;

  /* Shape */
  --r:    6px;
  --r-lg: 12px;
  --r-xl: 18px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(28,20,18,.06);
  --shadow-md: 0 4px 20px rgba(28,20,18,.09);
  --shadow-lg: 0 12px 40px rgba(28,20,18,.12);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--f-sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.75;
  color: var(--c-body);
  background: var(--c-cream);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--f-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { max-width: 68ch; }
strong { font-weight: 700; color: var(--c-ink); }

/* ── 4. Layout helpers ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section {
  padding-block: var(--section-v);
  background: var(--c-cream);
}

.section-white  { background: var(--c-white); }
.section-dark   { background: var(--c-dark); }
.section-light  { background: var(--c-cream-dark); }

.section-heading {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 { color: var(--c-ink); }
.section-dark .section-heading h2 { color: var(--c-white); }

.split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--gap);
  align-items: start;
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

/* ── 5. Reveal animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── 6. Section kicker ───────────────────────────────────── */
.section-kicker {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-crimson);
  margin-bottom: 0.85rem;
}

.section-kicker.light { color: rgba(255,255,255,0.55); }

/* ── 7. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.5em;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--c-crimson);
  color: #fff;
  border-color: var(--c-crimson);
}
.btn-primary:hover { background: var(--c-crimson-dark); border-color: var(--c-crimson-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-crimson);
  border-color: var(--c-crimson);
}
.btn-outline:hover { background: var(--c-crimson); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--c-crimson);
  border-color: var(--c-crimson);
}
.btn-secondary:hover { background: var(--c-crimson); color: #fff; }

/* ── 8. Prose ─────────────────────────────────────────────── */
.prose { color: var(--c-body); line-height: 1.8; font-weight: 300; }
.prose p { margin-bottom: 1rem; font-weight: 300; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--c-ink); }
.prose a { color: var(--c-crimson); text-decoration: underline; text-underline-offset: 3px; }

.prose-light { color: rgba(255,255,255,0.7); }
.prose-light strong { color: #fff; }

/* ── 9. Header & Nav ──────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(244,239,228,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); background: var(--c-cream); backdrop-filter: none; -webkit-backdrop-filter: none; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--f-serif);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: var(--c-crimson); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-body);
  white-space: nowrap;
  transition: color 0.15s;
}

.nav a:hover { color: var(--c-crimson); }

.nav-cta {
  background: var(--c-crimson) !important;
  color: #fff !important;
  padding: 0.45em 1.15em;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--c-crimson-dark) !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.35rem;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(244,239,228,0.98);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay.is-open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 2.5rem; height: 2.5rem;
  background: none; border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.35rem;
}

.mobile-nav-close .bar { background: var(--c-ink); }
.mobile-nav-close .bar:nth-child(1) { transform: translateY(1px) rotate(45deg); }
.mobile-nav-close .bar:nth-child(2) { transform: translateY(-1px) rotate(-45deg); }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
  overflow-y: auto;
  max-height: 100svh;
}

.mobile-nav-inner a {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--c-ink);
  transition: color 0.15s;
}

.mobile-nav-inner a:hover { color: var(--c-crimson); }

.mobile-nav-cta {
  font-family: var(--f-sans) !important;
  font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
  padding: 0.7rem 2rem;
  background: var(--c-crimson);
  color: #fff !important;
  border-radius: 999px;
}

/* ── 10. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--c-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,20,18,0.72) 0%, rgba(28,20,18,0.50) 40%, rgba(28,20,18,0.88) 100%);
  z-index: 1;
}

.hero-content {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.4em 1em;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  width: fit-content;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-crimson);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26,107,114,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(26,107,114,0.1); }
}

.hero h1 {
  font-size: var(--step-6);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero h1 .slash { color: rgba(255,255,255,0.3); }
.hero h1 .accent { display: block; color: var(--c-crimson); font-style: italic; line-height: 1.1; }

.hero .tagline {
  font-size: var(--step-1);
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 2.25rem;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }

.hero-stat strong {
  font-family: var(--f-serif);
  font-size: var(--step-3);
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.hero-stat span {
  font-size: var(--step--1);
  color: rgba(255,255,255,0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35));
}

/* ── 11. About ───────────────────────────────────────────── */
.section-subheading {
  font-size: var(--step-1);
  color: var(--c-muted);
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--f-sans);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-item strong {
  font-family: var(--f-serif);
  font-size: var(--step-4);
  font-weight: 400;
  color: var(--c-crimson);
  line-height: 1;
}

.stat-item span { font-size: var(--step--1); color: var(--c-muted); }

/* ── 12. Process / steps ─────────────────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.step-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-card > span {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--c-crimson);
  opacity: 0.5;
  line-height: 1;
}

.step-card h3 { font-size: var(--step-1); color: #fff; margin: 0; }
.step-card p { font-size: var(--step-0); color: rgba(255,255,255,0.6); margin: 0; line-height: 1.65; }

/* ── 13. Audience signpost ───────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.audience-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.audience-card h3 {
  font-family: var(--f-sans);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
}

.audience-card p { font-size: var(--step-0); color: var(--c-body); margin: 0; flex: 1; }

.audience-card-cta {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--c-crimson);
  margin-top: 0.35rem;
}

/* ── 14. Info panels ─────────────────────────────────────── */
.info-panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-panel-alt { background: var(--c-cream-dark); box-shadow: none; }

.info-panel-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

.info-panel h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-sans); margin-bottom: 0.75rem; }

/* ── 15. Benefit grid ────────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.benefit-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border-left: 3px solid var(--c-crimson);
  box-shadow: var(--shadow-sm);
}

.benefit-card h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--f-sans); color: var(--c-ink); margin-bottom: 0.4rem; }
.benefit-card p  { font-size: var(--step-0); color: var(--c-body); margin: 0; }

/* ── 16a. Gatsby Benchmarks block ────────────────────────── */
.gatsby-block {
  margin: 2.5rem 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.gatsby-header {
  background: var(--c-crimson);
  padding: 1.5rem 2rem 1.25rem;
}

.gatsby-header .section-kicker {
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}

.gatsby-intro {
  color: #fff;
  font-size: var(--step-0);
  margin: 0;
  line-height: 1.55;
}

.gatsby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--c-white);
}

.gatsby-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-right: 1px solid var(--c-border);
}

.gatsby-card:last-child { border-right: none; }

.gatsby-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-crimson-pale);
  color: var(--c-crimson-dark);
  font-family: var(--f-serif);
  font-size: var(--step-1);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gatsby-card-body h4 {
  font-family: var(--f-sans);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.gatsby-card-body p {
  font-size: var(--step--1);
  color: var(--c-body);
  margin: 0;
  line-height: 1.55;
}

.gatsby-compass {
  background: var(--c-cream-dark);
  border-top: 1px solid var(--c-border);
  padding: 0.85rem 1.5rem;
  font-size: var(--step--1);
  color: var(--c-body);
  margin: 0;
}

@media (max-width: 680px) {
  .gatsby-grid { grid-template-columns: 1fr; }
  .gatsby-card { border-right: none; border-bottom: 1px solid var(--c-border); }
  .gatsby-card:last-child { border-bottom: none; }
}

/* ── 16. Info checklist ──────────────────────────────────── */
.info-checklist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}

.info-checklist li {
  padding-left: 1.6rem;
  position: relative;
  font-size: var(--step-0);
  color: var(--c-body);
  line-height: 1.55;
}

.info-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-crimson);
  font-weight: 700;
}

/* ── 17. Reassurance block ───────────────────────────────── */
.reassurance-block {
  background: var(--c-crimson-pale);
  border: 1px solid rgba(26,107,114,0.15);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.reassurance-block h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-sans); color: var(--c-ink); margin-bottom: 1rem; }

/* ── 18. Workshop panels ─────────────────────────────────── */
.workshop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }

.workshop-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.workshop-panel h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-sans); color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.workshop-panel .info-checklist li { color: rgba(255,255,255,0.7); }
.workshop-panel .info-checklist li::before { color: var(--c-crimson); }

/* ── 19. Data promise ────────────────────────────────────── */
.data-promise {
  background: rgba(26,107,114,0.1);
  border: 1px solid rgba(26,107,114,0.2);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.data-promise h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-sans); color: rgba(255,255,255,0.9); margin-bottom: 1rem; }

.promise-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.promise-list li {
  padding-left: 1.6rem;
  position: relative;
  font-size: var(--step-0);
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.promise-list li::before { content: '→'; position: absolute; left: 0; color: var(--c-crimson); font-weight: 700; }

/* ── 20. Privacy promise grid ────────────────────────────── */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.promise-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.promise-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.promise-number {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--c-cream);
  line-height: 1;
  position: absolute;
  top: 0.5rem; right: 1rem;
  user-select: none; pointer-events: none;
}

.promise-card h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--f-sans); color: var(--c-crimson); margin-bottom: 0.4rem; position: relative; }
.promise-card p  { font-size: var(--step-0); color: var(--c-body); margin: 0; position: relative; }

/* ── 21. Data flow ───────────────────────────────────────── */
.data-flow {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.data-flow h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-sans); color: var(--c-ink); margin-bottom: 1.25rem; }

.data-flow-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.data-flow-steps li {
  background: var(--c-crimson);
  color: #fff;
  padding: 0.4em 1em;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
}

/* ── 22. Research aims ───────────────────────────────────── */
.aims-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.aim-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.aim-card:hover { background: rgba(255,255,255,0.08); }

.aim-number {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 400;
  color: rgba(26,107,114,0.25);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.aim-card h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--f-sans); color: #fff; margin-bottom: 0.6rem; }
.aim-card p  { font-size: var(--step-0); color: rgba(255,255,255,0.6); margin: 0; }

.aims-list-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.aims-list-block h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-sans); color: #fff; margin-bottom: 1.25rem; }

.aims-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }

.aims-list li { display: flex; gap: 1.25rem; align-items: flex-start; }

.aim-label {
  background: var(--c-crimson);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  padding: 0.25em 0.65em;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 0.1em;
  flex-shrink: 0;
}

.aims-list p { font-size: var(--step-0); color: rgba(255,255,255,0.6); margin: 0; }

/* ── 23. Resources ───────────────────────────────────────── */
.resources-placeholder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.placeholder-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.placeholder-card h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--f-sans); color: #fff; margin: 0; }
.placeholder-card p  { font-size: var(--step-0); color: rgba(255,255,255,0.55); margin: 0; flex: 1; }

.coming-soon-tag {
  display: inline-block;
  background: rgba(26,107,114,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  align-self: flex-start;
}

/* ── 24. Sign-up form ────────────────────────────────────── */
.signup-section { background: var(--c-cream-dark); }

.signup-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.signup-copy h2 { color: var(--c-ink); }

.privacy-note {
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--c-crimson-pale);
  border-radius: var(--r);
  border-left: 3px solid var(--c-crimson);
  line-height: 1.5;
}

.signup-form {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}

.form-section {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--c-border);
}

.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.form-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--c-ink);
}

label span { font-size: 0.68rem; font-weight: 400; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  font-family: var(--f-sans);
  font-size: var(--step-0);
  color: var(--c-ink);
  background: var(--c-cream);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-crimson);
  box-shadow: 0 0 0 3px rgba(26,107,114,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A8A82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
  cursor: pointer;
  background-color: var(--c-cream);
}

textarea { resize: vertical; min-height: 100px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

fieldset { border: none; padding: 0; }
legend { font-size: var(--step--1); font-weight: 600; color: var(--c-ink); margin-bottom: 0.75rem; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

.checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400 !important;
  color: var(--c-body) !important;
  cursor: pointer;
  padding: 0.4rem 0;
}

.checkbox input { width: auto; accent-color: var(--c-crimson); }

.slider-wrapper { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }

.slider-wrapper input[type="range"] {
  flex: 1; height: 3px;
  appearance: none;
  background: var(--c-border);
  border-radius: 999px;
  outline: none; cursor: pointer;
  border: none; padding: 0; box-shadow: none;
}

.slider-wrapper input[type="range"]:focus { box-shadow: none; border-color: transparent; }

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  background: var(--c-crimson);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(26,107,114,.3);
}

.slider-output { min-width: 4ch; font-weight: 700; color: var(--c-crimson); font-size: var(--step-0); text-align: right; }

.form-submit { padding-top: 0.5rem; }
.form-help { font-size: var(--step--1); color: var(--c-muted); margin-top: 0.75rem; line-height: 1.5; }

/* ── 25. Team ─────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.person-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.person-image {
  aspect-ratio: 3 / 4;
  background: var(--c-cream-dark);
  overflow: hidden;
  flex-shrink: 0;
}

.person-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.4s var(--ease);
}

.person-card:hover .person-image img { transform: scale(1.04); }

.person-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-cream-dark);
  font-family: var(--f-serif);
  font-size: 1.5rem; color: var(--c-crimson);
}

.person-info { padding: 0.65rem 0.8rem 0.85rem; flex: 1; display: flex; flex-direction: column; }

.person-card .person-role { font-size: 0.68rem; color: var(--c-crimson); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.25rem; }
.person-card .person-name {
  font-family: var(--f-sans);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.person-card .bio { font-size: var(--step--1); color: var(--c-body); line-height: 1.55; margin-bottom: 0; flex: 1; font-weight: 400; }

.person-links { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.person-links a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--c-crimson);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Co-investigators sub-section */
.co-investigators { margin-top: clamp(4rem, 8vw, 6rem); }

.co-i-heading {
  font-family: var(--f-serif);
  font-size: var(--step-3);
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}

.co-investigators .people-grid { margin-top: 0; }

/* ── 26. Partners ────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Partner logo box — image header on each card */
.partner-logo-box {
  height: 140px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.partner-logo-box img {
  max-height: 72px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}

.partner-logo-placeholder {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: center;
}

.partner-logo-box--funder { background: var(--c-crimson-pale); border-color: transparent; }
.partner-logo-box--funder .partner-logo-placeholder { color: var(--c-crimson); }

.project-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-card-body h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--f-sans); color: var(--c-ink); margin-bottom: 0.5rem; }
.project-card-body p { font-size: var(--step--1); color: var(--c-body); line-height: 1.55; margin-bottom: 0.75rem; flex: 1; }
.project-card-body .project-card-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-crimson); margin-bottom: 0.5rem; }
.project-card-body .project-card-arrow { font-size: var(--step--1); font-weight: 600; color: var(--c-crimson); text-decoration: underline; text-underline-offset: 3px; margin-top: auto; }

/* Section photo banners — full-width images between content blocks */
.section-photo-banner {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 380px;
  margin: 2.5rem 0;
}

.section-photo-banner--short { height: 260px; }

.section-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video wrapper */
.video-wrapper {
  margin: 2.5rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: var(--shadow-lg);
}

.video-wrapper video {
  width: 100%;
  display: block;
  max-height: 520px;
}

.funder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }

.funder-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.funder-name { font-family: var(--f-serif); font-size: var(--step-2); font-weight: 400; color: var(--c-ink); margin-bottom: 0.3rem; }
.funder-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-crimson); margin-bottom: 0.75rem; }
.funder-desc { font-size: var(--step--1); color: var(--c-body); line-height: 1.55; }

/* ── 27. FAQ ─────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.faq-list { padding-top: 0; }

.faq-item { border-bottom: 1px solid var(--c-border); padding-block: 1.25rem; }
.faq-item:first-child { border-top: 1px solid var(--c-border); }

.faq-item summary {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-crimson);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }
.faq-item .prose { margin-top: 1rem; padding-right: 2rem; }

.section-subtitle { font-size: var(--step--1); color: var(--c-muted); margin-top: 0.5rem; }

/* ── 28. Contact ─────────────────────────────────────────── */
.contact-section { background: var(--c-dark); padding-block: var(--section-v); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-text h2 { color: var(--c-white); }

.contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--f-serif);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--c-crimson);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s;
}

.contact-link:hover { color: #fff; }

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.contact-card h3 { font-family: var(--f-sans); font-size: var(--step-1); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.contact-card p  { font-size: var(--step-0); color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ── 29. Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark-mid);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--f-serif);
  font-size: var(--step-1);
  font-weight: 400;
  color: #fff;
  display: flex; flex-direction: column; gap: 0.25rem;
}

.footer-brand a { color: inherit; text-decoration: none; }
.footer-brand a:hover { color: var(--c-crimson-pale); }
.footer-brand span { font-family: var(--f-sans); font-size: var(--step--1); font-weight: 400; color: rgba(255,255,255,0.3); }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer-links a { font-size: var(--step--1); color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-links a:hover { color: var(--c-crimson); }

.footer-meta { font-size: var(--step--1); color: rgba(255,255,255,0.2); text-align: right; }

/* ── 29b. Photo gallery ──────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin-top: 3rem;
}

.photo-item {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-cream-dark);
  aspect-ratio: 4 / 3;
}

.photo-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.photo-item:hover img { transform: scale(1.03); }

/* ── 30. Skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--c-crimson); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
  font-weight: 700; font-size: var(--step--1);
  z-index: 9999; text-decoration: none; transition: top 0.15s;
}

.skip-link:focus { top: 0; outline: 3px solid rgba(26,107,114,0.4); outline-offset: 2px; }

/* ── 31. Accessibility ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

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

/* ── 32. Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .split             { grid-template-columns: 1fr; }
  .signup-layout     { grid-template-columns: 1fr; }
  .faq-layout        { grid-template-columns: 1fr; }
  .contact-inner     { grid-template-columns: 1fr; }
  .footer-inner      { flex-direction: column; align-items: flex-start; }
  .footer-meta       { text-align: left; }
  .audience-grid     { grid-template-columns: 1fr 1fr; }
  .photo-grid        { grid-template-columns: 1fr 1fr; }
  .photo-item--wide  { grid-column: span 2; }
  .section-photo-banner { height: 280px; }
  .section-photo-banner--short { height: 220px; }
  .benefit-grid      { grid-template-columns: 1fr; }
  .promise-grid      { grid-template-columns: 1fr; }
  .aims-grid         { grid-template-columns: 1fr; }
  .resources-placeholder { grid-template-columns: 1fr; }
  .workshop-grid     { grid-template-columns: 1fr; }
  .hero-stats        { gap: 1.5rem; }
}

@media (max-width: 840px) {
  .nav         { display: none; }
  .menu-toggle { display: flex; }
  .field-row   { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .step-grid   { grid-template-columns: 1fr; }
  .photo-grid        { grid-template-columns: 1fr; }
  .photo-item--wide  { grid-column: span 1; aspect-ratio: 4 / 3; }
  .section-photo-banner { height: 220px; }
  .section-photo-banner--short { height: 180px; }
  .partner-logo-box  { height: 110px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .stat-row    { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .people-grid  { grid-template-columns: 1fr 1fr; }
  .hero-stats   { gap: 1.25rem; }
  .hero h1      { font-size: clamp(2.5rem, 11vw, 3.5rem); }
}

@media (max-width: 380px) {
  .hero-actions { flex-direction: column; }
  .hero-stats   { flex-direction: column; gap: 1rem; }
}
