@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue/Bebas_Neue/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk/Space_Grotesk/static/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk/Space_Grotesk/static/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk/Space_Grotesk/static/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #000000;
  --bg-1: #000000;
  --surface: rgba(28, 22, 16, 0.5);
  --text-main: #ead8a5;
  --text-soft: #c7b793;
  --line: rgba(241, 227, 181, 0.28);
  --cyan: #9f7f5d;
  --lime: #d9ca9f;
  --orange: #b69470;
  --card-1: #d9b67f;
  --card-2: #99a08a;
  --card-3: #c89180;
  --maroon: #A56969;
  --space-section: clamp(2.5rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-main);
  background: #000;
  overflow-x: hidden;
}

#site-header-slot {
  min-height: 88px;
}

img,
video,
svg {
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  opacity: 0.45;
  transition: transform 150ms linear;
}

.glow-a {
  background: rgba(181, 142, 98, 0.56);
  top: -110px;
  left: -70px;
}

.glow-b {
  background: rgba(232, 210, 158, 0.36);
  right: -90px;
  bottom: -110px;
}

.site-header,
main,
.site-footer {
  position: relative;
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 0;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 1.5rem + 1vw, 2.4rem);
  letter-spacing: 0.04em;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: clamp(42px, 4.6vw, 56px);
  height: clamp(42px, 4.6vw, 56px);
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1;
  transform: translateY(1px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(181, 142, 98, 0.16);
  color: var(--text-main);
  width: 2.6rem;
  height: 2.3rem;
  padding: 0.4rem 0.45rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  flex-direction: column;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  /* fully opaque, high-contrast background so dark icons are visible on black */
  background: var(--card-1);
  border-radius: 8px;
  padding: 4px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.social-link img {
  width: 28px;
  height: 28px;
  display: block;
  filter: grayscale(100%); /* subtle */
  transition: filter 160ms ease, transform 160ms ease;
}

.social-link:hover img {
  filter: none;
  transform: translateY(-2px);
}

.social-link:focus {
  outline: 3px solid rgba(241, 227, 181, 0.24);
  outline-offset: 2px;
}

.social-link:hover {
  background: var(--card-3);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

/* Utility: visually-hidden (accessible text only) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* When images are hidden for accessibility, show text labels for social links */
html.a11y-hide-images .social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(181, 142, 98, 0.12);
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
}

html.a11y-hide-images .social-link img { display: none !important; }
html.a11y-hide-images .social-link .social-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  color: var(--text-main);
}

.bbc-footer-social {
  margin: 0.8rem 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nav-link {
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.92rem;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-main);
  border-color: var(--line);
  background: rgba(181, 142, 98, 0.22);
}

.cta-button {
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(181, 142, 98, 0.5), rgba(232, 210, 158, 0.3));
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 227, 181, 0.7);
}

.hero {
  padding: clamp(3rem, 7vh, 5rem) 0 var(--space-section);
  max-width: 760px;
  animation: fadeSlide 650ms ease both;
}

body[data-page="home"] .hero {
  max-width: 100%;
}

body[data-page="home"] .hero > :not(.eyebrow) {
  max-width: 760px;
}

body[data-page="home"] .hero > .eyebrow {
  display: block;
  width: 100%;
}

.eyebrow {
  color: var(--maroon);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  margin: 0.3rem 0 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 1.5rem + 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 4px rgba(92, 58, 58, 0.2);
}

.hero-copy {
  color: var(--text-soft);
  max-width: 58ch;
  line-height: 1.65;
}

.logo-lockup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 0.9rem 0;
}

.logo-lockup img {
  max-height: 48px;
  width: auto;
}

.hero-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--bg-0);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(100deg, var(--cyan), var(--lime));
  padding: 0.68rem 1.05rem;
  border-radius: 12px;
  transition: transform 160ms ease, filter 160ms ease;
}

.hero-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: var(--space-section);
}

.section {
  margin-bottom: var(--space-section);
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 1.5rem + 2vw, 2.9rem);
  text-shadow: 0 2px 4px rgba(92, 58, 58, 0.2);
  margin: 0.2rem 0 0.65rem;
}

.section-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
  max-width: 72ch;
}

.section-copy + .section-copy {
  margin-top: 0.9rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.highlight-card {
  background: var(--card-2);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  transition: box-shadow 220ms ease;
}

.highlight-card:nth-of-type(3n + 2) {
  background: var(--card-3);
}

.highlight-card:nth-of-type(3n) {
  background: var(--card-1);
}

.highlight-card .section-title,
.highlight-card .section-copy,
.highlight-card .list,
.highlight-card p,
.highlight-card li {
  color: #221d18;
}

.highlight-card:hover {
  box-shadow: 0 0 24px rgba(34, 29, 24, 0.16);
}

.carousel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12, 12, 12, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.96), rgba(22, 18, 14, 0.9));
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 380ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: max-height 220ms ease;
}

.carousel-slide.is-tall-image img {
  max-height: 100%;
}

body[data-page="home"] .carousel-track {
  aspect-ratio: auto;
  height: clamp(320px, 60vw, 780px);
}

body[data-page="home"] .carousel-slide img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}

body[data-page="home"] .carousel-slide.is-tall-image img {
  max-height: 100% !important;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.85);
  color: var(--text-main);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-control.prev {
  left: 0.7rem;
}

.carousel-control.next {
  right: 0.7rem;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.92);
  cursor: pointer;
  transition: transform 160ms ease;
}

.carousel-dot:hover {
    transform: scale(1.1);
}

.carousel-dot.is-active {
  background: var(--cyan);
  border-color: rgba(241, 227, 181, 0.75);
}

.survey-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--card-1);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 40px rgba(4, 11, 26, 0.35);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.survey-card:nth-of-type(3n + 2) {
  background: var(--card-2);
}

.survey-card:nth-of-type(3n) {
  background: var(--card-3);
}

.survey-card:hover {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 24px rgba(34, 29, 24, 0.14), 0 18px 44px rgba(0, 0, 0, 0.45);
}

.survey-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
}

.survey-card .survey-art {
  object-fit: contain;
  padding: 0.9rem;
  opacity: 0.88;
  background: radial-gradient(circle at 15% 12%, rgba(217, 182, 127, 0.24), rgba(200, 145, 128, 0.14) 55%, transparent 70%);
  filter: saturate(0.88) contrast(1.03);
}

.survey-card-body {
  padding: 2rem 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.survey-card-body .section-title {
  color: #221d18;
  margin: 0;
}

.survey-card-body .section-copy {
  color: #2d2924;
  margin: 0;
}

.survey-card-body .eyebrow {
  color: #3c3028;
}

.survey-card-body .hero-link {
  align-self: flex-start;
  margin-top: 0.4rem;
}

.supported-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.support-logo {
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid rgba(181, 142, 98, 0.46);
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 1rem 1.2rem;
  box-shadow: 0 0 18px rgba(181, 142, 98, 0.24), 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.support-logo:hover {
  border-color: rgba(181, 142, 98, 0.78);
  box-shadow: 0 0 28px rgba(181, 142, 98, 0.3), 0 6px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.support-logo img {
  max-width: 100%;
  height: 120px;
  width: auto;
}

.support-logo-link {
  text-decoration: none;
}

.support-logo-link:focus-visible {
  outline: 3px solid rgba(241, 227, 181, 0.9);
  outline-offset: 2px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  padding: 0.85rem 1rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.faq-question-text {
  line-height: 1.45;
}

.faq-toggle-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item.is-open .faq-toggle-icon {
  background: rgba(181, 142, 98, 0.2);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 280ms ease, opacity 220ms ease;
}

.faq-answer-panel > :first-child {
  margin-top: 0.7rem;
}

.faq-answer-panel .list {
  margin-top: 0.65rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  max-width: 640px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 22, 40, 0.6);
  color: var(--text-main);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-thank-you {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 22, 40, 0.55);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(4, 11, 26, 0.28);
}

.contact-thank-you h2 {
  margin: 0 0 0.5rem;
}

.contact-thank-you p {
  margin: 0;
  color: var(--text-soft);
}

.feature-card {
  background: var(--card-1);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  padding: 1rem 1rem 1.2rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 40px rgba(4, 11, 26, 0.35);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease;
  animation: fadeSlide 650ms ease both;
}

.feature-card-link {
  display: block;
  text-decoration: none;
}

.feature-card:nth-child(2) {
  background: var(--card-2);
  animation-delay: 90ms;
}

.feature-card:nth-child(3) {
  background: var(--card-3);
  animation-delay: 170ms;
}

.feature-card:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.feature-card-link:focus-visible {
  outline: 2px solid rgba(34, 29, 24, 0.65);
  outline-offset: 2px;
}

.feature-card h2 {
  color: #1f1b16;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: #2d2924;
  margin: 0;
  line-height: 1.5;
}

.feature-card p + p {
  margin-top: 0.9rem;
}

.feature-card .who-bio-extra {
  margin-top: 0.9rem;
}

.read-more-block {
  margin-top: 0.8rem;
}

.read-more-toggle {
  display: block;
  cursor: pointer;
  color: var(--text-main);
  background: var(--orange);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0.7rem auto 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font: inherit;
}

.read-more-block.is-open .read-more-toggle {
  background: rgba(181, 142, 98, 0.2);
}

.read-more-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms ease, opacity 220ms ease;
}

.read-more-block.is-open .read-more-content {
  opacity: 1;
}

.read-more-inner > p:first-of-type {
  margin-top: 0.9rem;
}

.profile-photo {
  width: 50%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.newsletter-band {
  width: min(1080px, 92vw);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(520px 180px at 10% 0%, rgba(181, 142, 98, 0.22), transparent 60%),
    linear-gradient(130deg, rgba(12, 12, 12, 0.92), rgba(24, 20, 16, 0.82));
  box-shadow: 0 14px 36px rgba(4, 11, 26, 0.34);
  backdrop-filter: blur(8px);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
}

.newsletter-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.newsletter-copy h2 {
  margin: 0 0 0.3rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.8rem;
  color: var(--text-main);
}

.newsletter-copy p {
  margin: 0;
  color: var(--text-soft);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 12, 10, 0.7);
  color: var(--text-main);
  font: inherit;
  padding: 0.62rem 0.72rem;
}

.newsletter-form button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(157, 121, 88, 0.6), rgba(197, 162, 121, 0.4));
  color: var(--text-main);
  font: inherit;
  font-weight: 700;
  padding: 0.62rem 0.95rem;
  cursor: pointer;
}

.newsletter-form button:hover {
  border-color: rgba(241, 227, 181, 0.72);
}

.site-footer {
  margin-top: 0;
  padding: 0.9rem 0 1.4rem;
  color: var(--text-soft);
}

.bbc-footer {
  border-top: 1px solid var(--line);
}

.bbc-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.bbc-footer-brand {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.7rem;
  color: var(--text-main);
  text-decoration: none;
}

.bbc-footer-tagline {
  margin: 0;
  font-size: 0.92rem;
}

.bbc-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.bbc-footer-column {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.bbc-footer-column h3 {
  margin: 0 0 0.2rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  color: var(--text-main);
}

.bbc-footer-column a {
  color: var(--lime);
  text-decoration: none;
  font-size: 0.95rem;
}

.bbc-footer-column a:hover {
  text-decoration: underline;
}

.bbc-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
}

.bbc-footer-meta p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.92rem;
}

.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;
}

.pulse .glow-a {
  transform: scale(1.15) translate(8px, 6px);
}

.pulse .glow-b {
  transform: scale(1.12) translate(-8px, -6px);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .nav-links,
  .social-links {
    width: 100%;
  }

  .supported-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .survey-card {
    grid-template-columns: 1fr;
  }

  .survey-card img {
    max-height: 200px;
  }

  .survey-card-body {
    padding: 1.5rem;
  }

  .newsletter-inner,
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .bbc-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: clamp(2.5rem, 5vh, 4rem);
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer,
  .newsletter-band {
    width: min(1080px, 94vw);
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-links,
  .social-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .nav.is-open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .nav.is-open .social-links {
    display: flex;
    order: 4;
    justify-content: flex-start;
  }

  .nav-link {
    text-align: center;
  }

  .profile-photo {
    width: 72%;
  }

  .carousel-control {
    width: 2rem;
    height: 2rem;
    font-size: 1.15rem;
  }

  .carousel-control.prev {
    left: 0.45rem;
  }

  .carousel-control.next {
    right: 0.45rem;
  }

  .cookie-banner-text {
    min-width: 0;
  }

  .back-to-top {
    right: 1rem;
    bottom: 4.8rem;
  }

  .a11y-fab {
    right: 1rem;
    bottom: 1rem;
  }

  #site-header-slot {
    min-height: 76px;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 0.85rem 0;
  }

  .brand {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .nav.is-open .nav-links {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .hero-link,
  .cta-button {
    width: 100%;
    text-align: center;
  }

  .supported-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 100%;
    max-width: 240px;
  }

  .a11y-panel {
    width: 100vw;
  }

  .a11y-contrast-grid {
    grid-template-columns: 1fr;
  }

  .bbc-footer-grid {
    grid-template-columns: 1fr;
  }

  .bbc-footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Back to top button */
.admin-shortcut {
  display: none;
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 905;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(181, 142, 98, 0.56), rgba(232, 210, 158, 0.4));
  backdrop-filter: blur(8px);
  color: var(--text-main);
  place-items: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-shortcut:hover {
  border-color: rgba(241, 227, 181, 0.72);
  box-shadow: 0 0 18px rgba(181, 142, 98, 0.42);
  transform: translateY(-1px);
}

.admin-shortcut svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.back-to-top {
  position: fixed;
  bottom: 5.4rem;
  right: 1.6rem;
  z-index: 900;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(181, 142, 98, 0.56), rgba(232, 210, 158, 0.4));
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(241, 227, 181, 0.72);
  box-shadow: 0 0 18px rgba(181, 142, 98, 0.42);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin: 0 0 0.3rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-text p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--lime);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-soft);
}

.cookie-btn-reject:hover {
  border-color: rgba(241, 227, 181, 0.45);
  color: var(--text-main);
}

.cookie-btn-accept {
  background: linear-gradient(110deg, rgba(181, 142, 98, 0.6), rgba(214, 187, 134, 0.45));
  color: var(--text-main);
  border-color: rgba(214, 187, 134, 0.55);
}

.cookie-btn-accept:hover {
  border-color: rgba(241, 227, 181, 0.74);
}

@media (max-width: 560px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ── OpenDyslexic font ─── */
@font-face {
  font-family: "OpenDyslexic";
  src: url("https://cdn.jsdelivr.net/gh/antijingoist/opendyslexic@master/compiled/OpenDyslexic-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Accessibility FAB ─── */
.a11y-fab {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 980;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(181, 142, 98, 0.56), rgba(232, 210, 158, 0.4));
  backdrop-filter: blur(8px);
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.a11y-fab svg {
  width: 1.4rem;
  height: 1.4rem;
}

.a11y-fab:hover {
  border-color: rgba(241, 227, 181, 0.72);
  box-shadow: 0 0 18px rgba(181, 142, 98, 0.45);
}

/* ── Accessibility Panel ─── */
.a11y-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 92vw);
  z-index: 990;
  background: rgba(10, 10, 10, 0.97);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.a11y-panel.is-open { transform: translateX(0); }

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.a11y-panel-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.a11y-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  transition: border-color 150ms ease, color 150ms ease;
}

.a11y-close:hover {
  border-color: rgba(241, 227, 181, 0.55);
  color: var(--text-main);
}

.a11y-panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 0.6rem 1rem 5rem;
}

.a11y-section {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.a11y-section:last-of-type { border-bottom: none; }

.a11y-section-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: var(--lime);
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

/* Font size controls */
.a11y-font-size-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.4rem;
}

.a11y-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(181, 142, 98, 0.2);
  color: var(--text-main);
  font: inherit;
  font-size: 0.93rem;
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.a11y-btn:hover {
  border-color: rgba(241, 227, 181, 0.5);
  background: rgba(181, 142, 98, 0.36);
}

/* Contrast grid */
.a11y-contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.a11y-contrast-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(181, 142, 98, 0.2);
  color: var(--text-main);
  font: inherit;
  font-size: 0.86rem;
  padding: 0.45rem 0.3rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.a11y-contrast-btn:hover,
.a11y-contrast-btn.is-active {
  border-color: rgba(241, 227, 181, 0.72);
  background: rgba(181, 142, 98, 0.48);
}

/* Toggle rows */
.a11y-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.a11y-toggle {
  position: relative;
  flex-shrink: 0;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(181, 142, 98, 0.2);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.a11y-toggle span {
  position: absolute;
  top: 50%;
  left: 0.18rem;
  transform: translateY(-50%);
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--text-soft);
  transition: left 200ms ease, background 200ms ease;
}

.a11y-toggle.is-on {
  background: rgba(181, 142, 98, 0.82);
  border-color: rgba(214, 187, 134, 0.8);
}

.a11y-toggle.is-on span {
  left: calc(100% - 0.18rem - 0.95rem);
  background: var(--text-main);
}

/* Reset button */
.a11y-reset {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem;
  background: rgba(181, 142, 98, 0.2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.a11y-reset:hover {
  border-color: rgba(241, 227, 181, 0.55);
  color: var(--text-main);
}

/* ── Accessibility state classes ─── */

html[data-a11y-font-size="-2"] { font-size: 80%; }
html[data-a11y-font-size="-1"] { font-size: 90%; }
html[data-a11y-font-size="1"]  { font-size: 112%; }
html[data-a11y-font-size="2"]  { font-size: 125%; }
html[data-a11y-font-size="3"]  { font-size: 140%; }
html[data-a11y-font-size="4"]  { font-size: 158%; }

html.a11y-large-line-height * { line-height: 2 !important; }
html.a11y-large-letter-spacing * { letter-spacing: 0.12em !important; }
html.a11y-large-word-spacing * { word-spacing: 0.25em !important; }

html.a11y-grayscale { filter: grayscale(100%); }

html.a11y-dyslexia-font,
html.a11y-dyslexia-font * {
  font-family: "OpenDyslexic", "Comic Sans MS", Arial, sans-serif !important;
}

html.a11y-highlight-links a {
  background: rgba(255, 255, 0, 0.22) !important;
  color: #ffff00 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  outline: 2px solid rgba(255, 255, 0, 0.35);
  border-radius: 2px;
  padding: 0 2px;
}

html.a11y-left-align * { text-align: left !important; }

/* Allow specific images to opt-out of the global "hide images" accessibility rule
  by giving them the `a11y-allow` class. This keeps small UI icons (logo, social
  icons) visible even when a user has chosen to hide large content images. */
html.a11y-hide-images img:not(.a11y-allow),
html.a11y-hide-images video:not(.a11y-allow),
html.a11y-hide-images [role="img"]:not(.a11y-allow) { visibility: hidden !important; }

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-enhanced-focus *:focus-visible {
  outline: 3px solid #ffff00 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(255, 255, 0, 0.28) !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2 L5 18 L9 14 L12 21 L14 20 L11 13 L16 13 Z' fill='white' stroke='black' stroke-width='0.8'/%3E%3C/svg%3E") 5 2, auto !important;
}

/* High contrast — dark */
html.a11y-contrast-high-dark {
  --bg-0: #000000; --bg-1: #111111;
  --surface: rgba(28, 28, 28, 0.98);
  --text-main: #ffffff; --text-soft: #eeeeee;
  --line: rgba(255, 255, 255, 0.45);
  --lime: #ffff00; --orange: #ff8800; --cyan: #00e5ff;
}
html.a11y-contrast-high-dark body { background: #000 !important; }

/* High contrast — light */
html.a11y-contrast-high-light {
  --bg-0: #ffffff; --bg-1: #f0f0f0;
  --surface: rgba(220, 220, 220, 0.98);
  --text-main: #000000; --text-soft: #111111;
  --line: rgba(0, 0, 0, 0.42);
  --lime: #00008b; --orange: #8b0000; --cyan: #004080;
}
html.a11y-contrast-high-light body { background: #fff !important; color: #000 !important; }
html.a11y-contrast-high-light .noise,
html.a11y-contrast-high-light .glow { display: none !important; }

/* Yellow on black */
html.a11y-contrast-yellow {
  --bg-0: #000000; --bg-1: #000000;
  --surface: rgba(18, 18, 0, 0.98);
  --text-main: #ffff00; --text-soft: #eeee00;
  --line: rgba(255, 255, 0, 0.5);
  --lime: #ffff00; --orange: #ffa500; --cyan: #ffff00;
}
html.a11y-contrast-yellow body { background: #000 !important; color: #ffff00 !important; }

/* Reading guide */
.a11y-reading-guide-line {
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 200, 0, 0.85);
  pointer-events: none;
  z-index: 9900;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.55), 0 0 2px rgba(255, 200, 0, 0.9);
  transform: translateY(-1px);
}

/* Reading mask */
.a11y-mask-top,
.a11y-mask-bottom {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.68);
  pointer-events: none;
  z-index: 9899;
}

.a11y-mask-top { top: 0; height: 0; }
.a11y-mask-bottom { top: 100vh; bottom: 0; }
