/* Guidance Church — site styles. Mobile first; wider layouts in the min-width queries. */

/* ---------- Palettes ----------
   Pale green leads, blue supports, gold is trim only (rules, icons, underlines — never body text).
   Three candidates for Seth to compare; "sage" is the default. Pick one with ?palette=sage|eucalyptus|mint
   (the review bar shows up whenever ?review is in the URL). */
:root,
[data-palette="sage"] {
  --bg: #EEF2EA;          /* page: pale sage, taken from the mural wall */
  --bg-alt: #DFE8D8;      /* alternating bands */
  --surface: #FAFBF8;     /* cards, forms */
  --ink: #1D2B24;         /* body text: deep green-black */
  --ink-soft: #46574D;    /* secondary text */
  --green: #3F6B52;       /* deep green for headings and footer */
  --blue: #1F5A85;        /* primary buttons, links */
  --blue-deep: #16435F;
  --sky: #9CD3E3;         /* mural sky blue, decorative only */
  --gold: #C9A13B;        /* trim */
  --gold-ink: #7A5E14;    /* gold when it must be readable text */
  --line: #C9D6C1;
}
[data-palette="eucalyptus"] {
  --bg: #E9EFE8;
  --bg-alt: #D6E2D6;
  --surface: #F9FBF9;
  --ink: #1B2A26;
  --ink-soft: #435650;
  --green: #2F5B4F;
  --blue: #2A4C82;
  --blue-deep: #1D3760;
  --sky: #A9C4E6;
  --gold: #B8892A;
  --gold-ink: #74560F;
  --line: #C3D3C5;
}
[data-palette="mint"] {
  --bg: #EDF6F0;
  --bg-alt: #D9EEE1;
  --surface: #FBFDFC;
  --ink: #17302A;
  --ink-soft: #3E5A51;
  --green: #2E6B55;
  --blue: #11618A;
  --blue-deep: #0B4866;
  --sky: #8FD1E6;
  --gold: #D2A63C;
  --gold-ink: #7C5D10;
  --line: #C4DDCE;
}

:root {
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --caps: "Cinzel", var(--serif);
  --radius: 14px;
  --gutter: 20px;
  --maxw: 1160px;
  --shadow: 0 1px 2px rgba(29, 43, 36, .06), 0 8px 24px rgba(29, 43, 36, .07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);   /* 17px on phones */
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--green); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
h3 { font-size: clamp(1.45rem, 3.4vw, 1.85rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.eyebrow {
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 .9em; display: inline-flex; align-items: center; gap: .7em;
}
.lead { font-size: 1.15em; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
/* Refined, slim buttons: soft corners, quiet shadow, arrow that slides on hover. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 8px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .015em; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(22, 67, 95, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn::after { content: "→"; font-weight: 500; transition: transform .25s ease; }
.btn:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 67, 95, .22); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: none; }
.btn--plain::after, button.btn::after, .btn:has(svg)::after { content: none; }
.btn--ghost { background: transparent; color: var(--blue); border-color: color-mix(in srgb, var(--blue) 45%, transparent); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--blue-deep); border-color: var(--blue); box-shadow: none; }
.btn--light { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.btn--light:hover { background: #F3F6F1; color: var(--blue-deep); }
.btn--outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; backdrop-filter: blur(4px); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 0 0 auto; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--green); line-height: 1; }
.brand__name { font: 600 1.35rem/1 var(--caps); letter-spacing: .14em; }
.brand__sub { font: 500 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; cursor: pointer; color: var(--green); }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__links { display: none; }
.nav__links.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: var(--shadow);
}
.nav__links a { padding: 14px 4px; font-weight: 500; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__links a.btn { margin-top: 14px; border-bottom: 0; color: #fff; justify-content: center; }
@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__links, .nav__links.open { display: flex; flex-direction: row; align-items: center; gap: 6px; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__links a { padding: 10px 14px; font-size: 1rem; border: 0; position: relative; }
  .nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); }
  .nav__links a.btn { margin: 0 0 0 10px; min-height: 44px; padding: .6em 1.3em; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section__head { max-width: 680px; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green); }
/* Phones: photo on top (people visible), words below on green. Desktop: words over the photo. */
.hero picture { display: block; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 100%; }
.hero__inner { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 36px; }
.hero__church { font: 500 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; color: #fff; opacity: .9; }
.hero h1 { color: #fff; max-width: 13ch; font-size: clamp(2.5rem, 9vw, 5rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: #F3DB97; }
.hero__intro { max-width: 36em; font-size: 1.1rem; margin-bottom: 28px; opacity: .95; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.3); padding-top: 22px; }
.hero__facts li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.hero__facts svg { width: 22px; height: 22px; flex: none; color: #F3DB97; margin-top: 2px; }
.hero__facts a { color: #fff; }
@media (min-width: 900px) {
  .hero { background: var(--blue-deep); }
  .hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .hero__img { object-position: 55% 45%; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,32,26,.82) 0%, rgba(14,32,26,.55) 45%, rgba(14,32,26,.05) 80%); }
  .hero__inner { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 64px; }
  .hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.25); }
  .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; }
}

/* ---------- Welcome + next steps ---------- */
.welcome { font-family: var(--serif); font-size: clamp(1.6rem, 4.6vw, 2.35rem); line-height: 1.3; color: var(--green); font-weight: 500; }
.steps { display: grid; gap: 16px; list-style: none; padding: 0; margin: 40px 0 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 26px 24px 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 3px solid var(--gold);
}
.step__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--green); margin-bottom: 16px; }
.step__icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.5rem; margin-bottom: .3em; }
.step p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.step a.step__link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.step a.step__link::after { content: "→"; transition: transform .2s; }
.step a.step__link:hover::after { transform: translateX(3px); }
/* whole card is tappable */
.step a.step__link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- Feature (text + tall photo) ---------- */
.feature { display: grid; gap: 36px; align-items: center; }
.feature__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-height: 560px; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; aspect-ratio: 4 / 5; }
.motto { font: 600 clamp(2.1rem, 6vw, 3.4rem)/1.1 var(--serif); color: var(--green); margin: 0 0 .4em; }
.motto strong { display: block; font-family: var(--caps); font-weight: 600; letter-spacing: .1em; color: var(--blue); font-size: .92em; margin-top: .15em; }
@media (min-width: 900px) { .feature { grid-template-columns: 5fr 6fr; gap: 64px; } }

/* ---------- Gallery: columns keep every photo's own shape ---------- */
.gallery { columns: 2 160px; column-gap: 12px; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 16px; } }
.gallery__item { break-inside: avoid; margin: 0 0 12px; }
@media (min-width: 900px) { .gallery__item { margin-bottom: 16px; } }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery__btn img { width: 100%; transition: transform .5s ease; }
.gallery__btn:hover img { transform: scale(1.025); }
.gallery__item figcaption { font-size: .85rem; color: var(--ink-soft); padding: 6px 2px 0; }
.gallery__item--small { max-width: 100%; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 20, 16, .88); }
.lightbox img { max-width: 96vw; max-height: 82vh; width: auto; border-radius: 8px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox__close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; }

/* ---------- Signup band ---------- */
.signup { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.signup::before { /* flower-of-life trim, echoing the mural */
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -120px; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 120 120' fill='none' stroke='%23E6C46A' stroke-width='1.4'%3E%3Ccircle r='20'/%3E%3Ccircle cx='20' r='20'/%3E%3Ccircle cx='-20' r='20'/%3E%3Ccircle cx='10' cy='17.32' r='20'/%3E%3Ccircle cx='-10' cy='17.32' r='20'/%3E%3Ccircle cx='10' cy='-17.32' r='20'/%3E%3Ccircle cx='-10' cy='-17.32' r='20'/%3E%3Ccircle r='40'/%3E%3C/svg%3E") center / contain no-repeat;
}
.signup .wrap { position: relative; }
.signup h2 { color: #fff; }
.signup .eyebrow { color: #F3DB97; }
.signup p { opacity: .92; }
.signup__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .signup__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; /* ≥16px stops iOS zoom */
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.form .btn { width: 100%; }
@media (min-width: 640px) { .form--row { grid-template-columns: 1fr 1fr; } .form--row .btn, .form--row .form__status, .form--row .form__note { grid-column: 1 / -1; } }
.form__status { min-height: 1.4em; margin: 0; font-weight: 500; }
.form__status.ok { color: var(--green); }
.form__status.err { color: #A4262C; }
.form__note { font-size: .88rem; margin: 0; opacity: .85; }
.hp { position: absolute; left: -9999px; }
.signup .field input { border-color: transparent; }
.signup .form__status.ok { color: #D9F2E2; }
.signup .form__status.err { color: #FFD9D6; }
.signup .btn { background: var(--gold); color: #1D2B24; }
.signup .btn:hover { background: #E2BC5A; color: #1D2B24; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .25em; }
@media (min-width: 900px) { .page-hero { padding: 88px 0 56px; } }
.quote { margin: 0; max-width: 780px; }
.quote p { font: italic 500 clamp(1.5rem, 4.4vw, 2.3rem)/1.3 var(--serif); color: var(--green); margin: 0 0 .5em; }
.quote cite { font-style: normal; font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- Tabs ---------- */
.tabs { position: sticky; top: 68px; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
/* Phones: three equal columns so every tab is visible (labels may wrap). */
.tabs__list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 calc(var(--gutter) * -1); }
.tab {
  min-height: 60px; padding: 8px 6px; border: 0; background: none; cursor: pointer; text-align: center;
  font: 600 .92rem/1.2 var(--sans); color: var(--ink-soft); border-bottom: 3px solid transparent;
}
@media (min-width: 640px) {
  .tabs__list { display: flex; gap: 4px; margin: 0; }
  .tab { min-height: 56px; padding: 0 16px; font-size: 1rem; white-space: nowrap; }
}
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--gold); }
.tab:hover { color: var(--ink); }
.panel { padding: 48px 0 72px; }
.panel[hidden] { display: none; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.divider { border: 0; height: 1px; background: var(--line); margin: 56px 0; position: relative; overflow: visible; }
.divider::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }

/* Core concepts */
.concepts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.concept { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.concept summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 64px;
  font: 600 1.35rem/1.2 var(--serif); color: var(--green);
}
.concept summary::-webkit-details-marker { display: none; }
.concept summary::after { content: "+"; margin-left: auto; font: 400 1.6rem/1 var(--sans); color: var(--blue); transition: transform .2s; }
.concept[open] summary::after { transform: rotate(45deg); }
.concept__num { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font: 600 .95rem/1 var(--sans); color: var(--gold-ink); }
.concept p { padding: 0 20px 20px 70px; margin: 0; color: var(--ink-soft); }
@media (max-width: 480px) { .concept p { padding-left: 20px; } }

.treatment { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.treatment li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; }
.treatment li::before { content: counter(step); flex: none; font: 600 1.5rem/1 var(--serif); color: var(--gold-ink); width: 1.2em; }
.pull { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 24px 0; font: italic 500 1.3rem/1.45 var(--serif); color: var(--green); }
.pull cite { display: block; margin-top: 8px; font: normal 600 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }

/* Leaders */
.leader { display: grid; gap: 24px; margin-bottom: 20px; }
.leader__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 240px; border-bottom: 4px solid var(--gold); }
.leader__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.leader__role { font-weight: 600; color: var(--gold-ink); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin: -.2em 0 1em; }
@media (min-width: 800px) { .leader__photo { max-width: none; } .leader { grid-template-columns: 300px 1fr; gap: 48px; align-items: start; } .leader__photo { position: sticky; top: 150px; } }
.names { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .names { grid-template-columns: 1fr 1fr; } }
.names li { background: var(--surface); border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 600; }
.names small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .88rem; }

/* ---------- Connect / Donate cards ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 16px; padding: 28px 26px 26px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: var(--shadow); overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 20%, transparent)); }
.card h2, .card h3 { font-size: 1.65rem; margin-bottom: .35em; }
.card p { color: var(--ink-soft); }
.card .eyebrow { margin-bottom: .55em; }
.card .big { font: 600 1.3rem/1.4 var(--serif); color: var(--ink); margin-bottom: .4em; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--green) 10%, var(--surface)); color: var(--green);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 14%, transparent);
}
.card__icon svg { width: 24px; height: 24px; }
/* Actions sit on one baseline at the bottom of every tile */
.card__actions { margin-top: auto; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); display: flex; flex-wrap: wrap; gap: 10px; }
.card > p:last-of-type { margin-bottom: 20px; }
.card__actions--pair { display: grid; grid-template-columns: 1fr 1fr; }
.card__actions--pair .btn { min-width: 0; padding: .6em .7em; font-size: .9rem; white-space: normal; text-align: center; line-height: 1.15; }
@media (max-width: 440px) { .card__actions--pair .btn svg { display: none; } .card__actions--pair .btn { font-size: .86rem; } }
.card .btn-row { margin-top: 8px; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; }

.give { display: grid; gap: 16px; margin: 28px 0 36px; }
@media (min-width: 760px) { .give { grid-template-columns: 1fr 1fr; } }
/* Zelle: the address in a quiet field with a small copy control inside it */
.zelle { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 14px; }
.zelle code { font: 600 1rem/1.3 var(--sans); color: var(--ink); overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0; }
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--blue); font: 600 .85rem/1 var(--sans); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.copy svg { width: 15px; height: 15px; }
.copy:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.copy.is-copied { color: var(--green); border-color: var(--green); }
.give .card { padding-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D8E2D9; padding: 56px 0 28px; font-size: .98rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { color: #fff; }
.footer .brand__sub { color: #B9C7BD; }
.footer h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #E6C46A; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__motto { font: italic 500 1.25rem/1.4 var(--serif); color: #fff; margin: 18px 0 0; }
.footer__base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #9FB0A5; }

/* ---------- Motion (restrained) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Palette review bar (only with ?review) ---------- */
.review { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 90; background: #fff; color: #1D2B24; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 8px; display: flex; gap: 6px; align-items: center; font-size: .8rem; overflow-x: auto; }
@media (min-width: 700px) { .review { left: auto; right: 12px; bottom: 12px; padding: 10px; } }
.review strong { display: none; flex: none; padding: 0 4px; }
@media (min-width: 700px) { .review strong { display: block; } }
.review button { flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 1.5px solid #cfd8cf; background: #fff; font: 600 .8rem/1 var(--sans); cursor: pointer; color: #1D2B24; }
.review button[aria-pressed="true"] { border-color: #1D2B24; background: #F1F4EF; }
.review .sw { display: inline-flex; }
.review .sw i { width: 12px; height: 12px; border-radius: 50%; margin-left: -3px; border: 1.5px solid #fff; }
.review .sw i:first-child { margin-left: 0; }

/* =====================================================================
   Polish layer: ornament, motion, richer page heads, organised layouts
   ===================================================================== */

/* Flower-of-life ornament, echoing the gold pattern on the mural. Colour = currentColor. */
:root { --fol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-62 -62 124 124' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Ccircle r='20'/%3E%3Ccircle cx='20' r='20'/%3E%3Ccircle cx='-20' r='20'/%3E%3Ccircle cx='10' cy='17.32' r='20'/%3E%3Ccircle cx='-10' cy='17.32' r='20'/%3E%3Ccircle cx='10' cy='-17.32' r='20'/%3E%3Ccircle cx='-10' cy='-17.32' r='20'/%3E%3Ccircle r='40'/%3E%3Ccircle r='42.5'/%3E%3C/svg%3E"); }
.ornament {
  display: block; aspect-ratio: 1; color: var(--gold); background: currentColor; pointer-events: none;
  -webkit-mask: var(--fol) center / contain no-repeat; mask: var(--fol) center / contain no-repeat;
}
.spin { animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Small gold diamond flourish under section titles */
.flourish { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--gold); }
.flourish i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.center .flourish { justify-content: center; }

/* Header: lifts with a soft shadow once you scroll */
.nav { transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(29, 43, 36, .08); }
@media (min-width: 860px) {
  .nav__links a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s ease; }
  .nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Hero motion ---------- */
.hero__ornament { position: absolute; z-index: 1; width: 340px; right: -110px; top: -90px; opacity: .22; color: #F3DB97; }
@media (min-width: 900px) {
  .hero__ornament { width: 520px; right: auto; left: -170px; top: auto; bottom: -200px; opacity: .16; }
}
@media (max-width: 899px) { .hero__ornament { top: auto; bottom: -140px; } }
[data-anim] { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero h1 em { background: linear-gradient(90deg, #F3DB97, #E6C46A 50%, #F3DB97); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

/* ---------- Staggered reveals ---------- */
[data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; transition-delay: calc(var(--i, 0) * 90ms); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* Cards lift gently on hover */
@media (hover: hover) {
  .step, .card, .belief, .practice, .names li { transition: transform .35s ease, box-shadow .35s ease; }
  [data-stagger].in > .step:hover, [data-stagger].in > .belief:hover, [data-stagger].in > li:hover,
  .card:hover, .practice:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(29,43,36,.06), 0 18px 40px rgba(29,43,36,.12); transition-delay: 0s; }
  .step:hover .step__icon { background: var(--gold); color: #fff; }
}
.step__icon { transition: background .3s, color .3s; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.stats strong { display: block; font: 600 clamp(2rem, 6vw, 2.8rem)/1 var(--serif); color: var(--blue); font-variant-numeric: lining-nums; }
.stats span { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }

/* ---------- Inner page heads: deep green with ornament ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--green); color: #fff; border-bottom: 0; padding: 64px 0 56px; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), transparent 75%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .page-hero .quote p { color: #fff; }
.page-hero .eyebrow, .page-hero .quote cite { color: #F3DB97; }
.page-hero .lead, .page-hero > .wrap > p { color: rgba(255,255,255,.92); }
.page-hero__ornament { position: absolute; width: 420px; right: -150px; top: -130px; opacity: .2; color: #F3DB97; }
@media (min-width: 900px) { .page-hero { padding: 104px 0 88px; } .page-hero__ornament { width: 580px; right: -90px; top: -150px; } }
.page-hero > .wrap > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero > .wrap > :nth-child(2) { animation-delay: .12s; }
.page-hero > .wrap > :nth-child(3) { animation-delay: .24s; }
.page-hero > .wrap > :nth-child(n+4) { animation-delay: .36s; }

/* ---------- Two-column intro ---------- */
.intro-split { display: grid; gap: 12px 64px; }
@media (min-width: 900px) { .intro-split { grid-template-columns: 5fr 7fr; align-items: start; } }

/* ---------- Belief cards ---------- */
.beliefs { display: grid; gap: 16px; list-style: none; padding: 0; margin: 40px 0 0; }
@media (min-width: 800px) { .beliefs { grid-template-columns: repeat(3, 1fr); } }
.belief { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.belief .ornament { width: 44px; margin-bottom: 16px; }
.belief h3 { font-size: 1.5rem; margin-bottom: .35em; }
.belief p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; padding: 0 0 36px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.timeline__when { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 6px; }
.timeline h3 { font-size: 1.6rem; margin-bottom: .35em; }
.timeline p { color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) {
  .timeline { max-width: 1000px; margin-left: auto; margin-right: auto; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline li { width: 50%; padding: 0 56px 48px 0; text-align: right; }
  .timeline li::before { left: auto; right: -8px; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 48px 56px; text-align: left; }
  .timeline li:nth-child(even)::before { right: auto; left: -8px; }
}

/* ---------- Core concepts in a grid ---------- */
@media (min-width: 900px) { .concepts { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px 16px; } }
.concept[open] { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); }
.concept[open] .concept__num { background: var(--gold); color: #fff; }
.concept__num { transition: background .3s, color .3s; }
.concept[open] p { animation: rise .45s ease both; }

/* ---------- Treatment: five steps as a flow ---------- */
.flow { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; counter-reset: flow; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { counter-increment: flow; background: var(--surface); border-radius: 12px; padding: 20px 18px; box-shadow: var(--shadow); position: relative; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font: 600 .95rem/1 var(--sans); margin-bottom: 12px; }
.flow strong { display: block; font: 600 1.3rem/1.2 var(--serif); color: var(--green); margin-bottom: 4px; }
.flow span { font-size: .95rem; color: var(--ink-soft); }
@media (min-width: 760px) {
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 32px; width: 7px; height: 7px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
}

/* ---------- Practices ---------- */
.practices { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .practices { grid-template-columns: 1fr 1fr; } }
.practice { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.practice h3 { margin-top: 0; }
.practice .pull { font-size: 1.15rem; }
.practice ul { padding-left: 1.2em; }
.section-title { max-width: 720px; margin-bottom: 8px; }

/* ---------- Leadership polish ---------- */
.leader__photo img { transition: transform 1s ease; }
.leader__photo:hover img { transform: scale(1.03); }
.leader h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.names li { border-left: 3px solid var(--gold); }

/* Gallery: soft shade on hover */
.gallery__btn { position: relative; }
.gallery__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(14,32,26,.35)); opacity: 0; transition: opacity .4s; }
.gallery__btn:hover::after { opacity: 1; }

/* Signup: slowly turning ornament */
.signup::before { animation: spin 140s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Feature photo: mural with green overlay and caption ---------- */
.feature__img--overlay { position: relative; margin: 0; max-height: none; border-radius: 18px; }
.feature__img--overlay img { aspect-ratio: 4 / 5; object-position: 30% 25%; transition: transform 1.2s ease; }
.feature__img--overlay:hover img { transform: scale(1.03); }
.feature__img--overlay::before { /* soft green wash, heavier at the bottom for the caption */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 10%, transparent) 0%, color-mix(in srgb, var(--green) 25%, transparent) 50%, color-mix(in srgb, var(--ink) 88%, transparent) 100%);
}
.feature__img--overlay::after { /* thin gold inner frame */
  content: ""; position: absolute; inset: 14px; z-index: 1; border: 1px solid rgba(243, 219, 151, .55); border-radius: 10px; pointer-events: none;
}
.feature__img--overlay figcaption { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 2; color: #fff; }
.feature__tag { display: inline-block; font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: #F3DB97; padding: 8px 12px; border-radius: 999px; margin-bottom: 12px; }
.feature__cap { display: block; font: italic 500 1.35rem/1.3 var(--serif); }
@media (min-width: 900px) {
  .feature:has(.feature__img--overlay) { align-items: stretch; }
  .feature__img--overlay picture, .feature__img--overlay img { height: 100%; }
  .feature__img--overlay img { min-height: 560px; aspect-ratio: auto; }
}

/* ---------- Gallery: even rows. Each photo keeps its shape; rows share one height. ---------- */
.gallery { columns: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.gallery::after { content: ""; flex-grow: 999; } /* stops a short last row from stretching */
.gallery__item { margin: 0; flex-grow: var(--r, 1); flex-basis: calc(var(--r, 1) * 120px); min-width: 0; }
.gallery__btn img { width: 100%; height: auto; aspect-ratio: var(--r, 1); object-fit: cover; }
@media (min-width: 900px) {
  .gallery { gap: 16px; }
  .gallery__item { flex-basis: calc(var(--r, 1) * 220px); }
}
.gallery.justified::after { display: none; }

[hidden] { display: none !important; }

/* ---------- Senior Minister highlight (About → Religious Science?) ---------- */
.minister {
  display: grid; gap: 28px; align-items: center; margin: 64px 0 0; padding: 22px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.minister::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; opacity: .12; background: var(--gold);
  -webkit-mask: var(--fol) center / contain no-repeat; mask: var(--fol) center / contain no-repeat; pointer-events: none; }
.minister__photo { border-radius: 14px; overflow: hidden; max-width: 280px; box-shadow: 0 10px 30px rgba(29,43,36,.15); }
.minister__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.minister__body { position: relative; z-index: 1; }
.minister h2 { margin-bottom: .1em; }
.minister__role { font-weight: 600; color: var(--gold-ink); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 1em; }
.minister__body p { color: var(--ink-soft); }
@media (min-width: 800px) { .minister { grid-template-columns: 300px 1fr; gap: 48px; padding: 28px 48px 28px 28px; } .minister__photo { max-width: none; } }

.form.card { display: grid; }
@media (max-width: 440px) { .copy span { display: none; } .copy { padding: 0 11px; } .zelle code { font-size: .95rem; } }

/* =====================================================================
   About dropdown, About sub-navigation, justified text, centered tiles
   ===================================================================== */

/* ---------- Menu: About dropdown ---------- */
.nav__item { position: relative; display: flex; flex-direction: column; }
.nav__parent { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret { width: 12px; height: 12px; transition: transform .25s; }
.nav__menu { display: flex; flex-direction: column; }
@media (max-width: 859px) {
  .nav__caret { display: none; }
  .nav__menu { padding: 0 0 6px 16px; border-bottom: 1px solid var(--line); }
  .nav__menu a { font-size: 1rem !important; padding: 10px 4px !important; color: var(--ink-soft) !important; border-bottom: 0 !important; }
  .nav__menu a[aria-current="page"] { color: var(--blue) !important; }
  .nav__item > .nav__parent { border-bottom: 0; }
}
@media (min-width: 860px) {
  .nav__item { flex-direction: row; align-items: center; }
  .nav__menu {
    position: absolute; top: calc(100% + 6px); left: -6px; min-width: 240px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(29, 43, 36, .14);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
  .nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
  .nav__links .nav__menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
  .nav__links .nav__menu a::after { content: none !important; }
  .nav__links .nav__menu a:hover { background: var(--bg); color: var(--blue); }
  .nav__links .nav__menu a[aria-current="page"] { color: var(--blue); background: color-mix(in srgb, var(--gold) 12%, transparent); }
}

/* ---------- Bar linking the three About pages ---------- */
.subnav { position: sticky; top: 68px; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.subnav__link { display: grid; place-items: center; min-height: 58px; padding: 8px 6px; text-align: center; font: 600 .92rem/1.2 var(--sans); color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.subnav__link:hover { color: var(--ink); }
.subnav__link[aria-current="page"] { color: var(--blue); border-bottom-color: var(--gold); }
@media (min-width: 640px) { .subnav__list { display: flex; gap: 8px; } .subnav__link { padding: 0 16px; font-size: 1rem; } }

/* ---------- Body text: justified ("box aligned"); headings untouched ---------- */
main p, main li, main blockquote { text-align: justify; -webkit-hyphens: manual; hyphens: manual; } /* whole words only, no auto "-" splits */
main .eyebrow, main .hero__church, main figcaption, main .stats li, main .stats span, main .form__status, main .form__note,
main .timeline__when, main .leader__role, main .minister__role, main .hero__facts li, main .names li, main .flourish,
main .flow li, main .flow span, main .feature__cap, main .feature__tag, main .center p, main .quote p, main .step__link,
main .concept summary, main .big, main .zelle, main .btn-row, main [style*="text-align:center"] { text-align: inherit; -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 900px) { .timeline li:nth-child(odd) p { text-align-last: right; } }

/* ---------- Connect & Donate tiles: centered content ---------- */
.cards .card, .give .card { text-align: center; align-items: center; }
.cards .card p, .give .card p { text-align: center; }
.cards .card .card__icon, .give .card .card__icon { margin-inline: auto; }
.cards .card .eyebrow, .give .card .eyebrow { justify-content: center; }
.cards .card .card__actions, .give .card .card__actions { justify-content: center; width: 100%; }
.give .zelle { text-align: left; }

/* ---------- Donate: wider section so the tiles have room ---------- */
.wrap--donate { max-width: 1040px; }
.wrap--donate > .lead, .wrap--donate > [data-rich] { max-width: 820px; }
@media (min-width: 760px) { .give { gap: 20px; } }
/* Large intro lines in page headers read better ragged than justified (no big word gaps on phones). */
main .page-hero .lead, main .hero__intro, main .welcome { text-align: left; }
.nowrap { white-space: nowrap; }

/* Leadership page: ministers, Practitioner Corps and Board share one full width */
.leader .prose, #practitioners, #board { max-width: none; }
@media (min-width: 800px) { #practitioners .names, #board .names { grid-template-columns: repeat(3, 1fr); } }

/* Name tiles: equal widths, and a short last row sits centered */
.names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.names li { flex: 0 0 100%; }
@media (min-width: 640px) { .names li { flex-basis: calc((100% - 10px) / 2); } }
@media (min-width: 800px) { #practitioners .names li, #board .names li { flex-basis: calc((100% - 20px) / 3); } }

/* ---------- Banner photo tint (CMS: Top banner → Photo tint). --tint 0..1, 0.5 = original look ---------- */
@media (min-width: 900px) {
  .hero::after {
    background: linear-gradient(90deg,
      rgba(14, 32, 26, min(.96, calc(1.64 * var(--tint, .5)))) 0%,
      rgba(14, 32, 26, min(.92, calc(1.1 * var(--tint, .5)))) 45%,
      rgba(14, 32, 26, min(.8, calc(.1 * var(--tint, .5) + max(0, (var(--tint, .5) - .5)) * 1.2))) 80%);
  }
}
@media (max-width: 899px) {
  .hero picture { position: relative; }
  .hero picture::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: rgba(14, 32, 26, max(0, calc((var(--tint, .5) - .5) * 1.3))); }
}
