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

/* ── Design tokens ── */
:root {
  --bg-cream:      #f9f7f2;
  --bg-dark:       #1b2d2e;
  --teal:          #00959c;
  --teal-dark:     #007a80;
  --gold:          #e6b222;
  --gold-dark:     #c99b1a;
  --text-dark:     #1b2d2e;
  --text-sub:      #5a7475;
  --text-light:    #ededf0;
  --text-light-sub:rgba(237,237,240,0.65);
  --border-light:  rgba(27,45,46,0.09);
  --border-dark:   rgba(255,255,255,0.09);
  --card-light:    #f0ece0;
  --card-dark:     rgba(255,255,255,0.06);

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --r-pill:  32px;
  --r-card:  12px;
  --r-sm:     8px;

  --h-nav: 72px;
  --max-w: 1100px;
  --pad-x: 32px;

  --teal-06:   rgba(0,149,156,0.06);
  --teal-07:   rgba(0,149,156,0.07);
  --teal-08:   rgba(0,149,156,0.08);
  --teal-10:   rgba(0,149,156,0.10);
  --teal-25:   rgba(0,149,156,0.25);
  --gold-12:   rgba(230,178,34,0.12);
  --gold-30:   rgba(230,178,34,0.30);
}

html { scroll-behavior: smooth; }
html.no-transition *, html.no-transition *::before, html.no-transition *::after {
  transition: none !important;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  transition: background-color 0.3s cubic-bezier(0,0.2,0.4,1), color 0.3s cubic-bezier(0,0.2,0.4,1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer { margin-top: auto; }
body.dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  transition: background-color 0.55s cubic-bezier(0.4,0,0.2,1), color 0.55s cubic-bezier(0.4,0,0.2,1);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0,0,0.2,1), transform 0.65s cubic-bezier(0,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.reveal.visible.d1,
.reveal.visible.d2,
.reveal.visible.d3,
.reveal.visible.d4 { transition-delay: 0s; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--h-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: transparent;
  transition: background-color 0.5s cubic-bezier(0,0,0.6,1), border-color 0.5s cubic-bezier(0,0,0.6,1);
  border-bottom: 1px solid transparent;
}
nav.scrolled,
nav:has(.nav-group.is-expanded) {
  background: var(--bg-cream);
  border-color: var(--border-light);
}
body.dark nav.scrolled,
body.dark nav:has(.nav-group.is-expanded) {
  background: var(--bg-dark);
  border-color: rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark { height: 36px; width: auto; }

.nav-logo-wordmark {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 1;
  color: #000;
  transition: color 0.5s cubic-bezier(0,0,0.6,1);
}
.nav-logo-wordmark span { color: #000; transition: color 0.5s cubic-bezier(0,0,0.6,1); }
body.dark .nav-logo-wordmark { color: var(--text-light); }
body.dark .nav-logo-wordmark span { color: var(--text-light); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 0 22px;
  height: 40px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0,0,0.2,1), box-shadow 0.3s cubic-bezier(0,0,0.2,1), transform 0.2s cubic-bezier(0,0,0.2,1);
  overflow: hidden;
}
.btn-primary svg {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 6px 20px rgba(0,149,156,0.35); transform: translateY(-1px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: background-color 0.3s; }
  .btn-primary:hover { transform: none; box-shadow: none; }
  .btn-primary svg { transition: none; }
  .btn-primary:hover svg { transform: none; }
}

.btn-hero { height: 52px; padding: 0 30px; font-size: 17px; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { position: relative; padding: 80px 0; }
section + section { border-top: none; }

/* ── Section typography ── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--teal);
}
body.dark .section-label { color: var(--gold); }

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 560px;
  color: var(--text-sub);
}
body.dark .section-sub { color: var(--text-light-sub); }
.section-sub--wide { max-width: none; }

/* ── Footer ── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 32px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-logo-mark { height: 28px; width: auto; opacity: 0.7; }
.footer-logo-wordmark {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.85);
}
.footer-logo-wordmark span { color: rgba(255,255,255,0.85); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  line-height: 1.7;
}

/* ── Footer: multi-column layout ── */
footer {
  text-align: left;
  padding: 60px 32px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .footer-logo {
  margin-bottom: 0;
  justify-content: flex-start;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.55;
  max-width: 240px;
}

.footer-nav {
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  list-style: none;
  height: auto;
  background: transparent;
  border: none;
  z-index: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-col-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: rgba(255,255,255,0.88); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0 28px;
  text-align: center;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer-tagline { max-width: none; }
}

/* ── Research callout ── */
.research-callout-section {
  padding: 0 0 48px;
}
.research-callout-section .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.research-callout {
  border-left: 3px solid var(--teal);
  background: var(--teal-06);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: 2.5rem 3rem;
  width: 100%;
  margin: 0;
}
.research-callout-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.research-callout-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}
.research-callout-source {
  display: block;
  background: none;
  padding: 0;
  border: 0;
  margin: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.research-callout-source em { font-style: italic; }
body.dark .research-callout { background: rgba(0,149,156,0.08); }
body.dark .research-callout-quote { color: var(--text-light); }
body.dark .research-callout-source {
  color: var(--text-light-sub);
  border-top-color: var(--border-dark);
}
@media (max-width: 600px) {
  .research-callout { padding: 1.6rem 1.4rem; }
}

/* ── Base responsive ── */
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  section { padding: 60px 0; }
}

/* ── Nav: multi-tier dropdowns + mobile drawer ── */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}
.nav-group, .nav-item {
  position: relative;
}
.nav-trigger,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-trigger:hover,
.nav-item > a:hover { color: var(--teal); background-color: rgba(0,149,156,0.06); }
.nav-trigger svg { transition: transform 0.2s ease; }
.nav-group.is-expanded .nav-trigger svg { transform: rotate(180deg); }
.nav-list [aria-current="page"] { color: var(--teal); }
.nav-list [aria-current="page"]::after {
  content: '';
  display: block;
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--teal);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  box-shadow: 0 8px 24px rgba(27,45,46,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}
.nav-group.is-expanded .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-panel a:hover { background: rgba(0,149,156,0.08); color: var(--teal); }
/* Nav panel items with title + description */
.nav-item-title {
  font-weight: 500;
  color: var(--text-dark);
}
.nav-item-desc {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 400;
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 919px) {
  .nav-list {
    position: fixed;
    top: var(--h-nav);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 24px var(--pad-x);
    background: var(--bg-cream);
    overflow-y: auto;
    transform: translateY(-100vh);
    border-top: 1px solid var(--border-light);
  }
  .nav-list { transition: transform 0.28s cubic-bezier(0.16,1,0.3,1); }
  nav.is-open .nav-list { transform: translateY(0); }
  .nav-toggle { display: inline-flex; }
  .nav-cta {
    position: fixed;
    bottom: 24px;
    left: var(--pad-x);
    right: var(--pad-x);
    transform: translateY(calc(100% + 80px));
    transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), opacity 0.28s;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
  }
  nav.is-open .nav-cta {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }
  .nav-trigger, .nav-item > a {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 17px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
    max-height: 0;
    overflow: hidden;
  }
  .nav-panel { transition: max-height 0.25s ease; }
  .nav-group.is-expanded .nav-panel {
    max-height: 400px;
  }
  .nav-panel a { font-size: 15px; padding: 10px 8px; }
}

body.dark .nav-trigger,
body.dark .nav-item > a { color: var(--text-light); }
body.dark .nav-panel { background: var(--bg-dark); border-color: var(--border-dark); }
body.dark .nav-panel a { color: var(--text-light); }
body.dark .nav-item-title { color: var(--text-light); }
body.dark .nav-item-desc  { color: var(--text-light-sub); }
body.dark .nav-toggle span { background: var(--text-light); }
@media (max-width: 919px) {
  body.dark .nav-list { background: var(--bg-dark); }
}

[hidden] { display: none !important; }

/* ── Homepage who-its-for: clickable card variant ── */
a.audience-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s cubic-bezier(0,0.2,0.4,1), border-color 0.3s cubic-bezier(0,0.2,0.4,1), transform 0.2s ease, box-shadow 0.2s ease;
}
body.dark a.audience-card {
  transition: background-color 0.55s cubic-bezier(0.4,0,0.2,1), border-color 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.2s ease, box-shadow 0.2s ease;
}
a.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27,45,46,0.08);
}
.audience-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
}
a.audience-card:hover .audience-read-more svg { transform: translateX(2px); transition: transform 0.2s ease; }


/* ── Reading progress bar (global) ── */
#reading-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--teal);
  z-index: 9999;
  transition: width 80ms linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}


/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 160%);
  z-index: 400;
  width: min(680px, calc(100vw - 32px));
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--teal);
  border-radius: var(--r-card);
  box-shadow: 0 14px 44px rgba(27,45,46,0.20);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}
.cookie-banner.is-visible { transform: translate(-50%, 0); opacity: 1; }
body.dark .cookie-banner {
  background: var(--bg-dark);
  border-color: var(--border-dark);
  border-top-color: var(--teal);
  box-shadow: 0 14px 44px rgba(0,0,0,0.45);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 22px;
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-dark);
}
body.dark .cookie-banner__title { color: var(--text-light); }
.cookie-banner__body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-sub);
  margin: 0;
}
body.dark .cookie-banner__body { color: var(--text-light-sub); }
.cookie-banner__body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cookie-btn--accept { background: var(--teal); color: #fff; }
.cookie-btn--accept:hover { background: var(--teal-dark); }
.cookie-btn--ghost {
  background: transparent;
  color: var(--text-sub);
  border-color: var(--border-light);
}
.cookie-btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
body.dark .cookie-btn--ghost { color: var(--text-light-sub); border-color: var(--border-dark); }
body.dark .cookie-btn--ghost:hover { color: var(--teal); border-color: var(--teal); }

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0; left: 0;
    transform: translateY(120%);
    width: 100%;
    border-radius: var(--r-card) var(--r-card) 0 0;
  }
  .cookie-banner.is-visible { transform: translateY(0); }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.3s ease; }
}
