/* ==========================================================================
   IMDIL — Initiative for Media Development and Information Literacy
   styles.css — design system & all pages
   --------------------------------------------------------------------------
   Structure:
     1. Design tokens (light + dark)
     2. Base & reset
     3. Utilities (container, buttons, chips, section headers, reveal)
     4. Header & navigation
     5. Hero + ticker
     6. Home sections (mission, programmes, stats, stories, blog, newsletter)
     7. Inner page hero, breadcrumbs
     8. Cards (programme / blog)
     9. Timeline (About)
    10. Prose & article pages
    11. Programme detail pages
    12. Contact page
    13. Search overlay
    14. Footer & back-to-top
    15. 404
    16. Responsive & motion preferences
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  /* Palette — deep blues, emerald greens, warm neutrals */
  --blue-700: #14477F;
  --blue-600: #1D5CA8;
  --blue-500: #2F76C4;
  --emerald-700: #0A7F57;
  --emerald-600: #0E9F6E;
  --emerald-400: #2CC48F;
  --gold-500: #D9A13B;
  --gold-400: #E8B95E;

  /* Semantic tokens — light theme */
  --bg: #FAF9F5;
  --bg-alt: #F2EFE7;
  --surface: #FFFFFF;
  --surface-2: #F7F5EF;
  --border: #E6E1D4;
  --border-strong: #D3CCBA;
  --text: #101C2E;
  --text-2: #2B3B52;
  --text-muted: #5A6A82;
  --brand: #1D5CA8;
  --brand-strong: #14477F;
  --brand-soft: #E4EEF9;
  --accent: #0E9F6E;
  --accent-strong: #0A7F57;
  --accent-soft: #E0F3EA;
  --gold: #D9A13B;
  --gold-soft: #F7EBD3;
  --danger: #C4453C;
  --navy: #03301F;
  --navy-2: #0B402C;
  --navy-950: #012619;
  --on-navy: #EDF2F9;
  --on-navy-muted: #A3B4CA;
  --on-navy-border: rgba(237, 242, 249, 0.14);

  /* Type */
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 46, 0.06), 0 2px 8px rgba(16, 28, 46, 0.05);
  --shadow-md: 0 6px 16px -6px rgba(16, 28, 46, 0.14), 0 2px 6px rgba(16, 28, 46, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(1, 22, 15, 0.3);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.25s;

  --header-h: 74px;
}

html[data-theme="dark"] {
  --bg: #0A1424;
  --bg-alt: #0D1B30;
  --surface: #101F38;
  --surface-2: #142641;
  --border: #223652;
  --border-strong: #33496A;
  --text: #EDF2F9;
  --text-2: #C3D0E0;
  --text-muted: #8CA0BB;
  --brand: #5B9BE0;
  --brand-strong: #79B0E8;
  --brand-soft: rgba(91, 155, 224, 0.15);
  --accent: #2CC48F;
  --accent-strong: #4CD3A2;
  --accent-soft: rgba(44, 196, 143, 0.15);
  --gold: #E8B95E;
  --gold-soft: rgba(232, 185, 94, 0.16);
  --navy: #011D13;
  --navy-2: #072F20;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* 2. Base & reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--speed) ease, color var(--speed) ease;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--speed) ease;
}

a:hover {
  color: var(--brand-strong);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 3. Utilities
   ========================================================================== */
.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head.center .kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem);
  margin-bottom: 1rem;
}

.section-lede {
  font-size: 1.075rem;
  color: var(--text-muted);
}

/* Highlight word with hand-drawn underline */
.hl {
  color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 9' preserveAspectRatio='none'%3E%3Cpath d='M1 7 Q 12 2 25 5 T 50 5 T 75 4 T 99 6' fill='none' stroke='%230E9F6E' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.32em;
  padding-bottom: 0.12em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    background-color var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
  -webkit-tap-highlight-color: transparent;
}

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

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--speed) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 12px 26px -8px var(--brand);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--accent);
}

.btn-accent:hover {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 12px 26px -8px var(--accent);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--navy);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.5);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* Chips & tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip-gold {
  background: var(--gold-soft);
  color: #8A5B14;
}

html[data-theme="dark"] .chip-gold {
  color: var(--gold);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 4. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-2);
  border-radius: var(--radius);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: background-color var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.nav-burger {
  display: none;
}

/* Sun/moon toggle */
.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Mobile navigation panel */
.mobile-nav {
  display: none;
}

/* 5. Hero + ticker
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vh, 6rem) clamp(4rem, 9vh, 6.5rem);
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.blob-a {
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  top: -18%;
  right: -10%;
  background: radial-gradient(circle, rgba(29, 92, 168, 0.32), transparent 65%);
  animation: blob-drift-a 24s ease-in-out infinite alternate;
}

.blob-b {
  width: 38vw;
  height: 38vw;
  min-width: 340px;
  min-height: 340px;
  bottom: -22%;
  left: -12%;
  background: radial-gradient(circle, rgba(14, 159, 110, 0.26), transparent 65%);
  animation: blob-drift-b 28s ease-in-out infinite alternate;
}

.blob-c {
  width: 26vw;
  height: 26vw;
  min-width: 240px;
  min-height: 240px;
  top: 8%;
  left: 32%;
  background: radial-gradient(circle, rgba(217, 161, 59, 0.2), transparent 65%);
  animation: blob-drift-c 32s ease-in-out infinite alternate;
}

html[data-theme="dark"] .blob-a {
  background: radial-gradient(circle, rgba(91, 155, 224, 0.16), transparent 65%);
}

html[data-theme="dark"] .blob-b {
  background: radial-gradient(circle, rgba(44, 196, 143, 0.13), transparent 65%);
}

html[data-theme="dark"] .blob-c {
  background: radial-gradient(circle, rgba(232, 185, 94, 0.1), transparent 65%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 0%, transparent 75%);
}

@keyframes blob-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 10%, 0) scale(1.12); }
}

@keyframes blob-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(10%, -8%, 0) scale(1.15); }
}

@keyframes blob-drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-12%, 14%, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  min-height: clamp(480px, 72vh, 660px);
}

.hero-title {
  font-size: clamp(2.35rem, 4.6vw + 0.8rem, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw + 0.5rem, 1.18rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  list-style: none;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 34rem;
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat b em {
  font-style: normal;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero illustration */
.hero-art {
  position: relative;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.svg-float-a {
  animation: svg-float 6.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-float-b {
  animation: svg-float 7.5s ease-in-out 0.8s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-float-c {
  animation: svg-float 8.5s ease-in-out 1.6s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes svg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.ring {
  animation: ring-pulse 3.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.ring-2 {
  animation-delay: 1.1s;
}

.ring-3 {
  animation-delay: 2.2s;
}

@keyframes ring-pulse {
  0% { transform: scale(0.35); opacity: 0.85; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

.node {
  animation: node-pulse 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--text-muted), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Ticker */
.ticker {
  background: var(--navy);
  overflow: hidden;
  padding-block: 0.85rem;
  border-block: 1px solid var(--on-navy-border);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy);
  white-space: nowrap;
}

.ticker-item svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-400);
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* 6. Home sections
   ========================================================================== */
/* Mission split */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.photo-stack {
  position: relative;
  padding-bottom: 3.5rem;
}

.photo-main,
.photo-accent {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.photo-main img,
.photo-accent img {
  width: 100%;
  object-fit: cover;
}

.photo-main {
  max-width: 88%;
}

.photo-main img {
  aspect-ratio: 4 / 3;
}

.photo-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  border: 6px solid var(--bg);
}

.photo-accent img {
  aspect-ratio: 1 / 1;
}

.badge-card {
  position: absolute;
  top: -1.25rem;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1.2rem;
  animation: svg-float 7s ease-in-out infinite;
}

.badge-card svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}

.badge-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.1;
}

.badge-card span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.split-copy .section-title {
  font-size: clamp(1.7rem, 2.4vw + 0.9rem, 2.5rem);
}

.split-copy p {
  margin-bottom: 1.2rem;
}

.mission-points {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.mission-point {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) ease;
}

.mission-point:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.mission-point svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.mission-point h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.mission-point p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Stats band */
.stats-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(14, 159, 110, 0.22), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(47, 118, 196, 0.3), transparent 50%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 70%);
  color: var(--on-navy);
  border-block: 1px solid var(--on-navy-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(100deg, #ffffff, #A9C7EA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-num em {
  font-style: normal;
  background: linear-gradient(100deg, var(--emerald-400), var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--on-navy-muted);
  font-weight: 500;
}

/* Programme & blog card grids */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

/* Photo-less card media (gradient banner with icon) */
.card-media-plain {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 159, 110, 0.35), transparent 55%),
    linear-gradient(140deg, var(--navy-2), var(--navy));
  color: var(--emerald-400);
}

.card-media-plain svg {
  width: 56px;
  height: 56px;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media-plain svg {
  transform: scale(1.12) rotate(-4deg);
}

.card-icon {
  position: absolute;
  left: 1.1rem;
  bottom: -1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  box-shadow: var(--shadow-md);
  transition: background-color var(--speed) ease, color var(--speed) ease;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card:hover .card-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.1rem 1.4rem 1.4rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--brand);
}

.card-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

.card-link svg {
  width: 17px;
  height: 17px;
  transition: transform var(--speed) var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Blog card specifics */
.blog-card .card-media img {
  aspect-ratio: 16 / 9;
}

/* Featured post card (Resources page) */
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}

.featured-card .card-media img {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.featured-card .card-body {
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.featured-card .card-title {
  font-size: clamp(1.35rem, 2vw + 0.8rem, 1.9rem);
}

@media (min-width: 860px) {
  .featured-card {
    grid-template-columns: 1.1fr 1fr;
  }

  .featured-card .card-media img {
    aspect-ratio: auto;
  }
}

.blog-card .card-body {
  padding-top: 1.5rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-meta svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 0.3rem;
  color: var(--accent);
}

/* Testimonial slider */
.slider {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.slides {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 0.55s var(--ease);
}

.slide {
  flex: 0 0 100%;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 4.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.quote-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

.slide-quote {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw + 0.6rem, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.slide-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.slide-author figcaption {
  text-align: left;
  line-height: 1.35;
}

.slide-author strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.slide-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: background-color var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease, transform var(--speed) ease;
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  transition: width 0.3s var(--ease), background-color 0.3s ease;
}

.slider-dot.is-active {
  width: 26px;
  background: var(--accent);
}

/* Newsletter */
.newsletter-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(14, 159, 110, 0.3), transparent 42%),
    linear-gradient(150deg, var(--navy-2), var(--navy) 65%);
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 6vw, 4rem);
  color: var(--on-navy);
  box-shadow: var(--shadow-lg);
}

.newsletter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.newsletter-copy,
.newsletter-form {
  position: relative;
}

.newsletter-copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw + 0.8rem, 2.3rem);
  margin-bottom: 0.75rem;
}

.newsletter-copy p {
  color: var(--on-navy-muted);
  max-width: 30rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--on-navy-border);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: border-color var(--speed) ease, background-color var(--speed) ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--on-navy-muted);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--emerald-400);
  background: rgba(255, 255, 255, 0.12);
}

.form-note {
  font-size: 0.78rem;
  color: var(--on-navy-muted);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(14, 159, 110, 0.18);
  border: 1px solid rgba(44, 196, 143, 0.4);
  color: #B7EFD9;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-success svg {
  width: 20px;
  height: 20px;
  color: var(--emerald-400);
  flex-shrink: 0;
}

/* Where we work chips */
.where-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.where-chips .chip {
  padding: 0.5rem 1.1rem;
  font-size: 0.84rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.where-chips .chip svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* 7. Inner page hero & breadcrumbs
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.75rem, 6vw, 4.25rem);
  background: var(--bg);
}

.page-hero .blob {
  filter: blur(80px);
  opacity: 0.5;
}

.page-hero .container {
  position: relative;
}

.breadcrumbs {
  margin-bottom: 1.75rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.breadcrumbs [aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

.page-title {
  font-size: clamp(2.1rem, 3.6vw + 0.9rem, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1.1rem;
}

.page-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* 8. Cards
   ========================================================================== */
.section-link-row {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}

.filter-chip {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.86rem;
  transition: all var(--speed) ease;
}

.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

html[data-theme="dark"] .filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
}

/* 9. Timeline
   ========================================================================== */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 15px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--brand), var(--accent) 55%, var(--gold));
  opacity: 0.45;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 3.4rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.timeline-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.timeline-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* 10. Prose & article pages
   ========================================================================== */
.post-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-block: 2.25rem 2.75rem;
}

.post-hero-img img {
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
}

.post-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1180px;
}

.prose {
  font-size: 1.05rem;
  color: var(--text-2);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.6em;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--accent);
  font-weight: 700;
}

.prose blockquote {
  margin: 1.75em 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  color: var(--text);
}

.prose blockquote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.5;
}

.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prose figure {
  margin: 1.75em 0;
}

.prose figure img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.prose code {
  font-size: 0.9em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 2.25em;
}

/* Article sidebar */
.post-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.side-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.side-block h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  transition: all var(--speed) ease;
}

.share-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.share-btn svg {
  width: 19px;
  height: 19px;
}

.share-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.author-box h3 {
  font-size: 1rem;
}

.author-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* 11. Programme detail pages
   ========================================================================== */
.prog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.98rem;
}

.check-list svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.prog-facts {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 1rem;
}

.fact {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.fact svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.fact span {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.cta-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(14, 159, 110, 0.3), transparent 50%),
    linear-gradient(150deg, var(--navy-2), var(--navy));
  color: var(--on-navy);
}

.cta-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--on-navy-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
}

/* 12. Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-group label .req {
  color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease, background-color var(--speed) ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  background: var(--surface);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(196, 69, 60, 0.12);
}

/* Honeypot field — hidden from users, catches bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}

.form-status {
  display: none;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.form-status.is-success {
  display: block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.form-status.is-error {
  display: block;
  background: rgba(196, 69, 60, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.info-card a {
  color: var(--text-muted);
}

.info-card a:hover {
  color: var(--brand);
}

.info-stack {
  display: grid;
  gap: 1rem;
}

.map-wrap {
  margin-top: 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  transition: all var(--speed) ease;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 19px;
  height: 19px;
}

/* 13. Search overlay
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.5rem 2rem;
  background: rgba(1, 38, 25, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlay-in 0.22s ease;
  overflow-y: auto;
}

.search-overlay[hidden] {
  display: none;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-dialog {
  width: min(640px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dialog-in 0.28s var(--ease);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-form > svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 1.05rem;
  padding: 0.3rem 0;
  color: var(--text);
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  max-height: min(48vh, 380px);
  overflow-y: auto;
}

.search-result {
  display: block;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  transition: background-color var(--speed) ease;
}

.search-result:first-child {
  border-top: 0;
}

.search-result:hover,
.search-result.is-active {
  background: var(--bg-alt);
}

.search-result-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.search-result.is-active .search-result-title,
.search-result:hover .search-result-title {
  color: var(--brand);
}

.search-result-url {
  display: block;
  font-size: 0.74rem;
  color: var(--accent-strong);
  margin: 0.1rem 0 0.3rem;
}

.search-result-excerpt {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.search-result mark {
  background: var(--gold-soft);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

.search-empty {
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.search-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  background: var(--surface-2);
}

body.search-open {
  overflow: hidden;
}

/* 14. Footer & back-to-top
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--on-navy);
  border-top: 1px solid var(--on-navy-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-brand .brand:hover {
  color: #fff;
}

.footer-brand .brand-tag {
  color: var(--on-navy-muted);
}

.footer-blurb {
  font-size: 0.92rem;
  color: var(--on-navy-muted);
  max-width: 26rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: 1.15rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-link {
  color: var(--on-navy);
  font-size: 0.93rem;
  opacity: 0.82;
}

.footer-link:hover {
  color: var(--emerald-400);
  opacity: 1;
}

.footer-contact {
  font-size: 0.93rem;
  color: var(--on-navy-muted);
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--emerald-400);
  vertical-align: -2px;
  margin-right: 0.5rem;
}

.footer-contact a {
  color: var(--on-navy);
  opacity: 0.82;
}

.footer-contact a:hover {
  color: var(--emerald-400);
  opacity: 1;
}

.site-footer .social-link {
  border-color: var(--on-navy-border);
  color: var(--on-navy);
}

.site-footer .social-link:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid var(--on-navy-border);
  font-size: 0.82rem;
  color: var(--on-navy-muted);
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--speed) ease, transform var(--speed) var(--ease), background-color var(--speed) ease;
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* 15. 404
   ========================================================================== */
.notfound {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand), var(--accent) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.notfound h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.notfound p {
  color: var(--text-muted);
  max-width: 30rem;
  margin: 0 auto 2rem;
}

/* 16. Responsive & motion preferences
   ========================================================================== */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-form {
    flex-direction: row;
    align-items: center;
  }

  .newsletter-form input[type="email"] {
    flex: 1;
  }

  .newsletter-form .btn {
    flex-shrink: 0;
  }
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .prog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .post-body {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 0.9fr 1fr 1.2fr;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-1.5px);
  }

  .timeline-item {
    padding: 0 0 3.25rem;
    width: 50%;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 3.25rem;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3.25rem;
  }

  .timeline-dot {
    top: 8px;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -8.5px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -8.5px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1080px) {
  .nav-list,
  .nav-actions .nav-cta {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .main-nav {
    gap: 0.4rem;
  }

  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem 1.5rem;
    animation: mobile-nav-in 0.25s var(--ease);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  @keyframes mobile-nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.25rem;
  }

  .mobile-nav-list .nav-link {
    padding: 0.8rem 0.6rem;
    font-size: 1.02rem;
  }

  .mobile-nav-list .nav-link::after {
    display: none;
  }

  .mobile-nav-list .nav-link.is-active {
    color: var(--brand);
  }

  .mobile-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art {
    max-width: 420px;
  }

  .hero-scroll {
    display: none;
  }

  .photo-main {
    max-width: 100%;
  }

  .photo-accent {
    width: 58%;
  }

  .badge-card {
    top: auto;
    bottom: 4.5rem;
    right: -0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 2.5rem);
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .brand-tag {
    display: none;
  }

  .stats-grid {
    gap: 1.75rem 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }
}
