/* Love Live Christ. Tokens come from the captured brand system; text shades are
   darkened from the original #888 so body copy passes WCAG AA. */
:root {
  --slate: #6d7894;
  --slate-ink: #454d68;
  --slate-deep: #2e3449;
  --ink: #33363f;
  --body: #555963;
  --paper: #fdfdfc;
  --cloud: #f4f5f7;
  --line: #dcdfe6;
  --sun: #fac415;
  --sun-ink: #6b5000;
  --teal: #77c3ca;
  --teal-ink: #1f5c63;
  --lime: #c1e200;
  --lime-ink: #2b3305;
  --display: 'Cinzel', 'Times New Roman', serif;
  --head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Amiko', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-1: 0 1px 2px rgba(46, 52, 73, 0.08), 0 4px 14px rgba(46, 52, 73, 0.08);
  --shadow-2: 0 2px 4px rgba(46, 52, 73, 0.1), 0 14px 34px rgba(46, 52, 73, 0.16);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--text); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); font-family: var(--head); font-weight: 900; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--slate-ink); text-underline-offset: 3px; }
a:hover { color: var(--slate-deep); }
:focus-visible { outline: 3px solid var(--slate-deep); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 68ch; }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1.1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--slate-deep); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }

.eyebrow { font-family: var(--head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-ink); }
.h-xl { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.25rem); text-transform: uppercase; }
.h-md { font-size: 1.25rem; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-cloud { background: var(--cloud); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border: 2px solid transparent; border-radius: 3px; font-family: var(--head); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: #5b6684; color: #fff; }
.btn-primary:hover { background: var(--slate-ink); color: #fff; }
.btn-light { background: var(--paper); color: var(--slate-deep); }
.btn-light:hover { background: #fff; color: var(--slate-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(46, 52, 73, 0.25); }
.btn-ghost:hover { background: rgba(46, 52, 73, 0.5); color: #fff; }
.btn-lime { background: var(--lime); color: var(--lime-ink); border-radius: 50px; text-transform: uppercase; font-size: 0.875rem; }
.btn-lime:hover { background: #d0ee2a; color: var(--lime-ink); }
.btn-outline { border-color: var(--slate); color: var(--slate-ink); background: transparent; }
.btn-outline:hover { background: var(--cloud); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 253, 252, 0.97); border-bottom: 1px solid transparent; transition: box-shadow 200ms ease, border-color 200ms ease; }
.site-header.is-stuck { box-shadow: var(--shadow-1); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo img { width: 190px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: inline-block; padding: 12px 2px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--body); border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.site-nav a:not(.btn):hover { color: var(--slate-deep); }
.site-nav a[aria-current='page'] { color: var(--slate-deep); border-bottom-color: var(--slate); font-weight: 700; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; background: transparent; border: 2px solid var(--line); border-radius: 3px; font: 700 0.8125rem var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-deep); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; content: ''; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 0.9375rem; border-bottom: 1px solid var(--line); }
  html:not(.js) .site-nav { position: static; opacity: 1; transform: none; visibility: visible; box-shadow: none; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-row { flex-wrap: wrap; }
}

/* Hero */
/* The hero photo is a semi-transparent PNG whose snow fades out at the bottom. It must sit on
   the page color so the sky reads light blue and the snow melts into the page. */
.hero { position: relative; display: grid; align-items: start; min-height: clamp(540px, 56.25vw, 940px); padding-block: clamp(48px, 7vw, 110px) clamp(160px, 22vw, 380px); color: #fff; background: var(--paper) center bottom / cover no-repeat; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46, 52, 73, 0.38) 0%, rgba(46, 52, 73, 0.16) 45%, rgba(46, 52, 73, 0) 68%); }
.hero h1 { text-shadow: 0 1px 18px rgba(30, 40, 70, 0.35); font-family: var(--display); font-weight: 400; font-variant: small-caps; font-size: clamp(2.25rem, 5.6vw, 4rem); line-height: 1.08; color: #fff; max-width: 14ch; letter-spacing: 0.01em; }
.hero p { max-width: 34ch; margin-top: 20px; font-family: var(--head); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; }
.hero .btn-row { margin-top: 36px; }
.page-hero { min-height: 0; padding-block: clamp(72px, 10vw, 128px); }
.page-hero.photo { background-color: var(--slate-deep); background-position: center; }
.page-hero.photo::before { background: linear-gradient(100deg, rgba(46, 52, 73, 0.78) 0%, rgba(46, 52, 73, 0.45) 60%, rgba(46, 52, 73, 0.2) 100%); }
.page-hero h1 { max-width: 18ch; }
.page-hero.plain { background: var(--slate-ink); }
.page-hero.plain::before { display: none; }

/* Program panels */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 48px; }
.program { display: grid; grid-template-rows: auto 1fr; background: #fff; box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: box-shadow 200ms ease, transform 200ms var(--ease-out); }
.program-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.program-tile img { width: 56%; max-height: 82%; object-fit: contain; }
.program-tile .wordmark { font-family: var(--head); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.04em; color: #fff; }
.program.kk .program-tile { background: var(--sun); }
.program.more .program-tile { background: var(--teal); }
.program-body { padding: 28px clamp(20px, 3vw, 32px) 32px; }
.program-body h3 { font-size: 1.375rem; text-transform: uppercase; }
.program.kk .program-kind { color: var(--sun-ink); }
.program.more .program-kind { color: var(--teal-ink); }
.program-kind { font-weight: 700; margin-top: 4px; }
.program-body p + p { margin-top: 12px; }
.program-link { display: inline-block; margin-top: 18px; font-family: var(--head); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-ink); }
@media (hover: hover) and (pointer: fine) {
  .program:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
}

/* Story blocks: photo with an overlapping slate panel */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.story + .story { margin-top: clamp(56px, 8vw, 104px); }
.story-photo { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.story-panel { grid-column: 7 / span 6; grid-row: 1; z-index: 1; padding: clamp(28px, 4vw, 48px); background: var(--slate-ink); color: #fff; box-shadow: var(--shadow-2); }
.story.flip .story-photo { grid-column: 5 / span 8; }
.story.flip .story-panel { grid-column: 1 / span 6; }
.story-panel h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.75rem); text-transform: uppercase; }
.story-panel p { margin-top: 14px; }
.story-panel .btn { margin-top: 24px; }
@media (max-width: 820px) {
  .story, .story.flip { display: block; }
  .story-panel { margin: -40px 16px 0; position: relative; }
}

/* Scripture */
.scripture { max-width: 62ch; margin: 40px auto 0; padding: clamp(28px, 4vw, 44px); background: var(--cloud); text-align: left; }
.scripture cite { display: block; font-family: var(--display); font-style: normal; font-size: 1.375rem; color: var(--slate-deep); letter-spacing: 0.04em; }
.scripture ol { margin: 18px 0 0; padding-left: 1.4em; font-style: italic; color: var(--ink); }
.scripture li + li { margin-top: 10px; }
.scripture li::marker { font-style: normal; font-weight: 700; color: var(--slate-ink); }

/* Generic content */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split.media { align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-1); }
@media (max-width: 820px) { .split, .programs { grid-template-columns: minmax(0, 1fr); } }

.steps { counter-reset: step; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--head); font-weight: 900; }
.steps strong { display: block; color: var(--ink); font-family: var(--head); }

.checklist { margin: 20px 0 0; padding-left: 1.3em; }
.checklist li + li { margin-top: 8px; }
.fineprint { font-size: 0.9375rem; color: var(--body); }
.panel { padding: clamp(24px, 4vw, 40px); background: #fff; box-shadow: var(--shadow-1); }

.project-group + .project-group { margin-top: clamp(48px, 7vw, 88px); }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin-top: 28px; }
.project-list > div { padding-block: 22px; border-top: 2px solid var(--line); }
.project-list h3 { font-size: 1.125rem; }
.project-list p { margin-top: 8px; font-size: 1rem; }
@media (max-width: 820px) { .project-list { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin-top: 32px; }
.stats strong { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1; color: var(--slate-ink); }
.stats span { display: block; margin-top: 8px; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }

.band { background: var(--slate-ink); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #eef0f5; }
.band a:not(.btn) { color: #fff; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

.impact-reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-top: 36px; }
.impact-reel video { width: 100%; aspect-ratio: 1920 / 1012; background: var(--slate-ink); box-shadow: var(--shadow-1); }
.impact-poster { width: min(100%, 760px); margin: 36px auto 0; box-shadow: var(--shadow-1); }
@media (max-width: 820px) { .impact-reel { grid-template-columns: minmax(0, 1fr); } }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { font-size: 1.0625rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }

/* Forms */
.form-embed { display: block; width: 100%; border: 0; background: transparent; }
.form { display: grid; gap: 20px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-family: var(--head); font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.field .hint { display: block; margin-bottom: 6px; font-size: 0.9375rem; }
.field input:not([type='checkbox']), .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #9aa0b0; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--slate-deep); box-shadow: 0 0 0 3px rgba(109, 120, 148, 0.35); }
.field [aria-invalid='true'] { border-color: #a4262c; }
.field .error { display: block; margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: #a4262c; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--slate-ink); }
.check label { margin: 0; font-family: var(--text); font-weight: 400; font-size: 1rem; color: var(--body); }
.form-status { padding: 14px 16px; border: 2px solid var(--line); background: var(--cloud); color: var(--ink); }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: #2f7d4a; background: #edf7f0; }
.form-status.bad { border-color: #a4262c; background: #fbeeee; }
.req { color: #a4262c; }

.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font-family: var(--head); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-ink); }
.contact-list a { font-size: 1.125rem; }

/* Footer */
.site-footer { margin-top: clamp(40px, 6vw, 80px); }
.footer-cloud { width: 100%; height: clamp(60px, 9vw, 130px); object-fit: cover; object-position: top; }
.footer-body { background: #f5f5f5; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-top: 24px; }
.footer-logo { width: 280px; margin-bottom: 16px; }
.footer-h { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-ink); font-weight: 700; }
.footer-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Motion. Sections ease in once as they enter view; the home hero staggers on first load.
   Nothing here runs on high-frequency actions. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-in > * { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease-out) forwards; }
.js .hero-in > *:nth-child(2) { animation-delay: 80ms; }
.js .hero-in > *:nth-child(3) { animation-delay: 160ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-in > * { transform: none; transition: opacity 200ms ease; animation: fade 200ms ease forwards; }
  .btn:active, .program:hover { transform: none; }
  .site-nav { transform: none !important; }
}
@keyframes fade { to { opacity: 1; } }
