@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/CormorantGaramond-italic-500.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:'Cormorant Garamond';font-style:normal;font-weight:500 600;font-display:swap;src:url(/assets/fonts/CormorantGaramond-normal-500.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:'Source Sans 3';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/SourceSans3-italic-400.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:'Source Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/SourceSans3-normal-400-700.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}


/* =========================================================== tokens */
:root {
  --fam-navy: #16233F;
  --fam-navy-deep: #0E1830;
  --fam-cream: #F6F1E4;
  --fam-paper: #FFFDF8;
  --fam-ink: #0B1428;
  --fam-muted: #5B5B5B;
  --fam-gold: #C9A24B;       /* on navy only */
  --fam-gold-deep: #6E561C;  /* on cream and white */
  --fam-line: rgba(11, 20, 40, 0.12);
  --fam-light-muted: #C4C9D4; /* secondary text on navy */

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-reveal: 600ms;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 20, 40, 0.05), 0 10px 30px -12px rgba(11, 20, 40, 0.14);
  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 136px);
  --focus: var(--fam-gold-deep);
}

/* =========================================================== base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fam-cream);
  color: var(--fam-ink);
  font: 400 1.125rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.6rem, 1.35rem + 0.8vw, 1.95rem); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.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; }
.on-dark { --focus: var(--fam-gold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--fam-paper); color: var(--fam-ink); border-radius: 10px; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }

.eyebrow {
  font: 700 0.8rem/1.3 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fam-gold-deep);
  margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--fam-gold); }
.muted { color: var(--fam-muted); }
.fine-print { font-size: 0.95rem; color: var(--fam-muted); margin-top: 20px; }
.section-lead { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem); color: var(--fam-muted); margin-top: 16px; max-width: 62ch; }

/* =========================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { flex: none; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-navy { background: var(--fam-navy); color: var(--fam-cream); }
.btn-cream { background: var(--fam-cream); color: var(--fam-navy); }
.btn-gold { background: var(--fam-gold); color: var(--fam-navy-deep); }
.btn-ghost { border-color: rgba(246, 241, 228, 0.55); color: var(--fam-cream); background: rgba(14, 24, 48, 0.18); }
@media (hover: hover) and (pointer: fine) {
  .btn-navy:hover { background: #22325A; }
  .btn-cream:hover { background: #FFFFFF; }
  .btn-gold:hover { background: #D6B25E; }
  .btn-ghost:hover { border-color: var(--fam-cream); background: rgba(14, 24, 48, 0.35); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fam-navy); text-decoration: none; border-bottom: 1.5px solid var(--fam-gold-deep); padding-bottom: 2px; }
.link-arrow .icon { transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } }

/* press feedback, used on every tappable element */
.fam-press { transition: transform var(--dur-press) var(--ease-out); }
.fam-press:active { transform: scale(0.97); }

/* =========================================================== header */
.header-sentinel { position: absolute; top: 0; left: 0; height: 40px; width: 1px; pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h); color: var(--fam-cream); }
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(22, 35, 63, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(246, 241, 228, 0.08);
  opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
}
.site-header.is-solid::before, .no-hero .site-header::before { opacity: 1; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; border-radius: 8px; transform-origin: left center; transition: transform var(--dur-ui) var(--ease-out); }
.brand img { height: 44px; width: auto; }
.header-give { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.site-header.is-solid .brand { transform: scale(0.9); }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { position: relative; display: block; padding: 10px 12px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--fam-cream); border-radius: 8px; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1.5px; background: var(--fam-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-ui) var(--ease-out); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover::after { transform: scaleX(1); } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .main-nav { display: block; }
  .main-nav ul { gap: 6px; }
  .main-nav a { font-size: 1.125rem; padding: 12px 14px; }
  .main-nav a::after { left: 14px; right: 14px; bottom: 6px; }
  .brand img { height: 56px; }
  .header-actions { margin-left: 12px; }
  .header-give { min-height: 52px; padding: 12px 28px; font-size: 1.1rem; }
  .menu-btn { display: none; }
  .btn { min-height: 56px; padding: 14px 30px; font-size: 1.1rem; }
  .btn-lg { min-height: 66px; padding: 18px 40px; font-size: 1.2rem; gap: 12px; }
}

/* =========================================================== drawer (mobile menu) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(8, 14, 30, 0.5); opacity: 0; transition: opacity var(--dur-ui) var(--ease-out); }
.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
  display: flex; flex-direction: column; gap: 24px;
  padding: 14px var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--fam-navy); color: var(--fam-cream);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--dur-ui) var(--ease-out);
}
html.drawer-open { overflow: hidden; }
html.drawer-open .drawer { transform: none; transition-duration: 300ms; transition-timing-function: var(--ease-drawer); }
html.drawer-open .drawer-backdrop { opacity: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.drawer-top img { height: 38px; width: auto; }
.drawer-links a { display: block; padding: 12px 0; font: 600 1.9rem/1.2 var(--serif); color: var(--fam-cream); text-decoration: none; border-bottom: 1px solid rgba(246, 241, 228, 0.12); }
.drawer-links a[aria-current="page"] { color: var(--fam-gold); }
.drawer-bottom { margin-top: auto; display: grid; gap: 12px; }

/* =========================================================== type for photo-led sections */
.display { font-size: clamp(2.75rem, 1.1rem + 6.2vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 12ch; }
.display-sm { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); }
.headline { font-size: clamp(2.4rem, 1.25rem + 4.6vw, 5.25rem); line-height: 1.0; letter-spacing: -0.018em; max-width: 14ch; }
.headline-dark { color: var(--fam-ink); margin-inline: auto; }
.lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 44ch; font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem); line-height: 1.5; color: #EDE8DC; }
.lead-dark { color: var(--fam-muted); margin-inline: auto; }
.kicker { font: 600 clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem)/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fam-gold); margin-bottom: 18px; }
.kicker-dark { color: var(--fam-gold-deep); }
.actions-center { justify-content: center; }
.text-link { font-weight: 600; font-size: 1.1rem; color: var(--fam-navy); text-decoration: underline; text-decoration-color: var(--fam-gold-deep); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

/* =========================================================== full-width photo sections */
.photo-section { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(88svh, 620px); color: var(--fam-cream); background: var(--fam-navy-deep); overflow: hidden; }
.photo-bg, .shade { position: absolute; inset: 0; z-index: -1; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-content { position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(64px, 10vw, 128px); }
/* phones: dark from the bottom, where the text sits */
.shade { background: linear-gradient(to top, rgba(14, 24, 48, 0.94) 0%, rgba(14, 24, 48, 0.82) 38%, rgba(14, 24, 48, 0.45) 70%, rgba(14, 24, 48, 0.55) 100%); }
.shade-strong { background: linear-gradient(to top, rgba(14, 24, 48, 0.93) 0%, rgba(14, 24, 48, 0.8) 50%, rgba(14, 24, 48, 0.5) 100%); }
.shade-left { background: linear-gradient(to top, rgba(14, 24, 48, 0.94) 0%, rgba(14, 24, 48, 0.8) 40%, rgba(14, 24, 48, 0.35) 80%, rgba(14, 24, 48, 0.45) 100%); }
@media (min-width: 900px) {
  .photo-section { min-height: min(100svh, 1000px); align-items: center; }
  .shade-hero { background: linear-gradient(to top, rgba(14, 24, 48, 0.9) 0%, rgba(14, 24, 48, 0.55) 40%, rgba(14, 24, 48, 0.2) 70%, rgba(14, 24, 48, 0.55) 100%), linear-gradient(90deg, rgba(14, 24, 48, 0.75) 0%, rgba(14, 24, 48, 0) 60%); }
  .hero { align-items: flex-end; }
  .shade-left { background: linear-gradient(90deg, rgba(14, 24, 48, 0.92) 0%, rgba(14, 24, 48, 0.78) 40%, rgba(14, 24, 48, 0.2) 72%, rgba(14, 24, 48, 0.08) 100%); }
  .shade-strong { background: linear-gradient(to top, rgba(14, 24, 48, 0.9) 0%, rgba(14, 24, 48, 0.72) 55%, rgba(14, 24, 48, 0.5) 100%); }
  .shade-right { background: linear-gradient(270deg, rgba(14, 24, 48, 0.92) 0%, rgba(14, 24, 48, 0.8) 42%, rgba(14, 24, 48, 0.2) 75%, rgba(14, 24, 48, 0.1) 100%); }
  .prayer-content { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .prayer-content .lead { margin-left: auto; }
  .prayer-content .actions { justify-content: flex-end; }
}

/* hero */
.hero { min-height: 100svh; }
.hero-img { animation: hero-settle 1.2s var(--ease-out) both; }
.hero-in { animation: rise 600ms var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 60ms); }
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
/* home hero slideshow: extra photos crossfade over the first one (site.js); opacity only */
.hero-bg { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: none; transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide.is-top { z-index: 1; }
.hero-pause { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #FFFFFF; background: rgba(14, 24, 48, 0.55); border: 1px solid rgba(255, 255, 255, 0.34); cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
.hero-pause[hidden], .hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause:focus-visible { outline: 2px solid var(--fam-cream); outline-offset: 3px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* weekly meetings: two large text blocks over the photo, no cards */
.join .photo-content { width: 100%; }
.join-head { margin-bottom: clamp(40px, 6vw, 72px); }
.meetings { display: grid; gap: 48px; }
@media (min-width: 900px) { .meetings { grid-template-columns: 1fr 1fr; gap: 0; } .meeting + .meeting { padding-left: 56px; border-left: 1px solid rgba(246, 241, 228, 0.28); } .meeting:first-child { padding-right: 56px; } }
.meeting { display: flex; flex-direction: column; align-items: flex-start; }
.meeting-day { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font: 700 1rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fam-cream); }
.meeting-name { margin-top: 12px; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); line-height: 1.02; }
.meeting-summary { margin-top: 14px; font-size: 1.15rem; color: #E2DDD1; max-width: 36ch; }
.meeting-when { margin-top: 22px; font: 600 clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem)/1.2 var(--sans); }
.meeting-zones { margin-top: 6px; font-size: 1.1rem; color: #EFEAE0; }
.meeting-local { margin-top: 6px; font-size: 1.1rem; font-weight: 600; color: var(--fam-cream); }
.meeting .btn { margin-top: 28px; }
.meeting-cal { margin-top: 16px; font-size: 1rem; color: #D9D5CB; }
.meeting-cal a { color: var(--fam-cream); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font: 700 0.85rem/1.2 var(--sans); letter-spacing: 0.02em; text-transform: none; background: rgba(246, 241, 228, 0.14); color: var(--fam-cream); border: 1px solid rgba(246, 241, 228, 0.35); }
.badge.is-live { background: var(--fam-cream); color: var(--fam-navy); border-color: var(--fam-cream); }
.badge.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E7A48; }
.photo-note { margin-top: clamp(36px, 5vw, 56px); font-size: 1.05rem; color: #D9D5CB; }
@media (max-width: 899px) {
  .join { display: block; min-height: 0; }
  .join .photo-content { padding-bottom: 0; }
  .join-head { padding-top: 22vh; }
  .meetings { margin-inline: calc(-1 * var(--gutter)); padding: 40px var(--gutter) 8px; background: var(--fam-navy); gap: 0; }
  .meeting { padding-block: 32px; }
  .meeting + .meeting { border-top: 1px solid rgba(246, 241, 228, 0.22); }
  .meeting:first-child { padding-top: 0; }
  .meeting-when { font-size: 1.65rem; }
  .meeting-zones, .meeting-local { font-size: 1.15rem; }
  .meeting-summary { font-size: 1.15rem; }
  .meeting .btn { width: 100%; min-height: 60px; font-size: 1.1rem; }
  .meeting-cal { font-size: 1.1rem; line-height: 2; }
  .meeting-cal a { display: inline-block; padding: 4px 2px; }
  .join .photo-note { margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 56px; background: var(--fam-navy); font-size: 1.1rem; }
}
/* the giving logos above the Give button */
.give-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px); margin-top: clamp(32px, 5vw, 48px); }
.give-logos img { height: 36px; width: auto; }
@media (min-width: 900px) { .give-logos img { height: 44px; } }

/* cream pauses between photo sections */
.pause { background: var(--fam-cream); padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.mission-intro { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); color: var(--fam-muted); max-width: 52ch; margin-inline: auto; }
.verse { margin: clamp(40px, 6vw, 64px) 0 clamp(40px, 6vw, 56px); }
.verse blockquote { margin: 0; }
.verse p { font: 500 clamp(1.9rem, 1.2rem + 2.9vw, 3.4rem)/1.2 var(--serif); letter-spacing: -0.008em; color: var(--fam-ink); text-wrap: balance; }
.verse figcaption { margin-top: 26px; font: 600 1rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fam-gold-deep); }
.give-cta .fine-print { margin-top: 28px; }

/* latest sermon: led by the video itself */
.sermon { background: var(--fam-navy-deep); color: var(--fam-cream); padding-block: clamp(96px, 12vw, 160px); text-align: center; }
.sermon-head .headline { margin-inline: auto; max-width: 16ch; }
.sermon-meta { margin-top: 16px; font-size: 1.15rem; color: var(--fam-light-muted); }
.sermon-video { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1080px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%; background: rgba(246, 241, 228, 0.95); color: var(--fam-navy); transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .yt:hover .yt-play { transform: scale(1.06); } }
.sermon-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.sermon .actions { margin-top: 40px; }

/* 5th anniversary: photo section followed by an edge-to-edge strip of four photographs */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--fam-navy-deep); padding: 4px 0 0; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* 404 */
.no-hero main { padding-top: var(--header-h); }
.section { padding-block: var(--section-y); }
.section-cream { background: var(--fam-cream); }
.link-list { display: grid; gap: 14px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fam-navy); text-decoration: none; border-bottom: 1.5px solid var(--fam-gold-deep); padding-bottom: 2px; }

/* =========================================================== footer */
.site-footer { background: var(--fam-navy); color: var(--fam-cream); padding-top: clamp(56px, 8vw, 88px); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--fam-light-muted); max-width: 36ch; }
.footer-title { font: 700 0.8rem/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fam-gold); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--fam-cream); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { text-decoration: underline; } }
.contact-list { margin-bottom: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 241, 228, 0.3); color: var(--fam-cream); }
@media (hover: hover) and (pointer: fine) { .social a:hover { border-color: var(--fam-gold); color: var(--fam-gold); } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(246, 241, 228, 0.14); font-size: 0.95rem; color: var(--fam-light-muted); }
.footer-bottom a { color: var(--fam-light-muted); }

/* =========================================================== scroll reveal
   Content is visible by default. The script only adds .is-pending to blocks that start below the screen,
   and removes it as they arrive (or instantly if the visitor jumps). Nothing is ever hidden without the script. */
.fam-reveal { transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.fam-reveal.is-pending { opacity: 0; transform: translateY(16px); }
.fam-reveal.reveal-instant { transition: none; }

/* =========================================================== reduced motion: keep short fades, remove movement */
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
  .hero-in { animation: fade 300ms ease both; animation-delay: 0ms; }
  .fam-reveal { transition: none; }
  .fam-press:active { transform: none; }
  .drawer, html.drawer-open .drawer { transition: opacity 200ms ease; transform: none; opacity: 0; }
  html.drawer-open .drawer { opacity: 1; }
  .site-header.is-solid .brand { transform: none; }
}

/* =========================================================== inner pages */
.page-hero { min-height: max(80svh, 600px); }
@media (min-width: 900px) { .page-hero { min-height: min(88svh, 900px); } }
.text-link-light { color: var(--fam-cream); text-decoration-color: var(--fam-gold); }

/* Join: one full-screen photo section per meeting */
.meeting-section .photo-content { width: 100%; }
.meeting-lg { max-width: 640px; }
.meeting-lg .meeting-day { margin-bottom: 10px; }
.meeting-lg .lead { margin-top: 18px; }
.meeting-lg .meeting-when { margin-top: 28px; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.meeting-when-note { font-weight: 400; font-size: 0.7em; color: #D9D5CB; }
.meeting-lg .meeting-zones, .meeting-lg .meeting-local { font-size: 1.15rem; }
.meeting-scripture { margin-top: 18px; font: italic 500 clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem)/1.4 var(--serif); color: #EFEAE0; max-width: 34ch; }
.meeting-lg .actions { margin-top: 30px; }
@media (min-width: 900px) {
  .align-right .photo-content { display: flex; justify-content: flex-end; }
}
@media (max-width: 899px) { .meeting-lg .btn { width: 100%; } }

/* Join: how it works */
.steps .headline { margin-bottom: clamp(40px, 6vw, 72px); }
.step-list { display: grid; gap: 40px; margin: 0 auto clamp(40px, 6vw, 64px); padding: 0; list-style: none; text-align: left; max-width: 1080px; }
@media (min-width: 900px) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.step-num { display: block; font: 500 clamp(3.5rem, 2.5rem + 3vw, 5.5rem)/1 var(--serif); color: var(--fam-gold-deep); }
.step h3 { margin-top: 14px; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); color: var(--fam-ink); }
.step p { margin-top: 12px; font-size: 1.15rem; color: var(--fam-muted); }

/* Give: one large row per method */
.give-list { background: var(--fam-paper); padding-block: clamp(72px, 10vw, 128px); }
.give-tip { max-width: 60ch; font-size: 1.15rem; color: var(--fam-muted); padding-bottom: clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--fam-line); }
.give-row { display: grid; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--fam-line); }
@media (min-width: 900px) { .give-row { grid-template-columns: 1fr auto; gap: 80px; } }
.give-logo { height: 44px; width: auto; }
.give-name { margin-top: 20px; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); color: var(--fam-ink); }
.give-label { margin-top: 22px; font: 600 1rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fam-gold-deep); }
.give-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.give-handle-text { font: 600 clamp(1.3rem, 1.1rem + 1vw, 1.9rem)/1.25 var(--sans); color: var(--fam-navy); overflow-wrap: anywhere; }
.give-shown { margin-top: 12px; font-size: 1.1rem; color: var(--fam-muted); }
.give-how { margin-top: 14px; max-width: 48ch; font-size: 1.15rem; color: var(--fam-muted); }
.give-main .btn { margin-top: 26px; }
@media (max-width: 899px) { .give-main .btn { width: 100%; } }
.give-qr { margin: 0; text-align: center; }
.give-qr img { width: 200px; height: 200px; padding: 12px; background: #FFFFFF; border: 1px solid var(--fam-line); border-radius: 12px; }
.give-qr figcaption { margin-top: 12px; font-size: 1rem; color: var(--fam-muted); }
@media (min-width: 900px) { .give-qr img { width: 240px; height: 240px; } }
@media (hover: hover) and (pointer: fine) { .give-row .btn-navy:hover { transform: translateY(-1px); } }

/* Copy button: the label morphs to "Copied" with a short blur crossfade, then returns */
.copy-btn { position: relative; display: inline-grid; place-items: center; min-height: 44px; min-width: 96px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--fam-navy); background: transparent; color: var(--fam-navy); font: 600 1rem/1 var(--sans); cursor: pointer; }
.copy-btn > span { grid-area: 1 / 1; transition: opacity var(--dur-ui) ease, filter var(--dur-ui) ease; }
.copy-done { opacity: 0; filter: blur(4px); }
.copy-btn.is-copied .copy-label { opacity: 0; filter: blur(4px); }
.copy-btn.is-copied .copy-done { opacity: 1; filter: none; }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { background: var(--fam-navy); color: var(--fam-cream); } }

/* Sermons: recent videos */
.videos { background: var(--fam-cream); padding-block: clamp(80px, 10vw, 136px); text-align: center; }
.videos .headline { margin-inline: auto; }
.video-grid { display: grid; gap: 40px 28px; margin: clamp(40px, 6vw, 64px) 0; padding: 0; list-style: none; text-align: left; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-frame .yt { box-shadow: none; border-radius: 12px; }
.video-frame .yt-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.video-title { margin-top: 16px; font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.7rem); color: var(--fam-ink); }
.video-meta { margin-top: 6px; font-size: 1rem; color: var(--fam-muted); }

/* Events */
.weekly { background: var(--fam-navy); color: var(--fam-cream); padding-block: clamp(80px, 10vw, 136px); }
.event-grid { display: grid; gap: 0; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .event-grid { grid-template-columns: 1fr 1fr; } .event-row.weekly + .event-row.weekly { padding-left: 56px; border-left: 1px solid rgba(246, 241, 228, 0.24); } .event-row.weekly:first-child { padding-right: 56px; } }
.event-row { padding-block: 28px; }
@media (max-width: 899px) { .event-row + .event-row { border-top: 1px solid rgba(246, 241, 228, 0.24); } }
.event-when { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 700 1.05rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fam-cream); }
.event-title { margin-top: 14px; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.event-summary { margin-top: 12px; font-size: 1.15rem; color: #D9D5CB; max-width: 40ch; }
.weekly .meeting-local { margin-top: 10px; }
.weekly p:last-child { margin-top: 18px; font-size: 1.1rem; }
.past { background: var(--fam-paper); padding-block: clamp(80px, 10vw, 136px); }
.past-list { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.past-event { display: grid; gap: 8px 48px; padding-block: 32px; border-top: 1px solid var(--fam-line); }
@media (min-width: 900px) { .past-event { grid-template-columns: 300px 1fr; } }
.past-date { font: 600 1.05rem/1.4 var(--sans); color: var(--fam-gold-deep); }
.past-title { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); color: var(--fam-ink); }
.past-summary { margin-top: 8px; font-size: 1.12rem; color: var(--fam-muted); max-width: 60ch; }
.past-event .text-link { display: inline-block; margin-top: 10px; }
@media (max-width: 899px) {
  .meeting-section .shade { background: linear-gradient(to top, rgba(14, 24, 48, 0.95) 0%, rgba(14, 24, 48, 0.9) 55%, rgba(14, 24, 48, 0.66) 100%); }
}
/* Give: the brand logo is the visible heading; the name stays for screen readers */
.give-logo { height: 52px; }
.give-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.give-label { margin-top: 26px; }
@media (max-width: 899px) {
  .meeting-lg .actions > .btn { flex: 1 1 100%; }
  .video-grid .video:nth-child(n+5) { display: none; } /* four on phones; the rest are one tap away on YouTube */
}

/* =========================================================== About / Our Leaders */
.story { background: var(--fam-paper); padding-block: clamp(80px, 11vw, 150px); }
.story-alt { background: var(--fam-cream); }
.story-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 5fr 7fr; }
  .story-grid-flip .portrait { order: 2; }
  .portrait { position: sticky; top: calc(var(--header-h) + 32px); }
}
.portrait { margin: 0; }
.portrait-img { width: 100%; height: auto; border-radius: var(--radius); }
.portrait figcaption { margin-top: 14px; font-size: 1rem; color: var(--fam-muted); }
.story-text .headline { margin-bottom: clamp(24px, 3vw, 36px); }
.story-text p { font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem); line-height: 1.7; color: #2B3140; max-width: 62ch; }
.story-text p + p { margin-top: 1.1em; }
.mission-dark { text-align: center; }
.mission-lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.6; color: #E7E2D6; max-width: 60ch; margin-inline: auto; }
.verse-light p { color: var(--fam-cream); }
.verse-light figcaption { color: var(--fam-gold); }
.vision-light { font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.25 var(--serif); color: var(--fam-cream); }
.mission-dark .kicker + .vision-light { margin-top: 0; }
.mission-dark .verse { margin-bottom: clamp(48px, 7vw, 72px); }

/* Guiding Principles */
.principles { background: var(--fam-paper); padding-block: clamp(72px, 10vw, 136px); }
.principle-list { margin: 0; padding: 0; list-style: none; }
.principle { display: grid; gap: 12px 40px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--fam-line); }
.principle:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .principle { grid-template-columns: 120px 1fr; } }
.principle-num { font: 500 clamp(3.5rem, 2.5rem + 3vw, 5.5rem)/0.9 var(--serif); color: var(--fam-gold-deep); }
.principle-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); color: var(--fam-ink); max-width: 20ch; }
.principle-verse { margin: 20px 0 0; }
.principle-verse p { font: italic 500 clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem)/1.45 var(--serif); color: #2B3140; max-width: 44ch; }
.principle-verse cite { display: block; margin-top: 14px; font: 600 1rem/1.3 var(--sans); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fam-gold-deep); }

/* Contact */
.contact { background: var(--fam-paper); padding-block: clamp(72px, 10vw, 136px); }
.contact-grid { display: grid; gap: clamp(56px, 8vw, 96px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-form-wrap .headline { margin-bottom: 32px; }
.contact-ways { padding-top: 8px; }
.contact-title { font: 600 1rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fam-gold-deep); margin: 36px 0 10px; }
.contact-title:first-child { margin-top: 0; }
.contact-ways p { font-size: 1.15rem; color: #2B3140; }
.contact-ways .btn { margin-top: 18px; }
.contact-link { font-weight: 600; font-size: 1.25rem; color: var(--fam-navy); }
.social-dark .social { margin-top: 0; }
.social-dark .social a { color: var(--fam-navy); border-color: rgba(22, 35, 63, 0.35); }

/* Forms */
.fam-form { display: grid; gap: 22px; margin-top: 8px; }
.form-left { text-align: left; margin-top: 36px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 1.05rem; color: var(--fam-ink); }
.optional { font-weight: 400; color: var(--fam-muted); }
.field input, .field textarea { width: 100%; min-height: 56px; padding: 14px 16px; font: 400 1.125rem/1.4 var(--sans); color: var(--fam-ink); background: #FFFFFF; border: 1.5px solid rgba(22, 35, 63, 0.3); border-radius: 12px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--fam-navy); }
.field [aria-invalid="true"] { border-color: #A12622; }
.form-note { font-size: 1rem; color: var(--fam-muted); }
.form-note a { color: inherit; }
.form-status { min-height: 1.5em; font-weight: 600; font-size: 1.05rem; color: #8A1F1B; }
.fam-form .btn { justify-self: start; }
@media (max-width: 699px) { .fam-form .btn { justify-self: stretch; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fam-form-dark .field label, .fam-form-dark .form-note { color: var(--fam-cream); }
.fam-form-dark .form-note { color: #D9D5CB; }
.fam-form-dark .form-status { color: #FFD1CC; }
.wrap-form { max-width: calc(820px + 2 * var(--gutter)); }
.form-pause { text-align: center; }
.form-pause .fam-form { text-align: left; }

/* Salvation */
.salvation { background: var(--fam-paper); padding-block: clamp(80px, 11vw, 150px); }
.salvation .headline { margin-bottom: 32px; }
.salvation p { font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem); line-height: 1.7; color: #2B3140; }
.salvation p + p { margin-top: 1.1em; }
.salvation-prayer { margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(32px, 5vw, 56px); background: var(--fam-navy); color: var(--fam-cream); border-radius: var(--radius); }
.salvation-prayer figcaption { font: 600 1rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fam-gold); }
.salvation-prayer blockquote { margin: 18px 0 0; }
.salvation .salvation-prayer p { font: italic 500 clamp(1.45rem, 1.2rem + 1vw, 2rem)/1.45 var(--serif); color: var(--fam-cream); }
.shade-solid { background: rgba(14, 24, 48, 0.9); }
.prayer-form-section { align-items: center; }
.prayer-form-section .fam-form { margin-top: 32px; }

/* Privacy */
.legal { background: var(--fam-paper); padding-block: clamp(64px, 9vw, 120px); }
.legal h2 { margin-top: 48px; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); color: var(--fam-ink); }
.legal p, .legal li { font-size: 1.15rem; line-height: 1.7; color: #2B3140; }
.legal p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: 12px; }
.legal li + li { margin-top: 8px; }
.legal-updated { color: var(--fam-muted); }
.btn-ghost-dark { border-color: rgba(22, 35, 63, 0.4); color: var(--fam-navy); background: transparent; }

/* Gallery */
.gallery { background: var(--fam-navy-deep); padding-block: clamp(48px, 7vw, 96px); }
.g-grid { columns: 1; column-gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .g-grid { columns: 2; } }
@media (min-width: 1100px) { .g-grid { columns: 3; } }
.g-item { break-inside: avoid; margin-bottom: 12px; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.g-open img { width: 100%; height: auto; }
.g-note { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 40ch; text-align: center; font: italic 500 clamp(1.4rem, 1.2rem + 1vw, 2rem)/1.4 var(--serif); color: #E7E2D6; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 22, 0.94); }
.lb-figure { position: relative; margin: 0; max-width: min(94vw, 1600px); touch-action: pan-y; }
.lb-img { cursor: pointer; display: block; max-width: 100%; max-height: calc(100svh - 140px); width: auto; height: auto; margin: 0 auto; border-radius: 6px; }
.lb-caption { margin-top: 14px; text-align: center; color: #E7E2D6; font-size: 1.05rem; }
.lb-count { color: #A9AFBC; margin-left: 8px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(246, 241, 228, 0.14); color: var(--fam-cream); cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-next { right: 16px; top: 50%; margin-top: -26px; }
@media (max-width: 699px) { .lb-prev, .lb-next { top: auto; bottom: 20px; margin-top: 0; } }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(246, 241, 228, 0.26); } }
.hero .kicker { color: var(--fam-cream); }

/* Event flyers (Zoom details cropped off) */
.flyer { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55); }
.flyer-img { width: 100%; height: auto; }
.meeting-with-flyer { display: grid; gap: 40px; }
.meeting-with-flyer .flyer { order: 2; max-width: 340px; }
@media (min-width: 900px) {
  .align-right .meeting-with-flyer { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 640px); justify-content: space-between; align-items: center; gap: 64px; }
  .meeting-with-flyer .flyer { order: 0; max-width: none; }
}
.event-flyer { margin-top: 24px; max-width: 240px; }
@media (min-width: 900px) { .past-event.has-flyer { grid-template-columns: 300px 1fr 200px; } }
.past-flyer { max-width: 200px; margin-top: 8px; }
/* three weekly meetings */
@media (min-width: 900px) {
  .join .meetings { grid-template-columns: repeat(3, 1fr); }
  .join .meeting + .meeting { padding-left: 40px; }
  .join .meeting:not(:last-child) { padding-right: 40px; }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .event-row.weekly + .event-row.weekly { padding-left: 40px; }
  .event-row.weekly:not(:last-child) { padding-right: 40px; }
  .align-left .meeting-with-flyer { display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 360px); justify-content: space-between; align-items: center; gap: 64px; }
  .align-left .meeting-with-flyer .flyer { order: 2; }
}

/* ===================== BEGIN fam-glass: Apple-style glass for secondary buttons over photos and navy, and the phone menu.
   To revert, delete everything from BEGIN fam-glass to END fam-glass and redeploy. Main action buttons stay solid on purpose. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .on-dark .btn-ghost, .drawer .btn-ghost {
    position: relative; isolation: isolate;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.06);
    backdrop-filter: blur(16px) saturate(1.7) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),   /* light catching the top edge */
      inset 0 -1px 0 rgba(255, 255, 255, 0.10),
      0 10px 30px -14px rgba(0, 0, 0, 0.55);      /* soft lift off the photo */
  }
  /* the sheen: a soft highlight across the upper half, brighter on hover or press (opacity only) */
  .on-dark .btn-ghost::before, .drawer .btn-ghost::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.06) 52%, rgba(255, 255, 255, 0.12) 100%);
    opacity: 0.7; transition: opacity var(--dur-ui) ease;
  }
  @media (hover: hover) and (pointer: fine) {
    .on-dark .btn-ghost:hover, .drawer .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
    .on-dark .btn-ghost:hover::before, .drawer .btn-ghost:hover::before { opacity: 1; }
  }
  .on-dark .btn-ghost:active::before, .drawer .btn-ghost:active::before { opacity: 1; }

  /* phone menu: a glass panel over the page */
  .drawer {
    background: rgba(22, 35, 63, 0.74);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    backdrop-filter: blur(28px) saturate(1.5);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
  .drawer-backdrop { background: rgba(8, 14, 30, 0.35); }
}
/* visitors who ask their device for less transparency get solid versions */
@media (prefers-reduced-transparency: reduce) {
  .on-dark .btn-ghost, .drawer .btn-ghost { background: rgba(14, 24, 48, 0.9); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .on-dark .btn-ghost::before, .drawer .btn-ghost::before { display: none; }
  .drawer { background: var(--fam-navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .drawer-backdrop { background: rgba(8, 14, 30, 0.5); }
}
/* menu links: a glass pill fades in behind the link you point at (hover or keyboard focus); the current page keeps its gold underline */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .main-nav a { isolation: isolate; }
  .main-nav a::before {
    content: ""; position: absolute; inset: 2px 0; z-index: -1; border-radius: 999px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.14) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(1.7) brightness(1.08);
    backdrop-filter: blur(14px) saturate(1.7) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 22px -12px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: scale(0.94);
    transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  }
  .main-nav a:focus-visible::before { opacity: 1; transform: none; }
  @media (hover: hover) and (pointer: fine) {
    .main-nav a:hover::before { opacity: 1; transform: none; }
    .main-nav a:not([aria-current="page"]):hover::after { transform: scaleX(0); } /* the glass replaces the hover underline */
  }
}
@media (prefers-reduced-transparency: reduce) {
  .main-nav a::before { background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav a::before { transform: none; transition: opacity 150ms ease; }
}
/* ===================== END fam-glass */
