/* ==========================================================================
   CECSC — Centre of Excellence for Climate and Societal Changes
   Design v2 — institutional, flat, image-led (reference: pik-potsdam.de)
   Brand: CECSC Concept 3 (glyph, colors, type) per design handoff
   ========================================================================== */

:root {
  /* Brand colors */
  --amber: #B47B14;
  --amber-bright: #D9A33C;
  --teal: #2F7379;
  --petrol: #2A5D63;
  --sage: #8FA383;
  --slate: #1E242A;
  --paper: #F7F4ED;
  --cream: #FBFAF6;

  /* Panel & card tints — drawn from the logo palette */
  --tint-sage: #8FA383;   /* brand sage (middle ring) */
  --tint-stone: #EDE9DE;  /* brand page sand */
  --tint-tan: #D9A33C;    /* brand amber (dark-bg variant) */
  --sand: #EDE9DE;

  --text-2: #42494f;
  --text-3: #56574f;
  --muted: #8a857a;
  --hairline: rgba(30, 36, 42, 0.12);

  --font-display: 'Space Grotesk', sans-serif;
  --font-serif: 'Source Serif 4', serif;
  --font-ui: 'Hanken Grotesk', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--petrol); text-decoration: none; transition: color 150ms ease, background 150ms ease, border-color 150ms ease, opacity 150ms ease; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
}

::selection { background: var(--petrol); color: var(--paper); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Uppercase label, used everywhere (PIK-style) */
.label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* READ MORE-style link */
.more-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.more-link:hover { color: var(--petrol); border-bottom-color: var(--petrol); }
.more-link.on-dark { color: var(--paper); }
.more-link.on-dark:hover { color: var(--amber-bright); border-bottom-color: var(--amber-bright); }

/* ---------- Header (sticky, condenses on scroll) ---------- */

.topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 200ms ease;
}
.topbar.scrolled { box-shadow: 0 6px 24px rgba(30, 36, 42, 0.10); }

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: padding 200ms ease;
}
.topbar.scrolled .topbar-inner { padding-top: 10px; padding-bottom: 10px; }

.brand svg { width: 46px; height: 46px; transition: width 200ms ease, height 200ms ease; }
.topbar.scrolled .brand svg { width: 36px; height: 36px; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand:hover { color: inherit; }

.brand-text { display: flex; flex-direction: column; gap: 4px; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 0.9;
  color: var(--slate);
  display: flex;
}
.wordmark .lt-c { color: var(--teal); }
.wordmark .lt-s { color: var(--amber); }

.brand-desc {
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.145em;
  text-transform: uppercase;
  color: rgba(30, 36, 42, 0.58);
  line-height: 1.5;
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--slate);
}

/* ---------- Hero (full-bleed media + overlapping panel) ---------- */

.hero { display: grid; margin-bottom: 120px; }

.hero-media {
  grid-area: 1 / 1;
  height: 560px;
  background:
    radial-gradient(ellipse 90% 130% at 85% -10%, rgba(47, 115, 121, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 100% at 15% 110%, rgba(180, 123, 20, 0.28), transparent 55%),
    linear-gradient(112deg, #161b20 0%, #22343a 45%, #2A5D63 80%, #2F7379 100%);
  position: relative;
  overflow: hidden;
}

.hero-media .hero-art {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  opacity: 0.92;
}

.hero-media .hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
}

.hero-panel-holder {
  grid-area: 1 / 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-panel {
  pointer-events: auto;
  background: var(--tint-sage);
  color: var(--slate);
  width: 420px;
  padding: 38px 36px 34px;
  transform: translateY(84px);
}

.hero-panel .label { color: rgba(30, 36, 42, 0.65); display: block; margin-bottom: 16px; }

.hero-panel h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.hero-panel p {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 22px;
  color: rgba(30, 36, 42, 0.85);
}

/* ---------- Centered intro paragraph ---------- */

.intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

.intro p {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.intro a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section headings (centered, plain — PIK style) ---------- */

.sec-head {
  text-align: center;
  margin: 96px 0 36px;
}

.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}

.sec-head .sec-sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.sec-foot { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; }

/* ---------- News cards (tinted panels) ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.news-card { display: flex; flex-direction: column; color: var(--slate); }
.news-card:hover { color: var(--slate); opacity: 0.93; }

.news-card.tint-sage { background: var(--tint-sage); }
.news-card.tint-stone { background: var(--tint-stone); }
.news-card.tint-tan { background: var(--tint-tan); }

.news-card .card-label {
  text-align: center;
  padding: 12px 16px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30, 36, 42, 0.7);
}

.card-photo {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo.ph-a { background: linear-gradient(135deg, #22343a, #2F7379); }
.card-photo.ph-b { background: linear-gradient(135deg, #4a3f22, #B47B14); }
.card-photo.ph-c { background: linear-gradient(135deg, #3a4436, #8FA383); }
.card-photo svg { width: 84px; height: 84px; opacity: 0.5; }

.news-card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }

.news-card .card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

/* ---------- Topic tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile {
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
  color: var(--paper);
}
.tile:hover { color: #fff; }
.tile:hover .tile-arrow { transform: translateX(6px); }

.tile.t-teal { background: linear-gradient(160deg, #1d3d41 0%, #2A5D63 60%, #2F7379 100%); }
.tile.t-amber { background: linear-gradient(160deg, #3d3012 0%, #8a5f10 60%, #B47B14 100%); }
.tile.t-sage { background: linear-gradient(160deg, #2e3629 0%, #6d8062 60%, #8FA383 100%); }

.tile .tile-glyph {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  opacity: 0.85;
}

.tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.tile p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: rgba(247, 244, 237, 0.85);
}

.tile .tile-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 200ms ease;
}

/* ---------- Feature band (full-bleed + overlapping cream panel) ---------- */

.feature-band {
  margin-top: 96px;
  background:
    radial-gradient(ellipse 80% 120% at 10% -20%, rgba(217, 163, 60, 0.18), transparent 55%),
    linear-gradient(112deg, #161b20 0%, #1E242A 55%, #22343a 100%);
  padding: 88px 0;
}

.feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 48px;
  align-items: center;
}

.feature-side { display: flex; justify-content: center; }

.feature-panel {
  background: var(--cream);
  padding: 44px 46px;
}

.feature-panel .label { color: var(--amber); display: block; margin-bottom: 14px; }

.feature-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.feature-panel p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 22px;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }

.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--petrol);
}
.stat .stat-label {
  margin-top: 8px;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Partners strip ---------- */

.partner-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.logo-slot {
  height: 96px;
  background: var(--tint-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.logo-slot img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 150ms ease, opacity 150ms ease; }
.logo-slot:hover img { filter: none; opacity: 1; }

/* ---------- Page band (sub-page hero) ---------- */

.page-band {
  background:
    radial-gradient(ellipse 90% 140% at 90% -20%, rgba(47, 115, 121, 0.5), transparent 60%),
    linear-gradient(112deg, #1b2a2e 0%, #2A5D63 75%, #2F7379 100%);
  color: var(--paper);
  padding: 72px 0 64px;
}

.page-band .label { color: var(--amber-bright); display: block; margin-bottom: 16px; }

.page-band h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 720px;
  text-wrap: balance;
}

.page-band .lede {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(247, 244, 237, 0.85);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}

/* ---------- Content blocks ---------- */

section.block { margin-top: 72px; }

.block-head { margin-bottom: 28px; }
.block-head .label { color: var(--amber); display: block; margin-bottom: 10px; }
.block-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
  margin: 0;
}
.block-head .sec-sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.prose { max-width: 760px; }
.prose p, .prose li {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--slate); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Flat feature cards (pillars, programmes) */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.flat-card {
  background: var(--tint-stone);
  padding: 30px 28px;
}

.flat-card .label { display: block; margin-bottom: 12px; color: var(--amber); }

.flat-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.flat-card p {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
}

.flat-card .glyph-sm { margin-bottom: 16px; }

/* ---------- List rows (news index, programme leads) ---------- */

.row-list { border-top: 1px solid var(--hairline); }

.news-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--hairline);
  color: var(--slate);
}
.news-row:hover { background: #F1EDE2; color: var(--slate); }

.news-row .tag {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tag-news { color: var(--amber); }
.tag-paper { color: var(--teal); }
.tag-project { color: #6d8062; }
.tag-event { color: var(--petrol); }

.news-row .title { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.45; }
.news-row .arrow { color: var(--muted); }

.pub-row { padding: 20px 8px; border-bottom: 1px solid var(--hairline); }
.pub-row .title { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.45; color: var(--slate); margin: 0 0 6px; }
.pub-row .meta { font-size: 12.5px; color: var(--muted); }
.pub-row .meta a { font-weight: 600; }

/* ---------- People ---------- */

.person-card {
  background: var(--tint-stone);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #fff;
  border: 1px dashed rgba(30, 36, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-card .name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.person-card .role { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

/* ---------- Partner cards ---------- */

.partner-card { background: var(--tint-stone); padding: 0 0 26px; }
.partner-card .logo-slot { height: 110px; background: #fff; margin: 8px; }
.partner-card .partner-inner { padding: 14px 26px 0; }
.partner-card .label { display: block; color: var(--amber); margin-bottom: 8px; }
.partner-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.partner-card p { font-family: var(--font-serif); font-size: 14px; line-height: 1.6; color: var(--text-3); margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--petrol);
  padding: 15px 28px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--slate); color: var(--paper); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
  padding: 14px 27px;
  border: 1.5px solid rgba(42, 93, 99, 0.4);
}
.btn-outline:hover { border-color: var(--petrol); color: var(--petrol); }

/* ---------- Footer (dark, multi-column — PIK style) ---------- */

.site-footer {
  margin-top: 110px;
  background: var(--slate);
  color: var(--paper);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(247, 244, 237, 0.14);
}

.lockup { display: flex; align-items: center; gap: 20px; }
.lockup .wordmark { font-size: 26px; color: var(--paper); }
.lockup-col { display: flex; flex-direction: column; gap: 8px; }
.lockup-desc {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.145em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.62);
  line-height: 1.5;
}

.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-email { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--amber-bright); }
.footer-email:hover { color: var(--paper); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  color: rgba(245, 242, 235, 0.55);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--amber-bright); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 244, 237, 0.14);
  font-size: 12.5px;
  color: rgba(245, 242, 235, 0.55);
}

/* ---------- Warming stripes band ---------- */

.stripes-band { margin: 0 0 80px; }

.stripes-band img {
  display: block;
  width: 100%;
  height: 56px;
}

.stripes-caption {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 32px;
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
}
.stripes-caption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.stripes-caption a:hover { color: var(--amber); }

/* ---------- Scroll reveal (JS adds .reveal; disabled for reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 550ms ease-out, transform 550ms ease-out;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Glyph animation (ripple loop, 5s — brand handoff) ---------- */

.cecsc-ring, .cecsc-echo { transform-box: view-box; transform-origin: center; }

.glyph-animated .cecsc-echo1 { animation: cecsc-echo1 5s ease-out infinite; }
.glyph-animated .cecsc-echo2 { animation: cecsc-echo2 5s ease-out infinite; }
.glyph-animated .cecsc-echo3 { animation: cecsc-echo3 5s ease-out infinite; }
.glyph-animated .cecsc-r1 { animation: cecsc-r1 5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; }
.glyph-animated .cecsc-r2 { animation: cecsc-r2 5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; }
.glyph-animated .cecsc-r3 { animation: cecsc-r3 5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; }

@keyframes cecsc-echo1 {
  0%   { transform: scale(0.18); opacity: 0; }
  3%   { opacity: 0.48; }
  18%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes cecsc-echo2 {
  0%, 8% { transform: scale(0.18); opacity: 0; }
  11%  { opacity: 0.4; }
  26%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes cecsc-echo3 {
  0%, 16% { transform: scale(0.18); opacity: 0; }
  19%  { opacity: 0.32; }
  34%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes cecsc-r1 {
  0%, 26% { transform: scale(0.5); opacity: 0; }
  36%  { transform: scale(1); opacity: 1; }
  84%  { transform: scale(1); opacity: 1; }
  92%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes cecsc-r2 {
  0%, 30% { transform: scale(0.5); opacity: 0; }
  40%  { transform: scale(1); opacity: 1; }
  84%  { transform: scale(1); opacity: 1; }
  93%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes cecsc-r3 {
  0%, 34% { transform: scale(0.5); opacity: 0; }
  44%  { transform: scale(1); opacity: 1; }
  84%  { transform: scale(1); opacity: 1; }
  94%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph-animated .cecsc-ring { animation: none !important; opacity: 1 !important; transform: none !important; }
  .glyph-animated .cecsc-echo { display: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .feature-inner { grid-template-columns: 1fr; }
  .feature-side { order: -1; }
  .partner-strip { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-media .hero-art { width: 260px; height: 260px; right: 4%; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .topbar { position: relative; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0;
    box-shadow: 0 18px 40px rgba(30, 36, 42, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 32px; border-bottom: 0; }
  .site-nav a:hover { background: var(--cream); }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--teal); }

  .hero { margin-bottom: 0; }
  .hero-media { height: 340px; }
  .hero-media .hero-art { width: 180px; height: 180px; top: 44%; }
  .hero-panel-holder { position: static; padding: 0; max-width: none; display: block; }
  .hero { grid-template-rows: auto auto; }
  .hero-media { grid-area: 1 / 1; }
  .hero-panel-holder { grid-area: 2 / 1; }
  .hero-panel { width: 100%; transform: none; padding: 32px 32px 30px; }

  .news-grid, .tile-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }

  .sec-head { margin: 64px 0 28px; }
  .feature-band { padding: 56px 0; margin-top: 64px; }
  .feature-panel { padding: 32px 28px; }

  .page-band { padding: 48px 0 44px; }
  .page-band h1 { font-size: 30px; }

  .news-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .news-row .tag { grid-column: 1 / -1; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-contact { align-items: flex-start; }

  section.block { margin-top: 52px; }
}

@media (max-width: 560px) {
  .container, .topbar-inner, .intro, .feature-inner { padding-left: 20px; padding-right: 20px; }
  .grid-4, .partner-strip { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-panel { padding: 28px 20px 26px; }
  .hero-panel h1 { font-size: 25px; }
  .footer-cols { grid-template-columns: 1fr; }
}
