/* Grace Hill Church. The Nave: a sunlit arch on the center axis, light falling on the floor below it. */
:root {
  --indigo: #1F2A4D;
  --indigo-deep: #151D38;
  --indigo-mid: #2A3762;
  --limestone: #ECE6DA;
  --limestone-lite: #F4F0E8;
  --limestone-line: #D6CCBA;
  --gold: #E5B04A;
  --gold-ink: #7A5110;
  --slate: #5B6478;
  --on-dark: #F2ECE0;
  --on-dark-soft: rgba(242, 236, 224, .78);
  --display: "Newsreader", Georgia, serif;
  --body: "Public Sans", "Segoe UI", sans-serif;
  --wrap: 1240px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .38  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--indigo);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button, select, label, a { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--gold); color: var(--indigo); padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }

/* Buttons: flat fills only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 700 17px/1 var(--body); letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--indigo); }
.btn-gold-dark { background: var(--indigo); color: var(--gold); }
.btn-indigo { background: var(--indigo); color: var(--on-dark); }
.btn-line { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.wide { width: 100%; }
/* Hover colors only where a pointer can hover, so a tapped button never sticks half-changed. */
@media (hover: hover) {
  .btn-gold:hover { background: #F0C266; }
  .btn-gold-dark:hover { background: var(--indigo-mid); }
  .btn-indigo:hover { background: var(--indigo-mid); }
  .btn-line:hover { background: var(--indigo); color: var(--on-dark); }
}

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: var(--indigo-deep); color: var(--on-dark); }
.top-in {
  width: min(1360px, 100% - 48px); margin-inline: auto; height: 76px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--on-dark); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 13px;
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 17px; border-radius: 999px;
}
.nav a:hover { background: rgba(242, 236, 224, .1); }
.top-cta { flex: none; }
.burger { display: none; }

/* Hero: the nave */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  color: var(--on-dark);
  background-color: var(--indigo);
  background-image: linear-gradient(180deg, #26325C 0%, var(--indigo) 45%, var(--indigo-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .16; mix-blend-mode: overlay;
}
.hero-grid {
  position: relative;
  width: min(1360px, 100% - 48px); margin-inline: auto;
  padding: 26px 0 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr);
  grid-template-areas: "sunday window plan" "title title title";
  column-gap: 56px;
}
.window {
  grid-area: window; position: relative; margin: 0; height: 576px;
  border-radius: 1000px 1000px 6px 6px; overflow: hidden;
  outline: 1px solid rgba(229, 176, 74, .45); outline-offset: 9px;
  background: #3a3220;
}
.window img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 44%; filter: saturate(.86) contrast(1.08) brightness(.9); }
.window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 29, 56, 0) 55%, rgba(21, 29, 56, .22));
}
.floor-light {
  grid-area: title; justify-self: center; align-self: start; position: relative;
  width: min(1240px, 100%); height: 300px; margin: -2px 0 -300px;
  pointer-events: none; z-index: 0;
  filter: blur(34px);
  mix-blend-mode: screen;
}
/* The shape is cut on an inner layer so the parent's blur softens the cut edges. */
.floor-light::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(34% 70% at 50% 0%, rgba(244, 196, 104, .5), rgba(244, 196, 104, 0) 100%),
    radial-gradient(60% 46% at 50% 38%, rgba(240, 190, 96, .2), rgba(240, 190, 96, 0) 100%);
  clip-path: polygon(33.6% 0, 66.4% 0, 92% 100%, 8% 100%);
}
.hero-title { grid-area: title; position: relative; z-index: 1; text-align: center; padding-top: 34px; }
.hero-title h1 {
  font: 600 clamp(56px, 6.2vw, 92px)/.98 var(--display);
  letter-spacing: -.022em; color: #FBF6EC;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.h1-line { display: inline; }
.sunday-cta { display: none; }
.deck {
  margin-top: 14px; font: 600 clamp(24px, 2.3vw, 34px)/1.2 var(--display); color: var(--gold);
}

.sunday { grid-area: sunday; align-self: end; justify-self: end; width: min(100%, 340px); padding-bottom: 6px; }
.sunday-h { font: 700 17px/1.3 var(--body); color: var(--gold); letter-spacing: .01em; }
.times { margin-top: 10px; font: 600 46px/1.02 var(--display); letter-spacing: -.015em; color: #FBF6EC; }
.times span { white-space: nowrap; }
.times-note { margin-top: 10px; color: var(--on-dark-soft); font-size: 17px; line-height: 1.5; }
.facts { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(229, 176, 74, .35); display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 17px; line-height: 1.45; }
.facts svg { color: var(--gold); margin-top: 1px; }
.facts a { color: var(--gold); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.live-count { display: block; margin-top: 2px; color: var(--on-dark-soft); }
.live-count b { color: var(--gold); font-weight: 700; }

/* Plan Your Visit card */
.plan { grid-area: plan; align-self: end; justify-self: start; width: min(100%, 410px); }
.plan-card {
  background: var(--limestone); color: var(--indigo);
  border-radius: 18px; padding: 26px 26px 26px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55);
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--limestone-line); }
.plan-head h2 { font: 600 32px/1.05 var(--display); letter-spacing: -.01em; }
.greeter { margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--slate); }
.step-count { font-size: 17px; color: var(--slate); white-space: nowrap; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field + .field { margin-top: 16px; }
.step > .field:first-child { margin-top: 16px; }
legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 17px; }
.svc-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { position: relative; display: block; }
.svc input, .age input, .amt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc span {
  display: grid; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px #A9A08E; transition: background-color .2s ease, box-shadow .2s ease;
}
.svc strong { font: 600 24px/1.1 var(--display); }
.svc small { font-size: 15px; color: var(--slate); font-weight: 600; }
.svc input:checked + span { background: var(--indigo); color: #FBF6EC; box-shadow: inset 0 0 0 1.5px var(--indigo); }
.svc input:checked + span small { color: var(--gold); }
.svc input:focus-visible + span, .age input:focus-visible + span, .amt input:focus-visible + span { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.svc:hover span { box-shadow: inset 0 0 0 1.5px var(--indigo); }

.count { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.count + .count { border-top: 1px solid var(--limestone-line); }
.count-name { font-size: 18px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: transparent; box-shadow: inset 0 0 0 1.5px #A9A08E; color: var(--indigo);
  transition: background-color .2s ease;
}
.stepper button:hover { background: rgba(31, 42, 77, .08); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 40px; text-align: center; font: 600 26px/1 var(--display); }
.kids-note { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--gold-ink); font-weight: 600; }
.step > .btn { margin-top: 18px; }

.age-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.age { position: relative; }
.age span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px #A9A08E; font-size: 16px; font-weight: 600;
}
.age input:checked + span { background: var(--indigo); color: #FBF6EC; box-shadow: none; }
.door-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.door .text-label { margin-top: 0; font-weight: 600; }
.door-hint { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--slate); }
.text-label { display: block; font-size: 16px; font-weight: 700; margin: 10px 0 6px; }
.opt { font-weight: 400; color: var(--slate); }
.text {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid #A9A08E; background: #FBF8F2; font-size: 17px;
}
.text:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--indigo); }
.text[aria-invalid="true"] { border-color: #9B2C1F; }
select.text { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--indigo) 50%), linear-gradient(135deg, var(--indigo) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.err { margin-top: 6px; font-size: 17px; color: #9B2C1F; font-weight: 600; }
.step-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }

.saved { padding-top: 16px; outline: none; }
.saved h3 { font: 600 30px/1.1 var(--display); }
.saved-lead { margin-top: 6px; font-size: 18px; }
.saved-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 14px; }
.seatmap { padding: 10px 12px 12px; border-radius: 12px; background: #E2DACB; display: grid; justify-items: center; gap: 6px; }
.seat-front { width: 100%; text-align: center; font-size: 15px; font-weight: 700; color: var(--indigo); line-height: 1.2; }
.seat-front::after { content: ""; display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: rgba(91, 100, 120, .5); }
.seat-rows { display: grid; gap: 3px; }
.seat-row { display: grid; grid-template-columns: repeat(7, 8px) 12px repeat(7, 8px); gap: 3px; }
.seat-row i { width: 8px; height: 8px; border-radius: 2px; background: #C4BBA9; }
.seat-row i.aisle { background: transparent; }
.seat-row i.mine { background: var(--gold-ink); }
.saved-row { font: 600 40px/1 var(--display); color: var(--gold-ink); }
.saved-seat { margin-top: 6px; font-weight: 700; font-size: 17px; line-height: 1.4; }
.saved-door { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--slate); }
.saved .btn { margin-top: 16px; }

/* Sections */
section[id] { position: relative; }
.expect, .groups { background: var(--limestone); }
.kids, .give { background: var(--limestone-lite); }
.expect::before, .kids::before, .groups::before, .give::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .22; mix-blend-mode: multiply;
}
.expect > .wrap, .kids > .wrap, .groups > .wrap, .give > .wrap { position: relative; }
h2 { font: 600 clamp(40px, 4.6vw, 64px)/1.02 var(--display); letter-spacing: -.02em; }

.arch-photo { margin: 0; border-radius: 1000px 1000px 8px 8px; overflow: hidden; background: #d8cdb9; }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.14) saturate(.92) contrast(1.02); }

.expect { padding: 120px 0 128px; }
.expect-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.expect-intro p { margin-top: 20px; max-width: 34ch; font-size: 19px; }
.expect-photo { margin-top: 36px; width: min(100%, 420px); aspect-ratio: 4 / 5; }
.expect-photo img { object-position: 46% 50%; }
.morning { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.morning::before { content: ""; position: absolute; left: 156px; top: 14px; bottom: 30px; width: 2px; background: linear-gradient(var(--gold), rgba(229, 176, 74, .25)); }
.morning li { display: grid; grid-template-columns: 134px 1fr; gap: 46px; padding: 0 0 46px; position: relative; }
.morning li::before { content: ""; position: absolute; left: 150px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--limestone); box-shadow: inset 0 0 0 3px var(--gold-ink); }
.morning-time { font: 600 30px/1.15 var(--display); color: var(--gold-ink); text-align: right; white-space: nowrap; }
.morning h3 { font: 600 32px/1.1 var(--display); letter-spacing: -.01em; }
.morning-body p { margin-top: 10px; max-width: 46ch; }

.kids { padding: 120px 0 132px; }
.kids-grid { display: grid; grid-template-columns: 5fr 5fr 3fr; gap: 56px; align-items: start; }
.kids-photo { aspect-ratio: 4 / 5; }
.kids-photo img { object-position: 52% 50%; filter: sepia(.32) saturate(.78) hue-rotate(-6deg) contrast(1.03); }
.students-photo { aspect-ratio: 3 / 4; margin-top: 210px; }
.students-photo img { object-position: 64% 50%; filter: sepia(.22) saturate(.8) contrast(1.03); transform: scale(1.32); transform-origin: 52% 16%; }
.kids-copy .lead { margin-top: 20px; font-size: 19px; }
.ages { margin: 30px 0 0; }
.ages div { display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--limestone-line); }
.ages div:last-child { border-bottom: 1px solid var(--limestone-line); }
.ages dt { font: 600 24px/1.25 var(--display); }
.ages dd { margin: 0; font-size: 17px; line-height: 1.55; }
.safe { margin-top: 22px; font-size: 17px; font-weight: 600; color: var(--gold-ink); }

.watch {
  padding: 120px 0 128px; color: var(--on-dark); overflow: clip; isolation: isolate;
  background: var(--indigo);
}
.watch::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; }
.watch-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: center; }
.watch-copy p { margin-top: 20px; color: var(--on-dark-soft); max-width: 36ch; }
.watch-copy h2 { color: #FBF6EC; }
.countdown { margin-top: 34px !important; display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid rgba(229, 176, 74, .35); }
.cd-label { font-weight: 700; color: var(--gold); font-size: 17px; }
.cd-num { font: 600 clamp(40px, 4vw, 56px)/1 var(--display); color: #FBF6EC; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.player-frame { position: relative; border-radius: 16px 16px 0 0; overflow: hidden; isolation: isolate; background: var(--gold); aspect-ratio: 16 / 8; }
.player-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.18) brightness(1.06); mix-blend-mode: multiply; }
.player-frame::after { content: ""; position: absolute; inset: 0; background: var(--indigo); mix-blend-mode: lighten; pointer-events: none; }
.player-bar { padding: 16px 24px 20px; background: var(--indigo-deep); border-radius: 0 0 16px 16px; }
.player-status { font-weight: 700; color: var(--gold); font-size: 17px; }
.player-title { margin-top: 4px; font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--display); color: #FBF6EC; }
.messages { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.msg {
  width: 100%; min-height: 76px; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px;
  background: rgba(242, 236, 224, .08); color: var(--on-dark); display: grid; gap: 4px; align-content: start;
  box-shadow: inset 0 0 0 1px rgba(242, 236, 224, .16); transition: background-color .2s ease, box-shadow .2s ease;
}
.msg:hover { background: rgba(242, 236, 224, .14); }
.msg.is-on { background: var(--limestone); color: var(--indigo); box-shadow: none; }
.msg-title { font: 600 21px/1.15 var(--display); }
.msg-meta { font-size: 15px; line-height: 1.35; opacity: .85; }
.msg.is-on .msg-meta { opacity: 1; color: var(--slate); }

.groups { padding: 120px 0 128px; }
.groups-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.groups-copy p { margin-top: 20px; max-width: 36ch; font-size: 19px; }
.groups-photo { margin-top: 36px; width: min(100%, 420px); aspect-ratio: 1 / 1; }
.groups-photo img { object-position: 50% 60%; }
.day-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.day {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1.5px #A9A08E; font-weight: 700; font-size: 16px; color: var(--indigo);
}
.day:hover { box-shadow: inset 0 0 0 1.5px var(--indigo); }
.day.is-on { background: var(--indigo); color: #FBF6EC; box-shadow: none; }
.group-rows { list-style: none; margin: 22px 0 0; padding: 0; }
.group-rows li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--limestone-line); }
.group-rows li:last-child { border-bottom: 1px solid var(--limestone-line); }
.group-rows li[hidden] { display: none; }
.group-rows h3 { font: 600 28px/1.15 var(--display); letter-spacing: -.01em; }
.group-rows p { margin-top: 4px; font-size: 17px; color: var(--slate); }
.ask { flex: none; min-height: 44px; padding: 0 18px; font-size: 16px; }
.ask-form { margin-top: 24px; padding: 24px; border-radius: 16px; background: var(--limestone-lite); box-shadow: inset 0 0 0 1.5px var(--limestone-line); }
.ask-form h3 { font: 600 28px/1.15 var(--display); }
.ask-form > p { margin-top: 6px; font-size: 17px; }
.ask-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.ask-done { margin-top: 14px; font-weight: 700; color: var(--gold-ink); outline: none; }

.give { padding: 120px 0 128px; }
.give-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: center; }
.give-photo { aspect-ratio: 3 / 4; width: min(100%, 380px); justify-self: end; }
.give-photo img { object-position: 50% 30%; }
.give-copy p { margin-top: 20px; max-width: 46ch; font-size: 19px; }
.give-form { margin-top: 30px; max-width: 560px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amt { position: relative; }
.amt span {
  display: grid; place-items: center; min-height: 56px; border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px #A9A08E; font: 600 24px/1 var(--display);
}
.amt-other span { font: 700 17px/1 var(--body); }
.amt input:checked + span { background: var(--indigo); color: var(--gold); box-shadow: none; }
.other-wrap { margin-top: 6px; max-width: 240px; }
.give-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 20px; }
.give-done { margin-top: 14px; font-weight: 600; color: var(--gold-ink); outline: none; }

/* Footer */
.foot { background: var(--indigo-deep); color: var(--on-dark); padding: 72px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-h { font: 700 17px/1.3 var(--body); color: var(--gold); letter-spacing: .01em; }
.foot p { margin-top: 8px; font-size: 17px; color: var(--on-dark-soft); }
.foot a { color: var(--on-dark); text-underline-offset: 3px; }
.foot-base { border-top: 1px solid rgba(242, 236, 224, .14); padding: 22px 24px 28px; text-align: center; }
.foot-base p { margin: 0; font-size: 16px; color: var(--on-dark-soft); }

/* Load moment: the window goes from first light to full sun, then the light reaches the floor. */
@media (prefers-reduced-motion: no-preference) {
  .window img { animation: sunup 2.8s cubic-bezier(.33, .08, .2, 1) .1s both; }
  .window::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, #24315E, #18203E); mix-blend-mode: multiply;
    animation: dusk-off 2.6s cubic-bezier(.33, .08, .2, 1) .1s both;
  }
  .floor-light { animation: spill 2.2s cubic-bezier(.2, .7, .2, 1) 1.1s both; transform-origin: 50% 0; }
  @keyframes sunup { from { filter: saturate(.25) brightness(.62) contrast(.95); } }
  @keyframes dusk-off { from { opacity: .82; } to { opacity: 0; } }
  @keyframes spill { from { opacity: 0; transform: scaleY(.25); } }
}

/* Under 1280: the burger takes over the nav and the hero stacks */
@media (max-width: 1279px) {
  .nav, .top-cta { display: none; }
  .burger {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(242, 236, 224, .08); color: var(--on-dark);
  }
  .burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--indigo-deep); border-top: 1px solid rgba(229, 176, 74, .3); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .5); max-height: calc(100vh - 64px); overflow-y: auto; }
  .menu-in { width: min(560px, 100% - 40px); margin-inline: auto; padding: 12px 0 30px; display: grid; }
  .menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; color: var(--on-dark); text-decoration: none; font: 600 24px/1.1 var(--display); }
  .menu-label { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(242, 236, 224, .14); font: 700 17px/1.4 var(--body); letter-spacing: .02em; color: var(--gold); }
  .menu-home { border-bottom: 0; }
  .menu .menu-cta { margin-top: 16px; min-height: 52px; font-size: 18px; }
  .menu-note { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(242, 236, 224, .14); display: grid; gap: 10px; font-size: 17px; line-height: 1.4; color: var(--on-dark-soft); }
  .menu-note li { display: flex; align-items: center; gap: 10px; }
  .menu-note svg { color: var(--gold); flex: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(13, 18, 36, .88); cursor: pointer; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "window window" "title title" "sunday plan";
    column-gap: 40px; padding-top: 30px;
  }
  .window { justify-self: center; width: 400px; height: 500px; }
  .h1-line { display: block; }
  .hero-title h1 { font-size: clamp(48px, 8.4vw, 88px); }
  .sunday { justify-self: stretch; align-self: start; width: auto; padding-top: 36px; }
  .plan { justify-self: stretch; align-self: start; width: auto; margin-top: 36px; }
  .messages { grid-template-columns: repeat(2, 1fr); }
  .kids-grid { grid-template-columns: 1fr 1fr; }
  .kids-copy { grid-column: 1 / -1; grid-row: 1; }
  .students-photo { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .expect-grid, .groups-grid, .give-grid, .watch-grid { grid-template-columns: 1fr; gap: 44px; }
  .give-photo { justify-self: start; }
  .morning::before { left: 128px; }
  .morning li { grid-template-columns: 110px 1fr; gap: 36px; }
  .morning li::before { left: 122px; }
  .morning-time { font-size: 24px; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "window" "title" "sunday" "plan"; padding: 22px 0 36px; }
  .sunday { padding-top: 26px; }
  .plan { margin-top: 26px; }
  .sunday-cta { display: flex; width: 100%; margin-top: 18px; min-height: 52px; font-size: 18px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }

  .wrap { width: calc(100% - 40px); }
  .top-in { height: 64px; width: calc(100% - 32px); }
  .hero-grid { width: calc(100% - 32px); padding-top: 18px; }
  .window { width: min(70vw, 272px); height: min(64vw, 250px); outline-offset: 7px; }
  .floor-light { height: 200px; margin-bottom: -200px; filter: blur(24px); }
  .floor-light::before { clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
  .hero-title { padding-top: 30px; }
  .hero-title h1 { font-size: clamp(34px, 10.6vw, 46px); }
  .deck { margin-top: 6px; font-size: 24px; }
  .sunday { text-align: center; margin-top: 24px; padding: 14px 18px 18px; border-radius: 16px; background: #222C4D; box-shadow: inset 0 0 0 1px rgba(229, 176, 74, .28); }
  .sunday-h { font-size: 17px; }
  .times { font-size: 31px; margin-top: 4px; }
  .times-note { display: none; }
  .facts { margin: 12px auto 0; padding-top: 0; border-top: 0; gap: 11px; text-align: left; width: fit-content; max-width: 100%; }
  .facts li { line-height: 1.4; }
  .sunday-cta { margin-top: 16px; }
  .plan-card { padding: 22px 18px; }
  .plan-head h2 { font-size: 28px; }
  .expect, .kids, .watch, .groups, .give { padding: 84px 0 92px; }
  .morning::before { left: 6px; top: 12px; }
  .morning li { grid-template-columns: 1fr; gap: 6px; padding: 0 0 36px 34px; }
  .morning li::before { left: 0; top: 7px; }
  .morning-time { text-align: left; font-size: 22px; }
  .morning h3 { font-size: 27px; }
  .kids-grid { grid-template-columns: 1fr; gap: 36px; }
  .kids-copy { grid-row: auto; }
  .students-photo { width: 70%; justify-self: end; margin-top: -120px; }
  .ages div { grid-template-columns: 1fr; gap: 2px; }
  .messages { grid-template-columns: 1fr; }
  .group-rows li { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ask-fields, .give-row { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 380px) {
  .saved-grid { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 360px) {
  .svc strong { font-size: 21px; }
  .svc span { padding: 10px 10px; }
  .stepper button { width: 44px; height: 44px; }
}

/* Logo: lockups and favicon. Inline SVG sized in em, 100 viewBox units to 1em of the wordmark. */
/* Header: the door beside the name. The brand's font-size is the Newsreader size (pinned to opsz 30 in the SVG). */
.brand { font-size: 26px; }
.brand svg { display: block; flex: none; width: auto; }
.brand .lk-primary { height: 1.25em; transform: translateY(-0.22em); }
/* The door rises above the capitals, so the lockup is nudged up to center the name optically on the nav. */
/* Footer: the stacked lockup, the door over the name. */
.foot-brand { font-size: 34px; }
.foot-brand .lk-stack { display: block; height: 2.48em; width: auto; max-width: 100%; }
@media (max-width: 600px) {
  .brand { font-size: 23px; }
}
/* End Logo */
