/* RCCG The Eagles Ark: website, design 2 "cinematic" (4 November 2026). Not the live website yet.
   Each page opens on a full-bleed photograph under deep navy, with slow camera movement, a soft blue light and a film
   grain; the welcome is set large with the key words in a book face's italic, in white. The facts people come for (service times,
   the address) sit on a frosted-glass card across the photo's lower edge. Below, bands alternate white, a soft mist and
   deep navy with a soft blue light. Things rise into place as you scroll; nothing moves for people who ask for less motion.
   Same family as the church's apps: Inter for reading, the apps' navy, teal for links and focus.
   Fonts are served from the site itself (no Google): Inter for text, Newsreader for headings and scripture. */

@font-face { font-family: "Inter Variable"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* Colour: the apps' navy and teal, and a deeper night navy for photographs. Text is never gold (owner, 4 November
     2026: the yellow text looked AI-made): white or soft white on dark, navy and ink on light. There is no gold at all (owner, the
     same day: "use different shades of our brand colours"): the main buttons are the logo's navy on light and a light
     wing blue on dark, and lines, dots and marks are the wing's cyan. */
  --night: #0c0926;       /* under photographs, footer */
  --navy: #1d1749;        /* bands */
  --royal: #2a2166;       /* main buttons */
  --royal-2: #3b2f8f;     /* button light */
  --violet: #5b46c8;      /* light in navy bands only */
  --ink: #17152a;         /* text */
  --muted: #5b5870;       /* secondary text, 6.4:1 on white */
  --paper: #ffffff;
  --mist: #f5f4fa;
  --line: #e7e5f0;
  --teal: #0f766e;        /* links and focus, 5.5:1 on white */
  --wing: #22bdef;        /* the logo's wing: lines, dots and marks only, never text */
  --sky: #c9effc;         /* a light wing blue: the main buttons on dark, with night text (15:1) */
  --sky-soft: #eaf7fd;
  --on-navy: #d9d7ea;     /* body text on navy, 11:1 */
  --on-dark-quiet: rgb(255 255 255 / 72%); /* small labels on navy and photographs, 9:1 */

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-hero: clamp(3rem, 1.4rem + 6.4vw, 6.25rem);
  --step-1: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --step-0: 1.0625rem;

  /* Space, shape, depth, motion */
  --wrap: 1200px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --shadow-1: 0 1px 2px rgb(23 21 42 / 5%), 0 6px 16px -6px rgb(23 21 42 / 10%);
  --shadow-2: 0 2px 6px rgb(23 21 42 / 6%), 0 28px 56px -20px rgb(23 21 42 / 28%);
  --shadow-3: 0 40px 90px -30px rgb(12 9 38 / 55%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 84px;
  /* Film grain: white noise from an inline SVG, laid over dark areas at a few percent. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.65 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .cards.immersive :focus-visible { outline-color: var(--wing); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
/* Headings: a tight, heavy Inter for what we say, with the key words in the book face's italic (white on dark). */
h1, h2 { font-family: var(--sans); font-weight: 750; letter-spacing: -0.038em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--step-1); }
h3 { font-size: var(--step-2); font-weight: 650; letter-spacing: -0.018em; line-height: 1.25; text-wrap: balance; }
h1 em, h2 em { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.06em; }
h2 em { color: var(--royal-2); }
.navy h2 em, .on-navy h2 em, .site-footer h2 em { color: #fff; }
p { max-width: 64ch; text-wrap: pretty; }
::selection { background: var(--sky); color: var(--night); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.band.mist { background: radial-gradient(60% 80% at 100% 0%, rgb(34 189 239 / 9%), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgb(42 33 102 / 7%), transparent 60%), var(--mist); }
.band.navy { background: radial-gradient(60% 80% at 92% 0%, rgb(34 189 239 / 16%), transparent 62%), radial-gradient(55% 75% at 0% 100%, rgb(91 70 200 / 30%), transparent 62%), var(--navy); color: var(--on-navy); isolation: isolate; overflow: hidden; }
.band.navy::after, .site-footer::after, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); background-size: 180px; opacity: 0.07; }
/* Behind each navy band, a field of wing blue and violet light turns very slowly. */
.band.navy::before { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none; background: radial-gradient(28% 28% at 30% 30%, rgb(91 70 200 / 30%), transparent 70%), radial-gradient(24% 24% at 72% 66%, rgb(34 189 239 / 14%), transparent 70%), radial-gradient(20% 20% at 62% 18%, rgb(34 189 239 / 16%), transparent 70%); animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(1turn); } }
.band.navy h2, .band.navy h3 { color: #fff; }
.band.navy a:not(.btn) { color: #fff; }
/* White cards in a navy band keep their own dark text and links. */
.band.navy .fact h3, .band.navy .fact h4 { color: var(--ink); }
.band.navy .fact a:not(.btn) { color: var(--teal); }
.stack { display: grid; gap: 22px; align-content: start; }
.stack-lg { display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; flex: none; }
.navy .eyebrow, .hero .eyebrow, .on-navy .eyebrow, .site-footer .eyebrow { color: var(--on-dark-quiet); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); }
.navy .lead, .hero .lead { color: var(--on-navy); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 44px; }
.section-head > div { display: grid; gap: 14px; max-width: 660px; }
.scripture { font-family: var(--display); font-style: italic; font-size: 1.375rem; line-height: 1.45; padding-left: 20px; border-left: 2px solid var(--wing); }
.scripture cite { display: block; margin-top: 8px; font: 600 0.75rem/1.3 var(--sans); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

/* Buttons: pills with a soft light along the top edge, and a sheen that crosses them on hover. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1.2 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .2s, border-color .2s, color .2s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 38%) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--royal-2), var(--royal)); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 10px 24px -10px rgb(42 33 102 / 70%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 16px 32px -12px rgb(42 33 102 / 80%); }
/* The main button: the logo's navy on light pages; on photographs and navy, a light wing blue with night-navy text. */
.btn-main { background: var(--royal); color: #fff; box-shadow: 0 8px 20px -12px rgb(42 33 102 / 60%); }
.btn-main:hover { background: var(--navy); }
.hero .btn-main, .site-header .btn-main, .site-footer .btn-main, .band.navy .btn-main, .on-navy .btn-main { background: var(--sky); color: var(--night); box-shadow: none; }
.hero .btn-main:hover, .site-header .btn-main:hover, .site-footer .btn-main:hover, .band.navy .btn-main:hover, .on-navy .btn-main:hover { background: var(--sky-soft); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 45%); }
.btn-light:hover { background: #fff; }
.btn-ghost, .btn-glass { background: rgb(255 255 255 / 8%); color: #fff; border-color: rgb(255 255 255 / 35%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover, .btn-glass:hover { background: rgb(255 255 255 / 16%); border-color: rgb(255 255 255 / 70%); }
.btn-quiet { background: var(--paper); color: var(--royal); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-quiet:hover { border-color: var(--royal); }
.btn-quiet::after { background: linear-gradient(105deg, transparent 30%, rgb(42 33 102 / 8%) 50%, transparent 70%); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.play-ico { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; flex: none; }
.play-ico::before { content: ""; border-left: 7px solid var(--navy); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }
.arrow::after { content: "\2192"; display: inline-block; margin-left: 0.4em; transition: transform .35s var(--ease-out); }
a:hover > .arrow::after, .arrow:hover::after, a:hover .card-link::after { transform: translateX(4px); }

/* A thin wing-blue line across the top that fills as you read down the page (where the browser can tie it to scrolling). */
.progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: var(--wing); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Header: clear over the photograph, then frosted navy glass once you scroll. The glass is on a layer behind the header
   (not the header itself), so the full-screen phone menu inside it can still cover the whole screen. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; padding-top: env(safe-area-inset-top, 0px); transition: top .3s var(--ease-out); view-transition-name: site-header; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(12 9 38 / 72%); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid rgb(255 255 255 / 8%); box-shadow: 0 12px 32px -18px rgb(0 0 0 / 60%); opacity: 0; transition: opacity .35s var(--ease-out); }
.site-header.scrolled::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height .35s var(--ease-out); }
.site-header.scrolled .wrap { min-height: 68px; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.brand img { width: 132px; transition: width .35s var(--ease-out); }
.site-header.scrolled .brand img { width: 112px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9688rem; padding: 10px 13px; border-radius: 999px; transition: background-color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--wing); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a:not(.btn):hover { background: rgb(255 255 255 / 8%); }
.nav .btn { margin-left: 12px; min-height: 42px; padding: 9px 20px; }
.menu-btn { position: relative; z-index: 2; display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 40%); background: rgb(255 255 255 / 8%); color: #fff; font: 600 0.9375rem/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn path { transition: transform .35s var(--ease-out), opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] path:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  /* The phone menu: the whole screen in night navy, the pages set large in the book face. */
  .nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: calc(var(--header-h) + 24px) 28px 40px; background: radial-gradient(70% 50% at 100% 0%, rgb(34 189 239 / 18%), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgb(91 70 200 / 35%), transparent 60%), var(--night); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s linear .35s; }
  .nav.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }
  .nav a:not(.btn) { font: 500 clamp(1.9rem, 1.4rem + 2.5vw, 2.6rem)/1.15 var(--display); letter-spacing: -0.02em; padding: 10px 0; border-radius: 0; border-bottom: 1px solid rgb(255 255 255 / 10%); }
  .nav a:not(.btn)::after { display: none; }
  .nav a:not(.btn):hover { background: transparent; color: #fff; }
  .nav a[aria-current="page"] { color: #fff; }
  .nav .btn { margin: 28px 0 0; align-self: start; min-height: 52px; padding: 13px 30px; }
  .nav.open > * { animation: rise .6s var(--ease-out) both; }
  .nav.open > :nth-child(2) { animation-delay: .04s; } .nav.open > :nth-child(3) { animation-delay: .08s; }
  .nav.open > :nth-child(4) { animation-delay: .12s; } .nav.open > :nth-child(5) { animation-delay: .16s; }
  .nav.open > :nth-child(6) { animation-delay: .2s; } .nav.open > :nth-child(7) { animation-delay: .24s; }
}

/* Hero: a photograph under night navy, moving slowly like a camera, with a soft blue light and film grain. */
.hero { position: relative; color: #fff; background: var(--night); isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform-origin: 60% 40%; animation: kenburns 24s var(--ease-in-out) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(55% 60% at 88% 8%, rgb(34 189 239 / 22%), transparent 62%),
  linear-gradient(180deg, rgb(12 9 38 / 60%) 0%, rgb(12 9 38 / 10%) 30%, rgb(12 9 38 / 25%) 60%, rgb(12 9 38 / 92%) 100%),
  linear-gradient(96deg, rgb(12 9 38 / 88%) 0%, rgb(12 9 38 / 55%) 48%, rgb(12 9 38 / 5%) 100%); }
.hero .wrap { position: relative; padding-top: calc(160px + env(safe-area-inset-top, 0px)); padding-bottom: 150px; display: grid; gap: 26px; }
.hero h1 { font-size: var(--step-hero); max-width: 16ch; }
/* "Come as you are." then "Dream again." on its own line, at the top of the page and in the footer. */
.hero h1.words em, .foot-cta h2 em { display: block; }
.hero h1 em { color: #fff; }
.hero .lead { max-width: 52ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); }
.hero .wrap > * { animation: rise 1s var(--ease-out) both; }
.hero .wrap > :nth-child(2) { animation-delay: .1s; } .hero .wrap > :nth-child(3) { animation-delay: .22s; }
.hero .wrap > :nth-child(4) { animation-delay: .34s; } .hero .wrap > :nth-child(5) { animation-delay: .46s; }
.hero .wrap > :nth-child(6) { animation-delay: .58s; }
/* The church's tagline, under the welcome on the home page and in every page's footer. */
.tagline { font: italic 400 clamp(1.3rem, 1.05rem + 1vw, 1.85rem)/1.25 var(--display); letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
/* The home page's welcome arrives word by word. */
.hero h1.words { animation: none; }
.hero h1.words .w { display: inline-block; animation: word 1.1s var(--ease-out) both; animation-delay: calc(0.12s + var(--i) * 0.075s); }
@keyframes word { from { opacity: 0; transform: translateY(0.4em) rotate(2deg); filter: blur(8px); } }

/* Home: the whole first screen, the photographs taking turns. */
.hero.home .wrap { min-height: max(700px, 100svh); align-content: end; padding-bottom: 200px; }
.hero-slides { position: absolute; inset: 0; z-index: -3; }
/* The head pastor preaching comes first (the pastor, 2026-11-07), filling the screen's height: on wide screens on the
   right, fading into the dark side where the welcome sits. */
.hero-slides .hero-photo.pastor { object-position: 30% 22%; }
@media (min-width: 600px) {
  /* Drawn a little larger and higher, so his face sits beside "Welcome to", clear of the words. */
  .hero-slides .hero-photo.pastor { top: -21%; bottom: auto; height: 121%; left: auto; right: 0; width: 60%; object-position: 0% 0%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
}
@media (max-width: 599.98px) {
  /* Phones: higher and to the right, so his face sits between the logo and the words. */
  .hero-slides .hero-photo.pastor { top: -90px; bottom: auto; height: 640px; left: 28%; right: auto; width: 100%; object-position: 0% 0%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%); mask-image: linear-gradient(90deg, transparent 0%, #000 18%); }
}
.hero-slides .hero-photo { z-index: auto; animation: none; transform: scale(1.1); }
.hero-slides .hero-photo + .hero-photo { opacity: 0; }
.hero-slides.ready .hero-photo { animation: slide 35s linear infinite both; }
.hero-slides.ready .hero-photo:nth-child(1) { animation-delay: -1.5s; }
.hero-slides.ready .hero-photo:nth-child(2) { animation-delay: 5.5s; }
.hero-slides.ready .hero-photo:nth-child(3) { animation-delay: 12.5s; }
.hero-slides.ready .hero-photo:nth-child(4) { animation-delay: 19.5s; }
.hero-slides.ready .hero-photo:nth-child(5) { animation-delay: 26.5s; }
/* Five photographs, 7 seconds each, over 35 seconds (1.5 s to fade). */
@keyframes slide { 0% { opacity: 0; transform: scale(1.12); } 4.29% { opacity: 1; } 20% { opacity: 1; } 24.29% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
/* Home: a short, silent clip of a service behind the welcome (when the site has one), fading in over the photographs. */
.hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none; }
.hero.has-video .hero-video { opacity: 1; }

/* A slow drifting light: wing blue above, violet below. */
.aurora { position: absolute; inset: -25%; z-index: -2; pointer-events: none; background: radial-gradient(30% 30% at 72% 28%, rgb(34 189 239 / 30%), transparent 70%), radial-gradient(34% 34% at 22% 78%, rgb(91 70 200 / 38%), transparent 70%); mix-blend-mode: screen; animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-5%, 4%, 0) rotate(10deg) scale(1.06); } }
/* The next service, worked out on the page from the church's weekly times (Calgary time). */
.next-up { display: inline-flex; align-items: center; gap: 12px; justify-self: start; max-width: 100%; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 18%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.9375rem; line-height: 1.35; color: #fff; }
.next-up[hidden] { display: none; }
.next-up b { font-weight: 600; }
.next-up a { color: #fff; font-weight: 600; }
.pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--wing); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease-out) infinite; }
.pulse.live { background: #ff5a5f; }
@keyframes ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }

.hero.page .wrap { min-height: min(68svh, 640px); align-content: end; padding-bottom: 88px; padding-top: calc(150px + env(safe-area-inset-top, 0px)); }
.hero.page h1 { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem); max-width: 16ch; }
.hero.pinned .wrap { padding-bottom: 190px; }
.hero.home.pinned .wrap { padding-bottom: 210px; }

/* The service times: a frosted-glass card across the photo's lower edge. */
.pinboard { position: relative; z-index: 2; margin-top: -128px; }
.pin-card { position: relative; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgb(255 255 255 / 80%); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgb(255 255 255 / 70%); box-shadow: var(--shadow-3), inset 0 1px 0 rgb(255 255 255 / 90%); }
.pin-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--wing); }
/* Each cell draws the line to its left and above; the card's edge hides the outer ones, so the dividers are right at every width. */
.pin-card > * { padding: 26px 22px 24px; min-width: 0; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); transition: background-color .3s; }
.pin-card > *:hover { background: rgb(255 255 255 / 70%); }
.pin-day { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.pin-name { font-weight: 600; font-size: 0.9688rem; margin-top: 8px; line-height: 1.35; }
.pin-time { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.pin-note { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.pin-place { background: rgb(245 244 250 / 70%); display: grid; gap: 8px; align-content: start; }
.pin-place p { font-size: 0.9688rem; line-height: 1.5; }
/* Thanksgiving Sunday (the first Sunday of the month): one row under the weekly times, across the card. */
.pin-thanks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 48px; background: rgb(34 189 239 / 7%); }
.pin-thanks .pin-name { margin-top: 0; }
.pin-thanks > div:first-child .pin-name { margin-top: 8px; }
@media (max-width: 1120px) {
  .pin-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pin-place { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pinboard { margin-top: -96px; }
  .pin-card { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
  .pin-card > * { padding: 20px 18px; }
  .pin-time { font-size: 1.3rem; white-space: normal; }
}
@media (max-width: 400px) { .pin-card { grid-template-columns: minmax(0, 1fr); } }

/* Words that drift across the page between sections. */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--line); background: var(--paper); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: italic 400 clamp(2.4rem, 1.6rem + 3.4vw, 4.5rem)/1 var(--display); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgb(42 33 102 / 55%); }
.marquee i { flex: none; width: 12px; height: 12px; background: var(--wing); transform: rotate(45deg); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Events: calendar leaves in a glossy panel. */
.events { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; }
.event { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px; gap: 22px; align-items: center; padding: 18px 24px; color: inherit; text-decoration: none; transition: background-color .3s; }
.event + .event { border-top: 1px solid var(--line); }
/* An event whose flyer the comms team ticked in the Hub: the flyer beside it (filled in on the page). */
.event.has-flyer { grid-template-columns: 76px minmax(0, 1fr) 132px 44px; }
.event-flyer { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--night); box-shadow: var(--shadow-1, 0 4px 12px rgb(0 0 0 / 12%)); }
@media (max-width: 640px) {
  /* Phones: no arrow; the flyer goes under the words, full width. */
  .event.has-flyer { grid-template-columns: 62px minmax(0, 1fr); }
  .event.has-flyer .event-flyer { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}
.event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wing); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.event::after { content: "\2192"; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--royal); font-weight: 600; transition: transform .4s var(--ease-out), background-color .3s, color .3s, border-color .3s; }
.event:hover { background: linear-gradient(90deg, rgb(245 244 250 / 100%), rgb(245 244 250 / 0%)); }
.event:hover::before { transform: scaleY(1); }
.event:hover::after { transform: translateX(4px); background: var(--royal); border-color: var(--royal); color: #fff; }
.event:hover .event-title { color: var(--royal); }
.leaf { display: grid; justify-items: center; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--royal-2), var(--navy)); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 10px 20px -10px rgb(29 23 73 / 60%); font-variant-numeric: lining-nums; transition: transform .4s var(--ease-out); }
.event:hover .leaf { transform: rotate(-4deg) scale(1.05); }
.leaf-mon { width: 100%; text-align: center; color: #fff; font: 700 0.6875rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 0 0; }
.leaf-day { font: 500 2.1rem/1.1 var(--display); padding: 2px 0 0; }
.leaf-dow { font: 600 0.625rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 65%); padding-bottom: 10px; }
.event-title { font-weight: 600; font-size: 1.125rem; line-height: 1.35; transition: color .2s; }
.event-meta { color: var(--muted); font-size: 0.9375rem; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.04em; padding: 6px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); white-space: nowrap; }
.tag.online { background: #e6f4f2; color: var(--teal); }
@media (max-width: 640px) {
  .event { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: 16px 18px; }
  .event::after { display: none; }
}

/* Splits, photographs and cards */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); box-shadow: var(--shadow-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
/* Photographs beside text have one large curved corner. */
.split .photo, .photo-stack .photo { --shape: var(--radius-lg) var(--radius-lg) var(--radius-lg) clamp(72px, 10vw, 140px); border-radius: var(--shape); }
.navy .photo { box-shadow: 0 40px 90px -30px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 8%); }
/* A photograph with a scripture card resting on its corner. */
.photo-stack { position: relative; }
.float-quote { position: absolute; left: clamp(-40px, -3vw, -12px); bottom: clamp(-36px, -3vw, -16px); max-width: min(360px, 82%); padding: 24px 26px; border-radius: var(--radius); background: rgb(255 255 255 / 82%); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgb(255 255 255 / 80%); box-shadow: var(--shadow-2); font: italic 400 1.25rem/1.4 var(--display); color: var(--ink); }
.float-quote cite { display: block; margin-top: 10px; font: 600 0.75rem/1.3 var(--sans); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--royal); }
@media (max-width: 860px) { .float-quote { position: relative; left: auto; bottom: auto; margin: -48px 16px 0; max-width: none; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: inherit; text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.card .photo { border-radius: 0; aspect-ratio: 3 / 2; box-shadow: none; }
.card .photo img { transition: transform 1.2s var(--ease-out); }
.cards .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cards .card:hover .photo img { transform: scale(1.06); }
.card-body { padding: 24px 24px 26px; display: grid; gap: 10px; align-content: start; }
.card-body p { font-size: 0.9688rem; color: var(--muted); }
.card-link { margin-top: 6px; font-weight: 600; color: var(--royal); font-size: 0.9688rem; }
.card-link::after { content: "\2192"; display: inline-block; margin-left: 0.4em; transition: transform .35s var(--ease-out); }
.card-link.arrow::after { content: none; }
/* Home: tall photo cards with the words over the picture. */
.cards.immersive { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
/* Five up front (owner, 2026-11-07): three age groups across, then Women and Men. */
.cards.immersive.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards.immersive.five > :nth-child(-n+3) { grid-column: span 2; }
.cards.immersive.five > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1000px) {
  .cards.immersive.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.immersive.five > :nth-child(n) { grid-column: auto; }
  .cards.immersive.five > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .cards.immersive.five { grid-template-columns: minmax(0, 1fr); }
}
.cards.immersive .card { display: grid; grid-template-rows: 1fr; align-content: end; min-height: clamp(380px, 38vw, 500px); border: 0; background: var(--night); color: #fff; box-shadow: var(--shadow-2); }
.cards.immersive .photo { position: absolute; inset: 0; aspect-ratio: auto; }
.cards.immersive .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 9 38 / 0%) 30%, rgb(12 9 38 / 55%) 60%, rgb(12 9 38 / 92%) 100%); transition: opacity .5s; }
.cards.immersive .card-body { position: relative; align-self: end; padding: 28px; }
.cards.immersive h3 { font: 750 clamp(1.7rem, 1.3rem + 1.4vw, 2.25rem)/1.05 var(--sans); letter-spacing: -0.035em; }
.cards.immersive .card-body p { color: rgb(255 255 255 / 82%); }
.cards.immersive .card-link { color: #fff; }
.cards.immersive .card:hover { box-shadow: var(--shadow-3); }

/* Flyers from the Hub, at the top of What's on (filled in on the page). */
.flyers { margin: 0 0 32px; }
.flyer-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); }
.flyer-track::-webkit-scrollbar { display: none; }
.flyer { flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 1920 / 692; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); box-shadow: var(--shadow-2); }
.flyer img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* The Watch page's picture when it is the next service's Sunday flyer: whole and bright, not dimmed. */
.player img.is-flyer { object-fit: contain; opacity: 1; background: var(--night); }
.flyer-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.flyer-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.flyer-dots button[aria-current="true"] { background: var(--royal); width: 22px; border-radius: 999px; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 36px; margin-top: 40px; }
/* The name on top, what it is underneath, and a round arrow on the right. */
.links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 2px; padding: 18px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none; transition: color .2s, padding .4s var(--ease-out); }
.links a::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--royal); transition: transform .4s var(--ease-out), background-color .3s, color .3s, border-color .3s; }
.links a:hover { color: var(--royal); padding-left: 8px; }
.links a:hover::after { background: var(--royal); color: #fff; border-color: var(--royal); transform: translateX(3px); }
.links a span { grid-column: 1; grid-row: 2; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }

/* Watch: the player's place */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); color: #fff; display: grid; grid-template-rows: 1fr auto; isolation: isolate; box-shadow: var(--shadow-3); }
.navy .player { box-shadow: 0 40px 90px -30px rgb(0 0 0 / 75%), 0 0 0 1px rgb(255 255 255 / 10%); }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.6; transition: transform 1.4s var(--ease-out), opacity .5s; }
.player:hover img { transform: scale(1.05); opacity: 0.7; }
.player::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(12 9 38 / 94%) 0%, rgb(12 9 38 / 20%) 65%, rgb(12 9 38 / 0%) 100%); }
.player-info { padding: clamp(20px, 3vw, 34px); display: grid; gap: 8px; }
/* The play button sits in the space above the text, so the two never overlap. */
.player-play { position: relative; place-self: center; width: 84px; height: 84px; border-radius: 50%; background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 45%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center; transition: transform .5s var(--ease-out), background-color .3s; }
.player-play::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 55%); animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.player-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.player:hover .player-play { transform: scale(1.08); background: rgb(255 255 255 / 26%); }
@media (max-width: 640px) { .player { aspect-ratio: 1 / 1; } .player-play { width: 64px; height: 64px; } .player-play svg { width: 22px; height: 22px; } }
.live-dot { display: inline-flex; align-items: center; gap: 10px; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wing); box-shadow: 0 0 0 0 rgb(34 189 239 / 60%); animation: beacon 2s var(--ease-out) infinite; }
@keyframes beacon { to { box-shadow: 0 0 0 10px rgb(34 189 239 / 0%); } }

/* Lists of facts: tiles with a line of wing blue along the top. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.fact { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.fact::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--wing); transform: scaleX(0.18); transform-origin: left; transition: transform .6s var(--ease-out); }
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.fact:hover::before { transform: scaleX(1); }
.fact h3 { font-size: 1.25rem; }
.fact p { font-size: 0.9688rem; color: var(--muted); }
/* Ask a question (Contact page, when the site is built with it): a question box, then each question and its answer. */
.ask { max-width: 820px; }
.ask-form { display: grid; gap: 12px; }
.ask-form label { font-weight: 600; }
.ask-form textarea { width: 100%; min-height: 96px; padding: 14px 16px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; }
.ask-thread { display: grid; gap: 14px; margin-top: 24px; }
.ask-q { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--royal); color: #fff; }
.ask-a { max-width: 90%; display: grid; gap: 10px; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: var(--paper); border: 1px solid var(--line); }

/* A drawing in place of a photograph (Sports: no photos yet), and the app shown on a phone (About). */
.photo.art svg { display: block; width: 100%; height: 100%; }
.app-shot { display: grid; place-items: center; }
.app-shot img { width: min(100%, 380px); height: auto; }
/* Toddlers, children and teens: a small colourful drawing each, and a line in its own colour (owner, 5 November 2026). */
.kid-art { display: block; width: 96px; height: 64px; margin-bottom: 6px; }
.fact.kid::before { height: 4px; background: var(--kid, var(--wing)); transform: scaleX(1); }
.fact h4 { margin: 0; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.018em; line-height: 1.25; text-wrap: balance; }
/* Serving teams (Get connected): the teams in groups, each with a line on what it does. */
.team-group + .team-group { margin-top: clamp(40px, 5vw, 64px); }
.team-group > h3 { margin-bottom: 20px; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts.numbered { counter-reset: fact; }
.facts.numbered .fact { padding-top: 26px; }
.facts.numbered .fact h3::before { counter-increment: fact; content: counter(fact, decimal-leading-zero); display: block; margin-bottom: 14px; font: italic 400 2.75rem/1 var(--display); color: var(--royal); }
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.beliefs > div { padding: 28px 0; border-top: 1px solid var(--line); }
.beliefs dt { font: 500 1.75rem/1.15 var(--display); letter-spacing: -0.015em; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.beliefs dt::before { content: ""; width: 10px; height: 10px; flex: none; transform: rotate(45deg); border-radius: 2px; background: var(--wing); }
.beliefs dd { color: var(--muted); font-size: 0.9688rem; }
@media (max-width: 760px) { .beliefs { grid-template-columns: minmax(0, 1fr); } }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.way { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; background: var(--paper); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.way::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--wing); }
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.way .copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; word-break: break-all; }
.copy-btn { font: 600 0.8125rem/1 var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--royal); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--royal); background: var(--royal); color: #fff; }
.needs { border: 1px dashed #b45309; background: #fff8eb; color: #7c3d06; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9375rem; }
.family { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-weight: 600; }
.family span:not([aria-hidden]) { padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.family span[aria-hidden] { color: var(--muted); font-weight: 400; }

/* Footer: an invitation set large, then the details, over night navy with a soft blue light and grain. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(50% 70% at 100% 0%, rgb(34 189 239 / 14%), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgb(91 70 200 / 26%), transparent 60%), var(--night); color: var(--on-navy); padding-block: clamp(72px, 9vw, 120px) 40px; font-size: 0.9688rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 40px; padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 64px); border-bottom: 1px solid; border-image: linear-gradient(90deg, rgb(34 189 239 / 60%), rgb(255 255 255 / 10%) 60%) 1; }
.foot-cta h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); color: #fff; max-width: 16ch; }
.foot-cta .btn { text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-quiet); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand img { width: 150px; }
.foot-tagline { font: italic 400 1.3125rem/1.3 var(--display); color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 12%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* While the new site is tested: a bar above the header saying so, with the address of the current site. */
.test-banner { position: relative; z-index: 60; background: #fff8eb; color: #7c3d06; border-bottom: 1px solid #f0c27a; padding: 8px 16px; text-align: center; font: 600 0.875rem/1.4 var(--sans); }
.test-banner a { color: inherit; }
.test-banner ~ .site-header { top: var(--banner-h, 37px); }
.test-banner ~ .site-header.scrolled { top: 0; }
@media (max-width: 640px) { .test-banner ~ .site-header { top: var(--banner-h, 57px); } }

/* Long text pages, such as the privacy statement. */
.hero.short .wrap { min-height: 0; padding-bottom: 64px; }
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.75rem; margin-top: 24px; }
.prose h3 { font-size: 1.125rem; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 6px; }

/* Subsplash players: a picture and a play button until someone asks for them, so Subsplash loads nothing before that. */
button.player-play { padding: 0; cursor: pointer; }
a.player { text-decoration: none; }
.embed-frame { display: block; width: 100%; border: 0; border-radius: var(--radius-lg); background: var(--night); box-shadow: var(--shadow-3); }
.embed-frame.video { aspect-ratio: 16 / 9; }
.embed-frame.give { min-height: 760px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.give-online { margin-top: 28px; }
.small { font-size: 0.875rem; }

/* Rising into view as you scroll (site.js marks what starts below the screen, then lets each go as it comes into view). */
.rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.photo.rv { opacity: 1; transform: none; clip-path: inset(9% 7% 9% 7% round var(--shape, var(--radius-lg))); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.photo.rv img { transform: scale(1.2); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.photo.rv.in { clip-path: inset(0 0 0 0 round var(--shape, var(--radius-lg))); }
.photo.rv.in img { transform: none; }

/* Pause motion: a small button on each page's photograph stops everything that keeps moving (remembered on this device). */
.motion-btn { position: absolute; right: var(--gutter-r); bottom: 28px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 28%); background: rgb(12 9 38 / 35%); color: #fff; font: 600 0.8125rem/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s, border-color .2s; }
.motion-btn:hover { background: rgb(12 9 38 / 55%); border-color: rgb(255 255 255 / 60%); }
.motion-btn svg { width: 14px; height: 14px; fill: currentColor; }
.hero.pinned .motion-btn { bottom: 150px; }
@media (max-width: 760px) { .hero.pinned .motion-btn { bottom: 116px; } .motion-btn { min-height: 36px; padding: 6px 12px; } }
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }
.still .progress { animation-play-state: running !important; }

/* Back to the top: a round frosted button that appears once you're a screen down the page. The footer's Back to top
   link does the same without the script. */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: rgb(12 9 38 / 74%); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); border: 1px solid rgb(255 255 255 / 18%); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top.show:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
.to-top:focus-visible { outline-color: var(--wing); }
.menu-open .to-top { opacity: 0; visibility: hidden; }

/* Moving between pages: a short cross-fade, where the browser supports it; the header stays put. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero-photo, .hero-slides .hero-photo, .aurora, .marquee-track, .pulse::after, .player-play::before, .live-dot::before, .band.navy::before { animation: none !important; }
  .hero-photo { transform: none !important; }
  .hero-slides .hero-photo + .hero-photo { display: none; }
  .progress, .motion-btn { display: none; }
}
