/* ==========================================================================
   New Life Outreach Church
   Palette pulls the deep crimson from the church's own logo cross and pairs
   it with gold on near-black ink — high contrast, warm, dramatic.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core palette */
  --ink: #0d1420;
  --ink-2: #131d2d;
  --navy: #1e3a5f;
  --navy-light: #2f5c8f;
  --navy-mid: #27476f;

  --crimson: #96201f;
  --crimson-bright: #c02c2a;
  --crimson-glow: rgba(192, 44, 42, 0.35);

  --gold: #d4a94f;
  --gold-bright: #ecc87c;
  --gold-deep: #a8802f;
  /* Darker bronze for small text on light backgrounds — --gold-deep only
     reaches 3.4:1 on cream, which fails AA for text this size. */
  --bronze-text: #8a6620;

  --cream: #fbf7ef;
  --cream-2: #f3e9d6;
  --paper: #fffefb;

  --text: #22201d;
  --text-soft: #5e574c;
  --text-invert: #f6f1e6;
  --white: #ffffff;

  /* Accent gradients.
     --grad-warm used to run crimson -> gold, but the midpoint of that blend
     is orange, which reads as urgency/warning rather than welcome — and it
     was being used for large fills. It now stays in a honey-gold range;
     crimson is kept for small text accents only, as a nod to the logo. */
  --grad-warm: linear-gradient(120deg, #bf8a2d 0%, #d9a94f 45%, #f0d493 100%);
  --grad-gold: linear-gradient(115deg, var(--gold-deep), var(--gold-bright));
  --grad-ink: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 60%, #0a101a 100%);

  --radius: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 16px rgba(10, 18, 30, 0.1);
  --shadow: 0 14px 40px rgba(10, 18, 30, 0.16);
  --shadow-lg: 0 30px 70px rgba(10, 18, 30, 0.3);
  --glow-gold: 0 0 0 1px rgba(212, 169, 79, 0.4), 0 12px 40px rgba(212, 169, 79, 0.25);

  --max-width: 1200px;
  --edge: clamp(20px, 5vw, 64px);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-lightbox { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin: 0 0 1rem; }
a { color: var(--crimson); }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.wrap-narrow { max-width: 860px; }

/* Scroll reveal — gated behind html.js so content is visible without JS */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1);
}
/* Must match or beat the specificity of the rule above (0,2,1), otherwise
   adding .is-visible never actually un-hides the element. */
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Eyebrow / kicker
   ========================================================================== */

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.kicker { color: var(--bronze-text); }
.eyebrow { color: var(--gold-bright); }

.kicker::before,
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .kicker,
.section-head .eyebrow { justify-content: center; }
.section-head .kicker::after,
.section-head .eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head p { color: var(--text-soft); font-size: 1.08rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background: rgba(13, 20, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(212, 169, 79, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 16, 26, 0.97);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

/* The logo artwork is black type on a light ground, so on the dark header it
   sits in a white chip rather than being recolored — keeps the crimson cross
   and wordmark exactly on-brand. */
.brand-logo {
  height: 58px;
  width: auto;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.brand-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--gold-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(212, 169, 79, 0.35);
}

@media (max-width: 620px) {
  .brand-tagline { display: none; }
  .brand-logo { height: 46px; padding: 6px 10px; }
}

.brand-footer { margin-bottom: 1.4rem; }
.brand-footer .brand-logo { height: 74px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(246, 241, 230, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  display: inline-block;
  position: relative;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active { color: var(--white); }

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

.main-nav .give-link {
  background: var(--grad-warm);
  color: var(--ink);
  font-weight: 700;
  margin-left: 0.6rem;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  box-shadow: 0 6px 22px rgba(150, 32, 31, 0.4);
}
.main-nav .give-link::after { display: none; }
.main-nav .give-link:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(192, 44, 42, 0.5); }

.has-dropdown { position: relative; }
.has-dropdown > a { padding-right: 1.7rem; }

.has-dropdown > a::before {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.8;
}

/* Scoped with .main-nav, and `display: block` is load-bearing. The submenu is
   itself a <ul> inside .main-nav, so `.main-nav ul { display: flex }` (0,1,1)
   matches it and lays the six links out as a horizontal row. A bare
   `.dropdown` rule (0,1,0) loses that fight, so this has to be scoped to
   win — same trap as the mobile rules further down. */
.main-nav .dropdown {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  min-width: 262px;
  border-radius: 12px;
  border-top: 3px solid transparent;
  border-image: var(--grad-warm) 1;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  white-space: nowrap;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown li a::after { display: none; }
.dropdown li a:hover { background: var(--cream-2); color: var(--crimson); }

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

  /* backdrop-filter makes an element the containing block for its
     position:fixed descendants — which collapsed the full-screen menu below
     down to the height of the header itself, clipping every link. The blur is
     decorative, so it's dropped here and the bar is made fully opaque instead. */
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ink);
  }

  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    background: var(--grad-ink);
    padding: 1.2rem var(--edge) 2rem;
    overflow-y: auto;
    /* Fades in place rather than sliding in from off-screen: a panel parked
       at translateX(100%) sits outside the viewport and widens the document,
       which no amount of ancestor overflow:hidden clips (it's position:fixed). */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  /* Full-width rows rather than inline-block: an inline-block anchor is only
     as wide as its text, so the absolutely-positioned chevron landed on top
     of the word "About" instead of at the end of the row. Block links also
     give a much bigger tap target. */
  .main-nav a {
    display: block;
    padding: 0.9rem 0.5rem;
    font-size: 1.1rem;
  }
  .main-nav a::after { display: none; }
  .main-nav .give-link { margin: 0.7rem 0 0; text-align: center; display: inline-block; }
  .has-dropdown > a { padding-right: 2.4rem; }
  .has-dropdown > a::before { right: 1rem; }
  .has-dropdown.open > a::before { transform: translateY(-30%) rotate(-135deg); }

  /* Scoped with .main-nav so these outrank `.main-nav ul { display: flex }`
     (0,1,1) — the submenu is itself a <ul>, so a bare `.dropdown` rule (0,1,0)
     loses and the menu stays permanently expanded with the toggle doing
     nothing. */
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border: none;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    display: none;
    margin: 0.3rem 0 0.5rem 0.6rem;
  }
  .main-nav .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { color: var(--text-invert); }
  .dropdown li a:hover { background: rgba(255,255,255,0.08); color: var(--gold-bright); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: var(--grad-warm);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(191, 138, 45, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(217, 169, 79, 0.45); }

.btn-gold {
  background: var(--grad-gold);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(212, 169, 79, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212, 169, 79, 0.5); }

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--white); transform: translateY(-3px); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   Hero + carousel
   ========================================================================== */

.hero {
  position: relative;
  background: var(--grad-ink);
  color: var(--text-invert);
  overflow: hidden;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: center;
}

/* animated aurora blobs behind the hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(196,124,48,0.55), transparent 68%);
  top: -14%;
  left: -8%;
  animation: drift1 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(212,169,79,0.6), transparent 68%);
  bottom: -18%;
  right: -6%;
  animation: drift2 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-5vw, -5vh, 0) scale(0.95); }
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212,169,79,0.5) 1px, transparent 1.6px);
  background-size: 28px 28px;
  opacity: 0.1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--edge) clamp(5rem, 9vw, 6rem);
}

/* Carousel mechanics */
.carousel { position: relative; }

.carousel-track { position: relative; }

.carousel-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.3,1);
  transform: translateY(14px);
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* Scoped with .hero so these beat the .hero-art base rule defined further
   down the file (same specificity would lose on source order). */
@media (max-width: 960px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .hero-art { display: none; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

/* Slide 1 only: "Where" is a small lead-in above the statement, which is
   set as a quotation on its own single line. The other slides keep the
   default treatment, where <em> is the same size as the rest of the
   headline — which is why the rules below are scoped to .hero-quote
   rather than applying to every .hero h1 em. */
.hero h1.hero-quote .hero-lead {
  display: block;
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.12em;
}

.hero h1.hero-quote em {
  display: block;
  /* One line by request, so this carries its own size rather than
     inheriting the h1 clamp — the statement is long enough that the
     h1 scale would overflow its column. Raising the ceiling needs a
     re-run of the hero width check (no-wrap + no page scroll). */
  white-space: nowrap;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
}

/* Slide 3 only: the two halves sit on their own lines. Colour and weight
   are untouched — only the line break and the scale change. It carries its
   own clamp because at the h1 scale "Sharing God's Love" wrapped by itself
   in the narrow two-column layout around 1024px, which made three lines
   instead of two. */
.hero h1.hero-stack {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
}

.hero h1.hero-stack > span,
.hero h1.hero-stack em {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: rgba(246, 241, 230, 0.82);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  /* Capped so a tall source image can't stretch the hero and shove the
     headline down the page. */
  max-height: min(60vh, 460px);
  width: auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
  /* The artwork's cut-out edge carries red/green fringing from background
     removal. Fading the outer band dissolves it into the hero instead of
     showing a ragged colored outline. Replace with a cleanly-matted export
     and this mask can go. */
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 48%, #000 58%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 48%, #000 58%, transparent 82%);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.carousel-dots { display: flex; gap: 0.5rem; }

.carousel-dot {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}
.carousel-dot.is-active { background: var(--grad-gold); width: 48px; }

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.carousel-arrow:hover {
  background: var(--grad-warm);
  border-color: transparent;
  transform: scale(1.08);
}

/* Angled bottom edge */
.hero-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  z-index: 3;
}
.hero-edge svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Stat band
   ========================================================================== */

.stat-band {
  background: var(--ink);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--edge);
  position: relative;
  overflow: hidden;
}

.stat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-warm);
  opacity: 0.09;
}

.stat-grid {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 800px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: rgba(246,241,230,0.6);
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-header {
  background: var(--grad-ink);
  color: var(--text-invert);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--edge) clamp(4.5rem, 8vw, 6.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,124,48,0.42), transparent 70%);
  filter: blur(80px);
  top: -30%;
  right: -10%;
  opacity: 0.7;
}

.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); font-weight: 900; }
.page-header p { color: rgba(246,241,230,0.78); max-width: 660px; margin: 0 auto; font-size: 1.08rem; }

.page-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(30px, 4vw, 60px);
  z-index: 2;
}
.page-edge svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Sections
   ========================================================================== */

.block { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.block-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.block-paper { background: var(--paper); }
.block-ink { background: var(--grad-ink); color: var(--text-invert); }
.block-ink h2, .block-ink h3 { color: var(--white); }
.block-ink p { color: rgba(246,241,230,0.75); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
  border: 1px solid rgba(13,20,32,0.06);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: 0.6rem; }
.card .muted { color: var(--text-soft); font-size: 0.95rem; }

/* Link cards with a gradient scrim on hover */
.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.link-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--crimson);
  transition: gap 0.25s ease;
}
.link-card:hover .card-arrow { gap: 0.8rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf5e4, #f4e5c6);
  border: 1px solid rgba(191, 138, 45, 0.35);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.card-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
  display: block;
}

/* ==========================================================================
   Mosaic tiles ("Find Your Place Here")
   Deliberately irregular: equal-sized rows get scanned like a list, varied
   spans and alternating dark/light get explored instead.
   ========================================================================== */

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.tile            { grid-column: span 2; }
.tile-wide       { grid-column: span 3; }
.tile-full       { grid-column: span 6; }

@media (max-width: 940px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-wide, .tile-full { grid-column: span 1; }
  .tile-full { grid-column: span 2; }
}

@media (max-width: 600px) {
  .mosaic { grid-template-columns: 1fr; gap: 1rem; }
  .tile, .tile-wide, .tile-full { grid-column: span 1; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(13, 20, 32, 0.07);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.tile-wide { min-height: 250px; }
.tile-full { min-height: 180px; }

/* gold wash that rises on hover */
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(191, 138, 45, 0.45);
}
.tile:hover::after { transform: scaleX(1); }

.tile-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 0.7rem;
}

.tile h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.tile-wide h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }

.tile p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}

.tile-go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--crimson);
  margin-top: auto;
}

.tile-arrow { transition: transform 0.3s cubic-bezier(.2,.7,.3,1); }
.tile:hover .tile-arrow { transform: translateX(6px); }

/* Dark tiles anchor the top and bottom of the mosaic */
.tile-dark {
  background: var(--grad-ink);
  border-color: rgba(212, 169, 79, 0.22);
}
.tile-dark h3 { color: var(--white); }
.tile-dark p { color: rgba(246, 241, 230, 0.72); }
.tile-dark .tile-label { color: var(--gold-bright); }
.tile-dark .tile-go { color: var(--gold-bright); }

/* faint radial warmth in the dark tiles so they don't read as flat blocks */
.tile-dark::before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -12%;
  top: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 138, 45, 0.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion { max-width: 880px; margin: 0 auto; display: grid; gap: 0.9rem; }

.accordion-item {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13,20,32,0.07);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.accordion-item:hover { box-shadow: var(--shadow); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink);
  padding: 1.35rem 3.4rem 1.35rem 1.6rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.accordion-trigger:hover { color: var(--crimson); }

.accordion-trigger .acc-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  min-width: 1.6rem;
}

/* plus / minus indicator */
.accordion-trigger::before,
.accordion-trigger::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  background: var(--crimson);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), opacity 0.3s ease;
}
.accordion-trigger::before { width: 14px; height: 2px; transform: translateY(-50%); }
.accordion-trigger::after  { width: 2px; height: 14px; transform: translate(6px, -50%); }
.accordion-trigger.is-open::after { transform: translate(6px, -50%) rotate(90deg); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.2,.7,.3,1);
}

.accordion-panel-inner {
  padding: 0 1.6rem 1.5rem 4.1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

@media (max-width: 560px) {
  .accordion-panel-inner { padding-left: 1.6rem; }
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tab-btn {
  border: 1px solid rgba(13,20,32,0.12);
  background: var(--paper);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover { color: var(--crimson); border-color: var(--crimson); }

.tab-btn.is-active {
  background: var(--grad-warm);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(191,138,45,0.3);
}

.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp 0.5s cubic-bezier(.2,.7,.3,1); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Verse block
   ========================================================================== */

.verse-block {
  background: var(--grad-ink);
  color: var(--text-invert);
  text-align: center;
  padding: clamp(4rem, 8vw, 6.5rem) var(--edge);
  position: relative;
  overflow: hidden;
}

.verse-block::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,169,79,0.35), transparent 70%);
  filter: blur(90px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.verse-block .wrap { position: relative; z-index: 1; }

.verse-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 1rem;
}

.verse-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  max-width: 860px;
  margin: 0 auto 1.4rem;
  color: var(--white);
}

.verse-block cite {
  display: inline-block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Video cards + lightbox
   ========================================================================== */

.video-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: block;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
}

.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.video-card:hover .video-thumb img { transform: scale(1.07); }

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,20,32,0.75), rgba(13,20,32,0.05) 55%);
  opacity: 0.75;
  transition: opacity 0.35s ease;
}
.video-card:hover .video-thumb::after { opacity: 0.5; }

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-badge span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 20, 32, 0.78);
  color: var(--gold-bright);
  border: 2px solid rgba(240, 212, 147, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(10, 18, 30, 0.45);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
}
.video-card:hover .play-badge span { transform: scale(1.14); }

/* pulsing ring on the play button */
.play-badge span::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(212,169,79,0.6);
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.video-info { padding: 1.2rem 1.3rem 1.4rem; }
.video-info h3 { font-size: 1rem; margin-bottom: 0.4rem; line-height: 1.35; }
.video-info time {
  color: var(--bronze-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* featured (large) video */
.video-card.is-featured .video-info h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }

.video-status {
  text-align: center;
  color: var(--text-soft);
  padding: 3rem 1rem;
  font-size: 0.98rem;
  grid-column: 1 / -1;
}
.video-status.error { color: var(--crimson-bright); }

/* skeleton loading shimmer */
.video-skeleton {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.video-skeleton .sk-thumb { aspect-ratio: 16/9; }
.video-skeleton .sk-line { height: 12px; margin: 0.8rem 1rem; border-radius: 6px; }
.video-skeleton .sk-line.short { width: 45%; }
.video-skeleton .sk-thumb,
.video-skeleton .sk-line {
  background: linear-gradient(90deg, rgba(13,20,32,0.06) 25%, rgba(13,20,32,0.12) 37%, rgba(13,20,32,0.06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  from { background-position: 100% 50%; }
  to   { background-position: 0 50%; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* This display:none is load-bearing. `display:flex` above is an author rule,
   so it beats the browser's `[hidden] { display:none }` — without this, setting
   .hidden leaves a full-screen position:fixed overlay sitting at opacity:0,
   invisible but swallowing every click on the page until a reload. */
.lightbox[hidden] { display: none; }

/* Belt and braces: also let clicks through during the fade-out, before
   [hidden] is applied. */
.lightbox:not(.is-open) { pointer-events: none; }

.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
}
.lightbox.is-open .lightbox-panel { transform: scale(1); }

.lightbox-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.lightbox-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.lightbox--image .lightbox-content img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--text-invert);
  text-align: center;
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: var(--grad-warm); border-color: transparent; transform: rotate(90deg); }

/* ==========================================================================
   Timeline (mission)
   ========================================================================== */

.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 860px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--crimson), var(--gold), transparent);
  border-radius: 2px;
}

.timeline li { display: flex; gap: 1.6rem; align-items: flex-start; padding-bottom: 2.4rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }

.timeline .num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--crimson);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline h3 { margin: 0.7rem 0 0.4rem; }
.timeline p { margin: 0; color: var(--text-soft); }

/* ==========================================================================
   Team
   ========================================================================== */

.team-card { text-align: center; }

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  position: relative;
  box-shadow: 0 14px 40px rgba(191,138,45,0.3);
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.card:hover .avatar { transform: scale(1.06) rotate(-3deg); }

.avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.6;
}

.team-card .role {
  color: var(--bronze-text);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Contact
   No form by design — the page is a set of actionable cards (call, mail,
   directions) plus a map.
   ========================================================================== */

/* Explicit columns rather than auto-fit: with four cards, auto-fit wraps to
   3 + 1 and orphans the last one. This keeps it 4 / 2x2 / 1. */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  background: var(--paper);
  border: 1px solid rgba(13, 20, 32, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}

a.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(191, 138, 45, 0.45);
}
a.contact-card:hover::after { transform: scaleX(1); }

.contact-card.is-static { cursor: default; }

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fdf5e4, #f4e5c6);
  border: 1px solid rgba(191, 138, 45, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-text);
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}

.contact-action {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--crimson);
}
.contact-action.is-quiet { color: var(--text-soft); font-weight: 600; }

.contact-social {
  text-align: center;
  margin-top: 3rem;
}
.contact-social p { color: var(--text-soft); margin-bottom: 1rem; }

.map-embed {
  border-radius: var(--radius-lg);
  width: 100%;
  height: clamp(300px, 45vh, 440px);
  border: 1px solid rgba(13, 20, 32, 0.1);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

/* Was a full-bleed saturated slab, which is far too loud for an invitation.
   A soft warm panel with gold hairlines reads as welcoming and keeps the
   page light; the dark buttons carry the contrast instead. */
.cta-band {
  background: linear-gradient(135deg, #fdf8ed 0%, #f6e9d1 55%, #f1e0c0 100%);
  color: var(--text);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) var(--edge);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(191, 138, 45, 0.3);
  border-bottom: 1px solid rgba(191, 138, 45, 0.3);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(191, 138, 45, 0.5) 1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.14;
}

.cta-band > * { position: relative; z-index: 1; }
.give-note {
  position: relative;
  z-index: 1;
  margin: 1.4rem auto 0;
  max-width: 44ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.give-note a { color: var(--crimson); font-weight: 600; }

.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--text-soft); max-width: 640px; margin: 0 auto 1.6rem; }

/* ==========================================================================
   Events list
   A clean chronological list rather than a calendar grid — people want to
   know what's next, not to navigate months.
   ========================================================================== */

.event-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: grid;
  gap: 1.25rem;
}

.event {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid rgba(13, 20, 32, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease;
}

.event:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* date chip */
.event-date {
  flex-shrink: 0;
  width: 74px;
  text-align: center;
  background: var(--grad-ink);
  color: var(--white);
  border-radius: 12px;
  padding: 0.7rem 0.3rem 0.8rem;
  line-height: 1;
}

.event-month {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.event-day {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.85rem;
}

.event-body { min-width: 0; }

.event-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 0.45rem;
}

.event h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.event p { color: var(--text-soft); margin: 0 0 0.6rem; font-size: 0.97rem; }
.event p:last-child { margin-bottom: 0; }

/* speaker portrait + supporting copy */
.event-speaker {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 0.9rem;
}

/* Rounded rectangle, not a circle: this is a head-and-shoulders press shot,
   and a circle both crops it awkwardly and reads as a team-member avatar. */
.event-portrait {
  flex-shrink: 0;
  width: 124px;
  height: 152px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.event-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink) !important;
  margin-bottom: 0.5rem !important;
}

.event-flyer-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 32, 31, 0.35);
  cursor: zoom-in;
}
.event-flyer-link:hover { border-bottom-color: var(--crimson); }

@media (max-width: 560px) {
  .event-speaker { gap: 1rem; }
  .event-portrait { width: 92px; height: 112px; }
}

/* past events are dimmed and pushed below the upcoming ones */
.event.is-past { opacity: 0.55; }
.event.is-past .event-date { background: #6b6558; }
.event.is-past:hover { transform: none; box-shadow: var(--shadow-sm); }

.event-past-heading {
  max-width: 880px;
  margin: 3rem auto 1.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-top: 1px solid rgba(13, 20, 32, 0.1);
  padding-top: 1.5rem;
}

.event-empty {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
  background: var(--paper);
  border: 1px dashed rgba(191, 138, 45, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
}

@media (max-width: 560px) {
  .event { flex-direction: column; gap: 1rem; padding: 1.4rem; }
  .event-date { width: auto; display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0.9rem; }
  .event-month { margin-bottom: 0; }
  .event-day { font-size: 1.35rem; }
}

/* ==========================================================================
   Newsflash band
   Sits between two light sections that look alike, so it needs to break the
   scroll rhythm: full-bleed gold, angled top edge, a live-looking badge and
   a slow shine pass. Dark text keeps it readable (8.5:1 on this gold).
   ========================================================================== */

.newsflash {
  background: var(--grad-warm);
  color: var(--ink);
  padding: clamp(2.2rem, 4vw, 3.2rem) var(--edge);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 2vw, 100% 0, 100% 100%, 0 calc(100% - 2vw));
  margin: clamp(1rem, 3vw, 2rem) 0;
}

/* dotted texture */
.newsflash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 20, 32, 0.4) 1px, transparent 1.6px);
  background-size: 24px 24px;
  opacity: 0.13;
}

/* slow light sweep so it catches the eye mid-scroll */
.newsflash::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-160%);
  animation: newsSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes newsSweep {
  0%        { transform: translateX(-160%); }
  55%, 100% { transform: translateX(340%); }
}

.newsflash-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* "Newsflash" is the section's own headline, not a label on the story —
   it has to carry the band on its own while someone is scrolling past. */
.newsflash-title {
  display: flex;
  align-items: center;
  gap: 0.34em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Sized in em so the pulse keeps its proportion as the heading scales. */
.newsflash-title .dot {
  flex-shrink: 0;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--crimson);
  animation: newsPulse 1.8s ease-in-out infinite;
}

@keyframes newsPulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.65); }
}

.newsflash h3 {
  color: var(--ink);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  margin-bottom: 0.4rem;
}

.newsflash p {
  margin: 0;
  color: rgba(34, 32, 29, 0.84);
  font-size: 1.02rem;
  max-width: 70ch;
}

/* Marker-pen highlight for the headline detail of the story. A pale wash
   rather than a dark pill: the band is already gold, and a dark fill here
   competed with the NEWSFLASH heading above it. */
.newsflash .nf-mark {
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.62);
  box-shadow: 0 0 0 0.22em rgba(255, 253, 247, 0.62);
  border-radius: 2px;
  /* Keeps the name whole if the line breaks near it */
  white-space: nowrap;
}

@media (max-width: 720px) {
  /* Tighter tracking keeps the word on one line on a narrow phone. */
  .newsflash-title { letter-spacing: -0.045em; }
}

/* ==========================================================================
   News card
   ========================================================================== */

.news-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid transparent;
  border-image: var(--grad-warm) 1;
}

.news-card .tag {
  flex-shrink: 0;
  background: var(--grad-warm);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.news-card p { margin: 0; color: var(--text-soft); }
@media (max-width: 600px) { .news-card { flex-direction: column; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--grad-ink);
  color: rgba(246,241,230,0.8);
  padding: clamp(3.5rem, 6vw, 5rem) var(--edge) 1.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,138,45,0.3), transparent 70%);
  filter: blur(90px);
  bottom: -30%;
  left: -10%;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.site-footer h4 {
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.3rem;
}

.site-footer p { color: rgba(246,241,230,0.62); font-size: 0.95rem; }

.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.footer-links a, .footer-contact a { color: rgba(246,241,230,0.75); text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--gold-bright); padding-left: 5px; }
.footer-contact { font-size: 0.95rem; }
.footer-contact a:hover { color: var(--gold-bright); }

.link-btn {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-size: 0.95rem;
  color: rgba(246,241,230,0.75);
  cursor: pointer; text-align: left;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.link-btn:hover { color: var(--gold-bright); padding-left: 5px; }

.social-row { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,169,79,0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700;
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--grad-warm); border-color: transparent; transform: translateY(-3px); }

.footer-bottom {
  position: relative;
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(212,169,79,0.16);
  font-size: 0.82rem;
  color: rgba(246,241,230,0.45);
  text-align: center;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--grad-warm);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: 0 12px 34px rgba(191,138,45,0.4);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-soft); }
.gold-rule { width: 60px; height: 3px; background: var(--grad-warm); border-radius: 3px; margin: 0.9rem auto 1.4rem; }
.gold-rule.left { margin-left: 0; }

.note-box {
  background: var(--paper);
  border-left: 5px solid transparent;
  border-image: var(--grad-warm) 1;
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  background: var(--paper);
  border: 1px solid rgba(13,20,32,0.1);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}
.pill-list li:hover { border-color: var(--crimson); color: var(--crimson); transform: translateY(-3px); }
