/* Shared colours and typography */
:root {
  --ink: #243c4b;
  --magenta: #dc0080;
  --magenta-text: #b80069;
  --lime: #8ac208;
  --red: #d40d15;
  --cream: #f5f4f0;
  --line: #cbd5d7;
  --muted: #405667;
  --serif: "Noto Serif Local", Georgia, serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    17px/1.62 system-ui,
    -apple-system,
    sans-serif;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--magenta-text);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  background: var(--ink);
  color: white;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  border-radius: 3px;
}
button:hover,
.btn:hover {
  background: var(--magenta);
  color: white;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px white;
}
.wrap {
  width: min(89%, 1240px);
  margin: auto;
}
h1,
h2,
h3,
p,
figure {
  margin: 0 0 1rem;
}
h1,
h2,
h3 {
  font: normal 3rem/1.09 var(--serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.4vw, 5.5rem);
  max-width: 19ch;
}
h2 {
  font-size: clamp(2rem, 3.7vw, 3.7rem);
}
h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
}
p,
li {
  max-width: 70ch;
}
.tag,
.num {
  font:
    700 0.76rem/1.5 system-ui,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.36rem);
  max-width: 58ch;
  color: var(--muted);
}
.under,
.more {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.skip {
  position: fixed;
  top: -100px;
  background: white;
  padding: 1rem;
  z-index: 30;
}
.skip:focus {
  top: 0;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.mast,
.bar,
.actions,
nav,
.brand {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}
.mast,
.bar {
  justify-content: space-between;
}
footer a:hover {
  color: var(--lime);
}
nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.42rem 0;
}
nav a[aria-current],
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.section {
  padding: clamp(3rem, 6.3vw, 6.2rem) 0;
}
.cream,
.intro {
  background: var(--cream);
}
.split,
.grid,
.foot,
.process {
  display: grid;
  gap: 2rem;
}
.split > * {
  min-width: 0;
}
.panel {
  background: #eaf1f3;
  padding: clamp(1.3rem, 3vw, 2.4rem);
}
.panel h2 {
  font-size: 2rem;
}
.rows {
  border-top: 1px solid var(--line);
}
.rows a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
.rows strong {
  font: normal clamp(1.3rem, 2vw, 1.8rem)/1.18 var(--serif);
}
.rows small {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}
.rows a:hover strong {
  text-decoration: underline;
}
.grid {
  margin-top: 1.8rem;
}
.story a {
  display: block;
  text-decoration: none;
}
.story img,
.abstract {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  margin-bottom: 1.15rem;
}
.abstract {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font: italic 5rem var(--serif);
}
.story a:hover h3 {
  text-decoration: underline;
}
.more {
  font-size: 0.91rem;
}
.process {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.process li:before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  color: var(--ink);
}
.cta,
footer {
  background: var(--ink);
  color: white;
}
.cta {
  padding: 3.5rem 0;
  background: var(--ink);
  border-bottom: 1px solid #68808e;
}
.cta h2 {
  margin: 0;
}
footer {
  padding: 3rem 0 1rem;
  font-size: 0.94rem;
}
.foot nav,
.foot > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.55rem;
}
.foot nav a {
  padding: 0;
}
.legal {
  border-top: 1px solid #547184;
  margin-top: 2.4rem;
  padding: 1rem 0;
  color: #c8d6df;
  font-size: 0.8rem;
}
.footer-policies {
  gap: 0.15rem 1.5rem;
  margin-bottom: 0.75rem;
}
.footer-policies a {
  padding-block: 0.35rem;
  font-size: 0.88rem;
  text-decoration: underline;
}
footer .footer-policies a:focus-visible {
  outline-color: var(--bright);
  box-shadow: none;
}
/* Article pages and forms */
.prose {
  max-width: 760px;
  margin: auto;
  font: 1.18rem/1.75 var(--serif);
}
.prose h1 {
  font-size: clamp(2.1rem, 4.3vw, 4.1rem);
  max-width: none;
}
.prose h2 {
  font-size: 2rem;
  margin-top: 2rem;
}
.prose .tag {
  margin-top: 2rem;
}
.prose .under,
.byline,
figcaption {
  font:
    normal 0.94rem/1.55 system-ui,
    sans-serif;
}
.byline {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.3rem;
  margin-bottom: 2rem;
}
.prose img {
  margin: 1.5rem auto;
  max-height: 800px;
  object-fit: contain;
}
.prose blockquote {
  border-left: 3px solid var(--ink);
  padding-left: 1rem;
  margin: 1.5rem 0;
}
label {
  display: block;
  font-size: 0.94rem;
  font-weight: 650;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.78rem;
  border: 1px solid #768a93;
  border-radius: 3px;
  background: white;
  margin: 0.3rem 0 1rem;
  font-size: 1rem;
  font-weight: 400;
}
.filters {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.filters label {
  flex: 1 1 180px;
  min-width: 0;
}
.filters button {
  margin-bottom: 1rem;
}
.filters p {
  width: 100%;
  margin: 0;
}
#fallback {
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot {
    grid-template-columns: 1.3fr 0.75fr 1fr;
  }
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    gap: 7%;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1010px) {
  .mast {
    gap: 0.7rem;
  }
  .mast nav {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.3rem;
  }
  .mast nav a {
    padding: 0.65rem;
  }
}
/* Lambda palette and homepage */
.primary {
  background: var(--magenta);
  color: white;
}
.primary:hover {
  background: var(--ink);
  color: white;
}
.lime {
  background: var(--lime);
  color: var(--ink);
}
.lime:hover {
  background: white;
  color: var(--ink);
}
@font-face {
  font-family: "Noto Serif Local";
  src: url("noto-serif.woff2") format("woff2"), url("noto-serif.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Local";
  src: url("noto-serif-italic.woff2") format("woff2"), url("noto-serif-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
:root {
  --deep: #182b36;
  --violet: #322437;
  --tint: #eaf0ed;
  --bright: #c5eb68;
  --gutter: max(5.5vw, calc((min(1800px, 100vw) - 1240px) / 2));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
html { scroll-padding-top: 3.75rem; }
body > header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom-color: #e6e9e8;
  box-shadow: 0 4px 18px #182b360d;
}
.mast { min-height: 58px; padding-block: 0.25rem; }
.mast nav { gap: clamp(1rem, 2vw, 1.9rem); }
.brand {
  --brand-title-line: 1.4rem;
  --brand-subtitle-line: 0.82rem;
  flex-wrap: nowrap;
  gap: 0.6rem;
  font: 700 1.34rem/var(--brand-title-line) system-ui, sans-serif;
  letter-spacing: -0.055em;
  text-decoration: none;
}
.brand img { width: auto; height: calc(var(--brand-title-line) + var(--brand-subtitle-line)); }
.brand small {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  line-height: var(--brand-subtitle-line);
  letter-spacing: 0;
}
.mast .btn, #menu { min-height: 44px; padding: 0.38rem 0.8rem; }
.mast .btn { display: inline-flex; align-items: center; }
.btn { min-height: 46px; border-radius: 3px; }
.primary, button:hover { background: var(--magenta-text); }
.lime { background: var(--bright); color: var(--deep); }
.lime:hover { background: #e3f7b8; }
.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--magenta-text);
  font: 750 0.78rem/1.5 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.text-link, .hero-link, .read-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-size: 0.94rem;
  font-weight: 680;
}
.hero { background: var(--deep); color: white; }
.hero-frame { max-width: 1800px; margin-inline: auto; }
.hero-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.hero-slides.is-active { scrollbar-width: none; }
.hero-slides.is-active::-webkit-scrollbar { display: none; }
.hero-slide {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  scroll-snap-align: start;
  background: var(--deep);
}
.hero-slide--plum { background: var(--violet); }
.hero-slide--petrol { background: #13393b; }
.hero-copy {
  align-self: center;
  padding: clamp(3rem, 5.1vw, 5.4rem) clamp(1.7rem, 4.3vw, 4.7rem) clamp(3.1rem, 5.6vw, 5.4rem) var(--gutter);
}
.hero-copy .eyebrow, .answer-intro .eyebrow { color: var(--bright); }
.hero-copy h1, .hero-copy h2 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 1.025;
  letter-spacing: -0.067em;
  text-wrap: initial;
}
.hero-copy em, .answer-intro em { color: var(--bright); }
.hero-copy > p:not(.eyebrow) { color: #dae5e9; max-width: 40ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.25rem; }
.hero-link:hover { color: var(--bright); }
.hero-image { position: relative; min-height: 100%; margin: 0; background: #25404a; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-controls {
  display: flex;
  gap: 0.65rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem var(--gutter);
  border-top: 1px solid #ffffff26;
}
.hero-tabs { flex: 1 1 25rem; display: flex; gap: clamp(0.5rem, 1.5vw, 1.1rem); }
.hero-tabs button {
  position: relative;
  flex: 0 1 10rem;
  min-height: 44px;
  padding: 0.3rem 0.2rem;
  background: transparent;
  color: #e4ecef;
  border: 0;
  border-bottom: 2px solid #ffffff36;
  border-radius: 0;
  text-align: start;
  font-size: 0.875rem;
}
.hero-tabs button[aria-current], .hero-tabs button:hover { border-color: var(--bright); color: white; }
.hero-tabs button[aria-current]::after {
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: white;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-controls[data-playing] [aria-current]::after { animation: hero-progress 10s linear both; }
  @keyframes hero-progress { to { transform: scaleX(1); } }
}
.hero-playback { display: flex; align-items: center; gap: 0.55rem; }
.hero-count { min-width: 4.75rem; color: var(--bright); font: 600 0.95rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.hero-toggle {
  min-width: 3.9rem;
  min-height: 44px;
  border: 1px solid #ffffff55;
  padding: 0 0.65rem;
  border-radius: 100px;
  background: transparent;
  color: white;
}
.hero-toggle:hover { background: #ffffff18; }
.round-control {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 1.7rem/1 system-ui, sans-serif;
}
.round-control:hover { background: var(--magenta-text); color: white; }
.round-control:disabled { opacity: 0.46; cursor: default; }
.round-control:disabled:hover { background: transparent; color: inherit; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 0.8rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3.3vw, 2.6rem); }
.section-head h2 { margin: 0; text-wrap: initial; }
.section-actions { display: flex; gap: 1rem; align-items: center; }
.rail-controls { display: flex; gap: 0.5rem; }
.featured { padding-block: clamp(3rem, 5.4vw, 5.4rem); }
.featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.5rem) / 3);
  gap: 1.25rem;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 5px 5px 12px;
  margin-inline: -5px;
}
.featured-article { scroll-snap-align: start; min-width: 0; background: var(--cream); }
.featured-article a { display: flex; flex-direction: column; min-height: 100%; text-decoration: none; }
.featured-article img { width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.featured-article a > div { flex: 1; display: flex; flex-direction: column; align-items: start; padding: clamp(1.05rem, 2vw, 1.6rem); }
.featured-article h3 { font-size: clamp(1.2rem, 1.75vw, 1.65rem); text-wrap: initial; line-height: 1.25; }
.read-label { margin-top: auto; }
.answer-band {
  color: white;
  background:
    radial-gradient(ellipse at 0% 115%, #5b3359 0%, transparent 51%),
    linear-gradient(110deg, #34263a, #192f3b 76%);
  border-top: 4px solid var(--magenta);
  padding: clamp(3rem, 6vw, 6.3rem) 0;
}
.answer-layout { display: grid; grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr); align-items: start; gap: clamp(1.5rem, 6vw, 6.25rem); }
.answer-intro h2 { font-size: clamp(2.7rem, 4.75vw, 5.15rem); text-wrap: initial; }
.answer-intro > p:last-child { margin-bottom: 0; max-width: 40ch; color: #e3e9eb; }
.answer-box { background: white; color: var(--deep); padding: clamp(1.1rem, 3vw, 2.25rem); border-radius: 5px; box-shadow: 0 18px 40px #101b233d; }
.answer-box label { font-size: 1.05rem; }
.question-input { display: flex; gap: 0.55rem; margin: 0.6rem 0 0.75rem; }
.question-input input { margin: 0; flex: 1; min-width: 0; }
.question-input .btn { flex: 0 0 auto; }
.answer-note { font-size: 0.88rem; color: var(--muted); }
.question-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.question-chips button { padding: 0.45rem 0.7rem; border: 1px solid #bbc9cc; background: #f2f6f5; color: var(--ink); font-size: 0.84rem; text-align: left; }
.question-chips button:hover { background: #e5efeb; border-color: var(--ink); }
.answer-result { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.answer-result h3 { font-size: 1.55rem; text-wrap: initial; }
.answer-result ul { padding-left: 1.2rem; margin: 0; }
.answer-result li + li { margin-top: 0.4rem; }
.research-stories { background: var(--cream); }
.research-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.7rem);
  align-items: start;
}
.research-story-link {
  --story-accent: var(--bright);
  display: block;
  height: 100%;
  break-inside: avoid;
  background: var(--deep);
  color: white;
  text-decoration: none;
}
.research-story:nth-child(2) .research-story-link {
  --story-accent: #ffbadf;
  background: var(--violet);
}
.research-story:nth-child(3) .research-story-link {
  --story-accent: #a6e3d9;
  background: #13393b;
}
.research-story img { width: 100%; aspect-ratio: 1.18; object-fit: cover; }
.research-story:first-child img { object-position: 44% 50%; }
.research-story-copy {
  padding: clamp(1.15rem, 2vw, 1.8rem);
  border-top: 3px solid var(--story-accent);
}
.research-story-copy .eyebrow { color: var(--story-accent); }
.research-story-copy h3 {
  font-size: clamp(1.3rem, 2.25vw, 2.2rem);
  line-height: 1.18;
  text-wrap: initial;
  margin-bottom: 0.75rem;
}
.research-story-summary { color: #e2e9ec; margin-bottom: 1.2rem; }
.research-story-action {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid #ffffff66;
  border-radius: 999px;
  color: white;
  font-size: 0.88rem;
  font-weight: 680;
}
.research-story-link:hover { color: white; }
.research-story-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.research-story-link:hover .research-story-action { background: var(--story-accent); border-color: var(--story-accent); color: var(--deep); }
@media (min-width: 950px) {
  .research-story:first-child { margin-top: 1.65rem; }
  .research-story:nth-child(2) { margin-top: 3.3rem; }
}

.cookie-launcher, .cookie-banner, .feedback-invite { position: fixed; z-index: 10; }
.cookie-launcher, .cookie-banner { inset-inline-start: max(0.9rem, env(safe-area-inset-left)); }
.cookie-launcher {
  inset-block-end: max(0.85rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #56717d;
  border-radius: 100px;
  background: var(--deep);
  color: white;
  box-shadow: 0 4px 14px #10263134;
}
.cookie-launcher:hover { background: #294551; }
.cookie-symbol {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--bright);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 31%, var(--bright) 1px, transparent 1.8px),
    radial-gradient(circle at 63% 65%, var(--bright) 1px, transparent 1.8px);
}
.cookie-banner, .feedback-invite {
  width: min(27rem, calc(100% - 1.8rem));
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.7rem;
  box-shadow: 0 10px 34px #10263138;
}
.cookie-banner {
  z-index: 11;
  inset-block-end: max(4.2rem, calc(env(safe-area-inset-bottom) + 3.3rem));
  max-height: calc(100dvh - 5rem);
  overflow: auto;
  border: 1px solid #3d5260;
  border-top: 3px solid var(--bright);
  background: linear-gradient(145deg, #253e49, var(--deep));
  color: white;
}
.cookie-banner h2, .feedback-invite h2 { font-size: 1.55rem; margin-bottom: 0.45rem; text-wrap: initial; }
.cookie-banner p, .cookie-panel p { color: #e2e9ec; font-size: 0.94rem; margin-bottom: 0.85rem; }
.cookie-actions, .feedback-invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.cookie-actions .btn { min-height: 44px; padding-inline: 0.85rem; }
.cookie-decline { background: transparent; border-color: #81929b; }
.cookie-decline:hover { background: #405462; }
.cookie-customise, .feedback-later {
  min-height: 44px;
  border: 0;
  padding: 0.25rem 0.45rem;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cookie-customise:hover { color: var(--bright); background: transparent; }
.cookie-panel {
  inset: 0 auto 0 0;
  width: min(100%, 28rem);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(1.15rem, 4vw, 2rem);
  border: 0;
  border-inline-end: 3px solid var(--bright);
  overflow-y: auto;
  background: var(--deep);
  color: white;
}
.cookie-panel::backdrop { background: #0f2226a6; }
.cookie-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.65rem; }
.cookie-panel-heading h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0; text-wrap: initial; }
.cookie-close {
  width: 44px;
  height: 44px;
  border: 1px solid #81929b;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}
.cookie-category { position: relative; padding: 1.1rem 0; border-top: 1px solid #50636a; }
.cookie-category h3, .cookie-category label { font: 650 1.03rem/1.3 system-ui, sans-serif; margin: 0 0 0.5rem; }
.cookie-category h3 { display: flex; gap: 0.55rem; align-items: baseline; flex-wrap: wrap; }
.cookie-category-note { color: var(--bright); font-size: 0.78rem; }
.cookie-category p { margin: 0; }
.cookie-category input[type="checkbox"] {
  position: absolute;
  top: 1.05rem;
  right: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  accent-color: var(--bright);
}
.cookie-category label { padding-right: 2.25rem; }
.cookie-panel .cookie-actions { border-top: 1px solid #50636a; padding-top: 1.1rem; }
.feedback-invite {
  inset-inline-end: max(0.9rem, env(safe-area-inset-right));
  inset-block-end: max(4.4rem, calc(env(safe-area-inset-bottom) + 3.5rem));
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--magenta-text);
}
.feedback-invite p { color: var(--muted); margin-bottom: 0.8rem; font-size: 0.96rem; }
.feedback-later:hover { background: var(--tint); color: var(--deep); }
.feedback-form { margin-top: 1.8rem; }
.form-optional { font-weight: normal; }
.feedback-draft { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.15rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.4rem; }
.sitemap-grid > section { background: var(--tint); padding: 1.25rem; border-top: 2px solid var(--lime); }
.sitemap-grid h2 { font-size: 1.65rem; margin: 0 0 0.55rem; text-wrap: initial; }
.sitemap-grid ul { padding-left: 1.2rem; margin: 0; }
.sitemap-grid li + li { margin-top: 0.35rem; }

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner:not([hidden]), .feedback-invite:not([hidden]), .cookie-panel[open] { animation: panel-appear 180ms ease-out; }
  @keyframes panel-appear {
    from { opacity: 0; transform: translateY(0.45rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.expertise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.75rem; }
.expertise-grid li { border-top: 1px solid var(--line); }
.expertise-grid a { position: relative; display: block; min-height: 100%; padding: 1.5rem 2rem 1.5rem 0; text-decoration: none; }
.expertise-grid h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); text-wrap: initial; }
.expertise-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.expertise-grid a span { position: absolute; right: 0.25rem; top: 1.05rem; color: var(--red); font-size: 1.65rem; }
.expertise-grid a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.home-regions { background: var(--tint); }
.home-regions-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.home-regions h2 { text-wrap: initial; }
.sector-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid #abbbba; }
.sector-links a { padding: 0.66rem 0; border-bottom: 1px solid #abbbba; text-decoration: none; display: flex; justify-content: space-between; gap: 0.6rem; font-weight: 630; }
.sector-links a:hover { text-decoration: underline; }
.sector-links a span { color: var(--magenta-text); }
.intro { border-top: 3px solid var(--magenta); }
.intro h1 { text-wrap: initial; }
.prose .article-cover { width: 100%; max-height: 420px; object-fit: cover; }
.related-reading { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.cta, footer { background: var(--deep); }
.cta h2 { font-size: clamp(1.8rem, 3.2vw, 3.25rem); }
main:focus { outline: none; }

@media (max-width: 1010px) {
  .mast nav { gap: 0.3rem; max-height: calc(100dvh - 3.75rem); overflow: auto; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(2.7rem, 5.6vw, 4rem); }
  .featured-track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 3.4rem; }
  .mast { min-height: 52px; }
  .mast nav { max-height: calc(100dvh - 3.4rem); }
  .brand {
    --brand-title-line: 1.23rem;
    --brand-subtitle-line: 0.75rem;
    gap: 0.5rem;
    font-size: 1.2rem;
  }
  .brand small { font-size: 0.59rem; }
  #menu { padding-inline: 0.55rem; }
  body > header.header-scroll-hidden { transform: translateY(-110%); }
  @media (prefers-reduced-motion: no-preference) {
    body > header { transition: transform 180ms ease-out; }
  }
  .hero-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .hero-image { grid-row: 1; min-height: 0; aspect-ratio: 1.8; max-height: 330px; }
  .hero-copy { align-self: start; padding: 1.7rem var(--gutter) 2rem; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(2.45rem, 8.2vw, 3.8rem); margin-bottom: 0.95rem; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 1.05rem; }
  .hero-tabs { gap: 0 0.65rem; }
  .hero-tabs button { font-size: 0.79rem; }
  .answer-layout, .home-regions-grid { grid-template-columns: 1fr; }
  .research-stories-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .research-story img { aspect-ratio: 1.7; }
  .research-story-copy h3 { font-size: clamp(1.5rem, 4.6vw, 2rem); }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
}
@media (max-width: 530px) {
  .hero-controls { flex-wrap: wrap; gap: 0.3rem; }
  .hero-tabs { flex-basis: 100%; justify-content: space-between; }
  .hero-tabs button { flex: 1; }
  .hero-playback { margin-inline-start: auto; }
  .hero-count { margin-inline-end: 0.2rem; }
  .featured-track { grid-auto-columns: 88%; gap: 0.8rem; }
  .section-actions { width: 100%; justify-content: space-between; }
  .question-input { flex-direction: column; align-items: stretch; }
  .question-input .btn { align-self: start; }
  .expertise-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .mast { width: 94%; column-gap: 0.5rem; }
}

.updates { background: #eef4f6; border-top: 1px solid #cfdee2; padding: clamp(1.45rem, 3.5vw, 2.5rem) 0; }
.updates-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .65rem 2.1rem; }
.updates h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin: 0 0 .25rem; }
.updates p { margin: 0; color: #3c5965; }
.updates label { font-size: .91rem; }
.updates-fields { display: flex; gap: .45rem; margin: .28rem 0 .45rem; }
.updates-fields input { margin: 0; min-width: 0; flex: 1; }
.updates-fields button { white-space: nowrap; }
.updates-consent { display: flex; align-items: baseline; gap: .45rem; font-weight: 400; }
.updates-consent input { width: auto; accent-color: #255768; margin: 0; }
.updates .updates-status:not(:empty) { margin-top: .5rem; }
@media (max-width: 640px) { .updates-layout { grid-template-columns: minmax(0, 1fr); } }
