/* ==========================================================================
   Berean Freedom Fellowship — "Tidepool Editorial" design system
   --------------------------------------------------------------------------
   1. Tokens          5. Buttons & links     9. Cards & grids
   2. Reset / base    6. Navigation         10. Forms
   3. Typography      7. Hero               11. Footer
   4. Layout          8. Sections           12. Motion & a11y
   ========================================================================== */

/* 0. SELF-HOSTED FONTS (latin subset, variable) -------------------------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/fraunces-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: optional; /* no late swap = faster LCP on slow mobile; system font is a close match */ src: url(/assets/fonts/inter-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand: sampled from the 2026 BFF logo (brand_assets/bff-logo-2026.jpg) */
  --ocean: #013056;        /* wave body */
  --ocean-light: #005a87;  /* wave highlight; links & eyebrows on light (6.7:1) */
  --ocean-dark: #032040;
  --turquoise: #79c8c5;    /* lagoon water. Dark backgrounds only (fails on sand) */
  --lehua: #bb0805;        /* ʻōhiʻa lehua blossom. Sparing accent */
  --forest: #1a472a;       /* Mauna Kea slopes */

  /* Accent: the logo's sun */
  --gold: #f0ae4e;
  --gold-hover: #f6c273;
  --gold-deep: #8a5a17;    /* gold for text on light bg (AA) */

  /* Light surfaces: base → elevated → floating (derived from logo cream #f4ecd5) */
  --sand: #f7f2e6;
  --sand-2: #fcf9f1;
  --cream: #f4ecd5;
  --paper: #ffffff;

  /* Dark surfaces: base → elevated → floating */
  --ink: #011633;          /* logo navy, exact */
  --ink-2: #06243f;
  --ink-3: #0b2e4f;

  /* Text on light */
  --text-h: #011633;
  --text-b: #3a4656;
  --text-m: #5a6576;

  /* Text on dark */
  --on-dark-h: #f7f2e6;
  --on-dark-b: #c8d3de;
  --on-dark-m: #93a6b8;

  --border: rgba(1, 48, 86, 0.12);
  --border-strong: rgba(1, 48, 86, 0.24);
  --border-dark: rgba(121, 200, 197, 0.16);

  /* Navy-tinted shadows */
  --shadow-sm: 0 2px 8px rgba(1, 22, 51, 0.06);
  --shadow-md: 0 10px 32px rgba(1, 22, 51, 0.1), 0 2px 8px rgba(1, 22, 51, 0.05);
  --shadow-lg: 0 28px 70px rgba(1, 22, 51, 0.18), 0 8px 24px rgba(1, 22, 51, 0.08);
  --shadow-gold: 0 10px 30px rgba(240, 174, 78, 0.28), 0 2px 6px rgba(240, 174, 78, 0.2);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section-y: clamp(5rem, 11vw, 9rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. RESET / BASE ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text-b);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip, not hidden: hidden would break position: sticky in the hero */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* Grain overlay (SVG noise) — sits above everything, ignores pointer */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

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

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text-h);
  font-weight: 450;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.9rem, 7.6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
}
h1, .h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.025em; }
h3, .h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
em, .em { font-style: italic; }
.gold { color: var(--gold); }
p { margin: 0 0 var(--s-3); max-width: 64ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--text-b); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-light);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--text-h);
  margin: var(--s-4) 0;
  padding-left: var(--s-3);
  border-left: 2px solid var(--gold);
}
.verse cite {
  display: block;
  margin-top: var(--s-1);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-m);
}

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--elevated { background: var(--sand-2); }

/* Dark sections: ink base + layered radial glows */
.section--dark {
  background:
    radial-gradient(ellipse 70% 60% at 12% 18%, rgba(0, 90, 135, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 88% 85%, rgba(240, 174, 78, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 10%, rgba(0, 90, 135, 0.25) 0%, transparent 55%),
    var(--ink);
  color: var(--on-dark-b);
}
.section--ocean {
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(240, 174, 78, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(1, 22, 51, 0.55) 0%, transparent 60%),
    var(--ocean);
  color: var(--on-dark-b);
}
.section--dark :is(h1, h2, h3, h4),
.section--ocean :is(h1, h2, h3, h4) { color: var(--on-dark-h); }
.section--dark .eyebrow,
.section--ocean .eyebrow { color: var(--gold); }
.section--dark .lead,
.section--ocean .lead { color: var(--on-dark-b); }
.section--dark .verse,
.section--ocean .verse { color: var(--on-dark-h); }
.section--dark .verse cite,
.section--ocean .verse cite { color: var(--on-dark-m); }

.split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split--top { align-items: start; }
}
.section-head { max-width: 760px; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* Wave divider (drawn from logo water lines) */
.wave-divider {
  display: block;
  width: min(220px, 50%);
  height: 24px;
  margin: 0 0 var(--s-4);
  color: var(--gold);
}
.section-head--center .wave-divider { margin-inline: auto; }
.wave-divider path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* 5. BUTTONS & LINKS ------------------------------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-gold);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
/* Shine sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn:focus-visible { outline: 3px solid var(--gold-hover); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; transition: transform 0.45s var(--ease-spring); }
.btn:hover svg { transform: translateX(4px); }

.btn--ocean { --btn-bg: var(--ocean); --btn-fg: var(--sand); box-shadow: var(--shadow-md); }
.btn--ocean:focus-visible { outline-color: var(--ocean-light); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(240, 174, 78, 0.25) 50%, transparent 70%); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ocean-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 0.25rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-spring); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:active { opacity: 0.7; }
.link-arrow:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: 4px; border-radius: 4px; }
.section--dark .link-arrow,
.section--ocean .link-arrow { color: var(--gold); }
.section--dark .link-arrow:focus-visible,
.section--ocean .link-arrow:focus-visible { outline-color: var(--gold); }

.prose a { color: var(--ocean-light); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose a:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: 2px; border-radius: 3px; }

/* 6. NAVIGATION ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 1rem;
  color: var(--on-dark-h);
}
.nav__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(1, 22, 51, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-dark);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.nav.is-scrolled .nav__bg,
.nav.is-solid .nav__bg { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: 12px;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease-spring);
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand:active img { transform: scale(0.95); }
.brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-top: 3px;
}

.nav__links { display: none; }
.nav__links ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  display: block;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-b);
  border-radius: 999px;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--on-dark-h); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--on-dark-h); }
.nav__links a:active { opacity: 0.7; }
.nav__links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav__cta.magnet { display: none; }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  background: rgba(1, 22, 51, 0.4);
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring);
}
.nav__toggle:hover { transform: scale(1.06); }
.nav__toggle:active { transform: scale(0.94); }
.nav__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--on-dark-h);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle-bars { display: grid; }
.nav-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 3rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 90, 135, 0.6), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(240, 174, 78, 0.12), transparent 60%),
    var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--on-dark-h);
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out), color 0.3s;
}
.nav-open .mobile-menu a:not(.btn) { transform: translateY(0); }
.mobile-menu li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-menu li:nth-child(3) a { transition-delay: 0.1s; }
.mobile-menu li:nth-child(4) a { transition-delay: 0.15s; }
.mobile-menu li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-menu a:not(.btn):hover,
.mobile-menu a[aria-current="page"] { color: var(--gold); }
.mobile-menu a:not(.btn):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.mobile-menu__meta { color: var(--on-dark-m); font-size: 0.9rem; margin-top: var(--s-3); }
.mobile-menu__meta a { color: var(--on-dark-h); }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav__links, .nav__cta.magnet { display: block; }
  .nav__toggle, .mobile-menu { display: none; }
}

/* 7. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8.5rem 6rem;
  color: var(--on-dark-b);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -12% 0 0;
  z-index: -3;
  will-change: transform;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Colour treatment: ocean multiply + bottom gradient + left legibility wash */
.hero__media::before,
.hero__media::after { content: ""; position: absolute; inset: 0; }
.hero__media::before { background: var(--ocean); mix-blend-mode: multiply; opacity: 0.75; }
.hero__media::after {
  background:
    linear-gradient(to top, rgba(1, 22, 51, 1) 0%, rgba(1, 22, 51, 0.6) 30%, transparent 70%),
    linear-gradient(100deg, rgba(1, 22, 51, 0.85) 0%, rgba(1, 22, 51, 0.35) 55%, transparent 100%);
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 42%, rgba(240, 174, 78, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 70% 60%, rgba(121, 200, 197, 0.18) 0%, transparent 40%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.25fr 0.75fr; gap: var(--s-4); } }
.hero h1 { color: var(--on-dark-h); margin-bottom: var(--s-4); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: var(--on-dark-b); max-width: 40ch; margin-bottom: var(--s-4); }
.hero .btn--ghost { color: var(--on-dark-h); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-dark);
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
}
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-weight: 450; font-size: 1.3rem; color: var(--on-dark-h); letter-spacing: -0.01em; }
.hero__meta span { color: var(--on-dark-m); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Nano Banana 3D asset slot */
.hero__asset {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1200 / 1400;
  margin-inline: auto;
  will-change: transform;
}
.hero__asset img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }
.asset-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 46% 46% 40% 40% / 38% 38% 30% 30%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 60% 70%, rgba(240, 174, 78, 0.25), transparent 55%),
    linear-gradient(160deg, rgba(0, 90, 135, 0.55), rgba(1, 22, 51, 0.35));
  box-shadow: inset 0 0 0 1px rgba(121, 200, 197, 0.35), inset 0 30px 60px rgba(255, 255, 255, 0.06), 0 40px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.asset-placeholder svg { width: 58%; color: var(--on-dark-h); opacity: 0.92; }
.asset-placeholder__tag {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.3rem 0.75rem;
  border: 1px dashed rgba(240, 174, 78, 0.7);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(1, 22, 51, 0.6);
}
@media (max-width: 999px) { .hero__asset { width: min(70%, 320px); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-m);
  text-decoration: none;
  border-radius: 8px;
}
.scroll-cue i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.4s var(--ease-out) infinite; }
.scroll-cue:hover { color: var(--on-dark-h); }
.scroll-cue:active { opacity: 0.6; }
.scroll-cue:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 760px), (max-width: 999px) { .scroll-cue { display: none; } }

/* Scroll-scrubbed hero ("Wave to Bible" frame sequence)
   .hero-scroll provides the scroll distance; the hero sticks while the canvas scrubs. */
.hero-scroll { position: relative; height: 260vh; background: #01172f; }
.hero--sequence {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  background: #01172f; /* matches the video background exactly, so frame edges are invisible */
}
.hero__canvas { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 23, 47, 0.94) 0%, rgba(1, 23, 47, 0.7) 32%, rgba(1, 23, 47, 0) 58%);
  will-change: opacity;
}
.hero--sequence .hero__grid { grid-template-columns: 1fr; }
.hero__content { max-width: 640px; will-change: opacity, transform; }
.hero--sequence .display { font-size: clamp(2.9rem, 6vw, 5.6rem); }
.hero--sequence .hero__meta { margin-top: var(--s-4); }
.hero--sequence .scroll-cue { left: 75%; } /* sits under the wave/Bible, clear of the schedule strip */
@media (max-aspect-ratio: 1/1) {
  .hero-scroll { height: 230vh; }
  .hero--sequence { align-items: flex-start; padding-block: 7rem 2rem; }
  .hero__shade { background: linear-gradient(to bottom, rgba(1, 23, 47, 0.9) 0%, rgba(1, 23, 47, 0.72) 55%, rgba(1, 23, 47, 0.45) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll { height: auto; } }

/* Inner-page hero */
.page-hero {
  position: relative;
  padding-block: 10rem 5.5rem;
  color: var(--on-dark-b);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero__media { inset: -15% 0 0; }
.page-hero h1 { color: var(--on-dark-h); max-width: 16ch; }
.page-hero .lead { color: var(--on-dark-b); max-width: 52ch; }
.page-hero .eyebrow { color: var(--gold); }
.breadcrumb { font-size: 0.8rem; color: var(--on-dark-m); margin-bottom: var(--s-3); }
.breadcrumb a { color: var(--on-dark-b); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 8. SECTIONS -------------------------------------------------------------- */

/* Pillars (Berean / Free / Family) */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pillar__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-deep);
}
.pillar h3 { margin-bottom: 0.35rem; }
.pillar p { margin: 0; font-size: 0.98rem; }
.pillar small { display: block; margin-top: 0.6rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-m); font-weight: 600; }

/* Berean word-scrub */
.berean { min-height: 100svh; display: flex; align-items: center; }
.berean__verse {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--on-dark-h);
  max-width: 22ch;
  margin: 0 0 var(--s-5);
}
.berean__verse .w { opacity: 0.16; transition: opacity 0.2s linear; }
.berean__verse .w.hl { font-style: italic; color: var(--gold); }
.no-js .berean__verse .w,
.reduced-motion .berean__verse .w { opacity: 1; }
.berean__foot { display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 900px) { .berean__foot { grid-template-columns: 1fr auto; } }
.berean__foot p { color: var(--on-dark-b); margin: 0; }
.berean__ref { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--turquoise); margin-bottom: var(--s-3); display: block; }

/* Weekly rhythm cards */
.rhythm { display: grid; gap: var(--s-3); }
@media (min-width: 820px) { .rhythm { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .rhythm--2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; } }
.rhythm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.rhythm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean), var(--turquoise), var(--gold));
}
.rhythm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rhythm-card__day { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ocean-light); }
.rhythm-card .rhythm-card__time {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-h);
  margin: var(--s-2) 0 var(--s-3);
}
.rhythm-card__time sup { font-size: 0.35em; letter-spacing: 0.02em; vertical-align: 1.4em; margin-left: 0.15em; font-family: var(--font-body); font-weight: 600; color: var(--text-m); }
.rhythm-card h3 { margin-bottom: 0.5rem; }
.rhythm-card p { font-size: 0.98rem; margin-bottom: var(--s-3); }
.rhythm-card .link-arrow { margin-top: auto; }
.rhythm-card--feature { background: var(--ocean); border-color: transparent; color: var(--on-dark-b); }
.rhythm-card--feature :is(h3, .rhythm-card__time) { color: var(--on-dark-h); }
.rhythm-card--feature .rhythm-card__day { color: var(--gold); }
.rhythm-card--feature .rhythm-card__time sup { color: var(--turquoise); }
.rhythm-card--feature .link-arrow { color: var(--gold); }
.rhythm-card--feature .link-arrow:focus-visible { outline-color: var(--gold); }

/* 9. CARDS & GRIDS --------------------------------------------------------- */
.card-grid { display: grid; gap: var(--s-3); }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.card:active { transform: translateY(-2px) scale(0.99); }
a.card:focus-visible { outline: 3px solid var(--ocean-light); outline-offset: 3px; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ocean); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
a.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-4); }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { font-size: 0.98rem; }
.card__body .link-arrow { margin-top: auto; }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-3);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ocean-light), var(--ocean));
  color: var(--gold);
  box-shadow: var(--shadow-md);
}
.card__icon svg { width: 24px; height: 24px; }

/* Image treatment: gradient + multiply colour layer */
.img-treat { position: relative; overflow: hidden; }
.img-treat::before,
.img-treat::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.img-treat::before { background: var(--ocean); mix-blend-mode: multiply; opacity: 0.22; }
.img-treat::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 55%); }

/* Photo stack (parallax layers) */
.photo-stack { position: relative; min-height: 520px; }
.photo-stack figure { margin: 0; position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); will-change: transform; }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack__main { inset: 0 8% 14% 0; z-index: 2; }
.photo-stack__a { width: 42%; aspect-ratio: 4 / 5; right: 0; top: -6%; z-index: 1; transform: rotate(4deg); }
.photo-stack__b { width: 46%; aspect-ratio: 4 / 3; right: 2%; bottom: 0; z-index: 3; transform: rotate(-3deg); border: 6px solid var(--paper); }
.photo-stack figcaption {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  z-index: 3;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}
@media (max-width: 640px) {
  .photo-stack { min-height: 380px; }
  .photo-stack__a { display: none; }
  .photo-stack__main { inset: 0 0 18% 0; }
}

.magnet { display: inline-block; will-change: transform; }

/* Testimonials */
.quotes { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 820px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  margin: 0;
  padding: var(--s-4);
  border-radius: var(--radius);
  background: var(--sand-2);
  border: 1px solid var(--border);
}
.quote p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--text-h); font-style: italic; }
.quote footer { font-size: 0.85rem; color: var(--text-m); }
.placeholder-flag {
  display: inline-block;
  margin-bottom: var(--s-2);
  padding: 0.2rem 0.6rem;
  border: 1px dashed var(--gold-deep);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Stats */
.stats { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: var(--s-4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px rgba(0, 0, 0, 0.2);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  margin-bottom: var(--s-2);
}
.stat p { margin: 0; font-size: 0.95rem; color: var(--on-dark-b); }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 0.85rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309202e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 70% no-repeat;
}

/* Timeline (Visit page) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-3); padding-bottom: var(--s-4); }
.timeline__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ocean-light);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.timeline h3 { margin-bottom: 0.35rem; }
.timeline p { margin: 0; }

/* FAQ accordion */
.faq { display: grid; gap: var(--s-2); }
.faq details {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-h);
  transition: opacity 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { opacity: 0.8; }
.faq summary:active { opacity: 0.6; }
.faq summary:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: -4px; border-radius: var(--radius); }
.faq summary i {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sand);
  transition: transform 0.45s var(--ease-spring);
}
.faq summary i::before,
.faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--text-h); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--gold); }
.faq__body { padding: 0 1.5rem 1.4rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* Ministry blocks (Gatherings page) */
.ministry { display: grid; gap: var(--s-4); align-items: center; padding-block: var(--s-6); border-top: 1px solid var(--border); }
.ministry:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .ministry { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .ministry:nth-of-type(even) .ministry__media { order: 2; }
}
.ministry__media { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ocean); }
.ministry__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ministry__media--art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(240, 174, 78, 0.25), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(121, 200, 197, 0.25), transparent 50%),
    linear-gradient(150deg, var(--ocean-light), var(--ink));
  color: var(--gold);
}
.ministry__media--art svg { width: 30%; height: auto; opacity: 0.9; }
.ministry__when { display: inline-block; margin-bottom: var(--s-2); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-m); }

/* CTA band */
.cta-band { position: relative; padding-block: clamp(6rem, 14vw, 11rem); color: var(--on-dark-b); overflow: hidden; isolation: isolate; text-align: center; }
.cta-band .hero__media { inset: -20% 0 0; }
.cta-band .hero__media::before { opacity: 0.45; }
.cta-band .hero__media::after { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(1, 22, 51, 0.7), rgba(1, 22, 51, 0.25)), linear-gradient(to top, rgba(1, 22, 51, 0.85), transparent 50%); }
.cta-band h2 { color: var(--on-dark-h); max-width: 18ch; margin-inline: auto; }
.cta-band .lead { color: var(--on-dark-b); margin-inline: auto; max-width: 50ch; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-4); }
.cta-band .btn--ghost { color: var(--on-dark-h); }
.cta-band .eyebrow { color: var(--gold); }

/* Info card (contact / give) */
.info-card {
  padding: var(--s-5) var(--s-4);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.info-card--dark { background: var(--ink-2); border-color: var(--border-dark); color: var(--on-dark-b); }
.info-card--dark :is(h2, h3) { color: var(--on-dark-h); }
.big-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--text-h);
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.3s;
}
.big-phone:hover { color: var(--ocean-light); }
.big-phone:active { opacity: 0.6; }
.big-phone:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: 4px; }

/* Marquee of values */
.marquee { overflow: hidden; padding-block: var(--s-4); border-block: 1px solid var(--border); background: var(--sand-2); }
.marquee__track { display: flex; gap: var(--s-5); width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; color: var(--text-h); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-5); }
.marquee span::after { content: "✦"; font-size: 0.6em; color: var(--lehua); }
.marquee em { color: var(--ocean-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 10. FORMS ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s-3); }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-size: 0.85rem; font-weight: 600; color: var(--text-h); }
.field .req { color: var(--gold-deep); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--sand-2);
  color: var(--text-h);
  font-size: 1rem;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ocean-light); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--ocean-light); box-shadow: 0 0 0 4px rgba(0, 90, 135, 0.18); }
.field small { font-size: 0.8rem; color: var(--text-m); }
.choice { display: flex; flex-wrap: wrap; gap: var(--s-1); border: 0; padding: 0; margin: 0; }
.choice legend { margin-bottom: 0.45rem; }
.choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--sand-2);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
}
.choice label:hover { border-color: var(--ocean-light); transform: translateY(-1px); }
.choice label:active { transform: scale(0.97); }
.choice input { accent-color: var(--ocean-light); width: 18px; height: 18px; margin: 0; }
.choice label:focus-within { outline: 2px solid var(--ocean-light); outline-offset: 2px; }
.form__note { font-size: 0.85rem; color: var(--text-m); margin: 0; }
.form__status { margin: 0; padding: 1rem 1.25rem; border-radius: 12px; font-weight: 500; display: none; }
.form__status.is-success { display: block; background: rgba(0, 90, 135, 0.1); color: var(--ocean); }
.form__status.is-error { display: block; background: rgba(180, 60, 40, 0.1); color: #8a2e1c; }
.hp { position: absolute; left: -9999px; }

/* 11. FOOTER --------------------------------------------------------------- */
.footer {
  position: relative;
  padding-block: var(--s-7) var(--s-4);
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(0, 90, 135, 0.5), transparent 60%),
    var(--ink);
  color: var(--on-dark-b);
  font-size: 0.95rem;
}
.footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h2 { font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a { color: var(--on-dark-b); text-decoration: none; border-radius: 4px; transition: opacity 0.3s; }
.footer a:hover { color: var(--on-dark-h); text-decoration: underline; text-underline-offset: 4px; }
.footer a:active { opacity: 0.6; }
.footer a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer__logo { display: inline-block; border-radius: 50%; transition: transform 0.5s var(--ease-spring); }
.footer__logo img { width: 148px; height: 148px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35)); }
.footer__logo:hover { transform: rotate(-4deg) scale(1.03); }
.footer__logo:active { transform: scale(0.97); }
.footer__logo:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.footer__brand p { color: var(--on-dark-m); max-width: 36ch; margin-top: var(--s-3); }
.footer__verse { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--on-dark-h); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-dark);
  font-size: 0.82rem;
  color: var(--on-dark-m);
}
.footer__bottom a { color: var(--on-dark-m); }

/* 12. MOTION & A11Y -------------------------------------------------------- */
/* Elements GSAP will reveal start visible unless JS confirms motion is OK */
.js:not(.reduced-motion) [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }
/* Hero entrance is pure CSS so it starts on first paint (no wait for GSAP) */
.js:not(.reduced-motion) :is(.hero, .page-hero) .line > span { animation: line-up 1.2s var(--ease-out) both; }
.js:not(.reduced-motion) :is(.hero, .page-hero) .line:nth-child(2) > span { animation-delay: 0.09s; }
.js:not(.reduced-motion) :is(.hero, .page-hero) .line:nth-child(3) > span { animation-delay: 0.18s; }
.js:not(.reduced-motion) [data-hero-fade] { animation: fade-up 0.9s var(--ease-out) 0.4s both; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
