/* Bridges4Justice — brand styles
   Palette (from client Brand Colors): cream f9f5f0, stone d4cccb, mist becedb, steel 4c7493, navy 0b2e45, orange e06621 */
:root {
  --cream: #f9f5f0; --stone: #d4cccb; --mist: #becedb; --steel: #4c7493; --navy: #0b2e45; --orange: #e06621;
  --ink: #0b2e45; --white: #fff;
  --font-display: 'Archivo', 'Arial Black', Impact, sans-serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --max: 1180px; --radius: 14px; --shadow: 0 10px 30px rgba(11, 46, 69, .12);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* components set their own display; hidden must still win */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 18px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--steel); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--navy); color: var(--cream); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.mist { background: var(--mist); }
.eyebrow { font-family: var(--font-body); font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: var(--orange); margin-bottom: .8rem; display: block; }
.lead { font-size: 1.25rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid var(--orange); background: var(--orange); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.light { background: transparent; color: #fff; border-color: #fff; }
.btn.light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }

/* Header */
/* No backdrop-filter on the header: it would trap the fixed mobile menu inside the bar. */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid rgba(212,204,203,.75); transition: background .3s ease .15s, border-color .3s ease .15s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 78px; }
.brand { position: relative; z-index: 3; display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); flex: none; transition: color .3s ease .1s; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 56px; height: auto; fill: currentColor; flex: none; }
.brand-mark .hd circle { transition: fill .3s; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.08rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-name b { color: var(--orange); font-weight: 900; }
@media (hover: hover) and (pointer: fine) { .brand:hover .hd circle { fill: var(--orange); } }
.nav { display: flex; align-items: center; align-self: stretch; margin-left: auto; }
.nav ul { display: flex; align-items: stretch; align-self: stretch; gap: clamp(1rem, 2.4vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.nav li { display: flex; }
.nav ul a { position: relative; display: flex; align-items: center; font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: var(--navy); text-decoration: none; transition: color .2s; }
.nav ul a i, .nav ul a .arr, .nav-mark, .nav-foot { display: none; }
/* Active/hover marker: a small bridge arch rising from the header's bottom edge */
.nav ul a::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 28px; height: 12px; margin-left: -14px; border: 3px solid var(--orange); border-bottom: 0; border-radius: 28px 28px 0 0; transform: scale(.3); transform-origin: bottom center; opacity: 0; transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .2s; pointer-events: none; }
.nav ul a[aria-current='page'] { color: var(--navy); }
.nav ul a[aria-current='page']::after, .nav ul a:focus-visible::after { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .nav ul a:hover { color: var(--orange); } .nav ul a:hover::after { transform: none; opacity: 1; } }
.actions { display: flex; align-items: center; gap: .7rem; position: relative; z-index: 3; }
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--navy); font: inherit; font-weight: 700; display: flex; align-items: center; gap: .4rem; padding: .4rem; transition: color .3s ease .1s; }
.cart-count { background: var(--orange); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 1.35rem; height: 1.35rem; display: inline-grid; place-items: center; font-weight: 900; }

/* Give button (header + mobile menu): the site's solid orange .btn, a touch more compact to sit in the header bar. Hover goes
   navy like every other button. On hover (mouse, via .gb-on from main.js) or keyboard focus, a small B4J bridge is built from
   both banks: the left and right halves draw in and meet in the centre, then the deck fills. As it builds, the word "Give"
   rises, bends into an arch and turns orange to span over it. Leaving reverses it. Reduced motion keeps the plain button. */
.give-btn { position: relative; overflow: hidden; padding: .62rem 1.4rem; white-space: nowrap; isolation: isolate; }
.gb-label { display: inline-flex; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.gb-label i { display: inline-block; font-style: normal; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.2,.7,.2,1), color .2s; }
.gb-label i:last-child { margin-right: -.08em; } /* letter-spacing would otherwise push the word off centre */
.gb-build { position: absolute; left: 50%; top: 50%; width: auto; height: 1.15em; transform: translate(-50%, .2em); overflow: visible; pointer-events: none; display: none; }
.gb-build .edge { fill: none; stroke: currentColor; stroke-width: 56; stroke-linejoin: round; stroke-linecap: butt; stroke-dasharray: 1 1; stroke-dashoffset: 1.002; transition: stroke-dashoffset .2s ease; }
.gb-build .fill { fill: currentColor; opacity: 0; transition: opacity .12s ease; }
@media (prefers-reduced-motion: no-preference) {
  .gb-build { display: block; }
  .gb-head:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; } /* keyboard gets the hover colours */
  .give-btn:is(.gb-on, :focus-visible) .gb-label { transform: translateY(-.62em) scale(.9); transition: transform .5s cubic-bezier(.3,1.25,.5,1) .1s; }
  /* The arch: outer letters sit lower and lean out, like the bridge's own curve */
  .give-btn:is(.gb-on, :focus-visible) .gb-label i { color: var(--orange); transition: transform .5s cubic-bezier(.3,1.25,.5,1) .1s, color .3s ease .15s; }
  .give-btn:is(.gb-on, :focus-visible) .gb-label i:nth-child(1) { transform: translate(-.12em, .3em) rotate(-22deg); }
  .give-btn:is(.gb-on, :focus-visible) .gb-label i:nth-child(2) { transform: translate(-.04em, .02em) rotate(-8deg); }
  .give-btn:is(.gb-on, :focus-visible) .gb-label i:nth-child(3) { transform: translate(.04em, .02em) rotate(8deg); }
  .give-btn:is(.gb-on, :focus-visible) .gb-label i:nth-child(4) { transform: translate(.12em, .3em) rotate(22deg); }
  .give-btn:is(.gb-on, :focus-visible) .gb-build .edge { stroke-dashoffset: 0; transition: stroke-dashoffset .65s cubic-bezier(.55,0,.35,1) .05s; }
  .give-btn:is(.gb-on, :focus-visible) .gb-build .fill { opacity: 1; transition: opacity .3s ease .68s; }
}

/* Menu button: the logo's three heads in a row over two bars (the middle head a little higher, as in the logo).
   When open, the heads tuck away and the bars cross into an X. */
.nav-toggle { display: none; position: relative; z-index: 3; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; transition: border-color .3s, background .3s, color .3s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tg-heads { position: absolute; left: 50%; top: 13px; width: 20px; margin-left: -10px; display: flex; align-items: flex-end; justify-content: space-between; }
.tg-heads i { width: 4.5px; height: 4.5px; border-radius: 50%; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.tg-heads i:nth-child(2) { width: 5.5px; height: 5.5px; margin-bottom: 1.5px; }
.tg-bar { position: absolute; left: 50%; width: 20px; height: 2.5px; margin-left: -10px; border-radius: 2px; background: currentColor; transition: transform .35s cubic-bezier(.2,.7,.2,1), top .35s cubic-bezier(.2,.7,.2,1); }
.tg-bar.a { top: 22px; }
.tg-bar.b { top: 29px; }
@media (hover: hover) and (pointer: fine) { .nav-toggle:hover .tg-heads i { transform: translateY(-2px); } .nav-toggle:hover .tg-heads i:nth-child(2) { transform: translateY(-3px); } }
.site-header.open .nav-toggle { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); }
.site-header.open .tg-heads i { transform: translateY(8px) scale(0); opacity: 0; }
.site-header.open .tg-bar.a { top: 21.5px; transform: rotate(45deg); }
.site-header.open .tg-bar.b { top: 21.5px; transform: rotate(-45deg); }
html.nav-open { overflow: hidden; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .actions .gb-head { display: none; }
  /* Open menu: the header turns navy so the brand, cart and close button sit on the panel. */
  .site-header.open { background: transparent; border-color: transparent; transition-delay: 0s; }
  .site-header.open .brand, .site-header.open .cart-btn { color: #fff; }
  /* Full-screen panel that opens as a circle growing out of the menu button (main.js sets --ox/--oy). */
  .nav { position: fixed; inset: 0; z-index: 1; margin: 0; align-self: auto; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem; padding: calc(78px + 1.6rem) clamp(1.25rem, 6vw, 3rem) 2rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; color: #fff; background: radial-gradient(120% 70% at 100% 0%, #16496b 0%, var(--navy) 55%), var(--navy); clip-path: circle(0px at var(--ox, calc(100% - 44px)) var(--oy, 39px)); visibility: hidden; transition: clip-path .55s cubic-bezier(.7,0,.25,1), visibility 0s .55s; }
  .nav.open { clip-path: circle(150vmax at var(--ox, calc(100% - 44px)) var(--oy, 39px)); visibility: visible; transition: clip-path .65s cubic-bezier(.7,0,.25,1), visibility 0s; }
  /* A big faint outline of the B4J bridge draws itself in behind the links. */
  .nav-mark { display: block; position: absolute; right: -12%; bottom: 4%; width: 125%; max-width: 760px; height: auto; z-index: -1; fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; pointer-events: none; }
  .nav-mark path, .nav-mark circle { stroke-dasharray: 6000; stroke-dashoffset: 6000; transition: stroke-dashoffset 0s .55s; }
  .nav.open .nav-mark path, .nav.open .nav-mark circle { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.4,.1,.2,1) .25s; }
  .nav.open .nav-mark circle { stroke: rgba(224,102,33,.22); }
  /* Links: big, numbered, each sliding in on its own beat */
  .nav ul { position: relative; flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { display: block; border-bottom: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(18px); transition: opacity .2s, transform 0s .2s; }
  .nav.open li { opacity: 1; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
  .nav.open li:nth-child(1) { transition-delay: .18s; } .nav.open li:nth-child(2) { transition-delay: .23s; } .nav.open li:nth-child(3) { transition-delay: .28s; } .nav.open li:nth-child(4) { transition-delay: .33s; } .nav.open li:nth-child(5) { transition-delay: .38s; } .nav.open li:nth-child(6) { transition-delay: .43s; }
  .nav ul a { display: flex; align-items: center; gap: 1rem; padding: .85rem .2rem; color: #fff; font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
  .nav ul a::after { display: none; }
  .nav ul a i { display: inline; min-width: 2.2rem; font-style: normal; font-family: var(--font-body); font-weight: 900; font-size: .78rem; letter-spacing: .14em; color: var(--orange); }
  .nav ul a span { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .nav ul a .arr { display: block; margin-left: auto; width: 36px; height: 36px; padding: 9px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: background .25s, border-color .25s, transform .3s cubic-bezier(.2,.7,.2,1); }
  .nav ul a:hover span, .nav ul a:focus-visible span, .nav ul a:active span { transform: translateX(6px); }
  .nav ul a:hover .arr, .nav ul a:focus-visible .arr, .nav ul a:active .arr { background: var(--orange); border-color: var(--orange); transform: translateX(2px); }
  .nav ul a:focus-visible { outline-offset: -2px; }
  /* Current page: orange, with the arch marker under its number */
  .nav ul a[aria-current='page'] { color: var(--orange); }
  .nav ul a[aria-current='page'] i { position: relative; }
  .nav ul a[aria-current='page'] i::after { content: ''; position: absolute; left: 0; bottom: -.55rem; width: 1.4rem; height: .5rem; border: 2px solid var(--orange); border-bottom: 0; border-radius: 999px 999px 0 0; }
  .nav ul a[aria-current='page'] .arr { border-color: rgba(224,102,33,.6); stroke: var(--orange); }
  /* Footer of the panel: big Give button, tagline, contact */
  .nav-foot { display: grid; gap: 1.1rem; margin-top: auto; opacity: 0; transform: translateY(16px); transition: opacity .2s, transform 0s .2s; }
  .nav.open .nav-foot { opacity: 1; transform: none; transition: opacity .5s ease .5s, transform .6s cubic-bezier(.2,.7,.2,1) .5s; }
  .gb-wide { display: block; width: 100%; padding: 1rem 1.4rem; text-align: center; font-size: .95rem; }
  .gb-wide:hover, .gb-wide:focus-visible { background: #fff; border-color: #fff; color: var(--navy); } /* navy hover would vanish on the navy panel */
  .nav-tag { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .02em; color: var(--mist); }
  .nav-contact { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 0; font-size: .92rem; }
  .nav-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
  .nav-contact a:hover { color: #ffb27a; border-color: #ffb27a; }
}
@media (max-width: 1000px) and (min-height: 700px) { .nav ul a { padding: 1rem .2rem; } }
@media (max-width: 420px) { .brand-name { font-size: .86rem; letter-spacing: .1em; } .brand-mark { width: 42px; } .brand { gap: .5rem; } .site-header .bar { gap: .5rem; } .actions { gap: .35rem; } .cart-btn { padding: .3rem; } .nav-toggle { width: 42px; height: 42px; } .tg-heads { top: 12px; } .tg-bar.a { top: 20px; } .tg-bar.b { top: 27px; } .site-header.open .tg-bar.a, .site-header.open .tg-bar.b { top: 19.5px; } }
@media (max-width: 340px) { .brand-name { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(86vh, 780px); display: grid; align-items: end; background: var(--navy) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,69,.35) 0%, rgba(11,46,69,.8) 100%); z-index: -1; }
.hero .inner { padding: 6rem 0 4.5rem; max-width: 960px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { font-size: clamp(1.15rem, 2vw, 1.6rem); max-width: 40ch; }
.hero.short { min-height: 52vh; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.section.alt .card { background: var(--cream); box-shadow: none; border: 1px solid var(--stone); }
.card h3 { margin-bottom: .4em; }
.card .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--orange); line-height: 1; display: block; margin-bottom: .4rem; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--orange); line-height: 1; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
/* "Join the movement" tiles. The photo sits on its own layer (.tile-bg) so it can move; it starts a little muted and warms to
   full colour on hover, echoing the story section. Each tile has an icon badge with its own small animation, a bridge arch
   draws under the title, and the link arrow slides. Touch screens play the icon once when the tile scrolls into view. */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; color: #fff; display: flex; align-items: flex-end; background: var(--navy); isolation: isolate; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.tile-bg { position: absolute; inset: 0; z-index: -2; background: center/cover no-repeat; filter: saturate(.55) brightness(.92); transform: scale(1.01); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,69,.08) 15%, rgba(11,46,69,.9)); z-index: -1; transition: opacity .4s ease; }
.tile .body { padding: 1.6rem; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tile h3 { position: relative; display: inline-block; color: #fff; margin-bottom: .45em; text-transform: uppercase; }
/* a small bridge arch under the title, like the nav marker */
.tile h3::after { content: ''; position: absolute; left: 0; bottom: -.32em; width: 2.6em; height: .55em; border: 3px solid var(--orange); border-bottom: 0; border-radius: 999px 999px 0 0; transform: scaleX(0); transform-origin: left bottom; transition: transform .5s cubic-bezier(.2,.7,.2,1) .05s; }
.tile p { margin: .2rem 0 .9rem; font-size: .98rem; color: #e3ebf1; }
.tile .more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: #fff; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.tile .more .go { width: 14px; height: 14px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.tile-ico { position: absolute; top: 1.2rem; left: 1.2rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(11,46,69,.5); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .35s, border-color .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.tile-ico svg { width: 26px; height: 26px; overflow: visible; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-ico .hd, .tile-ico .dot { fill: #fff; stroke: none; }
.tile-ico .flame { fill: #ffd2ad; stroke: none; }
.tile-ico svg * { transform-box: fill-box; }
.tile:hover, .tile:focus-visible { color: #fff; transform: translateY(-5px); box-shadow: 0 20px 44px rgba(11,46,69,.3); }
.tile:hover .tile-bg, .tile:focus-visible .tile-bg { transform: scale(1.07); filter: none; }
.tile:hover::before, .tile:focus-visible::before { opacity: .85; }
.tile:hover .body, .tile:focus-visible .body { transform: translateY(-4px); }
.tile:hover h3::after, .tile:focus-visible h3::after { transform: scaleX(1); }
.tile:hover .more .go, .tile:focus-visible .more .go { transform: translateX(4px); }
.tile:hover .tile-ico, .tile:focus-visible .tile-ico { background: var(--orange); border-color: var(--orange); transform: scale(1.08); }
/* The scroll-reveal styles (.js-motion [data-reveal].in) also set transform and win ties, so revealed tiles restate the lift. */
.js-motion .bento .tile.in { transition: opacity .7s ease var(--d, 0ms), transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.js-motion .bento .tile.in:hover, .js-motion .bento .tile.in:focus-visible { transform: translateY(-5px); }
/* Church partner: three heads pop up one after another over the bridge */
.ico-people .hd { transform-origin: center bottom; }
.tile:hover .ico-people .hd, .tile:focus-visible .ico-people .hd { animation: tile-pop .55s cubic-bezier(.3,1.6,.5,1) both; }
.tile:hover .ico-people .h2, .tile:focus-visible .ico-people .h2 { animation-delay: .1s; } .tile:hover .ico-people .h3, .tile:focus-visible .ico-people .h3 { animation-delay: .2s; }
@keyframes tile-pop { 0% { transform: translateY(0); } 40% { transform: translateY(-4px) scale(1.12); } 100% { transform: none; } }
/* Pop-up sale: the price tag swings from its hole and settles */
.ico-tag .tag { transform-origin: 20% 20%; }
.tile:hover .ico-tag .tag, .tile:focus-visible .ico-tag .tag { animation: tile-swing 1.1s ease-out both; }
@keyframes tile-swing { 0% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
/* Give: the heart beats */
.ico-heart .heart { fill: rgba(255,255,255,0); transform-origin: center; transition: fill .3s; }
.tile:hover .ico-heart .heart, .tile:focus-visible .ico-heart .heart { fill: #fff; animation: tile-beat 1.3s ease-in-out infinite; }
@keyframes tile-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(1); } 42% { transform: scale(1.14); } 70% { transform: scale(1); } }
/* Prayer group: the candle flame flickers */
.ico-flame .flame { transform-origin: center bottom; }
.tile:hover .ico-flame .flame, .tile:focus-visible .ico-flame .flame { animation: tile-flicker 1.2s ease-in-out infinite; }
@keyframes tile-flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.94, 1.12) skewX(-4deg); } 50% { transform: scale(1.04, .94) skewX(2deg); } 75% { transform: scale(.97, 1.08) skewX(3deg); } }
/* Invite B4J: the speech bubble "types" */
.tile:hover .ico-talk .dot, .tile:focus-visible .ico-talk .dot { animation: tile-type 1.1s ease-in-out infinite; }
.tile:hover .ico-talk .d2, .tile:focus-visible .ico-talk .d2 { animation-delay: .15s; } .tile:hover .ico-talk .d3, .tile:focus-visible .ico-talk .d3 { animation-delay: .3s; }
@keyframes tile-type { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-2.5px); opacity: 1; } }
/* Touch screens have no hover: show the photo in full colour and play each icon once as the tile arrives. */
@media (hover: none) {
  .tile-bg { filter: none; }
  .tile.in .ico-people .hd { animation: tile-pop .55s cubic-bezier(.3,1.6,.5,1) .5s both; }
  .tile.in .ico-tag .tag { animation: tile-swing 1.1s ease-out .5s both; }
  .tile.in .ico-heart .heart { fill: #fff; animation: tile-beat 1.3s ease-in-out .5s 2; }
  .tile.in .ico-flame .flame { animation: tile-flicker 1.2s ease-in-out .5s 3; }
  .tile.in .ico-talk .dot { animation: tile-type 1.1s ease-in-out .5s 3; }
  .tile.in .ico-talk .d2 { animation-delay: .65s; } .tile.in .ico-talk .d3 { animation-delay: .8s; }
}
.tile.t-a { grid-column: span 3; } .tile.t-b { grid-column: span 3; } .tile.t-c { grid-column: span 2; } .tile.t-d { grid-column: span 2; } .tile.t-e { grid-column: span 2; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile[class*='t-'] { grid-column: span 1; } }

/* Quote */
.quote { border-left: 5px solid var(--orange); padding-left: 1.4rem; font-size: 1.3rem; font-style: italic; margin: 2rem 0; }
.quote cite { display: block; font-size: .95rem; font-style: normal; font-weight: 700; margin-top: .5rem; color: var(--steel); }
.scripture { font-style: italic; background: var(--mist); border-radius: var(--radius); padding: 1.2rem 1.5rem; }

/* Lists */
.values { list-style: none; padding: 0; margin: 0; counter-reset: v; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.values li { counter-increment: v; background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.4rem 1.2rem 4rem; position: relative; border: 1px solid var(--stone); }
.values li::before { content: counter(v); position: absolute; left: 1.2rem; top: 1rem; font-family: var(--font-display); font-size: 1.9rem; color: var(--orange); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .6em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--orange); }
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.pill-list li { background: var(--white); border: 1px solid var(--stone); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: .92rem; }

/* Accordion */
details.acc { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); margin-bottom: 1rem; }
details.acc summary { cursor: pointer; padding: 1.2rem 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.acc summary::after { content: '+'; color: var(--orange); font-size: 1.6rem; line-height: 1; }
details.acc[open] summary::after { content: '–'; }
details.acc .content { padding: 0 1.5rem 1.4rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-weight: 700; font-size: .92rem; display: grid; gap: .35rem; }
.form input, .form select, .form textarea { font: inherit; padding: .8rem .95rem; border: 1.5px solid var(--stone); border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--mist); border-color: var(--steel); }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: #1c7a3d; } .form-status.err { color: #b3261e; }

/* Shop */
.shop-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.shop-tabs button { font: inherit; font-weight: 700; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; }
.shop-tabs button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.product .img { aspect-ratio: 1; background: var(--stone) center/cover; position: relative; }
.product .img img { width: 100%; height: 100%; object-fit: cover; }
.product .info { padding: 1rem 1.1rem 1.3rem; display: grid; gap: .3rem; }
.product h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 900; margin: 0; }
.price { font-weight: 700; } .price s { color: #7a8a96; margin-right: .4rem; font-weight: 400; }
.badge { position: absolute; top: .8rem; left: .8rem; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.badge.sold { background: var(--navy); }
.skeleton { background: linear-gradient(90deg, #ece6df 25%, #f5f0ea 50%, #ece6df 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: .85; }
@keyframes sk { to { background-position: -200% 0; } }
.notice { background: var(--mist); border-left: 5px solid var(--steel); border-radius: 10px; padding: 1rem 1.3rem; margin-bottom: 1.5rem; font-size: .95rem; }
.load-more { text-align: center; margin-top: 2.5rem; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } }
.pdp .main-img { border-radius: var(--radius); overflow: hidden; background: var(--stone); aspect-ratio: 1; box-shadow: var(--shadow); }
.pdp .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current='true'] { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.opt { margin: 1.2rem 0; } .opt .label { font-weight: 900; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.opt .vals { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt .vals button { font: inherit; font-weight: 700; padding: .5rem 1rem; border: 1.5px solid var(--stone); border-radius: 10px; background: #fff; cursor: pointer; }
.opt .vals button[aria-pressed='true'] { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt .vals button:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--stone); border-radius: 999px; background: #fff; }
.qty button { background: none; border: 0; font-size: 1.2rem; width: 2.4rem; height: 2.4rem; cursor: pointer; color: var(--navy); }
.qty span { min-width: 1.8rem; text-align: center; font-weight: 700; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(11,46,69,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 150; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 160; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer.open { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--stone); }
.drawer header h2 { font-size: 1.3rem; margin: 0; }
.drawer .close { background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--navy); line-height: 1; }
.drawer .lines { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream); align-items: start; }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--stone); }
.line .ph { width: 72px; height: 72px; border-radius: 10px; background: var(--stone); }
.line .t { font-weight: 900; font-size: .95rem; line-height: 1.3; }
.line .v { font-size: .85rem; color: var(--steel); }
.line .rm { background: none; border: 0; color: var(--steel); text-decoration: underline; cursor: pointer; font-size: .82rem; padding: 0; margin-top: .4rem; }
.drawer footer { padding: 1.2rem 1.5rem 1.6rem; border-top: 1px solid var(--stone); }
.drawer .sub { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.1rem; margin-bottom: .4rem; }
.drawer .fine { font-size: .82rem; color: var(--steel); margin-bottom: 1rem; }
.drawer .btn { width: 100%; text-align: center; }
.empty { text-align: center; color: var(--steel); padding: 3rem 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--mist); padding: 4rem 0 2rem; font-size: .98rem; }
.site-footer a { color: var(--mist); text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 900; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .logo-on-dark { background: #fff; border-radius: 12px; padding: .6rem; width: 120px; margin-bottom: 1rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* Motion + hover polish (subtle, 6-7/10). JS adds .js-motion to <html>, so content stays visible without JS. */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.hero .inner > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .inner > :nth-child(2) { animation-delay: .1s; } .hero .inner > :nth-child(3) { animation-delay: .2s; } .hero .inner > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card, .product, .values li, .pill-list li { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .product:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(11,46,69,.18); }
.values li:hover { transform: translateY(-2px); }
.product .img img { transition: transform .5s ease; } .product:hover .img img { transform: scale(1.05); }
.split img { transition: transform .5s ease; } .split img:hover { transform: scale(1.02); }
.site-header { transition: box-shadow .25s ease; } .site-header.scrolled { box-shadow: 0 6px 20px rgba(11,46,69,.12); }
.nav a { transition: border-color .2s, color .2s; }

/* Interactive bridge (vision + four E's). One clean ring per circle; on first view the rings draw in one after another,
   then the fills, the centre mark and the labels arrive. All state changes share one easing so hover feels calm. */
.venn { --ve: cubic-bezier(.2,.7,.2,1); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .venn { grid-template-columns: 1fr; } }
.venn-stage { position: relative; max-width: 600px; width: 100%; margin-inline: auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 1rem; }
.venn svg { width: 100%; height: auto; display: block; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.venn .vc .fill { fill: var(--steel); fill-opacity: .12; transition: fill .45s var(--ve), fill-opacity .45s var(--ve), opacity .6s ease; }
.venn .vc .ring { fill: none; stroke: #5b7ea0; stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.4,.1,.2,1) calc(var(--i) * .14s), stroke .45s var(--ve), stroke-width .45s var(--ve), opacity .45s var(--ve); }
.venn .lens { fill: var(--navy); transition: fill .45s var(--ve), opacity .6s ease; }
.venn .logo { color: var(--orange); transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ve), opacity .6s ease; pointer-events: none; }
.venn .vl { fill: var(--orange); font: 900 25px var(--font-body); pointer-events: none; transition: transform .45s var(--ve), opacity .45s var(--ve); transform-box: fill-box; transform-origin: center; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; user-select: none; -webkit-user-select: none; }
.venn.dim .vc:not(.on) .fill { fill-opacity: .05; }
.venn.dim .vc:not(.on) .ring { opacity: .4; }
.venn.dim .vl:not(.on) { opacity: .4; }
.venn .vc.on .fill { fill: var(--orange); fill-opacity: .2; }
.venn .vc.on .ring { stroke: var(--orange); stroke-width: 4; }
.venn .vl.on { transform: scale(1.1); }
.venn.center-on .lens { fill: #0f4263; }
.venn.center-on .logo { transform: scale(1.14); }
.venn.center-on .vc .ring { stroke: var(--orange); }
.venn.center-on .vc .fill { fill: var(--orange); fill-opacity: .1; }
/* Draw-in on first view: bridge.js swaps .pre for .intro, then drops .intro once it has played, so the long delays below
   only apply to the first appearance and hover stays instant. */
.venn.pre .vc .ring { stroke-dashoffset: 100; }
.venn.pre .vc .fill, .venn.pre .lens, .venn.pre .logo, .venn.pre .vl { opacity: 0; }
.venn.intro .vc .fill { transition-delay: 0s, 0s, calc(.6s + var(--i) * .12s); }
.venn.intro .lens { transition-delay: 0s, 1.05s; }
.venn.intro .logo { transition-delay: 0s, 1.15s; }
.venn.intro .vl { transition-delay: 0s, 1.25s; }
.venn-stage .venn-hint { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: .5rem; opacity: .9; }
.venn-hint span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,102,33,.6); } 100% { box-shadow: 0 0 0 .8rem rgba(224,102,33,0); } }
.venn-side { min-width: 0; }
.venn .bridge-tabs { justify-content: flex-start; margin: 1.2rem 0 .8rem; }
.venn .bridge-foot { justify-content: flex-start; margin-top: .4rem; }
.venn .bridge-foot .btn { padding: .65rem 1.3rem; }
.venn-stage { overflow: hidden; contain: layout; }
@media (max-width: 880px) { .venn-side { order: 2; } .venn .bridge-tabs { justify-content: center; } .venn .bridge-foot { justify-content: center; } }
@media (max-width: 560px) {
  .venn-stage { padding: .35rem; border-radius: 20px; }
  .venn .vl { font-size: 27px; stroke-width: 7px; }
  .bridge-panel { padding: 1.3rem 1.2rem 1.4rem; border-radius: 16px; }
  .bridge-panel .blk p { font-size: .93rem; }
  .venn-stage .venn-hint { font-size: .66rem; bottom: .35rem; }
  .bridge-tabs { gap: .45rem; } .bridge-tabs button { padding: .5rem .95rem; font-size: .92rem; }
}
.bridge-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.4rem 0 1rem; }
.bridge-tabs button { font: inherit; font-weight: 800; min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; transition: background .3s cubic-bezier(.2,.7,.2,1), color .3s, box-shadow .3s, transform .3s cubic-bezier(.2,.7,.2,1); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .bridge-tabs button:hover { background: rgba(11,46,69,.09); box-shadow: 0 4px 12px rgba(11,46,69,.12); } .bridge-tabs button[aria-pressed='true']:hover { background: var(--navy); } }
.bridge-tabs button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.venn .btn:hover { transform: none; }
.venn .h-touch { display: none; } .venn .h-mouse { font-style: normal; } .venn .h-touch { font-style: normal; }
@media (hover: none), (pointer: coarse) { .venn .h-mouse { display: none; } .venn .h-touch { display: inline; } }
/* Description card: glassy, accent bar, content slides in on each change */
.bridge-panel { position: relative; background: #fff; border: 1px solid var(--stone); border-radius: 20px; padding: 1.7rem 1.9rem 1.8rem; box-shadow: 0 18px 44px rgba(11,46,69,.12); overflow: hidden; display: grid; }
/* Every pane occupies the same grid cell, so the card is always as tall as the tallest pane and never shifts the layout. */
.bridge-panel .pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s ease, transform .4s cubic-bezier(.2,.7,.2,1), visibility 0s .25s; }
.bridge-panel .pane.active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease .1s, transform .5s cubic-bezier(.2,.7,.2,1) .1s, visibility 0s; }
.bridge-panel .kicker { font-weight: 900; letter-spacing: .18em; font-size: .75rem; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: .3rem; }
.bridge-panel h3 { text-transform: uppercase; color: var(--navy); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .5em; }
.bridge-panel .sum { margin: 0 0 .9rem; font-weight: 700; font-size: .98rem; line-height: 1.5; color: var(--navy); }
.bridge-panel .two { display: grid; gap: .9rem; margin-bottom: 1.3rem; }
.bridge-panel .blk { background: rgba(190,206,219,.28); border-radius: 12px; padding: .8rem 1rem; }
.bridge-panel .blk p { margin: 0; font-size: .97rem; line-height: 1.55; }
.bridge-panel .who { font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: .25rem; }
/* the vision statement is the focus of its pane: large, upright, navy, no side rule */
.bridge-panel .vtext { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.4; letter-spacing: -.01em; color: var(--navy); text-wrap: pretty; }
.bridge-panel .idle { margin: 0; font-size: 1.1rem; color: var(--navy); }
.bridge-panel .idle strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; color: var(--orange); margin-bottom: .4rem; }
.bridge-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }

/* ===== Home ===== Sections follow the StoryBrand arc: bridge carousel (hero) > problem > story (the way across) > guide > plan > act > closing. */

/* 1. Hero: the bridge carousel. The first screen is the photo alone, with the B4J mark standing at the bottom on the bridge curve.
   The mark's bridge is cut at the arch crowns into three photo segments (Mission, Home, Shop) with their heads above; the chosen
   one lifts, its photo clears and its head turns orange, and the title, line and button at the top swap to match.
   reel.js adds .js-hb; without it the Home panel shows, the segments are plain pictures and the labels are links. */
/* --logo: the mark's width (the block is about half the width tall, plus labels), sized to leave room for the words above.
   The hero is one screen tall PLUS the curve, so the first view is the photo edge to edge and the cream bridge curve only
   rises into view on scroll. --gap is the shared margin: under the mark (to the fold), above the title and between them. */
.hb { --edge: clamp(40px, min(7vw, 10vh), 90px); --gap: clamp(1.4rem, 4.5vh, 3rem); --logo: clamp(210px, min(28vw, (100svh - 540px) * 1.5), 400px); position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: calc(100vh - 78px + var(--edge)); min-height: calc(100svh - 78px + var(--edge)); padding: 0 0 calc(var(--edge) + var(--gap)); background: var(--navy); color: #fff; }
.hb-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; animation: m-drift 14s cubic-bezier(.2,.7,.2,1) both; }
/* Each segment has its own photo; only the active one shows, and they cross-fade as the carousel turns. */
.hb-bg { opacity: 0; transition: opacity 1s ease; }
.hb-bg.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hb-bg { transition: none; } }
/* Navy shade: deep behind the words at the top and the mark at the bottom, lighter through the middle so the photo reads. */
.hb-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,46,69,.9) 0%, rgba(11,46,69,.72) 38%, rgba(11,46,69,.34) 58%, rgba(11,46,69,.46) 74%, rgba(11,46,69,.88) 100%); }
.hb .reel-edge { z-index: 1; }
/* Words in the open space, mark near the bottom (the mark comes first in the source so the tabs precede their panels).
   The free space splits 3:1 above and below the words (never less than --gap), so they sit low, towards mid-screen,
   while keeping clear of the mark. */
.hb-inner { position: relative; z-index: 2; display: grid; grid-template-rows: minmax(var(--gap), 3fr) auto minmax(var(--gap), 1fr) auto; grid-template-areas: '.' 'text' '.' 'logo'; justify-items: center; text-align: center; }

/* Panels: a bold title, one line and the way in. Each part rises in on its own beat when its segment is chosen. */
.hb-panels { grid-area: text; display: grid; width: 100%; /* shorter panels centre in the tallest one's space */ animation: rise .8s cubic-bezier(.2,.7,.2,1) .15s backwards; }
.hb-panel { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center; visibility: hidden; transition: visibility 0s .45s; }
.hb-panel.is-active { visibility: visible; transition-delay: 0s; }
.hb-title { max-width: 26ch; margin: 0 0 .45em; color: #fff; font-size: clamp(1.9rem, min(4.4vw, 6vh), 3.4rem); line-height: 1.04; text-wrap: balance; }
.hb-title em { font-style: normal; color: var(--orange); }
.hb-title .ln { display: block; } /* one sentence per line */
.hb-sub { max-width: 54ch; margin: 0 0 clamp(1rem, 2.6vh, 1.6rem); color: #e3ebf1; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; text-wrap: balance; text-shadow: 0 1px 14px rgba(11,46,69,.55); }
#hb-p-1 .hb-sub { max-width: 66ch; } /* Home's line runs wider, on two lines */
.hb-go { display: inline-flex; align-items: center; gap: .6rem; }
.hb-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.hb-go:hover svg, .hb-go:focus-visible svg { transform: translateX(3px); }
.hb-go[href^='#']:hover svg, .hb-go[href^='#']:focus-visible svg { transform: translateY(3px); }
.hb-panel > * { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.hb-panel:not(.is-active) > * { transform: translateY(-10px); transition-duration: .25s; }
.hb-panel.is-active > * { opacity: 1; transform: none; }
.hb-panel.is-active > :nth-child(2) { transition-delay: .08s; } .hb-panel.is-active > :nth-child(3) { transition-delay: .16s; } .hb-panel.is-active > :nth-child(4) { transition-delay: .24s; }

/* The mark with a chevron either side. */
.hb-nav { grid-area: logo; display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.4rem); }
.hb-step { flex: none; align-self: flex-start; margin-top: calc(var(--logo) * .335 - 20px); } /* level with the bridge's middle, not the wordmark */
.hb:not(.js-hb) .hb-step { visibility: hidden; }
.hb-logo { position: relative; width: var(--logo); }
.hb-mark { display: block; width: 100%; height: auto; overflow: visible; }
/* Segments: the photo is masked to the segment, a navy tint sits over the ones not chosen, and a white rim outlines each. */
.hb-seg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.js-hb .hb-seg { cursor: pointer; }
.hb-seg.is-active { transform: translateY(-22px); }
.hb-tint { fill: var(--navy); opacity: .58; transition: opacity .4s ease; }
.hb-seg.is-active .hb-tint { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .js-hb .hb-seg:hover .hb-tint { opacity: .3; } .js-hb .hb-seg.is-active:hover .hb-tint { opacity: 0; } }
.hb-edge { fill: none; stroke: rgba(255,255,255,.78); stroke-width: 12; stroke-linejoin: round; transition: stroke .3s; }
.hb-seg.is-active .hb-edge { stroke: #fff; }
.hb-head { fill: #fff; transform-box: fill-box; transform-origin: 50% 50%; transition: fill .35s, transform .45s cubic-bezier(.3,1.5,.5,1); }
.hb-seg.is-active .hb-head { fill: var(--orange); transform: scale(1.08); }
/* Arrival: the segments rise into place (centre first), then the heads land, as in the intro loader. */
.hb-in { animation: hb-rise .9s cubic-bezier(.2,.7,.2,1) .3s backwards; }
.hb-seg:not(.is-active) .hb-in { animation-delay: .45s; }
.hb-head { animation: hb-pop .6s cubic-bezier(.3,1.5,.5,1) .8s backwards; }
.hb-seg:nth-child(2) .hb-head { animation-delay: 1s; } .hb-seg:nth-child(4) .hb-head { animation-delay: 1.15s; } /* children: defs, left, centre, right */
@keyframes hb-rise { from { opacity: 0; transform: translateY(70px); } }
@keyframes hb-pop { from { transform: scale(0); } }

/* Labels under each segment are the tabs: the chosen one turns orange (no arch marker; the lifted segment already shows the choice). */
.hb-tabs { position: relative; height: 1.9rem; margin-top: .35rem; }
.hb-tab { position: absolute; top: 0; left: 17.7%; transform: translateX(-50%); padding: .3rem .55rem; border-radius: 6px; color: rgba(255,255,255,.78); font-weight: 900; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color .25s; }
.hb-tab:nth-child(2) { left: 50%; } .hb-tab:nth-child(3) { left: 82.3%; }
.js-hb .hb-tab { cursor: pointer; }
.hb-tab.is-active { color: #ffb27a; }
.hb-tab:hover { color: #fff; }
.hb-tab.is-active:hover { color: #ffb27a; }
.hb-word { margin: .5rem 0 0; color: #fff; font-family: var(--font-display); font-weight: 900; font-size: clamp(.95rem, calc(var(--logo) / 18), 1.45rem); letter-spacing: .16em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.hb-word b { color: var(--orange); font-weight: 900; }
#why { scroll-margin-top: calc(78px + var(--snh)); }

@media (max-width: 700px) {
  .hb { --logo: min(calc(100vw - 9rem), 40vh, 300px); --gap: clamp(1.1rem, 3.5vh, 2rem); }
  .hb-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hb-sub { font-size: 1rem; line-height: 1.55; }
  .hb-step { width: 36px; height: 36px; margin-top: calc(var(--logo) * .335 - 18px); }
  .hb-tab { font-size: .66rem; letter-spacing: .1em; padding: .3rem .35rem; }
}

/* Shared hero pieces: the bridge-curve bottom edge (every hero), the round slideshow buttons (.ctrl, also the Four Callings
   controls and the home hero chevrons), and the "How would you like to start?" paths, parked for re-use further down the page. */
.reel-edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--edge); display: block; z-index: 1; pointer-events: none; }
.reel-edge path { fill: var(--cream); }
.start { margin-top: clamp(1.4rem, 3vw, 2.2rem); max-width: 560px; }
.start .ask { margin: 0 0 .6rem; font-weight: 900; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.paths { display: grid; grid-template-columns: 1fr; gap: .55rem; }
.path { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; padding: .8rem 2.6rem .8rem 1.1rem; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.28); border-radius: 14px; color: #fff; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.path .t { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.path .d { font-size: .88rem; line-height: 1.35; color: #c9d6e1; transition: color .2s; }
.path .go { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--orange); font-weight: 900; transition: transform .2s; }
.path:hover, .path:focus-visible { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.path:hover .d, .path:focus-visible .d { color: var(--steel); }
@media (hover: hover) and (pointer: fine) { .path:hover .go { transform: translate(4px, -50%); } }
.ctrls { display: flex; gap: .4rem; }
.ctrl { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(11,46,69,.4); color: #fff; cursor: pointer; touch-action: manipulation; transition: background .2s, color .2s, border-color .2s; }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ctrl .i-play { fill: currentColor; stroke: none; display: none; }
@media (hover: hover) and (pointer: fine) { .ctrl:hover { background: #fff; border-color: #fff; color: var(--navy); } }

/* 2. Problem: the call, the gap, the bridge. Hidden states only apply when JS motion is on. */
.call-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.call-lead { position: sticky; top: calc(110px + var(--snh)); }
.call-lead h2 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: .98; margin-bottom: .3em; }
.call-lead .lead { max-width: 24ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.call-lead .why { margin-top: 1.1rem; max-width: 34ch; color: var(--steel); font-weight: 700; }
.call-lead > * { transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-motion .call-lead:not(.in) > * { opacity: 0; transform: translateY(12px); }
.call-lead.in > :nth-child(2) { transition-delay: .06s; } .call-lead.in > :nth-child(3) { transition-delay: .12s; } .call-lead.in > :nth-child(4) { transition-delay: .18s; }
/* A word struck through once its block scrolls into view */
.strike { position: relative; display: inline-block; color: #7d97ab; transition: color .5s ease .45s; }
.strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; border-radius: 4px; background: var(--orange); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1) .3s; }
.js-motion [data-in]:not(.in) .strike { color: inherit; }
.js-motion [data-in]:not(.in) .strike::after { transform: scaleX(0); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: 1.1rem; padding-bottom: 2.6rem; transition: opacity .5s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.step:last-child { padding-bottom: 0; }
.step .node { position: relative; z-index: 1; width: 1.4rem; height: 1.4rem; margin: .2rem 0 0 .4rem; border-radius: 50%; border: 3px solid var(--orange); background: var(--orange); transition: background .4s ease, box-shadow .4s ease; }
/* connectors: dashed from the gap (an open question), solid once the answer starts */
.step::before, .step.gap::after { content: ''; position: absolute; left: calc(.4rem + .7rem - 1.5px); top: 1.9rem; bottom: -.25rem; width: 3px; border-radius: 3px; transform-origin: top; }
.step::before { background: var(--orange); }
.step.gap::before { background: repeating-linear-gradient(180deg, #c7bfbe 0 8px, transparent 8px 15px); }
.step.gap::after { background: var(--orange); transition: transform .6s cubic-bezier(.4,.1,.2,1) .2s; }
.js-motion .steps:not(.in) .step.gap::after { transform: scaleY(0); }
.step:last-child::before { display: none; }
.step .t { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; color: var(--navy); margin: .1rem 0 .2rem; }
.step .k { display: block; font-weight: 900; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.step p { margin: .25rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; }
.step .more, .plan-steps .more { display: inline-block; margin-top: .6rem; font-weight: 900; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.step .more:hover, .plan-steps .more:hover { border-color: var(--orange); }
.js-motion .steps:not(.in) .step { opacity: 0; transform: translateY(14px); }
.steps.in .step:nth-child(2) { transition-delay: .3s; } .steps.in .step:nth-child(3) { transition-delay: .42s; } .steps.in .step:nth-child(4) { transition-delay: .54s; }
.steps.in .step.gap { transition-delay: 0s; }
/* Scroll-linked journey (pages.js adds .live): every connector starts as a dashed track and fills orange as the reading line
   (about 60% down the screen) passes it; each node fills when the line reaches it. The starting point is always filled. */
.js-motion .steps.live .step::before { background: repeating-linear-gradient(180deg, #c7bfbe 0 8px, transparent 8px 15px); }
.js-motion .steps.live .step::after { content: ''; position: absolute; left: calc(.4rem + .7rem - 1.5px); top: 1.9rem; bottom: -.25rem; width: 3px; border-radius: 3px; background: var(--orange); transform-origin: top; }
.js-motion .steps.live .step::after, .js-motion .steps.live:not(.in) .step.gap::after { transform: scaleY(var(--f, 0)); transition: none; }
.js-motion .steps.live .step:last-child::after { display: none; }
.js-motion .steps.live .step:not(.on) .node { background: #fff; }
.js-motion .steps.live .step.on:not(.gap) .node { box-shadow: 0 0 0 5px rgba(224,102,33,.16); }
@media (max-width: 900px) { .call-grid { grid-template-columns: 1fr; } .call-lead { position: static; } }

/* 3. Story: four chapters light up one by one (need > restoration), then step back while the bridge closes and the vision arrives.
   Vars are set by story.js. Defaults are the finished state, so without JS or with reduced motion everything shows in order. */
.story { --chap: 4; --out: 0; --fin: 1; --draw: 1; --warm: 1; --marks: 1; --fill: 1; --end: 1; position: relative; background: var(--navy); }
.story.live { --chap: 0; --fin: 0; --draw: 0; --warm: 0; --marks: 0; --fill: 0; --end: 0; height: 400vh; }
.story .stage { position: relative; display: grid; align-items: center; overflow: hidden; color: #fff; isolation: isolate; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.story.live .stage { position: sticky; top: calc(78px + var(--snh)); height: calc(100vh - 78px - var(--snh)); height: calc(100svh - 78px - var(--snh)); padding: 0; }
.story .bg { position: absolute; inset: -2%; background: center/cover no-repeat; filter: grayscale(calc(1 - var(--warm))); z-index: -2; }
.story .shade { position: absolute; inset: 0; z-index: -1; background: rgba(11,46,69,calc(.95 - .1 * var(--warm))); }
/* Soft edges: the photo fades to plain navy at the stage's top and bottom (so it meets the arch above and the navy guide
   section below without a seam), and a navy bridge-deck arch rises into the cream section above. */
.story .bg { -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 20%, #000 80%, transparent 98%); mask-image: linear-gradient(to bottom, transparent 2%, #000 20%, #000 80%, transparent 98%); }
/* Home's bridge-deck arch edges (the hero's .reel-edge curve): where a navy section meets a light one, the next section's
   colour rises as an arch instead of a hard line. .up sits above its section (rising into the one before); the default sits
   on its section's bottom edge. Used into the vision story, out of the guide and into the closing band. */
.arch-edge { --edge: clamp(40px, 7vw, 90px); position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--edge); display: block; z-index: 1; pointer-events: none; }
.arch-edge.up { bottom: calc(100% - 1px); }
.arch-edge.to-navy path { fill: var(--navy); }
.arch-edge.to-cream path { fill: var(--cream); }
[data-page='home'] .guide, [data-page='home'] .shop-band { position: relative; }
.story .copy { padding: 1.6rem 0; }
.story .eyebrow { color: #ffb27a; text-align: center; margin-bottom: clamp(1rem, 3svh, 1.8rem); opacity: .85; }
[data-page='home'] .story .eyebrow { display: flex; justify-content: center; } /* balanced eyebrow (inline-flex) still centred over the cards */
.story .scenes { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 8vw, 5rem); }
.story.live .scenes { gap: 0; }
.story.live .scenes > * { grid-area: 1 / 1; }

.chapters { opacity: calc(1 - var(--out)); transform: translateY(calc(var(--out) * -36px)) scale(calc(1 - .06 * var(--out))); }
.story.live .chapters { visibility: visible; }
.track-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 1.6vw, 1.4rem); align-items: end; }
.chapter { --lit: 1; position: relative; height: clamp(250px, 44svh, 420px); border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--navy); isolation: isolate; box-shadow: 0 18px 40px rgba(0,0,0,.3); opacity: calc(.3 + .7 * var(--lit)); transform: translateY(calc((1 - var(--lit)) * 26px)); }
.chapter.c2, .chapter.c3 { height: clamp(280px, 50svh, 470px); }
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(calc(1 - var(--lit))); transform: scale(calc(1.08 - .08 * var(--lit))); }
.chapter::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(11,46,69,.94) 100%); }
.chapter .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .9rem 1.1rem; text-align: center; display: grid; gap: .15rem; }
.chapter .n { font: 900 .72rem var(--font-body); letter-spacing: .2em; color: #ffb27a; }
.chapter strong { font-family: var(--font-display); font-size: clamp(.95rem, 1.45vw, 1.2rem); text-transform: uppercase; line-height: 1.1; }
.chapter em { font-style: normal; font-size: .84rem; line-height: 1.35; color: #e8eef3; }
.chapter .tag { justify-self: center; margin-top: .4rem; font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; padding: .22rem .65rem; border-radius: 999px; background: var(--orange); color: #fff; }
.chapter.c1 .tag { background: rgba(255,255,255,.18); }
/* The journey line fills as the chapters light up */
.journey { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); margin-top: clamp(1.2rem, 3svh, 2rem); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .2em; font-size: clamp(.72rem, 1.3vw, .95rem); color: var(--mist); }
.journey i { position: relative; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; }
.journey b { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, var(--mist), var(--orange)); transform-origin: left; transform: scaleX(calc(var(--chap) / 4)); }
.journey span:last-child { color: var(--orange); opacity: calc(.35 + .65 * var(--chap) / 4); }

.finale { opacity: var(--fin); }
.story.live .finale { pointer-events: none; }
.story.live.done .finale { pointer-events: auto; }
/* Note: not named .line/.brand, which the cart drawer and header already use. */
.story .story-title { color: #fff; margin: 0; display: block; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.story .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The bridge: two outlined halves slide together (--draw), the heads drop in (--marks), then the shapes fill (--fill). Units are the logo's own coordinate space. */
.story .mark { display: block; width: min(100%, 760px); height: min(30svh, 250px); margin-inline: auto; overflow: visible; }
.story .fills { opacity: calc(.1 + .9 * var(--fill)); }
.story .half .f { fill: #fff; stroke: none; }
.story .half .e { fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.story .half.l { transform: translateX(calc((1 - var(--draw)) * -330px)); }
.story .half.r { transform: translateX(calc((1 - var(--draw)) * 330px)); }
.story .heads circle { fill: var(--orange); fill-opacity: calc(.08 + .92 * var(--fill)); stroke: var(--orange); stroke-width: 6; opacity: var(--marks); }
.story .h1, .story .h3 { transform: translateY(calc((1 - var(--marks)) * -110px)); }
.story .h2 { transform: translateY(calc((1 - var(--marks)) * -140px)); }
.story .banks { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); width: min(100%, 760px); margin: 1.4rem auto 0; font-family: var(--font-display); text-transform: uppercase; }
.story .bank { font-size: clamp(.8rem, 1.4vw, 1.05rem); font-weight: 800; letter-spacing: .2em; line-height: 1.1; }
.story .bank.a { color: var(--mist); opacity: calc(1 - .6 * var(--draw)); }
.story .bank.b { color: var(--orange); opacity: calc(.35 + .65 * var(--draw)); text-shadow: 0 0 calc(var(--fill) * 22px) rgba(224,102,33,.65); }
.story .track { position: relative; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; }
.story .trail { position: absolute; top: 0; bottom: 0; width: calc(var(--draw) * 50%); border-radius: 2px; }
.story .trail.l { left: 0; background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,.75)); }
.story .trail.r { right: 0; background: linear-gradient(90deg, var(--orange), rgba(224,102,33,.35)); }
.story .dot { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(224,102,33,.25), 0 0 16px rgba(224,102,33,.7); opacity: var(--fill); transform: scale(calc(.4 + .6 * var(--fill))); }
.story .wordmark { display: block; text-align: center; margin-top: 1.2rem; font-size: clamp(1.4rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: .2em; color: #fff; opacity: var(--end); white-space: nowrap; transform: translateY(calc((1 - var(--end)) * 10px)); font-family: var(--font-display); text-transform: uppercase; }
.story .wordmark span { color: var(--orange); }
.story .reveal { max-width: 560px; margin: 1.1rem auto 0; text-align: center; opacity: var(--end); transform: translateY(calc((1 - var(--end)) * 18px)); }
.story .reveal p { font-size: clamp(1rem, 1.5vw, 1.15rem); margin-bottom: 0; color: #dbe5ee; }
.story .reveal strong { color: #fff; }
.story .reveal .btn-row { justify-content: center; }
.story .reveal:focus-within { opacity: 1; transform: none; }
/* Keep-scrolling cue: a small pill pinned to the bottom of the stage. Steps light up with progress (story.js sets .on and --cue). */
.story .story-cue { --cue: 1; position: absolute; left: 50%; bottom: clamp(.9rem, 3svh, 1.6rem); display: none; align-items: center; gap: .7rem; padding: .5rem .9rem .5rem .8rem; border-radius: 999px; background: rgba(11,46,69,.72); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: var(--cue); transform: translate(-50%, calc((1 - var(--cue)) * 12px)); pointer-events: none; }
.story.live .story-cue { display: flex; }
.cue-steps { display: flex; gap: .3rem; }
.cue-steps i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background .3s, transform .3s; }
.cue-steps i.on { background: var(--orange); transform: scale(1.15); }
.cue-arrow { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 1.4s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (max-width: 900px) {
  /* Phones: a swipeable strip without JS; with JS the strip slides along as you scroll (story.js sets --tx). */
  .chapters { margin-inline: -1.25rem; }
  .track-row { display: flex; gap: .8rem; padding: 0 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; scrollbar-width: none; }
  .track-row::-webkit-scrollbar { display: none; }
  .chapter, .chapter.c2, .chapter.c3 { flex: 0 0 min(72vw, 300px); height: 380px; scroll-snap-align: start; }
  .story.live .track-row { overflow: visible; transform: translateX(var(--tx, 0px)); }
  .story.live .chapter, .story.live .chapter.c2, .story.live .chapter.c3 { height: min(50svh, 400px); }
  .journey { margin-inline: 1.25rem; }
}
@media (max-width: 700px) {
  .story .mark { height: min(26svh, 210px); }
  .story .wordmark { letter-spacing: .12em; }
  .story .reveal { margin-top: 1.2rem; }
}

/* 4. Guide: empathy + authority. Counters run once; rings pulse over the partner pins on the client's map. */
.guide-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.guide .lead { color: #dbe5ee; }
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; margin: 2.2rem 0 0; }
.counts > div { display: flex; flex-direction: column-reverse; gap: .3rem; padding-left: 1rem; border-left: 3px solid rgba(224,102,33,.5); }
.counts dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.counts dt { font-weight: 700; font-size: .9rem; color: var(--mist); }
.map { margin: 0; }
/* No padding here: ring positions are percentages of the image box (the map image has its own white margin). */
.map-img { position: relative; aspect-ratio: 16 / 9; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.map-img img { width: 100%; height: 100%; object-fit: cover; transition: clip-path .9s cubic-bezier(.4,.1,.2,1); clip-path: inset(0 0 0 0); }
/* Nothing shows until the image has arrived (story.js adds .ready), so the card is never seen empty; then the card rises and the map wipes in. */
.js-motion .map:not(.ready) .map-img { opacity: 0; transform: translateY(16px); }
.js-motion .map:not(.in) .map-img img, .js-motion .map:not(.ready) .map-img img { clip-path: inset(0 100% 0 0); }
.map .ring { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; pointer-events: none; }
.map.in.ready .ring { animation: ping 2.8s ease-out calc(.7s + var(--i) * .15s) infinite; }
.map:not(.ready) .ring { display: none; }
@keyframes ping { 0% { transform: scale(.4); opacity: .95; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.map figcaption { margin-top: 1rem; text-align: center; font-size: .92rem; color: var(--mist); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

/* 5. Plan: three steps joined by a line that draws across (down, on phones). */
.plan-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.plan-head h2 { margin: 0; }
.plan-head p:last-child { margin-bottom: 0; }
.plan-steps { --ico: 4.2rem; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.plan-steps li { position: relative; background: #fff; border: 1.5px solid var(--stone); border-radius: var(--radius); padding: 1.6rem; transition: opacity .6s ease, transform .6s ease, border-color .25s, box-shadow .25s; }
.plan-steps .ico { position: relative; z-index: 1; display: grid; place-items: center; width: var(--ico); height: var(--ico); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(224,102,33,.35); margin-bottom: 1.1rem; }
.plan-steps .ico svg { width: 30px; height: 30px; fill: #fff; stroke: #fff; }
.plan-steps .k { display: block; font-weight: 900; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: .2rem; }
.plan-steps h3 { text-transform: uppercase; font-size: 1.25rem; margin-bottom: .4em; }
.plan-steps p { margin: 0; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .plan-steps li:hover { border-color: var(--orange); box-shadow: 0 14px 30px rgba(11,46,69,.12); } }
/* the three cards slide up and fade in one after another: .6s each, .3s apart, 1.2s in all (no connecting line) */
.js-motion .plan-steps:not(.in) li { opacity: 0; transform: translateY(20px); }
.plan-steps.in li:nth-child(2) { transition-delay: .3s, .3s, 0s, 0s; } .plan-steps.in li:nth-child(3) { transition-delay: .6s, .6s, 0s, 0s; }
@media (max-width: 820px) {
  .plan-head { grid-template-columns: 1fr; }
  .plan-steps { grid-template-columns: 1fr; }
  .plan-steps li { display: grid; grid-template-columns: var(--ico) 1fr; column-gap: 1.1rem; }
  .plan-steps .ico { grid-row: span 4; margin: 0; }
}

/* 6b. Shop banner: a compact navy card. Copy on the left; on the right a strip of short arched product photos drifts slowly
   (hover to stop it and scroll or drag through; it carries on when the pointer leaves). The track holds two copies of the list and moves by half its width, so the loop has no seam. */
.shop-card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(2rem, 4.5vw, 3.2rem) 0 clamp(2rem, 4.5vw, 3.2rem) clamp(1.6rem, 4.5vw, 3.4rem); border-radius: 28px; overflow: hidden; color: var(--cream); background: radial-gradient(600px 320px at 0% 100%, rgba(224,102,33,.22), transparent 70%), var(--navy); box-shadow: 0 24px 60px rgba(11,46,69,.22); }
.shop-copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.shop-copy p { color: #dbe5ee; max-width: 44ch; margin-bottom: 0; }
.shop-copy .btn-row { margin-top: 1.4rem; }
.shop-copy .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.shop-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.shop-track { display: flex; width: max-content; will-change: transform; }
/* Without JS the strip simply drifts with CSS; story.js adds .js-strip and drives it instead (hover to scroll or drag). */
.shop-strip:not(.js-strip) .shop-track { animation: shop-drift 40s linear infinite; }
.shop-strip:not(.js-strip):hover .shop-track, .shop-strip:not(.js-strip):focus-within .shop-track { animation-play-state: paused; }
.shop-strip.js-strip { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.shop-strip.dragging { cursor: grabbing; }
.shop-strip .prod img { -webkit-user-drag: none; }
@keyframes shop-drift { to { transform: translateX(-50%); } }
.shop-track ul { display: flex; align-items: flex-end; gap: 1rem; margin: 0; padding: 0 1rem 0 0; list-style: none; }
.prod { position: relative; display: block; width: 168px; height: 228px; border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--steel); text-decoration: none; isolation: isolate; }
.shop-track li:nth-child(even) .prod { height: 196px; }
.prod img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,46,69,.85)); }
.prod span { position: absolute; left: .4rem; right: .4rem; bottom: .75rem; z-index: 1; text-align: center; color: #fff; font-weight: 900; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.prod:hover img, .prod:focus-visible img { transform: scale(1.06); }
.prod:focus-visible { outline-offset: -3px; }
@media (max-width: 820px) {
  .shop-card { grid-template-columns: 1fr; padding: 2rem 0 2rem; }
  .shop-copy { padding-inline: 1.6rem; }
  .prod { width: 132px; height: 178px; }
  .shop-track li:nth-child(even) .prod { height: 154px; }
}

/* 7. Closing: the stakes, then the success line */
.closing { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 50% 120%, rgba(224,102,33,.28), transparent 70%), var(--navy); color: var(--cream); text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; }
.closing-mark { display: block; width: 104px; height: auto; margin: 0 auto 1.6rem; fill: #fff; }
.closing-mark circle { fill: var(--orange); }
.closing h2 { color: #fff; max-width: 20ch; margin-inline: auto; font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.closing .strike { color: var(--mist); }
.closing .lead { color: var(--mist); margin-bottom: 0; }
.closing .btn-row { justify-content: center; }
.closing [data-in] > * { transition: opacity .7s ease, transform .7s ease; }
.js-motion .closing [data-in]:not(.in) > * { opacity: 0; transform: translateY(16px); }
.closing [data-in].in > :nth-child(2) { transition-delay: .1s; } .closing [data-in].in > :nth-child(3) { transition-delay: .2s; } .closing [data-in].in > :nth-child(4) { transition-delay: .3s; }

/* ===== Mission (and shared inner-page components: .m-hero, .m-purpose, .m-vision-card, .m-count, .m-timeline, .m-counts) =====
   Same motion language as Home: arches and the bridge curve, orange arch markers, scroll-linked reveals
   (pages.js adds .live and sets the progress), count-ups and the navy closing band. Every hidden state is gated behind
   .js-motion or .live, so without JS or with reduced motion the page shows finished. */

/* Hero: the photo drifts slowly; each headline line slides up from behind a mask; bridge-curve bottom edge. */
.m-hero { --edge: clamp(40px, 7vw, 90px); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: min(calc(100vh - 78px), 760px); min-height: min(calc(100svh - 78px), 760px); padding: clamp(4rem, 8vw, 5.5rem) 0 calc(var(--edge) + clamp(2rem, 4vw, 3.2rem)); color: #fff; background: var(--navy); }
.m-hero-bg { position: absolute; inset: 0; z-index: -2; background: center 45% / cover no-repeat; animation: m-drift 14s cubic-bezier(.2,.7,.2,1) both; }
@keyframes m-drift { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.m-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,46,69,.7) 0%, rgba(11,46,69,.2) 70%), linear-gradient(180deg, rgba(11,46,69,.3) 0%, rgba(11,46,69,.5) 45%, rgba(11,46,69,.92) 100%); }
.m-hero .reel-edge { z-index: 1; }
.m-hero-inner { position: relative; z-index: 2; }
.m-hero .eyebrow { color: #ffb27a; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.m-hero h1 { max-width: 24ch; margin: 0 0 .5em; color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.8rem); line-height: 1.02; }
.m-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.1em; }
/* small phones: size to the screen so long words ("TRANSFORMATION") never hit the line mask */
@media (max-width: 480px) { .m-hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.5rem); } }
.m-hero h1 .ln > span { display: inline-block; animation: m-line .95s cubic-bezier(.2,.7,.2,1) .12s both; }
.m-hero h1 .ln + .ln > span { animation-delay: .26s; }
@keyframes m-line { from { transform: translateY(108%); } to { transform: none; } }
.m-hero h1 em { position: relative; display: inline-block; font-style: normal; color: var(--orange); }
.m-down { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem .6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(11,46,69,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; animation: rise .7s cubic-bezier(.2,.7,.2,1) .55s both; transition: background .25s, border-color .25s; }
.m-down svg { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 1.4s ease-in-out infinite; }
.m-down:hover { color: #fff; background: rgba(224,102,33,.85); border-color: var(--orange); }
.m-down:hover svg { stroke: #fff; }

/* Why we exist: the statement lights up word by word (pages.js sets each word's opacity from scroll). */
.m-purpose-grid { display: grid; grid-template-columns: minmax(0, .32fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.m-purpose-side { position: sticky; top: calc(120px + var(--snh)); display: grid; gap: 1rem; justify-items: start; }
.m-arch { width: 64px; height: 30px; border: 4px solid var(--orange); border-bottom: 0; border-radius: 64px 64px 0 0; }
.m-statement { margin: 0 0 1.6rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.18; letter-spacing: -.01em; color: var(--navy); }
.m-statement .w { transition: opacity .2s linear; }
.m-body { max-width: 60ch; margin: 0; font-size: 1.15rem; color: #2a4a60; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-motion .m-body:not(.in) { opacity: 0; transform: translateY(14px); }
@media (max-width: 820px) { .m-purpose-grid { grid-template-columns: 1fr; gap: .4rem; } .m-purpose-side { position: static; grid-auto-flow: column; align-items: center; } .m-arch { width: 40px; height: 18px; border-width: 3px; } }

/* Vision: an arch-topped navy card. The bridge outline draws, fills, then "exploitation" is struck and "restoration" lights up. */
.m-vision { padding-top: 0; }
.m-vision-card { position: relative; overflow: hidden; max-width: 940px; margin: 0 auto; padding: clamp(4.5rem, 10vw, 7rem) clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 3.6rem); text-align: center; color: #fff; border-radius: 50% 50% 28px 28px / min(300px, 38vw) min(300px, 38vw) 28px 28px; background: radial-gradient(700px 320px at 50% 115%, rgba(224,102,33,.3), transparent 70%), var(--navy); box-shadow: 0 30px 70px rgba(11,46,69,.25); }
.m-vision-card > * { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.m-vision-card > :nth-child(2) { transition-delay: .5s; } .m-vision-card > :nth-child(3) { transition-delay: .65s; }
.js-motion .m-vision-card:not(.in) > * { opacity: 0; transform: translateY(14px); }
.m-vision-mark { display: block; width: clamp(96px, 14vw, 140px); height: auto; margin: 0 auto 1.4rem; fill: rgba(255,255,255,1); stroke: #fff; stroke-width: 22; stroke-linejoin: round; }
.m-vision-mark circle { fill: var(--orange); stroke: var(--orange); }
.m-vision-mark path, .m-vision-mark circle { stroke-dasharray: 6000; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.4,.1,.2,1), fill-opacity .6s ease 1.3s; }
.js-motion .m-vision-card:not(.in) .m-vision-mark path, .js-motion .m-vision-card:not(.in) .m-vision-mark circle { stroke-dashoffset: 6000; fill-opacity: 0; }
.js-motion .m-vision-card:not(.in) .m-vision-mark { opacity: 1; transform: none; }
.m-vision-card .eyebrow { color: #ffb27a; }
.m-vision-card blockquote { margin: 0; }
.m-vision-card blockquote p { max-width: 32ch; margin: 0 auto; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.32; }
.m-vision-card .strike { color: #8fa7b8; transition-delay: 1.4s; }
.m-vision-card .strike::after { transition-delay: 1.1s; }
.m-glow { color: var(--orange); text-shadow: 0 0 22px rgba(224,102,33,.45); transition: color .6s ease 1.5s, text-shadow .6s ease 1.5s; }
.js-motion [data-in]:not(.in) .m-glow { color: inherit; text-shadow: none; }
.m-motto { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; margin: 2.6rem 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.15rem, 2.6vw, 1.9rem); text-transform: uppercase; color: var(--navy); }
.m-motto span { position: relative; padding-bottom: .4em; }
.m-motto span::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: .32em; border: .09em solid var(--orange); border-bottom: 0; border-radius: 999px 999px 0 0; transform-origin: center bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1) .25s; }
.m-motto span + span::after { transition-delay: .5s; }
.js-motion .m-motto:not(.in) span::after { transform: scaleX(0); }
.m-motto span { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.m-motto span + span { transition-delay: .15s; }
.js-motion .m-motto:not(.in) span { opacity: 0; transform: translateY(12px); }

.m-es .m-head { margin-bottom: 2.5rem; }

/* Core values: sticky counter with a bridge arch that fills as you scroll; the value nearest the middle of the screen lights up. */
.m-values-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.m-values-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.m-values-head p { color: #2a4a60; }
.m-count { position: relative; width: 190px; margin-top: 2rem; }
.m-count svg { display: block; width: 100%; height: auto; overflow: visible; }
.m-count path { fill: none; stroke-width: 7; stroke-linecap: round; }
.m-count .track { stroke: rgba(11,46,69,.1); }
.m-count .fill { stroke: var(--orange); stroke-dasharray: 100; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset .6s cubic-bezier(.2,.7,.2,1); }
.m-count .cur { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.m-count .cur.tick { animation: m-tick .45s cubic-bezier(.2,.7,.2,1); }
@keyframes m-tick { from { transform: translateY(35%); opacity: 0; } to { transform: none; opacity: 1; } }
.m-count .of { display: block; margin-top: .4rem; text-align: center; font-weight: 900; font-size: .78rem; letter-spacing: .16em; color: var(--steel); }
.m-values-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.m-values-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.35rem 1.5rem 1.35rem 1.3rem; border-radius: 18px; background: #fff; border: 1px solid var(--stone); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s, box-shadow .5s; }
.m-values-list .n { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: 1; color: var(--orange); transition: color .5s; }
.m-values-list p { margin: 0; font-weight: 700; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.45; color: var(--navy); }
.m-values.live .m-values-list li { opacity: .38; transform: scale(.985); }
.m-values.live .m-values-list .n { color: var(--steel); }
.m-values.live .m-values-list li.on { opacity: 1; transform: none; border-color: rgba(224,102,33,.45); box-shadow: 0 16px 36px rgba(11,46,69,.1); }
.m-values.live .m-values-list li.on .n { color: var(--orange); }
@media (max-width: 900px) {
  .m-values-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .m-values-head { position: static; }
  .m-count { display: none; }
  .m-values.live .m-values-list li { opacity: .55; }
}

/* Our story: the arch photo rises in; the timeline line draws with scroll and each point lights up as it is reached. */
.m-story-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.m-story-photo { position: relative; margin: 0; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; justify-self: center; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--navy); box-shadow: 0 24px 60px rgba(11,46,69,.22); clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); transition: clip-path 1.2s cubic-bezier(.65,0,.25,1); }
.js-motion .m-story-photo:not(.in) { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); }
.m-story-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js-motion .m-story-photo:not(.in) img { transform: scale(1.12); }
.m-story-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,46,69,.85)); }
.m-story-photo figcaption { position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 1; display: grid; justify-items: center; color: #fff; text-align: center; }
.m-story-photo figcaption strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.m-story-photo figcaption span { margin-top: .3rem; font-weight: 900; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.m-timeline { --tp: 1; position: relative; margin: 1.6rem 0 2rem; padding: 0 0 0 2.4rem; list-style: none; }
.m-timeline::before, .m-timeline::after { content: ''; position: absolute; left: .55rem; top: .55rem; bottom: .55rem; width: 3px; border-radius: 3px; }
.m-timeline::before { background: rgba(11,46,69,.12); }
.m-timeline::after { background: var(--orange); transform-origin: top; transform: scaleY(var(--tp)); }
.m-timeline li { position: relative; padding-bottom: 1.5rem; }
.m-timeline li:last-child { padding-bottom: 0; }
.m-timeline li::before { content: ''; position: absolute; left: calc(-2.4rem + .55rem + 1.5px - 9px); top: .2rem; z-index: 1; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--orange); background: var(--orange); box-sizing: border-box; transition: background .35s ease, box-shadow .35s ease; }
.m-timeline.live li::before { background: #fff; }
.m-timeline.live li.on::before { background: var(--orange); box-shadow: 0 0 0 5px rgba(224,102,33,.18); }
.m-timeline .k { display: block; font-weight: 900; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.m-timeline p { margin: .2rem 0 0; font-size: 1.08rem; color: #2a4a60; }
.m-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.m-counts > div { display: flex; flex-direction: column-reverse; padding: 1rem 1.1rem; border-radius: 16px; background: var(--cream); border: 1px solid var(--stone); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.m-counts > div:nth-child(2) { transition-delay: .1s; } .m-counts > div:nth-child(3) { transition-delay: .2s; }
.js-motion .m-counts:not(.in) > div { opacity: 0; transform: translateY(12px); }
.m-counts dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.m-counts dt { margin-top: .35rem; font-weight: 700; font-size: .85rem; line-height: 1.3; color: var(--steel); }
@media (max-width: 860px) { .m-story-grid { grid-template-columns: 1fr; } .m-story-photo { max-width: 340px; } }
@media (max-width: 420px) { .m-counts { gap: .5rem; } .m-counts > div { padding: .8rem .75rem; } .m-counts dt { font-size: .76rem; } }

.closing h2 em { font-style: normal; color: var(--orange); }

/* Shared additions for inner pages */
.m-hero-lead { max-width: 46ch; margin: 0 0 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e3ebf1; animation: rise .7s cubic-bezier(.2,.7,.2,1) .45s both; }
.m-verse-note { max-width: 46ch; margin: 1.3rem auto 0; font-size: 1.02rem; line-height: 1.55; color: var(--mist); }
.m-vision-card > :nth-child(4) { transition-delay: .85s; }
.m-vision-card > :nth-child(5) { transition-delay: 1s; }
.e-head { margin-bottom: 2.6rem; }
.e-head > * { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.e-head > :nth-child(2) { transition-delay: .06s; } .e-head > :nth-child(3) { transition-delay: .12s; } .e-head > :nth-child(4) { transition-delay: .18s; }
.js-motion .e-head[data-in]:not(.in) > * { opacity: 0; transform: translateY(12px); }
/* subtitle text under a section heading: one size and colour for every paragraph (matches Mission's .m-body) */
.e-head p, .e-head .lead { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.75; color: #3d5a6e; }
.e-head p:last-child { margin-bottom: 0; }

/* Mission: "Why we exist" as a centred manifesto (no sidebar) */
.m-manifesto .container { display: grid; justify-items: center; gap: 1rem; max-width: 1000px; text-align: center; }
.m-manifesto .m-statement { max-width: 26ch; margin: .2rem 0 .4rem; font-size: clamp(1.8rem, 4vw, 3.2rem); text-wrap: balance; }
.m-manifesto .m-body { margin: 0 auto; }
/* statements set as <p> pick up the 1.75 body leading from the editorial finish; keep them tight like the h2 ones */
main :is(.m-manifesto, .r-start) p.m-statement { line-height: 1.18; }

/* ===== Equip ===== */
/* Who we equip: arch cards. Photos start muted and warm to full colour on hover (like the Home tiles); an arch draws under the title. */
.e-arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.e-arches li { display: flex; flex-direction: column; overflow: hidden; background: var(--cream); border: 1px solid var(--stone); border-radius: 999px 999px 20px 20px; transition: opacity .6s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.e-arches li:nth-child(2) { transition-delay: .1s, .1s, 0s; } .e-arches li:nth-child(3) { transition-delay: .2s, .2s, 0s; } .e-arches li:nth-child(4) { transition-delay: .3s, .3s, 0s; }
.js-motion .e-arches:not(.in) li { opacity: 0; transform: translateY(24px); }
.e-arches figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 999px 999px 0 0; }
.e-arches img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.e-arches .b { padding: 1.3rem 1.3rem 1.5rem; }
.e-arches .n { display: block; font-weight: 900; font-size: .74rem; letter-spacing: .16em; color: var(--orange); }
.e-arches h3 { margin: .2rem 0 1rem; font-size: 1.12rem; text-transform: uppercase; }
.e-arches p { margin: 0; font-size: .98rem; color: #2a4a60; }
@media (hover: hover) and (pointer: fine) {
  .e-arches li:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11,46,69,.16); transition-delay: 0s; }
  .e-arches li:hover img { filter: none; transform: scale(1.06); }
}
@media (hover: none) { .e-arches img { filter: none; } }
@media (max-width: 960px) { .e-arches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .e-arches { grid-template-columns: 1fr; } .e-arches figure { aspect-ratio: 4 / 3; } }

/* Understanding the issue: step-through. The line between the steps fills to the chosen one (pages.js sets --sp). */
.e-steps { --sp: 0; max-width: 1020px; margin: 0 auto; }
.e-steps-bar { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.e-steps-bar::before, .e-steps-bar::after { content: ''; position: absolute; top: 21px; left: calc(100% / 6); height: 3px; border-radius: 3px; }
.e-steps-bar::before { right: calc(100% / 6); background: rgba(11,46,69,.12); }
.e-steps-bar::after { width: calc((100% - 100% / 3) * var(--sp)); background: var(--orange); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.e-steps-bar button { position: relative; z-index: 1; display: grid; justify-items: center; gap: .2rem; padding: 0 .4rem .4rem; background: none; border: 0; border-radius: 14px; font: inherit; color: var(--navy); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.e-steps-bar .dot { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .45rem; border-radius: 50%; background: #fff; border: 2.5px solid var(--stone); font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--steel); transition: background .35s, border-color .35s, color .35s, box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.e-steps-bar .k { font-weight: 900; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.e-steps-bar .t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; line-height: 1.15; }
.e-steps-bar [aria-selected='true'] .dot { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 6px rgba(224,102,33,.18); transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) { .e-steps-bar button:hover .dot { border-color: var(--orange); color: var(--orange); } .e-steps-bar [aria-selected='true']:hover .dot { color: #fff; } }
.e-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.2rem, 3vw, 2rem); padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--stone); border-radius: 22px; box-shadow: 0 18px 44px rgba(11,46,69,.1); animation: e-in .55s cubic-bezier(.2,.7,.2,1); }
@keyframes e-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.e-steps:not(.live) .e-panel + .e-panel { margin-top: 1rem; }
.e-panel .main p { font-size: 1.1rem; color: #2a4a60; }
.e-panel .main p:last-child { margin-bottom: 0; }
.e-panel .blk { padding: .9rem 1.1rem; border-radius: 14px; background: rgba(190,206,219,.3); }
.e-panel .blk + .blk { margin-top: .8rem; }
.e-panel .who { display: block; margin-bottom: .25rem; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.e-panel .blk p { margin: 0; font-size: .98rem; line-height: 1.55; }
@media (max-width: 760px) { .e-panel { grid-template-columns: 1fr; } .e-steps-bar .t { font-size: .92rem; } .e-steps-bar .k { font-size: .62rem; letter-spacing: .1em; } }
/* small phones: the three step titles share ~100px each, so they shrink and may hyphenate instead of colliding */
@media (max-width: 420px) { .e-steps-bar { gap: .4rem; } .e-steps-bar button { padding-inline: 0; } .e-steps-bar .t { font-size: .74rem; letter-spacing: 0; overflow-wrap: anywhere; hyphens: auto; } }
/* Next-step pill: a full-width .btn.ghost in the empty space under the left column, naming the next step with an arrow
   (a loop icon on the last card, which goes back to the problem). On phones it sits at the foot of the card. */
@media (min-width: 761px) {
  .e-panel { grid-template-rows: 1fr auto; }
  .e-panel .main { grid-column: 1; grid-row: 1; }
  .e-panel .side { grid-column: 2; grid-row: 1 / span 2; }
  .e-panel .e-next { grid-column: 1; grid-row: 2; }
}
.e-next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; align-self: end; padding: .85rem .95rem .85rem 1.5rem; text-align: left; }
.e-next .pre { color: var(--orange); margin-right: .35em; transition: color .15s; }
.e-next svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--navy); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2,.7,.2,1), background .15s, stroke .15s; }
.e-next:hover .pre { color: #ffb27a; }
.e-next:hover svg { background: #fff; stroke: var(--navy); transform: translateX(4px); }
.e-next.is-loop:hover svg { transform: rotate(180deg); }

/* Five ways we invest: a path whose line draws across as the steps arrive (vertical on phones). */
.e-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.e-path::before { content: ''; position: absolute; top: 25px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: var(--orange); transform-origin: left; transition: transform 1.4s cubic-bezier(.4,.1,.2,1) .1s; }
.js-motion .e-path:not(.in)::before { transform: scaleX(0); }
.e-path li { position: relative; text-align: center; transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.e-path li:nth-child(1) { transition-delay: .15s; } .e-path li:nth-child(2) { transition-delay: .35s; } .e-path li:nth-child(3) { transition-delay: .55s; } .e-path li:nth-child(4) { transition-delay: .75s; } .e-path li:nth-child(5) { transition-delay: .95s; }
.js-motion .e-path:not(.in) li { opacity: 0; transform: translateY(18px); }
/* Drawn path (pages.js adds .live and an SVG): the line rings circle 1, runs on to circle 2 and rings it, and so on. Each step
   fades in as its ring starts, at the delay pages.js works out (--d), so the line and circles arrive together. */
.e-path.live::before { display: none; }
.e-path-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.e-path-line path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.e-path.in .e-path-line path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t) linear var(--d); }
.e-path.live li { transition-delay: var(--d, 0s); }
/* once a ring closes it shrinks into its number disc (and out of sight behind it), leaving one solid orange circle */
.e-path.in .e-path-line .ring { transform: scale(.7); opacity: 0; transition: transform .45s cubic-bezier(.55,0,.7,.4) var(--s), opacity .15s linear calc(var(--s) + .32s); }
.e-path .num { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; box-shadow: 0 0 0 7px #fff, 0 10px 22px rgba(224,102,33,.3); }
.e-path h3 { margin-bottom: .45rem; font-size: 1.02rem; text-transform: uppercase; }
.e-path p { margin: 0; font-size: .95rem; color: #2a4a60; }
@media (max-width: 860px) {
  .e-path { grid-template-columns: 1fr; gap: 1.4rem; }
  .e-path::before { top: 26px; bottom: 26px; left: 25px; right: auto; width: 3px; height: auto; transform-origin: top; }
  .js-motion .e-path:not(.in)::before { transform: scaleY(0); }
  .e-path li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 1.1rem; text-align: left; }
  .e-path .num { grid-row: span 2; margin: 0; }
}

/* Areas of training, inside the closing band */
.e-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 820px; margin: 1.4rem auto 0; padding: 0; list-style: none; }
.e-chips li { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: .95rem; transition: background .25s, border-color .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) { .e-chips li:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); } }

/* Equip intro: the headline spans the page; below a hairline the explanation sits beside an open pull-quote of Ephesians 4:12 */
.e-intro .m-statement { max-width: 22ch; margin: .9rem 0 2.2rem; font-size: clamp(2rem, 4.6vw, 3.6rem); text-wrap: balance; }
.e-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-top: 2.2rem; border-top: 1px solid rgba(11,46,69,.12); }
.e-verse { margin: 0; padding-left: clamp(1.4rem, 3vw, 2.2rem); border-left: 2px solid var(--orange); transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2,.7,.2,1) .15s; }
.js-motion .e-verse:not(.in) { opacity: 0; transform: translateY(14px); }
.e-verse blockquote { margin: 0; }
.e-verse blockquote p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; letter-spacing: -.01em; color: var(--navy); }
.e-verse figcaption { margin-top: .9rem; }
.e-verse cite { font-style: normal; font-weight: 900; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.e-verse-note { margin: .7rem 0 0; font-size: 1.02rem; color: #3d5a6e; }
@media (max-width: 820px) { .e-intro-grid { grid-template-columns: 1fr; padding-top: 1.6rem; } }

/* ===== Partner ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* anchors land below the sticky header (and the section nav, on pages that have one) */
section[id] { scroll-margin-top: 96px; }
.p-subnav ~ section[id] { scroll-margin-top: calc(96px + var(--snh)); }
.m-card-title { max-width: 22ch; margin: 0 auto; color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; }
.m-vision-card .btn-row { justify-content: center; }

/* Why partner: the case beside a panel of the five ways in, shown as link rows (same icons and hovers as the tiles) */
.p-why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.p-why .m-statement { margin: .9rem 0 1.4rem; }
.p-why-ways { padding: clamp(2.6rem, 5vw, 3.4rem) clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem); border-radius: 220px 220px 22px 22px / 90px 90px 22px 22px; background: #fff; border: 1px solid var(--stone); box-shadow: 0 24px 60px rgba(11,46,69,.1); text-align: center; }
.p-why-ways > p { margin: .6rem auto 1.4rem; max-width: 40ch; font-size: 1.02rem; color: #3d5a6e; }
.p-why .p-ways { grid-template-columns: 1fr; gap: .55rem; text-align: left; }
.p-why .p-ways li:last-child { grid-column: auto; }
.p-why .p-ways a { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .9rem; padding: .65rem 1rem; }
.p-why .p-ways .tile-ico { width: 44px; height: 44px; margin: 0; }
.p-why .p-ways strong { font-size: .98rem; }
.p-why .p-ways a:hover, .p-why .p-ways a:focus-visible { transform: translateX(4px); }
@media (max-width: 900px) { .p-why-grid { grid-template-columns: 1fr; } }

/* Pray: a round photo beside the call to prayer (replaces the navy arch card, so Partner has no navy card up top) */
.p-pray-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.p-pray-photo { margin: 0; width: 100%; max-width: 420px; aspect-ratio: 1; justify-self: center; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 60px rgba(11,46,69,.18); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.p-pray-photo img { width: 100%; height: 100%; object-fit: cover; }
.js-motion .p-pray-photo:not(.in) { opacity: 0; transform: scale(.94); }
.p-pray-copy { transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2,.7,.2,1) .15s; }
.js-motion .p-pray-copy:not(.in) { opacity: 0; transform: translateY(14px); }
.p-pray-copy h2 { max-width: 20ch; margin: .9rem 0 1rem; font-size: clamp(2rem, 3.8vw, 3rem); }
.p-pray-copy p { max-width: 54ch; margin: 0 0 1.6rem; font-size: 1.1rem; color: #3d5a6e; }
@media (max-width: 860px) { .p-pray-grid { grid-template-columns: 1fr; gap: 1.8rem; } .p-pray-photo { max-width: 260px; } }

/* Section nav (shared: Home, Mission, Equip, Partner, Resources): sticks under the header; a navy pill slides to the section
   in view (pages.js sets --ix/--iw). Its height is fixed as --snh so other sticky parts (Home story, Mission values) sit below it. */
:root { --snh: 0px; }
html:has(.p-subnav) { --snh: 59px; }
.p-subnav { height: var(--snh); position: sticky; top: 78px; z-index: 50; background: rgba(249,245,240,.94); background: color-mix(in srgb, var(--flow, #f9f5f0) 94%, transparent); border-bottom: 1px solid rgba(212,204,203,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.p-subnav-in { position: relative; display: flex; align-items: center; gap: .3rem; height: 100%; padding: .55rem 0; overflow-x: auto; scrollbar-width: none; }
.p-subnav-in::-webkit-scrollbar { display: none; }
.p-subnav-ind { position: absolute; top: .55rem; bottom: .55rem; left: 0; width: var(--iw, 0); border-radius: 999px; background: var(--navy); transform: translateX(var(--ix, 0)); opacity: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.p-subnav.has-on .p-subnav-ind { opacity: 1; }
.p-subnav a { position: relative; z-index: 1; flex: none; padding: .5rem 1rem; border-radius: 999px; font-weight: 900; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); text-decoration: none; transition: color .3s; }
.p-subnav a.on { color: #fff; }
@media (hover: hover) and (pointer: fine) { .p-subnav a:not(.on):hover { color: var(--orange); } }

/* Verses: two small dome cards */
.p-verses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.p-verses blockquote { margin: 0; padding: 2.2rem 1.4rem 1.4rem; text-align: center; color: #fff; border-radius: 50% 50% 18px 18px / 60px 60px 18px 18px; background: var(--navy); box-shadow: 0 16px 36px rgba(11,46,69,.18); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.p-verses blockquote + blockquote { transition-delay: .15s; }
.js-motion .p-verses:not(.in) blockquote { opacity: 0; transform: translateY(16px); }
.p-verses p { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; line-height: 1.35; }
.p-verses cite { font-style: normal; font-weight: 900; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #ffb27a; }
@media (max-width: 640px) { .p-verses { grid-template-columns: 1fr; } }

/* Ways to be involved: link cards with the Home tile icons; the icon plays its animation on hover/focus. */
.p-ways { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.p-ways li { transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.p-ways li:nth-child(2) { transition-delay: .08s; } .p-ways li:nth-child(3) { transition-delay: .16s; } .p-ways li:nth-child(4) { transition-delay: .24s; } .p-ways li:nth-child(5) { transition-delay: .32s; }
.js-motion .p-ways:not(.in) li { opacity: 0; transform: translateY(18px); }
.p-ways a { display: grid; justify-items: start; align-content: start; gap: .3rem; height: 100%; padding: 1.3rem 1.2rem 1.4rem; border-radius: 18px; background: var(--cream); border: 1px solid var(--stone); color: var(--navy); text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.p-ways .tile-ico { position: static; margin-bottom: .7rem; background: var(--navy); border-color: var(--navy); }
.p-ways .n { font-weight: 900; font-size: .72rem; letter-spacing: .16em; color: var(--orange); }
.p-ways strong { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; text-transform: uppercase; }
.p-ways a:hover, .p-ways a:focus-visible { color: var(--navy); transform: translateY(-5px); border-color: rgba(224,102,33,.5); box-shadow: 0 16px 36px rgba(11,46,69,.12); }
.p-ways a:hover .tile-ico, .p-ways a:focus-visible .tile-ico { background: var(--orange); border-color: var(--orange); }
.p-ways a:hover .ico-people .hd, .p-ways a:focus-visible .ico-people .hd { animation: tile-pop .55s cubic-bezier(.3,1.6,.5,1) both; }
.p-ways a:hover .ico-people .h2 { animation-delay: .1s; } .p-ways a:hover .ico-people .h3 { animation-delay: .2s; }
.p-ways a:hover .ico-tag .tag, .p-ways a:focus-visible .ico-tag .tag { animation: tile-swing 1.1s ease-out both; }
.p-ways a:hover .ico-heart .heart, .p-ways a:focus-visible .ico-heart .heart { fill: #fff; animation: tile-beat 1.3s ease-in-out infinite; }
.p-ways a:hover .ico-flame .flame, .p-ways a:focus-visible .ico-flame .flame { animation: tile-flicker 1.2s ease-in-out infinite; }
.ico-bag .bag { transform-origin: center bottom; }
.p-ways a:hover .ico-bag .bag, .p-ways a:focus-visible .ico-bag .bag { animation: p-hop .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes p-hop { 0% { transform: none; } 40% { transform: translateY(-3px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } 100% { transform: none; } }
@media (max-width: 1000px) { .p-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .p-ways { grid-template-columns: 1fr 1fr; } .p-ways li:last-child { grid-column: span 2; } }

/* Projects: arch photo cards; photos warm on hover; giving sliders on the two with monthly figures. */
.p-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.p-projects > li { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--stone); border-radius: 24px; box-shadow: 0 12px 30px rgba(11,46,69,.07); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.p-projects > li:nth-child(2) { transition-delay: .1s, .1s, 0s; } .p-projects > li:nth-child(3) { transition-delay: .2s, .2s, 0s; } .p-projects > li:nth-child(4) { transition-delay: .3s, .3s, 0s; }
.js-motion .p-projects:not(.in) > li { opacity: 0; transform: translateY(22px); }
.p-projects figure { position: relative; margin: 0; height: 220px; overflow: hidden; }
/* the card body rises into the photo in a shallow bridge curve */
.p-projects figure::after { content: ''; position: absolute; left: -12%; right: -12%; bottom: -26px; height: 56px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.p-projects img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); transition: filter .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.p-projects .b { display: flex; flex-direction: column; flex: 1; padding: .6rem 1.6rem 1.7rem; }
.p-projects h3 { font-size: 1.3rem; text-transform: uppercase; }
.p-projects .b > p { color: #2a4a60; }
.p-projects .b > .btn { align-self: flex-start; margin-top: auto; }
.p-fine { font-size: .92rem; }
.p-fine strong { color: var(--orange); }
@media (hover: hover) and (pointer: fine) { .p-projects > li:hover { box-shadow: 0 20px 44px rgba(11,46,69,.14); } .p-projects > li:hover img { filter: none; transform: scale(1.05); } }
@media (hover: none) { .p-projects img { filter: none; } }
@media (max-width: 820px) { .p-projects { grid-template-columns: 1fr; } }
.p-impact { margin: .2rem 0 1.3rem; padding: 1rem 1.1rem 1.1rem; border-radius: 16px; background: var(--cream); border: 1px solid var(--stone); }
.p-impact label { display: block; margin-bottom: .5rem; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.p-impact p { margin: .7rem 0 0; font-weight: 700; color: var(--navy); }
.p-impact strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--orange); }
.p-impact input[type='range'] { --fill: 45%; width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.p-impact input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) var(--fill), rgba(11,46,69,.15) var(--fill)); }
.p-impact input[type='range']::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(11,46,69,.15); }
.p-impact input[type='range']::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--orange); }
.p-impact input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 3px 10px rgba(224,102,33,.4); transition: transform .2s; }
.p-impact input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.p-impact input[type='range']:active::-webkit-slider-thumb { transform: scale(1.15); }

/* Church partnerships: a checklist whose ticks draw in one by one */
.p-church-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.p-church-grid p { color: #2a4a60; }
.p-checks { display: grid; gap: .55rem; margin: 1.2rem 0 1.8rem; padding: 0; list-style: none; }
.p-checks li { position: relative; padding: .7rem 1rem .7rem 3rem; border-radius: 14px; background: #fff; border: 1px solid var(--stone); font-weight: 700; color: var(--navy); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.section.alt .p-checks li { background: var(--cream); }
/* The disc sits centred on the item's first line and the tick is centred inside the disc (it read as clock hands when offset). */
.p-checks li::before { content: ''; position: absolute; left: .9rem; top: calc(.7rem + .825em - .65rem); width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--orange); transform: scale(1); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.p-checks li::after { content: ''; position: absolute; left: 1.55rem; top: calc(.7rem + .825em); width: .6rem; height: .32rem; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translate(-50%, -70%) rotate(-45deg) scale(1); transform-origin: center; transition: transform .3s ease; }
.p-checks li:nth-child(2) { transition-delay: .1s; } .p-checks li:nth-child(3) { transition-delay: .2s; } .p-checks li:nth-child(4) { transition-delay: .3s; } .p-checks li:nth-child(5) { transition-delay: .4s; } .p-checks li:nth-child(6) { transition-delay: .5s; }
.p-checks li:nth-child(2)::before, .p-checks li:nth-child(2)::after { transition-delay: .35s; } .p-checks li:nth-child(3)::before, .p-checks li:nth-child(3)::after { transition-delay: .45s; } .p-checks li:nth-child(4)::before, .p-checks li:nth-child(4)::after { transition-delay: .55s; } .p-checks li:nth-child(5)::before, .p-checks li:nth-child(5)::after { transition-delay: .65s; } .p-checks li:nth-child(6)::before, .p-checks li:nth-child(6)::after { transition-delay: .75s; } .p-checks li:nth-child(1)::before, .p-checks li:nth-child(1)::after { transition-delay: .25s; }
.js-motion .p-checks:not(.in) li { opacity: 0; transform: translateX(-12px); }
.js-motion .p-checks:not(.in) li::before { transform: scale(0); }
.js-motion .p-checks:not(.in) li::after { transform: translate(-50%, -70%) rotate(-45deg) scale(0); }
@media (max-width: 860px) { .p-church-grid { grid-template-columns: 1fr; } }

/* Network: who it's for beside what's included, then the two-step form */
.p-network { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: 2.6rem; }
/* Who's it for sits centred against the taller includes list (single column on phones). */
.p-who { align-self: center; padding: 1.8rem; border-radius: 22px; color: #fff; background: radial-gradient(400px 220px at 0% 100%, rgba(224,102,33,.25), transparent 70%), var(--navy); }
.p-who h3, .p-includes h3 { text-transform: uppercase; }
.p-who h3 { color: #fff; }
.p-who p { color: #dbe5ee; }
.p-who p:last-child { margin-bottom: 0; }
.p-includes .p-checks { margin-bottom: 0; }
.p-includes .p-checks li { font-weight: 400; color: #2a4a60; }
@media (max-width: 860px) { .p-network { grid-template-columns: 1fr; } }
.p-form { max-width: 760px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--stone); border-radius: 22px; box-shadow: 0 18px 44px rgba(11,46,69,.1); }
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.f-head h3 { margin: 0; text-transform: uppercase; font-size: 1.2rem; }
.f-dots { display: none; gap: .35rem; }
.p-form.live .f-dots { display: flex; }
.f-dots i { width: 28px; height: 5px; border-radius: 5px; background: rgba(11,46,69,.12); transition: background .35s; }
.f-dots i.on { background: var(--orange); }
.f-step { display: grid; gap: 1rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.p-form.live .f-step { animation: e-in .45s cubic-bezier(.2,.7,.2,1); }
.f-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.p-form:not(.live) [data-next], .p-form:not(.live) [data-back] { display: none; }

/* Wholesale: dark band with a faint bridge outline behind */
.p-wholesale { position: relative; overflow: hidden; }
.p-wholesale-mark { position: absolute; right: -8%; bottom: -12%; width: min(70%, 780px); height: auto; fill: none; stroke: rgba(255,255,255,.06); stroke-width: 8; pointer-events: none; }
.p-wholesale-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.p-wholesale-copy p { color: #dbe5ee; }
.p-wholesale-copy, .p-form-card { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.p-form-card { transition-delay: .15s; }
.js-motion .p-wholesale-copy:not(.in), .js-motion .p-form-card:not(.in) { opacity: 0; transform: translateY(18px); }
.p-form-card { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 22px; background: #fff; color: var(--navy); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.p-form-card h3 { text-transform: uppercase; }
@media (max-width: 860px) { .p-wholesale-grid { grid-template-columns: 1fr; } }

/* ===== Resources ===== */
/* Start here: why the page exists, beside a numbered guide to its four parts (link rows) */
.r-start-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.r-start .m-statement { margin: .9rem 0 1.2rem; }
.r-start-quote { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(11,46,69,.12); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-motion .r-start-quote:not(.in) { opacity: 0; transform: translateY(14px); }
.r-start-quote p:first-child { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--navy); }
.r-start-quote p + p { margin: 0; font-size: 1.02rem; color: #3d5a6e; }
.r-guide ol { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.r-guide li { transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.r-guide li:nth-child(2) { transition-delay: .08s; } .r-guide li:nth-child(3) { transition-delay: .16s; } .r-guide li:nth-child(4) { transition-delay: .24s; }
.js-motion .r-guide ol:not(.in) li { opacity: 0; transform: translateY(16px); }
.r-guide a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .15rem; align-items: center; padding: 1rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--stone); color: var(--navy); text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.r-guide .n { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .08em; transition: background .3s; }
.r-guide strong { grid-column: 2; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.r-guide .d { grid-column: 2; font-size: .95rem; line-height: 1.5; color: #3d5a6e; }
.r-guide svg { grid-column: 3; grid-row: 1 / 3; width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.r-guide a:hover, .r-guide a:focus-visible { color: var(--navy); transform: translateX(4px); border-color: rgba(224,102,33,.5); box-shadow: 0 14px 30px rgba(11,46,69,.1); }
.r-guide a:hover .n, .r-guide a:focus-visible .n { background: var(--orange); }
.r-guide a:hover svg, .r-guide a:focus-visible svg { transform: translateX(3px); }
@media (max-width: 900px) { .r-start-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .r-guide a, .r-guide svg, .p-why .p-ways a { transition: none; } .r-guide a:hover, .r-guide a:focus-visible, .p-why .p-ways a:hover, .p-why .p-ways a:focus-visible { transform: none; } }

/* Respond safely: intro + callout beside the scroll-drawn step line */
.r-respond { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.r-respond-side { position: sticky; top: calc(120px + var(--snh)); }
.r-respond-side p { color: #2a4a60; }
.r-callout { margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: 18px; color: #fff; background: radial-gradient(360px 200px at 0% 100%, rgba(224,102,33,.28), transparent 70%), var(--navy); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-motion .r-callout:not(.in) { opacity: 0; transform: translateY(14px); }
.r-callout .who { display: block; margin-bottom: .35rem; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; }
.r-callout p { margin: 0; color: #dbe5ee; }
.r-steps { margin: .4rem 0 0; }
.r-steps li { padding-bottom: 1.9rem; }
.r-steps p { font-size: 1.05rem; }
.r-steps strong { display: block; margin-bottom: .2rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
@media (max-width: 900px) { .r-respond { grid-template-columns: 1fr; } .r-respond-side { position: static; } }

/* Myth / fact flip cards: hover turns them on desktop; a tap (or Enter/Space) toggles them everywhere.
   Without JS (no .live, set by pages.js) each card is split in half instead: the myth on top, the fact below it.
   Hover is read from the <li>, which never rotates: hovering the turning button itself made it lose the pointer when it
   went edge-on mid-turn and flip back and forth (the jitter). */
.r-flips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.r-flips li { display: grid; perspective: 1200px; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.r-flips li:nth-child(2) { transition-delay: .06s; } .r-flips li:nth-child(3) { transition-delay: .12s; } .r-flips li:nth-child(4) { transition-delay: .18s; } .r-flips li:nth-child(5) { transition-delay: .24s; } .r-flips li:nth-child(6) { transition-delay: .3s; } .r-flips li:nth-child(7) { transition-delay: .36s; } .r-flips li:nth-child(8) { transition-delay: .42s; }
.js-motion .r-flips:not(.in) li { opacity: 0; transform: translateY(18px); }
.flip { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; -webkit-tap-highlight-color: transparent; }
.flip .face { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.3rem; border-radius: 20px; }
.flip .front { background: #fff; border: 1px solid var(--stone); box-shadow: 0 10px 26px rgba(11,46,69,.07); }
.flip .back { color: #fff; background: radial-gradient(260px 160px at 100% 100%, rgba(224,102,33,.35), transparent 70%), var(--navy); }
/* no JS: the two halves join into one card, the fact filling the rest of the row's height */
.r-flips:not(.live) .flip { cursor: default; }
.r-flips:not(.live) .front { border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: none; }
.r-flips:not(.live) .back { flex: 1; border-radius: 0 0 20px 20px; }
.r-flips:not(.live) .hint { display: none; }
/* JS: the two faces stack in one cell and the card turns over */
.r-flips.live .flip { display: grid; min-height: 230px; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.r-flips.live .face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.r-flips.live .back { transform: rotateY(180deg); }
.flip .tag { align-self: flex-start; padding: .25rem .65rem; border-radius: 999px; font-weight: 900; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(11,46,69,.08); color: var(--steel); }
.flip .back .tag { background: var(--orange); color: #fff; }
.flip .front strong { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1.3; color: var(--navy); }
.flip .back > span:last-child { font-size: 1rem; line-height: 1.5; }
.flip .hint { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 900; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.flip .hint::after { content: '↻'; font-size: 1rem; transition: transform .4s ease; }
.r-flips.live .flip[aria-pressed='true'] { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .r-flips.live li:hover .flip { transform: rotateY(180deg); }
  .r-flips.live li:hover .hint::after { transform: rotate(180deg); }
}
.flip:focus-visible { outline-offset: 4px; }
/* without 3D support, fall back to the split card */
@supports not (backface-visibility: hidden) { .r-flips.live .flip { display: flex; transform: none !important; } .r-flips.live .back { transform: none; flex: 1; } }
@media (max-width: 1000px) { .r-flips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .r-flips { grid-template-columns: 1fr; } .r-flips.live .flip { min-height: 190px; } }
.r-source { margin-top: 1.6rem; text-align: center; font-size: .92rem; color: var(--steel); }

/* Downloads library: covers sit slightly tilted like books and straighten and lift on hover. */
.r-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); margin: 0; padding: 0; list-style: none; }
.r-library > li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.6rem; align-items: center; padding: 1.6rem; border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(11,46,69,.1); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.r-library > li + li { transition-delay: .15s; }
.js-motion .r-library:not(.in) > li { opacity: 0; transform: translateY(20px); }
.r-library h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.r-library p { color: #2a4a60; }
.r-cover { display: block; perspective: 900px; }
.r-cover img { width: 100%; height: auto; border-radius: 6px 12px 12px 6px; box-shadow: -6px 10px 0 -2px rgba(11,46,69,.12), 0 18px 34px rgba(11,46,69,.25); transform: rotateY(14deg) rotateZ(-2deg); transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease; }
.r-library > li:hover .r-cover img { transform: rotateY(0) rotateZ(0) translateY(-6px); box-shadow: 0 26px 44px rgba(11,46,69,.3); }
@media (max-width: 960px) { .r-library { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .r-library > li { grid-template-columns: 1fr; } .r-cover { max-width: 220px; margin: 0 auto; } }

/* Reading shelf: covers in the brand colours with a spine edge; they rise in one after another and lift on hover. */
.r-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.r-shelf li { --c: var(--navy); --t: #fff; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; aspect-ratio: 2 / 3; padding: 1.1rem .95rem 1rem 1.2rem; border-radius: 4px 12px 12px 4px; background: var(--c); color: var(--t); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 12px 24px rgba(11,46,69,.16); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.r-shelf li::after { content: ''; position: absolute; left: 1.2rem; right: .95rem; bottom: 3.1rem; height: .45rem; border: 2px solid currentColor; border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .5; }
.r-shelf li:nth-child(4n+2) { --c: var(--orange); }
.r-shelf li:nth-child(4n+3) { --c: var(--steel); }
.r-shelf li:nth-child(4n+4) { --c: var(--cream); --t: var(--navy); box-shadow: inset 6px 0 0 rgba(0,0,0,.08), 0 12px 24px rgba(11,46,69,.14); border: 1px solid var(--stone); }
.r-shelf em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: .98rem; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.r-shelf span { font-weight: 700; font-size: .78rem; line-height: 1.3; opacity: .85; }
.r-shelf li:nth-child(n) { transition-delay: calc(var(--i, 0) * 50ms), calc(var(--i, 0) * 50ms), 0s; }
.js-motion .r-shelf:not(.in) li { opacity: 0; transform: translateY(20px); }
@media (hover: hover) and (pointer: fine) { .r-shelf li:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 22px 36px rgba(11,46,69,.25); transition-delay: 0s; } }
@media (max-width: 1100px) { .r-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .r-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Closing quote: the measure is set on the <p> so `ch` uses the quote's own large size (on the blockquote it used the small
   body size and squeezed the quote to a word per line); balance evens out the line lengths. */
.r-quote { margin: 0 auto; }
.r-quote p { max-width: 34ch; margin: 0 auto; text-wrap: balance; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.25; color: #fff; text-transform: uppercase; }
.r-quote em { font-style: normal; color: var(--orange); }
.closing .lead em { font-style: italic; }

/* ===== Shop + product page ===== Builds on the base shop rules above (shop.js markup is unchanged). */
.s-hero { min-height: min(calc(100vh - 78px), 620px); min-height: min(calc(100svh - 78px), 620px); }
.s-shop { padding-top: clamp(2.5rem, 5vw, 4rem); }
/* category tabs */
.shop-tabs { justify-content: center; gap: .5rem; margin-bottom: 2.4rem; }
.shop-tabs button { padding: .6rem 1.2rem; font-weight: 900; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border-color: var(--stone); background: #fff; transition: background .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.shop-tabs button[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(11,46,69,.2); }
@media (hover: hover) and (pointer: fine) { .shop-tabs button:not([aria-pressed='true']):hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); } }
/* product cards: arch-topped image inside the card, lift and a "View" pill on hover */
.products { gap: clamp(1rem, 2vw, 1.6rem); }
.product { padding: .7rem; border-radius: 22px; border: 1px solid var(--stone); box-shadow: 0 10px 26px rgba(11,46,69,.06); }
.product .img { overflow: hidden; border-radius: 999px 999px 14px 14px; }
.product .img img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.product .info { position: relative; padding: .9rem .5rem .5rem; }
.product h3 { font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-transform: uppercase; line-height: 1.2; }
.product .price { color: var(--orange); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.product .info::after { content: 'View \2192'; position: absolute; right: .5rem; bottom: .55rem; padding: .3rem .7rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 900; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1); }
.badge { top: 1rem; left: 50%; transform: translateX(-50%); }
.js-motion .products .product.in { transition: opacity .7s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
@media (hover: hover) and (pointer: fine) {
  .product:hover, .js-motion .products .product.in:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11,46,69,.14); }
  .product:hover .img img { transform: scale(1.06); }
  .product:hover .info::after { opacity: 1; transform: none; }
}
.skeleton { border-radius: 999px 999px 18px 18px; }
/* wholesale card under the grid */
.s-wholesale { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.4rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.3rem 1.6rem; border-radius: 22px; color: #fff; background: radial-gradient(420px 200px at 0% 100%, rgba(224,102,33,.3), transparent 70%), var(--navy); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-motion .s-wholesale:not(.in) { opacity: 0; transform: translateY(16px); }
.s-wholesale .tile-ico { position: static; background: var(--orange); border-color: var(--orange); }
.s-wholesale p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.s-wholesale .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.s-wholesale:hover .ico-tag .tag { animation: tile-swing 1.1s ease-out both; }
/* product page */
.s-pdp { padding-top: clamp(2.5rem, 5vw, 4rem); }
.s-pdp .pdp .main-img { border-radius: 999px 999px 24px 24px; box-shadow: 0 24px 50px rgba(11,46,69,.18); animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.s-pdp .thumbs button { border-radius: 999px 999px 8px 8px; transition: border-color .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
.s-pdp .thumbs button:hover { transform: translateY(-3px); }
.s-pdp .pdp > div:last-child { animation: rise .8s cubic-bezier(.2,.7,.2,1) .12s both; }
.s-pdp .pdp h1 { text-transform: uppercase; }
.s-pdp .pdp .price { color: var(--orange); font-family: var(--font-display); font-weight: 800; }
.s-pdp .pdp .eyebrow { text-decoration: none; }
.s-pdp .opt .vals button { border-radius: 999px; transition: border-color .25s, background .25s, color .25s; }
.s-pdp .pdp [data-add] { min-width: 220px; padding: 1.05rem 2rem; font-size: .95rem; }
.s-pdp .pdp .notice { border-left: 0; border-radius: 18px; color: #dbe5ee; background: radial-gradient(320px 160px at 100% 100%, rgba(224,102,33,.3), transparent 70%), var(--navy); }

/* ===== Four E's layout =====
   Segmented selector centred above; the diagram (no card) as the centrepiece on the left with the tour button and hint
   beneath it; the description card beside it, centred against both so the two columns balance.
   .venn-side uses display: contents so its three parts can be placed on the .venn grid directly. */
.venn { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tabs tabs" "stage panel" "foot panel"; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.4rem; align-items: center; }
.venn-side { display: contents; }
.venn-stage { grid-area: stage; max-width: 540px; padding: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.venn .bridge-tabs { grid-area: tabs; justify-self: center; display: flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; margin: 0 0 .6rem; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid rgba(11,46,69,.1); box-shadow: 0 6px 18px rgba(11,46,69,.06); overflow-x: auto; scrollbar-width: none; }
.venn .bridge-tabs::-webkit-scrollbar { display: none; }
.venn .bridge-tabs button { flex: none; min-height: 42px; padding: .45rem 1.15rem; border: 0; font-size: .92rem; white-space: nowrap; }
.venn .bridge-tabs button[aria-pressed='true'] { box-shadow: 0 6px 14px rgba(11,46,69,.2); }
.venn .bridge-panel { grid-area: panel; align-self: center; }
.bridge-panel { border-radius: 22px; border-color: rgba(11,46,69,.08); box-shadow: 0 20px 50px rgba(11,46,69,.09); }
.venn .bridge-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem; margin: 0; }
.bridge-foot .venn-hint { position: static; transform: none; font-size: .72rem; }
@media (max-width: 880px) {
  .venn { grid-template-columns: 1fr; grid-template-areas: "stage" "tabs" "panel" "foot"; }
  .venn-stage { max-width: 440px; }
  .venn .bridge-tabs { justify-self: stretch; margin: 0; }
  .venn .bridge-tabs button { flex: 1 0 auto; }
}
/* small phones: the five choices wrap into a tidy centred group instead of a clipped scrolling row */
@media (max-width: 560px) { .venn-stage { padding: 0; } .venn .bridge-tabs { flex-wrap: wrap; justify-content: center; border-radius: 24px; overflow: visible; } .venn .bridge-tabs button { flex: 0 1 auto; padding: .45rem .9rem; font-size: .88rem; } }

/* ===== Mission: refined, editorial finish =====
   The shared typographic rules (balanced eyebrows, sentence-case H1/H2, body leading, statement, arch, vision card) apply to
   every page listed in :is(); the values/stats rules further down are still Mission-only. Add a page here to roll it out.
   Home shares only the balanced eyebrows (its headings keep their own type). */
:is([data-page='home'], [data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main .eyebrow { display: inline-flex; align-items: center; gap: .7rem; letter-spacing: .22em; }
:is([data-page='home'], [data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main .eyebrow::before, :is([data-page='home'], [data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main .eyebrow::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) .m-hero h1 { text-transform: none; letter-spacing: -.025em; font-weight: 800; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main h2 { text-transform: none; letter-spacing: -.02em; }
/* small phones: shorter side lines so long labels (UNDERSTANDING THE ISSUE) stay on one line */
@media (max-width: 420px) { :is([data-page='home'], [data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main .eyebrow { gap: .5rem; letter-spacing: .16em; } :is([data-page='home'], [data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main .eyebrow::before, :is([data-page='home'], [data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main .eyebrow::after { width: 14px; } }
[data-page='equip'] .e-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
[data-page='partner'] :is(.e-head, .p-church, .p-wholesale-copy) h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
/* Phones: the long network eyebrow drops "B4J" and centred heads use the full container width, so labels stay on one line between their lines. */
@media (max-width: 420px) { :is([data-page='partner'], [data-page='resources']) .p-sm-hide { display: none; } [data-page='partner'] .container > .narrow.e-head { width: 100%; } }
[data-page='equip'] .closing h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
[data-page='mission'] .m-head h2, [data-page='mission'] .m-values-head h2, [data-page='mission'] .m-story h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
[data-page='mission'] .closing h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main p { line-height: 1.75; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) .m-body, [data-page='mission'] .m-values-head p, [data-page='mission'] .m-timeline p { color: #3d5a6e; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) .m-statement { font-weight: 700; letter-spacing: -.02em; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) .m-arch { width: 48px; height: 22px; border-width: 2px; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) .m-vision-card { box-shadow: 0 30px 70px rgba(11,46,69,.18); }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) .m-vision-card blockquote p { font-weight: 700; letter-spacing: -.01em; }
[data-page='mission'] .m-motto { font-weight: 800; font-size: clamp(1rem, 2.1vw, 1.45rem); letter-spacing: .08em; }
[data-page='mission'] .m-motto span::after { border-width: .06em; }
[data-page='mission'] .m-es { background: linear-gradient(180deg, #eef3f7 0%, #e2eaf1 100%); }
/* values: an editorial list divided by hairlines; the value in focus gets an orange rule along its top */
[data-page='mission'] .m-values-list { gap: 0; }
[data-page='mission'] .m-values-list li { position: relative; padding: 1.6rem .3rem; background: transparent; border: 0; border-top: 1px solid rgba(11,46,69,.12); border-radius: 0; box-shadow: none; }
[data-page='mission'] .m-values-list li:last-child { border-bottom: 1px solid rgba(11,46,69,.12); }
@media (min-width: 901px) { [data-page='mission'] .m-values-list li:nth-child(4) { border-bottom: 1px solid rgba(11,46,69,.12); } }
[data-page='mission'] .m-values-list li::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
[data-page='mission'] .m-values-list .n { font-family: var(--font-body); font-weight: 900; font-size: .8rem; letter-spacing: .18em; }
[data-page='mission'] .m-values-list p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; letter-spacing: -.01em; }
[data-page='mission'] .m-values.live .m-values-list li { opacity: .3; transform: none; }
[data-page='mission'] .m-values.live .m-values-list li.on { opacity: 1; box-shadow: none; border-color: rgba(11,46,69,.12); }
[data-page='mission'] .m-values.live .m-values-list li.on::before { transform: scaleX(1); }
[data-page='mission'] .m-count path { stroke-width: 4; }
[data-page='mission'] .m-count .cur { font-weight: 800; }
/* story: hairline-separated stats instead of boxes */
[data-page='mission'] .m-counts { gap: 0; }
[data-page='mission'] .m-counts > div { padding: .3rem 1.3rem; background: transparent; border: 0; border-left: 1px solid rgba(11,46,69,.15); border-radius: 0; }
[data-page='mission'] .m-counts > div:first-child { padding-left: 0; border-left: 0; }
[data-page='mission'] .m-story-photo { box-shadow: 0 30px 60px rgba(11,46,69,.18); }
@media (max-width: 900px) { [data-page='mission'] .m-values.live .m-values-list li { opacity: .5; } }
/* values: two columns of four (1-4 down the left, 5-8 down the right) */
@media (min-width: 901px) {
  .m-values-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: clamp(2rem, 5vw, 4.5rem); }
}
/* Pinned: on screens tall enough to show all eight, the section holds in place while scrolling and each value lights up in
   turn (pages.js maps the scroll through the section to the eight values). Only with JS motion on (.live). */
@media (min-width: 901px) and (min-height: 700px) {
  .m-values.live[data-pin] { --hh: calc(78px + var(--snh)); padding: 0; height: calc(100vh - var(--hh) + 8 * 30vh); }
  .m-values.live[data-pin] .m-values-pin { position: sticky; top: var(--hh); height: calc(100vh - var(--hh)); display: grid; align-content: center; padding: clamp(.75rem, 2vh, 1.5rem) 0; }
  .m-values.live[data-pin] .m-values-head { margin-bottom: clamp(1.2rem, 3vh, 2.2rem); }
  .m-values.live[data-pin] .m-values-head p { margin-bottom: 0; }
  [data-page='mission'] .m-values.live[data-pin] .m-values-list li { padding: clamp(.7rem, 1.9vh, 1.4rem) .3rem; }
  [data-page='mission'] .m-values.live[data-pin] .m-values-list p { font-size: clamp(1.02rem, 1.45vw, 1.3rem); }
  /* progress bar under the values: shows how far through the held section you are, so the pause doesn't feel stuck */
  .m-values.live[data-pin] .m-values-prog { display: block; }
}
.m-values-prog { display: none; position: relative; height: 4px; margin-top: clamp(.8rem, 2vh, 1.6rem); border-radius: 4px; background: rgba(11,46,69,.1); overflow: hidden; }
.m-values-prog i { position: absolute; inset: 0; border-radius: inherit; background: var(--orange); transform: scaleX(var(--vp, 0)); transform-origin: left; }

/* Four E's, idle card ("One mission"): the text up top, then a small looping demo filling the card's open space. A pointer
   circles a mini Venn, each circle turning orange as it passes (Encourage, Equip, Empower, Engage), then settles on the
   centre, clicks, and the whole diagram lights up. 7 s loop; static (no pointer motion) with reduced motion. */
.bridge-panel .pane[data-pane='idle'] { display: flex; flex-direction: column; }
.bridge-panel .pane[data-pane='idle'] .idle { margin-bottom: 1rem; }
.venn-demo { margin: auto; padding-top: .5rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.bridge-panel .venn-demo svg { display: block; width: clamp(150px, 16vw, 220px); height: auto; overflow: visible; }
.venn-demo .dc circle { fill: var(--steel); fill-opacity: .12; stroke: #5b7ea0; stroke-width: 2; }
.venn-demo .dlens { fill: var(--navy); }
.venn-demo .dlogo { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.venn-demo .dorbit { transform-box: view-box; transform-origin: 100px 100px; }
.venn-demo .drad { transform: translate(100px, 100px); }
.venn-demo .dup { transform-box: fill-box; transform-origin: 0 0; }
.venn-demo .dptr { fill: var(--navy); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: 0 0; }
.venn-demo .dclick { transform-box: fill-box; transform-origin: center; fill: none; stroke: var(--orange); stroke-width: 2; opacity: 0; }
.venn-demo figcaption { font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.venn-demo em { font-style: normal; }
.venn-demo .dc circle:nth-child(1) { animation: vd-c0 7s linear infinite; }
.venn-demo .dc circle:nth-child(2) { animation: vd-c1 7s linear infinite; }
.venn-demo .dc circle:nth-child(3) { animation: vd-c2 7s linear infinite; }
.venn-demo .dc circle:nth-child(4) { animation: vd-c3 7s linear infinite; }
.venn-demo .dlens { animation: vd-lens 7s linear infinite; }
.venn-demo .dlogo { animation: vd-logo 7s cubic-bezier(.3,1.5,.5,1) infinite; }
.venn-demo .dorbit { animation: vd-orbit 7s linear infinite; }
.venn-demo .drad { animation: vd-rad 7s linear infinite; }
.venn-demo .dup { animation: vd-up 7s linear infinite; }
.venn-demo .dptr { animation: vd-press 7s ease infinite; }
.venn-demo .dclick { animation: vd-click 7s ease-out infinite; }
/* pointer: a true circle. .dorbit spins about the centre, .drad holds the pointer 55 out (then draws it in to the centre),
   .dup counter-spins so the pointer stays upright. One lap at constant speed, a short spiral in, a rest, then it fades. */
@keyframes vd-orbit { 0% { transform: rotate(-50deg); opacity: 0; } 4% { opacity: 1; } 40% { transform: rotate(360deg); animation-timing-function: cubic-bezier(.2,.6,.35,1); } 50%, 100% { transform: rotate(430deg); } 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes vd-rad { 0%, 40% { transform: translate(100px, 45px); animation-timing-function: cubic-bezier(.2,.6,.35,1); } 50%, 100% { transform: translate(100px, 100px); } }
@keyframes vd-up { 0% { transform: rotate(50deg); } 40% { transform: rotate(-360deg); animation-timing-function: cubic-bezier(.2,.6,.35,1); } 50%, 100% { transform: rotate(-430deg); } }
@keyframes vd-press { 0%, 50%, 54%, 100% { transform: scale(1); } 52% { transform: scale(.82); } }
@keyframes vd-click { 0%, 51% { transform: scale(.15); opacity: 0; } 52% { transform: scale(.15); opacity: .9; } 62%, 100% { transform: scale(1); opacity: 0; } }
@keyframes vd-c0 { 0%, 1%, 9%, 51%, 92%, 100% { fill: var(--steel); fill-opacity: .12; stroke: #5b7ea0; } 3%, 7%, 54%, 88% { fill: var(--orange); fill-opacity: .26; stroke: var(--orange); } }
@keyframes vd-c1 { 0%, 10%, 18%, 51%, 92%, 100% { fill: var(--steel); fill-opacity: .12; stroke: #5b7ea0; } 12%, 16%, 54%, 88% { fill: var(--orange); fill-opacity: .26; stroke: var(--orange); } }
@keyframes vd-c2 { 0%, 19%, 27%, 51%, 92%, 100% { fill: var(--steel); fill-opacity: .12; stroke: #5b7ea0; } 21%, 25%, 54%, 88% { fill: var(--orange); fill-opacity: .26; stroke: var(--orange); } }
@keyframes vd-c3 { 0%, 28%, 36%, 51%, 92%, 100% { fill: var(--steel); fill-opacity: .12; stroke: #5b7ea0; } 30%, 34%, 54%, 88% { fill: var(--orange); fill-opacity: .26; stroke: var(--orange); } }
@keyframes vd-lens { 0%, 51%, 92%, 100% { fill: var(--navy); } 54%, 88% { fill: #0f4263; } }
@keyframes vd-logo { 0%, 51%, 92%, 100% { transform: scale(1); } 56%, 88% { transform: scale(1.18); } }
/* Slideshow controls: the Home hero's round buttons, in a light version. */
.venn-ctrls { display: flex; gap: .6rem; }
.venn .ctrl { width: 44px; height: 44px; border-color: rgba(11,46,69,.22); background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(11,46,69,.07); }
@media (hover: hover) and (pointer: fine) { .venn .ctrl:hover { background: var(--navy); border-color: var(--navy); color: #fff; } }
.venn:not(.playing) .ctrl .i-play { display: block; }
.venn:not(.playing) .ctrl .i-pause { display: none; }
/* Progress line along the bottom of the card while playing; it holds while the reader is on the card. */
.venn-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.venn-prog.run { opacity: 1; animation: reel-bar var(--dwell, 11s) linear forwards; }
.venn.held .venn-prog.run { animation-play-state: paused; }

/* Scroll-linked page colour (pages.js): sections with data-bg go transparent and <main> carries the blended colour. */
main.flow-on > [data-bg] { background: transparent; }

/* ===== Section transitions =====
   Two levels, so the page reads smooth but clearly divided:
   1. Every section after the overview opens with a centred head (— EYEBROW — over the H2, Equip's "Who we equip" pattern).
      Its side lines grow out from the label as the head arrives. Split sections hang the head across their grid (.span-head).
   2. Once per page, after the overview, the ink divider (ink.js): a navy line draws in from both page edges and ink spreads
      through a small solid bridge where the halves meet. */
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main :is(.e-head, .m-head, .m-values-head) > .eyebrow::before { transform-origin: right; transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; }
:is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main :is(.e-head, .m-head, .m-values-head) > .eyebrow::after { transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; }
.js-motion :is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main :is(.e-head, .m-head, .m-values-head):not(.in) > .eyebrow::before,
.js-motion :is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main :is(.e-head, .m-head, .m-values-head):not(.in) > .eyebrow::after { transform: scaleX(0); }
/* longer side lines on centred section heads, so they read as dividers (phones keep the short 14px lines) */
@media (min-width: 421px) { :is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main :is(.e-head, .m-head, .m-values-head) > .eyebrow::before, :is([data-page='mission'], [data-page='equip'], [data-page='partner'], [data-page='resources']) main :is(.e-head, .m-head, .m-values-head) > .eyebrow::after { width: 44px; } }
/* a section head that spans a two-column grid (Mission story, Partner pray + church, Resources respond safely) */
.span-head { grid-column: 1 / -1; margin-bottom: 0; }
:is(.m-story-grid, .p-pray-grid, .p-church-grid, .r-respond):has(> .span-head) { row-gap: clamp(2rem, 4vw, 3rem); }
.span-head h2 { margin-bottom: 0; }
[data-page='resources'] .span-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.r-respond .span-head + .r-respond-side { top: 140px; }
/* a label-only head (Resources downloads) sits a little closer to its cards */
.e-head:has(> .eyebrow:only-child) { margin-bottom: 1.6rem; }
.e-head > .eyebrow:only-child { margin-bottom: 0; }

/* Ink divider. Full-bleed: the lines run from the page edges to the bridge's two tips, which sit 8.9% of the mark's width
   below its top (tip y 552 in the 405-880 viewBox). --ink-a (0-1) is how far the lines have drawn. */
.ink-div { --ink-w: clamp(84px, 9vw, 124px); --ink-t: 2px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--ink-w) minmax(0, 1fr); align-items: start; width: 100%; color: var(--navy); pointer-events: none; }
.ink-line { height: var(--ink-t); margin-top: calc(var(--ink-w) * .0889 - var(--ink-t) / 2); background: currentColor; }
.ink-line.l { margin-right: -1px; clip-path: inset(0 calc((1 - var(--ink-a, 1)) * 100%) 0 0); }
.ink-line.r { margin-left: -1px; clip-path: inset(0 0 0 calc((1 - var(--ink-a, 1)) * 100%)); }
.ink-mark { display: block; width: 100%; height: auto; overflow: visible; }
.ink-fill { fill: currentColor; }
.ink-div.done .ink-fill { mask: none; } /* finished: drop the wet-edge mask so the bridge is crisp */
/* Without JS: a plain hairline in the container width. */
.ink-div:not(.built) { display: block; width: min(100% - 2.5rem, var(--max)); height: 1px; margin-inline: auto; background: rgba(11,46,69,.2); }
/* Pull the neighbouring sections in so the divider sits in one gap, not two full section paddings. */
.section:has(+ .ink-div) { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ink-div + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Vision pane of the slideshow: each time it opens, the navy outline draws out both ways from the top centre and meets at the
   bottom centre, fills in navy, then the three orange heads pop up. Leaving the pane resets it instantly so it replays. */
.bridge-panel .m-vdraw { display: block; width: clamp(200px, 72%, 360px); height: auto; margin: 1.8rem auto .4rem; overflow: visible; }
.m-vdraw .edge { fill: none; stroke: var(--navy); stroke-width: 16; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) .3s; }
.m-vdraw .fill { fill: var(--navy); transition: opacity .5s ease 1.6s; }
.m-vdraw .heads circle { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 50%; transition: transform .6s cubic-bezier(.3,1.5,.5,1) 1.95s; }
.m-vdraw .heads circle:nth-child(2) { transition-delay: 2.1s; }
.m-vdraw .heads circle:nth-child(3) { transition-delay: 2.25s; }
.js-motion .pane:not(.active) .m-vdraw * { transition: none; }
.js-motion .pane:not(.active) .m-vdraw .edge { stroke-dashoffset: 1.002; }
.js-motion .pane:not(.active) .m-vdraw .fill { opacity: 0; }
.js-motion .pane:not(.active) .m-vdraw .heads circle { transform: scale(0); }
@media (max-width: 420px) { [data-page='mission'] .m-counts > div { padding: .3rem .7rem; } }

@media (prefers-reduced-motion: reduce) {
  .venn.pre .vc .ring { stroke-dashoffset: 0; } .venn.pre .vc .fill, .venn.pre .lens, .venn.pre .logo, .venn.pre .vl { opacity: 1; }
  .js-motion [data-reveal] { opacity: 1 !important; transform: none !important; } * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Intro loader (assets/js/loader.js) ---------- */
/* Scroll is locked with the scrollbar gutter reserved, so the page never shifts width when the loader leaves.
   Page animations are held until the sheet starts to lift, so the hero plays as it is revealed. */
html.ld-lock { overflow: hidden; scrollbar-gutter: stable; }
html.is-loading body *, html.is-loading body *::before, html.is-loading body *::after { animation-play-state: paused !important; }
.loader { --ld-edge: clamp(40px, 7vw, 90px); position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--navy); color: #fff; backface-visibility: hidden; transform: translate3d(0, 0, 0); transition: transform 1s cubic-bezier(.76,0,.24,1) .3s; will-change: transform; }
.loader.out { transform: translate3d(0, calc(-100% - var(--ld-edge) - 2px), 0); }
.ld-edge { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: var(--ld-edge); fill: var(--navy); display: block; }
.ld-in { display: grid; justify-items: center; gap: 1.5rem; transition: opacity .3s ease, transform .5s cubic-bezier(.4,0,.2,1); }
.loader.out .ld-in { opacity: 0; transform: translate3d(0, -12px, 0); }
.ld-mark { width: min(270px, 58vw); overflow: visible; }
.ld-outline { fill: none; stroke: #fff; stroke-width: 9; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1.002; }
.ld-fill { fill: #fff; opacity: 0; }
.ld-heads circle { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.ld-word { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 4vw, 1.8rem); letter-spacing: .02em; opacity: 0; transform: translateY(8px); }
/* The sequence plays whenever .run is on the loader. loader.js removes and re-adds it to replay the sequence while the page is still loading. */
.loader.run .ld-outline { animation: ld-draw 1.15s cubic-bezier(.65,0,.35,1) .15s forwards; }
.loader.run .ld-fill { animation: ld-fade .6s ease 1s forwards; }
.loader.run .ld-heads circle { animation: ld-pop .6s cubic-bezier(.3,1.5,.5,1) forwards; }
.loader.run .ld-heads circle:nth-child(1) { animation-delay: .6s; }
.loader.run .ld-heads circle:nth-child(2) { animation-delay: .75s; }
.loader.run .ld-heads circle:nth-child(3) { animation-delay: .9s; }
.loader.run .ld-word { animation: ld-up .6s ease 1.3s forwards; }
.loader.run .ld-bar i { animation: ld-bar 2.1s cubic-bezier(.5,0,.2,1) .1s forwards; }
.loader.ld-reset .ld-in { opacity: 0; transition-duration: .25s; }
.ld-word b { color: var(--orange); }
.ld-bar { width: min(180px, 44vw); height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fade { to { opacity: 1; } }
@keyframes ld-pop { to { transform: scale(1); } }
@keyframes ld-up { to { opacity: 1; transform: none; } }
@keyframes ld-bar { to { transform: scaleX(1); } }

/* ---------- Cart extras: promo code, checkout hand-off ---------- */
.drawer .promo { display: flex; gap: .5rem; margin-bottom: .9rem; }
.drawer .promo input { flex: 1; min-width: 0; padding: .65rem .9rem; border: 1px solid var(--stone); border-radius: 999px; font: inherit; font-size: .9rem; }
.drawer .promo button { border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 900; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.drawer .promo-msg { font-size: .82rem; margin: -.4rem 0 .8rem; color: var(--steel); }
.drawer .promo-msg.err { color: #b3261e; }
.drawer .disc { display: flex; justify-content: space-between; font-size: .95rem; color: var(--orange); font-weight: 700; margin-bottom: .3rem; }
.handoff { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 1.2rem; background: var(--navy); color: #fff; text-align: center; opacity: 0; transition: opacity .35s; }
.handoff.show { opacity: 1; }
.handoff svg { width: 110px; }
.handoff p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.handoff .ld-bar i { animation: ld-bar 1.4s cubic-bezier(.5,0,.2,1) forwards; }
