/* NICOWL website — built on the NICOWL ad design system (warm palette, Overused Grotesk,
   rounded-square shapes, pill buttons, the owl, the sleep wave, the sunrise). */

@font-face { font-family: "Overused Grotesk"; src: url("../fonts/OverusedGrotesk-Roman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overused Grotesk"; src: url("../fonts/OverusedGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Overused Grotesk"; src: url("../fonts/OverusedGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Overused Grotesk"; src: url("../fonts/OverusedGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --midnight: #15133F;
  --cream: #FFF6EA;
  --cream-2: #FDEFDC;
  --tangerine: #FF8A3D;
  --tangerine-deep: #F2701F;
  --sunshine: #FFC53D;
  --blush: #FF9EC7;
  --soft-blue: #3F8CCB;   /* the owl's blues since 2026-10-22 (was #5552FF) */
  --lavender: #88D9F6;    /* was #96B9FF */
  --teal: #67C9CB;
  --green: #67C987;
  --amber: #EAAB53;
  --ink: #17163A;
  --slate: #5E6187;
  --haze: #B8BBE6;
  --white: #FFFFFF;

  --radius-s: 14px;
  --radius: 28px;
  --radius-l: 40px;
  --shadow: 0 20px 40px rgba(255, 107, 44, 0.16);
  --shadow-soft: 0 10px 30px rgba(23, 22, 58, 0.08);
  --shadow-lift: 0 28px 56px rgba(255, 107, 44, 0.22);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Overused Grotesk", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--soft-blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--tangerine);
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--ink);
  font: 600 1rem/1 inherit; font-family: inherit; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 107, 44, .28), inset 0 -3px 0 rgba(0, 0, 0, .08);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px rgba(255, 107, 44, .36), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { display: inline-block; transition: transform .35s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { --bg: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor, 0 10px 24px rgba(0, 0, 0, .12); }
.btn-light { --bg: var(--white); box-shadow: var(--shadow-soft); }
.btn-small { padding: .65em 1.15em; font-size: .95rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(255, 246, 234, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(23, 22, 58, .06), 0 8px 24px rgba(23, 22, 58, .05);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand .logo-light { display: none; }
.on-dark .brand .logo-light { display: block; }
.on-dark .brand .logo-dark { display: none; }
.on-dark:not(.scrolled) .nav-link { color: var(--white); }
.on-dark.scrolled .brand .logo-light { display: none; }
.on-dark.scrolled .brand .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: .55em .95em; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tangerine); transform: translateX(-50%) scale(0); transition: transform .35s var(--spring);
}
.nav-link:hover { background: rgba(255, 138, 61, .12); }
.nav-link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav .btn { margin-left: 10px; }
@media (min-width: 1081px) and (max-width: 1260px) { .nav { gap: 2px; } .nav-link { padding: .55em .7em; } }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 16px; background: var(--white);
  box-shadow: var(--shadow-soft); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 12px auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 60px rgba(23, 22, 58, .18);
    max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; transition: opacity .25s, transform .35s var(--spring);
  }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link, .on-dark:not(.scrolled) .nav-link { color: var(--ink); padding: .9em 1em; font-size: 1.1rem; }
  .nav-link::after { left: auto; right: 16px; bottom: 50%; transform: translateY(50%) scale(0); }
  .nav-link[aria-current="page"]::after { transform: translateY(50%) scale(1); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-open .site-header { background: rgba(255, 246, 234, .96); }
  .nav-open .on-dark .brand .logo-light { display: none; }
  .nav-open .on-dark .brand .logo-dark { display: block; }
}

/* ---------- hero (night → sunrise) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--midnight);
  padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(140px, 16vw, 220px);
}
.hero::before { /* stars */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 41%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 7% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 78%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 32%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.hero::after { /* the sunrise rising from below */
  content: ""; position: absolute; left: 50%; bottom: -640px; z-index: -1;
  width: max(1800px, 140vw); height: 1100px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 197, 61, .55), rgba(255, 138, 61, .42) 38%, rgba(63, 140, 203, .28) 66%, transparent 100%);
  animation: sunrise 2.6s var(--ease) both .2s;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }
@keyframes sunrise { from { opacity: 0; transform: translate(-50%, 18%); } to { opacity: 1; transform: translate(-50%, 0); } }

.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .btn-ghost { color: var(--white); }

.owl-stage { position: relative; justify-self: center; width: min(360px, 70vw); aspect-ratio: 1; }
.owl-stage .glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(136, 217, 246, .55), rgba(63, 140, 203, .12) 70%, transparent); filter: blur(6px); animation: breathe 5s ease-in-out infinite; }
.owl { position: absolute; inset: 0; animation: float 6s ease-in-out infinite; }
.owl img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .12s linear; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.owl .face-awake, .owl .face-curious { opacity: 0; }
.owl.awake .face-sleepy { opacity: 0; }
.owl.awake .face-awake { opacity: 1; }
.owl.awake.blink .face-awake { opacity: 0; }
.owl.awake.blink .face-sleepy { opacity: 1; }
.owl.awake.curious .face-awake { opacity: 0; }
.owl.awake.curious .face-curious { opacity: 1; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.04); opacity: 1; } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 130px); }
.hero-wave path { fill: var(--cream); }

/* floating brand shapes */
.shape { position: absolute; z-index: -1; pointer-events: none; opacity: .9; animation: drift 14s ease-in-out infinite; }
.shape.sq { width: var(--s, 54px); height: var(--s, 54px); border-radius: 30%; }
.shape.dot { width: var(--s, 18px); height: var(--s, 18px); border-radius: 50%; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate(var(--dx, 10px), var(--dy, -18px)) rotate(calc(var(--r, 0deg) + 12deg)); } }

/* page hero for inner pages */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(40px, 6vw, 80px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .eyebrow { margin-bottom: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-soft); font-weight: 600; font-size: .95rem; color: var(--ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine); }
.page-hero .glow-blob {
  position: absolute; z-index: -1; right: -10%; top: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 197, 61, .35), rgba(255, 158, 199, .18) 55%, transparent);
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head .eyebrow { margin-bottom: 16px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.muted { color: var(--slate); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* floating photo card */
.photo-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); transform: rotate(var(--tilt, 2deg));
  transition: transform .6s var(--spring), box-shadow .4s var(--ease);
}
.photo-card:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lift); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-wrap { position: relative; isolation: isolate; }
.photo-wrap .backdrop { position: absolute; inset: 8% -6% -8% 8%; z-index: -1; border-radius: var(--radius-l); background: linear-gradient(135deg, var(--sunshine), var(--tangerine)); opacity: .9; transform: rotate(-4deg); }
.photo-wrap .backdrop.cool { background: linear-gradient(135deg, var(--lavender), var(--teal)); }
.photo-wrap .backdrop.warm { background: linear-gradient(135deg, var(--blush), var(--sunshine)); }

/* the sleep wave */
.sleep-wave { position: absolute; left: 0; right: 0; width: 100%; height: 120px; pointer-events: none; z-index: 0; }
.sleep-wave path { fill: none; stroke: var(--lavender); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.sleep-wave.draw path { stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2.6s var(--ease); }
.sleep-wave.draw.in path { stroke-dashoffset: 0; }

/* highlight figures */
.figure-hl { color: var(--tangerine-deep); font-weight: 700; white-space: nowrap; }

/* quote cards */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 52px 28px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); margin-top: 26px;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease);
}
.quote:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow); }
.quote::before {
  content: "“"; position: absolute; top: -26px; left: 22px; width: 56px; height: 56px; border-radius: 30%;
  display: grid; place-items: center; font-size: 3rem; line-height: 1; padding-top: 18px; color: var(--ink);
  background: var(--c, var(--sunshine)); box-shadow: 0 10px 20px rgba(23, 22, 58, .1);
}
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: .95rem; }
.quote figcaption::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--tangerine); border-radius: 2px; }

.summaries { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.summary { padding: 32px; border-radius: var(--radius); background: var(--midnight); color: var(--white); position: relative; overflow: hidden; }
.summary::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 30%; background: var(--c, var(--teal)); opacity: .22; transform: rotate(18deg); }
.summary h3 { font-size: 1.1rem; color: var(--c, var(--teal)); margin-bottom: 12px; }
.summary p { color: rgba(255, 255, 255, .9); position: relative; z-index: 1; }
.summary p:last-child { margin-bottom: 0; }

/* logo wall */
.logo-groups { display: grid; gap: clamp(28px, 4vw, 44px); }
.logo-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); margin-bottom: 14px; }
.logos { display: flex; flex-wrap: wrap; gap: 16px; }
.logo-tile {
  display: grid; place-items: center; height: 108px; padding: 18px 26px; min-width: 170px; flex: 0 1 auto;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.logo-tile img { max-height: 70px; max-width: 220px; width: auto; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .3s, opacity .3s; }
.logo-tile.tall img { max-height: 84px; }
a.logo-tile:hover, .logo-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.logo-tile:hover img { filter: none; opacity: 1; }

/* team */
.timeline { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.timeline .split { align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.member { position: relative; text-align: left; }
.member .portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; background: var(--c, var(--lavender));
  box-shadow: var(--shadow-soft); transition: transform .55s var(--spring), border-radius .55s var(--spring), box-shadow .3s;
}
.member .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .portrait { transform: translateY(-8px) rotate(-1.2deg); border-radius: 30%; box-shadow: var(--shadow); }
.member:hover .portrait img { transform: scale(1.05); }
.member h3 { margin: 18px 0 4px; font-size: 1.25rem; }
.member p { margin: 0; color: var(--slate); font-size: .98rem; }
.member .li {
  position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); transition: transform .4s var(--spring), background-color .2s;
}
.member .li:hover { transform: scale(1.12) rotate(-6deg); background: var(--sunshine); }
.member .li svg { width: 20px; height: 20px; }

/* cards / forms */
.card { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-l); background: var(--white); box-shadow: var(--shadow-soft); }
.card.warm { box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 18px; border: 2px solid #EADFCF; background: var(--cream);
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tangerine); background: var(--white); box-shadow: 0 0 0 5px rgba(255, 138, 61, .16); }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1F7A4D; }
.form-status.err { color: #B4282E; }

.grant { display: grid; gap: 18px; }
.grant h3 { display: flex; align-items: center; gap: 12px; }
.grant h3 .badge { width: 44px; height: 44px; border-radius: 30%; display: grid; place-items: center; background: var(--c, var(--sunshine)); flex: none; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 6px 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--cream); }
.facts dt { font-weight: 600; color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.grants { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.note { font-size: .95rem; color: var(--slate); }

.legal { max-width: 820px; }
.legal h2, .legal h3, .legal h4, .legal h5 { margin-top: 1.6em; font-size: 1.35rem; }
.legal p, .legal li { color: #2B2A52; }
.legal a { color: var(--soft-blue); }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--midnight); color: rgba(255, 255, 255, .86); padding: clamp(80px, 10vw, 120px) 0 40px; margin-top: -1px; }
.site-footer .footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; }
.site-footer .footer-wave path { fill: var(--cream); }
.site-footer.after-white .footer-wave path { fill: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 36px; align-items: start; }
.footer-grid h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: var(--haze); margin-bottom: 14px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--sunshine); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-owl { width: 76px; animation: float 6s ease-in-out infinite; }
.sdg { width: 92px; border-radius: 14px; }
.social { display: inline-flex; width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); transition: background-color .2s, transform .35s var(--spring); }
.social:hover { background: var(--tangerine); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; color: var(--haze); }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--spring); transition-delay: var(--d, 0s); }
.js [data-reveal="pop"] { transform: scale(.88); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].in { opacity: 1; transform: none; }

.hero-in > * { animation: heroIn 1s var(--spring) both; }
.hero-in > *:nth-child(2) { animation-delay: .12s; }
.hero-in > *:nth-child(3) { animation-delay: .24s; }
.hero-in > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
  .grants { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .owl-stage { width: min(240px, 60vw); order: -1; }
  .summaries { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .logo-tile { min-width: 0; flex: 1 1 140px; height: 96px; padding: 14px 16px; }
  .logo-tile img { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .sleep-wave.draw path { stroke-dashoffset: 0; }
}

/* facts inside the narrower grant cards: label above value */
.grant .facts { grid-template-columns: 1fr; gap: 2px; }
.grant .facts dd { margin-bottom: 12px; }
.grant .facts dd:last-child { margin-bottom: 0; }

/* ===== from the NICOWL ad design system's motion cards ===== */
/* easing presets: pop 500 ms with one small overshoot, whoosh 700 ms, out 600 ms, float 4 s */
:root { --pop: cubic-bezier(.34, 1.45, .64, 1); --whoosh: cubic-bezier(.7, 0, .2, 1); --out: cubic-bezier(.16, 1, .3, 1); }

/* kinetic type: the headline lands word by word */
.hero-in > .kinetic { animation: none; }
.kinetic .w { display: inline-block; animation: wordIn .5s var(--pop) both; animation-delay: calc(var(--i) * 90ms + .15s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) scale(.9); } to { opacity: 1; transform: none; } }

/* iris: photos open in a circle, like the ad's iris wipe */
.js [data-iris] { clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s var(--out), transform .6s var(--spring), box-shadow .4s var(--ease); }
.js [data-iris].in { clip-path: circle(75% at 50% 50%); }

/* colour-field wipe: a band of colour sweeps across the page title (the text itself is always visible) */
h1.wipe { position: relative; display: inline-block; }
h1.wipe::after {
  content: ""; position: absolute; inset: -.08em -.15em; background: var(--wipe, var(--tangerine)); border-radius: 12px;
  transform: scaleX(0); transform-origin: left; animation: fieldWipe 1.15s var(--whoosh) .1s both;
}
@keyframes fieldWipe { 0% { transform: scaleX(0); transform-origin: left; } 46% { transform: scaleX(1); transform-origin: left; } 54% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* duotone icons: Ink line, Tangerine fill */
.icon { width: 1.35em; height: 1.35em; color: var(--ink); flex: none; }
.icon path[opacity] { fill: var(--tangerine); opacity: 1; }

/* the owl pops awake */
.owl-stage.woke { animation: wakePop .5s var(--pop); }
@keyframes wakePop { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* the footer owl falls asleep when you reach the bottom */
.owl-mini { position: relative; width: 76px; height: 76px; animation: float 6s ease-in-out infinite; }
.owl-mini img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s ease; }
.owl-mini .face-sleepy { opacity: 0; }
.owl-mini.asleep .face-base { opacity: 0; }
.owl-mini.asleep .face-sleepy { opacity: 1; }
.owl-mini.asleep { transform: translateY(3px) rotate(-4deg); transition: transform 1.2s var(--out); }

@media (prefers-reduced-motion: reduce) {
  .js [data-iris] { clip-path: none; }
  h1.wipe::after { display: none; }
}

/* ===== the ad's characters (drawn, style A) ===== */
.head-art { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.char { position: relative; flex: none; }
.char img { position: relative; width: 100%; height: auto; }
.char-nurse { width: clamp(96px, 12vw, 150px); margin-bottom: -18px; animation: float 6s ease-in-out infinite; }
.char-blob { position: absolute; left: -22%; right: -22%; bottom: 4%; height: 62%; border-radius: 40%; background: radial-gradient(closest-side, rgba(103, 201, 203, .35), transparent); }
.char-mother img { transition: opacity .7s var(--ease); }
.char-mother .m-smile { position: absolute; inset: 0; opacity: 0; }
.char-mother.smiling .m-relieved { opacity: 0; }
.char-mother.smiling .m-smile { opacity: 1; }
@media (max-width: 860px) {
}
@media (prefers-reduced-motion: reduce) { .char-mother .m-relieved { opacity: 0; } .char-mother .m-smile { opacity: 1; } }

/* the Contact button shows it is the current page */
.nav .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ink), 0 8px 20px rgba(255, 107, 44, .28); }

/* ===== section heads with a link on the right ===== */
.row-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.row-head h2 { margin: 0; }

/* ===== research ===== */
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .95rem; font-weight: 600; color: var(--slate); }
.pub-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.pub-meta .venue { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: .45em; padding: .32em .8em; border-radius: 999px; font-size: .85rem; font-weight: 600; line-height: 1.2; background: var(--cream); color: var(--ink); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--haze)); }
.tag-oa { --c: var(--green); }
.authors, .pub-summary { margin: 0; }
.authors { font-size: .95rem; }
.pub-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 6px; }
.pub-featured h2 a, .pub h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.pub-featured h2 a:hover, .pub h3 a:hover { background-size: 100% 2px; }

.pub-featured {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 14px;
  padding: clamp(28px, 4.5vw, 56px); margin-bottom: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-l); background: var(--midnight); color: var(--white);
}
.pub-featured::before, .pub-featured::after { content: ""; position: absolute; z-index: -1; border-radius: 30%; transform: rotate(18deg); }
.pub-featured::after { right: -90px; top: -110px; width: 320px; height: 320px; background: var(--lavender); opacity: .16; }
.pub-featured::before { right: 14%; bottom: -160px; width: 220px; height: 220px; background: var(--tangerine); opacity: .2; transform: rotate(-12deg); }
.pub-featured .kicker { width: fit-content; margin: 0; padding: .4em .95em; border-radius: 999px; background: var(--sunshine); color: var(--ink); font-weight: 700; font-size: .9rem; }
.pub-featured .pub-meta { color: var(--haze); }
.pub-featured .pub-meta .venue { color: var(--white); }
.pub-featured h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.25rem); max-width: 32ch; }
.pub-featured .authors { color: var(--haze); }
.pub-featured .pub-summary { max-width: 72ch; font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.pub-featured .tag { background: rgba(255, 255, 255, .1); color: var(--white); }

.pub-year { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid rgba(23, 22, 58, .1); }
.pub-year .year { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--tangerine-deep); }
.pubs { display: grid; gap: 20px; }
.pub { display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); transition: transform .5s var(--spring), box-shadow .3s var(--ease); }
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pub h3 { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.pub .authors { color: var(--slate); }
.pub-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.pub-link:hover { color: var(--tangerine-deep); }
.pub-link .arrow { display: inline-block; transition: transform .35s var(--spring); }
.pub-link:hover .arrow { transform: translate(2px, -2px); }
.pub-note { margin-top: clamp(28px, 4vw, 44px); max-width: 70ch; }

/* compact paper rows (For Investors & Partners) */
.pub-rows { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(23, 22, 58, .12); }
.pub-row { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid rgba(23, 22, 58, .12); }
.pub-row a { font-weight: 600; font-size: 1.1rem; line-height: 1.4; text-decoration: none; }
.pub-row a:hover { color: var(--tangerine-deep); }

/* ===== news ===== */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.news-list { position: relative; display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.news-list::before { content: ""; position: absolute; left: 51px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--haze), rgba(184, 187, 230, .25)); transform-origin: top; transition: transform 1.8s var(--out); }
.js .news-list::before { transform: scaleY(0); }
.js .news-list.in::before { transform: none; }
.news-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.news-date { position: relative; z-index: 1; margin: 20px 0 0; text-align: center; }
.news-date span { display: inline-block; padding: .35em .8em; border: 2px solid var(--c); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-soft); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.news-card { position: relative; overflow: hidden; display: grid; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); transition: transform .5s var(--spring), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
.news-body { padding: clamp(22px, 3vw, 32px); }
.news-body > p:last-child { margin-bottom: 0; }
.news-img { position: relative; min-height: 220px; }
.news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-type { display: inline-flex; align-items: center; gap: .6em; margin: 0; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.news-type .ico { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 30%; background: var(--c); }
.news-type .icon { width: 1.4em; height: 1.4em; }
.news-type .icon path[opacity] { fill: var(--white); opacity: .6; }
.news-card h2 { margin: 14px 0 6px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3em 1.1em; margin: 0 0 12px; color: var(--slate); font-weight: 500; font-size: .95rem; }
.news-meta > span { display: inline-flex; align-items: center; gap: .45em; }
.news-meta .icon { width: 1.15em; height: 1.15em; color: var(--slate); }
.news-meta .icon path[opacity] { fill: var(--slate); opacity: .2; }
.news-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.news-links .btn-light { background: var(--cream); box-shadow: none; }
.news-links .btn-light:hover { background: var(--cream-2); box-shadow: none; }
.follow { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; padding: 28px; }
.follow p { margin: 0; }
.follow-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--midnight); color: var(--white); }
.follow-badge svg { width: 24px; height: 24px; }

/* home: the latest news */
.news-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 240px;
  padding: 28px; border-radius: var(--radius); background: var(--cream); color: var(--ink); text-decoration: none;
  transition: transform .5s var(--spring), box-shadow .3s var(--ease);
}
.news-tile::after { content: ""; position: absolute; z-index: -1; right: -46px; bottom: -46px; width: 140px; height: 140px; border-radius: 30%; background: var(--c); opacity: .3; transform: rotate(18deg); transition: transform .7s var(--spring); }
.news-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-tile:hover::after { transform: rotate(36deg) scale(1.12); }
.news-tile h3 { margin: 0; font-size: 1.3rem; }
.news-tile .when { color: var(--slate); font-weight: 500; font-size: .95rem; }
.news-tile .more { margin-top: auto; font-weight: 700; }
.news-tile .more .arrow { display: inline-block; transition: transform .35s var(--spring); }
.news-tile:hover .more .arrow { transform: translateX(4px); }

/* ===== For Investors & Partners: the formal page ===== */
.inv-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(44px, 7vw, 96px)) 0 clamp(56px, 7vw, 100px); color: var(--white); background: var(--midnight); }
.inv-hero::before { /* a faint grid, like squared paper */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 75% 20%, #000, transparent 75%);
}
.inv-hero::after { content: ""; position: absolute; z-index: -1; right: -220px; bottom: -340px; width: 780px; height: 580px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 138, 61, .2), rgba(63, 140, 203, .1) 60%, transparent); }
.inv-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.inv-hero h1 { max-width: 15ch; font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.inv-hero .lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: rgba(255, 255, 255, .92); }
.inv-hero p { max-width: 62ch; color: rgba(255, 255, 255, .76); }
.inv-hero .btn-ghost { color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-top: 3px solid var(--tangerine); border-radius: var(--radius); background: rgba(255, 255, 255, .14); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: clamp(20px, 2.6vw, 30px); background: #1B1950; }
.stat dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--white); }
.stat:first-child { grid-column: 1 / -1; }
.stat:first-child dd { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--sunshine); }
.stat dt { font-size: .92rem; line-height: 1.35; color: var(--haze); }

.grant-doc { display: grid; align-content: start; gap: 16px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid #E9E1D4; border-radius: var(--radius); background: var(--white); }
.grant-doc header { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid #E9E1D4; }
.grant-doc .funder { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.grant-doc .amount { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.grant-doc > p { margin: 0; color: #2B2A52; }
.ledger { display: grid; grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr); margin: 6px 0 0; font-size: .97rem; }
.ledger dt, .ledger dd { margin: 0; padding: 11px 0; border-top: 1px solid #EFE8DD; }
.ledger dt { padding-right: 18px; font-weight: 600; color: var(--slate); }
.ledger dd { font-weight: 500; overflow-wrap: anywhere; }
.grant-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid #E9E1D4; }
.doc-link { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.1em; border-radius: 14px; background: var(--cream); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.doc-link:hover { background: var(--cream-2); }
.doc-link .icon { width: 1.5em; height: 1.5em; }
.funder-logo img { width: auto; height: 96px; }
.funder-logo.wide img { height: 40px; }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--midnight); color: var(--white); }
.contact-band .mail { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.contact-band .mail:hover { color: var(--sunshine); }
.contact-band p { margin: 6px 0 0; color: var(--haze); }

/* the formal page moves calmly: fades, no overshoot, nothing floats */
.js .serious [data-reveal] { transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .serious [data-reveal].in { transform: none; }
.serious .hero-in > * { animation-timing-function: var(--out); }
.serious .btn:hover { transform: translateY(-2px); }

@media (max-width: 1000px) {
  .inv-hero .wrap, .news-layout { grid-template-columns: 1fr; }
  .follow { position: static; }
  .news-strip { grid-template-columns: 1fr; }
  .news-tile { min-height: 0; }
}
@media (max-width: 700px) {
  .pub-year { grid-template-columns: 1fr; gap: 12px; }
  .pub-year .year { position: static; }
  .news-list::before { display: none; }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-date { margin: 0; text-align: left; }
  .news-card.has-img { grid-template-columns: 1fr; }
  .news-img { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .ledger { grid-template-columns: 1fr; }
  .ledger dt { padding-bottom: 0; }
  .ledger dd { padding-top: 2px; border-top: 0; }
}

/* ===== "Simply, …": a zig-zag chain of floating tiles joined by hand-drawn arrows ===== */
.chain-card { position: relative; overflow: hidden; }
.chain-intro { font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.chain { --zig: 92px; --gap: 54px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); }
.chain li { position: relative; animation: float 6s ease-in-out infinite; animation-delay: calc(var(--n) * -1.2s); }
.chain li:nth-child(1) { --n: 0; } .chain li:nth-child(2) { --n: 1; } .chain li:nth-child(3) { --n: 2; } .chain li:nth-child(4) { --n: 3; } .chain li:nth-child(5) { --n: 4; }
.chain li:nth-child(odd) { margin-top: var(--zig); }       /* 1, 3, 5 low; 2, 4 high */
.chain .step {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 150px; padding: 18px 18px 20px; border-radius: 30px; background: var(--c, var(--teal));
  font-weight: 700; font-size: 1.02rem; line-height: 1.25; color: var(--ink); hyphens: auto; overflow-wrap: break-word; box-shadow: 0 14px 28px rgba(23, 22, 58, .12);
}
.chain .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--white); box-shadow: 0 4px 10px rgba(23, 22, 58, .08); }
.chain .ico .icon { width: 26px; height: 26px; }
.chain .arrow { position: absolute; left: calc(100% + 2px); top: calc(75px - 18px); width: calc(var(--gap) - 4px); height: calc(var(--zig) + 36px); overflow: visible; }
.chain .arrow.up { top: auto; bottom: calc(100% - 75px - 18px); transform: scaleY(-1); }
.chain .arrow path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .chain .arrow path { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset .7s var(--out); transition-delay: calc(var(--d, 0s) + .35s); }
.js .chain .arrow path + path { transition-delay: calc(var(--d, 0s) + .9s); }
.js .chain .step.in + .arrow path { stroke-dashoffset: 0; }
.char-mother { position: absolute; right: clamp(26px, 4vw, 44px); top: clamp(16px, 2vw, 26px); width: clamp(150px, 15vw, 190px); z-index: 1; }
@media (max-width: 1000px) {
  .chain { --gap: 38px; --zig: 80px; }
  .chain .step { font-size: .92rem; padding: 14px; min-height: 140px; }
}
@media (max-width: 860px) {   /* top to bottom: tiles alternate left and right */
  .chain-card { padding-bottom: 200px; }
  .char-mother { top: auto; bottom: 16px; right: 50%; transform: translateX(50%); width: 200px; }
  .chain { display: flex; flex-direction: column; gap: 46px; padding: 0; }
  .chain li { width: 68%; margin-top: 0 !important; }
  .chain li:nth-child(even) { align-self: flex-end; }
  .chain .step { min-height: 0; flex-direction: row; align-items: center; }
  .chain .arrow, .chain .arrow.up { top: calc(100% + 2px); bottom: auto; left: 40%; width: 46%; height: 44px; transform: none; }
  .chain li:nth-child(even) .arrow { left: auto; right: 40%; transform: scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) { .chain .arrow path { stroke-dashoffset: 0 !important; } }
