/* ===== Design tokens ===== */
:root {
  --yellow: #F3B93A;
  --yellow-deep: #E2A227;
  --yellow-pale: #FFF3D6;
  --coral: #E85C41;
  --coral-dark: #C8442C;
  --ink: #17140F;
  --ink-soft: #4A4335;
  --cream: #FFFBF2;
  --white: #ffffff;

  --font-head: "Baloo 2", "Nunito Sans", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-md: 0 12px 30px -14px rgba(23, 20, 15, 0.3);
  --shadow-lg: 0 26px 60px -20px rgba(23, 20, 15, 0.4);
  --container: 1180px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 600;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--coral-dark);
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px) rotate(-0.5deg); background: var(--coral-dark); box-shadow: var(--shadow-lg); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--coral-dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover { border-color: var(--coral-dark); gap: 10px; }

/* ===== Announcement banner ===== */
.site-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;            /* above the header, which it sits on top of */
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--coral);
  color: #fff;
  padding: 11px 20px 11px 24px;
}
.site-banner-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.site-banner-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.site-banner-close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.site-banner-close:hover { background: rgba(255,255,255,0.35); }

/* The banner sits above the fixed header, so both the header and the first
   section move down by the banner's measured height (--banner-h, set in JS).
   The header therefore keeps its normal look - no special-casing needed. */
body.has-banner .site-header { top: var(--banner-h, 0px); }
body.has-banner .hero { padding-top: calc(150px + var(--banner-h, 0px)); }
body.has-banner .policy { padding-top: calc(150px + var(--banner-h, 0px)); }

@media (max-width: 600px) {
  .site-banner { padding: 10px 12px 10px 16px; }
  .site-banner-inner { font-size: 0.86rem; gap: 8px; }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 251, 242, 0.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(23, 20, 15, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -12px rgba(23,20,15,0.15);
  background: rgba(255, 251, 242, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 30px; flex-shrink: 0; }
/* assets/logo.svg is 60x44 — let the <img> keep its own ratio */
img.brand-mark { height: auto; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-transform: lowercase;
}
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: 150px;
  overflow: hidden;
  background: var(--yellow);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* One continuous wave path, scaled uniformly with preserveAspectRatio="slice"
   so it is never stretched (which flattened it on wide screens) and has no
   tile joins (which showed as breaks). It crops at the sides instead. */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -30px;
  width: 100%;
  height: 260px;
  opacity: 0.55;
}
.wave-drift { animation: drift 22s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-250px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 90px;
}
.hero-copy { max-width: 640px; }
.hero-lead {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 44ch;
  margin: 22px 0 34px;
  opacity: 0.85;
}
.hero h1 { color: var(--ink); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-divider { position: relative; z-index: 1; display: block; width: 100%; height: auto; }

/* ===== Fact / stat callout ===== */
.fact { padding: 90px 0; background: var(--cream); }
.fact-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.fact-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}
.fact h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); }
.fact-source {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ===== Story ===== */
.story { padding: 100px 0; background: var(--yellow-pale); }
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.story-copy p { color: var(--ink-soft); margin-bottom: 18px; max-width: 54ch; font-size: 1.02rem; }
.story-copy h2 { margin-bottom: 20px; }
.story-art { display: flex; justify-content: center; }
.story-art svg { width: 100%; max-width: 380px; }
.bubble-float { animation: bubbleFloat 5s ease-in-out infinite; transform-origin: center; }
.bubble-a { animation-duration: 6s; }
.bubble-b { animation-duration: 7.5s; animation-delay: -1s; }
.bubble-c { animation-duration: 5.2s; animation-delay: -2.4s; }
.bubble-d { animation-duration: 4.6s; animation-delay: -0.6s; }
.bubble-e { animation-duration: 5.8s; animation-delay: -3s; }
.bubble-f { animation-duration: 4.2s; animation-delay: -1.6s; }
.bubble-g { animation-duration: 6.4s; animation-delay: -2s; }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== App ===== */
.app { padding: 100px 0; background: var(--cream); }
.app-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.app-art { display: flex; justify-content: center; }
.app-art img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 22%;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(23,20,15,0.1);
}
.app-copy h2 { margin-bottom: 16px; }
.app-copy > p { color: var(--ink-soft); font-size: 1.02rem; max-width: 54ch; }
.app-features {
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 56ch;
}
.app-features li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.app-features strong { color: var(--ink); }
.app-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 54ch;
}
.app-cta { margin-top: 26px; }
.app-coming {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px dashed rgba(23,20,15,0.3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.app-footnote {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ===== Section heading shared ===== */
.section-heading { max-width: 640px; margin-bottom: 50px; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

/* ===== Mission pillars ===== */
.mission { padding: 100px 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral);
  color: #fff;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { color: var(--ink-soft); font-size: 0.95rem; }
.swap-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(23,20,15,0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.swap-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}
.swap-from { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--coral); opacity: 0.75; }
.swap-arrow { color: var(--coral-dark); }
.swap-to { color: var(--ink); }

/* ===== Work ===== */
.work { padding: 90px 0; background: var(--yellow-pale); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}
.work-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.work-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.work-icon svg { width: 24px; height: 24px; }
.icon-coral { background: #FCE1DA; color: var(--coral-dark); }
.icon-yellow { background: #FDEBC3; color: var(--yellow-deep); }
.work-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.work-card p { color: var(--ink-soft); font-size: 0.92rem; font-weight: 600; }

/* ===== Marine Wildlife Day ===== */
.wildlife-day {
  padding: 90px 0;
  background: var(--ink);
  text-align: center;
}
.wildlife-inner { max-width: 820px; margin-inline: auto; }
.wildlife-day .eyebrow.light { color: var(--yellow); }
.wildlife-day h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.wildlife-lead {
  color: rgba(255,251,242,0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
}
.wildlife-lead strong { color: var(--yellow); }
.wildlife-lead sup { font-size: 0.6em; }

/* ===== Rhymes ===== */
.rhymes { padding: 100px 0; background: var(--yellow-pale); }
.rhyme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
.rhyme-card {
  background: var(--white);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}
.rhyme-card p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

/* ===== Others taking steps ===== */
.others { padding: 90px 0; background: var(--cream); }
.others-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.others-inner h2 { margin-bottom: 14px; }
.others-inner p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ===== Involved ===== */
.involved { padding: 100px 0; }
.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.involved-grid-1 {
  grid-template-columns: 1fr;
  max-width: 420px;
}
.involved-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
}
.involved-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease;
}
.involved-card:hover { transform: translateY(-6px); }
.involved-card h3 { color: #fff; margin-bottom: 10px; }
.involved-card p { color: rgba(255,251,242,0.75); font-size: 0.94rem; margin-bottom: 18px; }
.involved-card .link-arrow { color: var(--yellow); }
.involved-card .link-arrow:hover { border-color: var(--yellow); }

/* ===== Register ===== */
.register { padding: 40px 0 110px; }
.register-inner {
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.register-inner h2 { color: #fff; margin-bottom: 8px; }
.register-inner p { color: rgba(255,255,255,0.85); font-weight: 600; }
.register-embed { width: 100%; grid-column: 1 / -1; }
.airtable-embed {
  width: 100%;
  height: 560px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  display: block;
}
.register-fallback {
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  padding: 26px;
}
.register-fallback p { color: #fff; font-weight: 700; margin: 0; }
.register-fallback a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.register-form { display: flex; gap: 12px; }
.register-form input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.register-form input::placeholder { color: rgba(255,255,255,0.7); }
.register-form input:focus { border-color: #fff; background: rgba(255,255,255,0.2); }
.register-form .btn-primary { background: var(--ink); }
.register-form .btn-primary:hover { background: #000; }
.form-message {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  min-height: 1.2em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,251,242,0.75);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin: 16px 0 10px; font-size: 0.92rem; max-width: 32ch; font-weight: 600; }
.footer-brand .brand-text { color: #fff; }
.footer-group { font-size: 0.85rem !important; }
.footer-group a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.footer-col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; font-weight: 600; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.contact-list li { font-size: 0.92rem; font-weight: 600; }

/* ===== Back to top ===== */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--coral); }
.to-top svg { width: 20px; height: 20px; }

/* ===== Policy page ===== */
.policy { padding: 150px 0 100px; background: var(--cream); }
.policy-inner { max-width: 760px; }
.policy-inner h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.policy-updated {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 30px;
}
.policy-summary {
  background: var(--yellow-pale);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.policy-summary p { color: var(--ink); font-size: 1.02rem; margin: 0; }
.policy-inner h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}
.policy-inner p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.policy-inner strong { color: var(--ink); }
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 4px 0 18px;
}
.policy-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.policy-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.policy-inner a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.policy-footnote {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed rgba(23,20,15,0.2);
  font-size: 0.86rem !important;
  opacity: 0.8;
}
.policy-back { margin-top: 26px; }
.policy-back a { text-decoration: none; }

/* ===== Popups (language suggestion + signup prompt) ===== */
.lang-suggest,
.signup-prompt {
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 15, 0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: langFade 0.3s ease;
}
.lang-suggest[hidden],
.signup-prompt[hidden] { display: none; }
@keyframes langFade { from { opacity: 0; } to { opacity: 1; } }

.lang-suggest-card,
.signup-prompt-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 38px 34px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: langRise 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes langRise {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.lang-suggest-close,
.signup-prompt-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  border-radius: 50%;
}
.lang-suggest-close:hover,
.signup-prompt-close:hover { background: rgba(23,20,15,0.08); color: var(--ink); }
.lang-suggest-flag { font-size: 2.4rem; line-height: 1; margin-bottom: 14px; }
.lang-suggest-block h3 { font-size: 1.2rem; margin-bottom: 6px; }
.lang-suggest-block p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Signup prompt specifics */
.signup-prompt-icon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.signup-prompt-icon svg { width: 30px; height: 30px; }
.signup-prompt-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.signup-prompt-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}
.lang-suggest-divider {
  height: 1px;
  background: rgba(23,20,15,0.14);
  margin: 18px auto;
  width: 60%;
}
.lang-suggest-actions,
.signup-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.lang-suggest-actions .btn,
.signup-prompt-actions .btn { width: 100%; }

@media (max-width: 420px) {
  .lang-suggest-card,
  .signup-prompt-card { padding: 32px 22px 26px; }
  .lang-suggest-actions .btn,
  .signup-prompt-actions .btn { font-size: 0.82rem; padding: 11px 14px; }
}

/* ===== Brand language badge (FR site) ===== */
.brand-lang {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.58em;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.18em 0.5em;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 2px;
  text-transform: uppercase;
}
.site-footer .brand-lang { background: var(--coral); color: #fff; }

/* ===== Language switcher ===== */
.lang-link {
  border: 2px solid rgba(23,20,15,0.2);
  border-radius: 999px;
  padding: 4px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-link:hover { border-color: var(--coral); background: var(--coral); color: #fff !important; }
.lang-link::after { display: none !important; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-drift, .bubble-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .story-grid, .app-grid { grid-template-columns: 1fr; }
  .app-art { order: -1; }
  .app-art img { max-width: 180px; }
  .story-art { order: -1; max-width: 280px; margin-inline: auto; }
  .work-grid, .involved-grid, .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .rhyme-grid { grid-template-columns: 1fr; }
  .work-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .register-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(23,20,15,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(23,20,15,0.08); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .work-grid, .involved-grid, .pillars-grid, .work-grid-2, .involved-grid-2, .rhyme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 120px; }
  .hero-inner { padding-bottom: 70px; }
  .register-inner { padding: 34px 26px; }
}
