/* CORE homepage concepts — shared tokens and parts. Palette from the Foundational Concept PDF. */
:root {
  --navy: #16325c; --navy-deep: #0f2340; --steel: #245086; --blue: #34669f; --sky: #4fc3f7; --sky-soft: #e6f5fd;
  --teal: #1c7c8c; --teal-dark: #155e69; --teal-bg: #eef6f7; --teal-line: #cfe3e7;
  --ink: #1d2733; --slate: #4a5a70; --muted: #6b747c; --line: #d9e0e8; --line-soft: #e8ecf1; --row: #f7f9fb; --paper: #fff;
  --display: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body { font: 16px/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.eyebrow { font: 700 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.display { font-family: var(--display); font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.04; }
.lead { font-size: 19px; color: var(--slate); max-width: 560px; }
.grad { background: linear-gradient(100deg, var(--steel), var(--teal) 55%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation — Ministry stripe, seal lockup, utility pills */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(217,224,232,.6); transition: box-shadow .3s, background .3s; }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy) 0%, var(--steel) 40%, var(--teal) 75%, var(--sky) 100%); }
.nav.scrolled { box-shadow: 0 10px 34px rgba(22,50,92,.08); background: rgba(255,255,255,.92); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 84px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand .ring { width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--navy), var(--teal), var(--sky), var(--navy));
  box-shadow: 0 8px 22px rgba(22,50,92,.18); flex: none; transition: transform .6s var(--ease); }
.brand:hover .ring { transform: rotate(-8deg) scale(1.04); }
.brand .ring img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; background: #fff; }
.brand .wm { font: 800 26px/1 var(--display); letter-spacing: .14em; color: var(--navy); }
.brand .bar { width: 1px; height: 36px; background: linear-gradient(var(--line-soft), var(--line), var(--line-soft)); }
.brand .org b { display: block; font: 700 14px/1.2 var(--display); color: var(--navy); letter-spacing: .02em; }
.brand .org small { display: block; font: 500 12.5px/1.3 var(--display); color: var(--teal); letter-spacing: .02em; }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-r .pill { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.7); font: 600 13px var(--display); color: var(--slate); transition: border-color .25s, color .25s, box-shadow .25s; }
.nav-r .pill svg { width: 17px; height: 17px; color: var(--teal); }
.nav-r a.pill:hover { border-color: var(--teal-line); color: var(--navy); box-shadow: 0 6px 16px rgba(22,50,92,.08); }
.nav-r .clock time { font-variant-numeric: tabular-nums; color: var(--navy); }
.nav-r .ibtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-soft); background: rgba(255,255,255,.7); color: var(--navy); transition: all .25s; }
.nav-r .ibtn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-r .ibtn svg { width: 19px; height: 19px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); padding: 15px 24px; border-radius: 12px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); transition: transform .25s var(--ease), box-shadow .25s, background .25s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,50,92,.22); background: var(--steel); }
.btn svg.i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.i { transform: translateX(3px); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); box-shadow: 0 10px 24px rgba(22,50,92,.10); }
.btn.teal { background: var(--teal); border-color: var(--teal); }
.btn.teal:hover { background: var(--teal-dark); }
.btn.sm { padding: 11px 18px; font-size: 14px; border-radius: 10px; }
.vendor-link { font-size: 14px; color: var(--slate); }
.vendor-link a { color: var(--teal); font-weight: 600; border-bottom: 1px solid var(--teal-line); }

/* Reveal on scroll (only when JS runs; everything is visible without it) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Slim footer */
.foot { border-top: 1px solid var(--line-soft); padding: 20px 0; color: var(--muted); font-size: 12.5px; background: #fff; }
.foot .slim { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .fl { display: flex; gap: 18px; }
.foot a:hover { color: var(--navy); }

/* Staff pass sign-in: a two-sided Ministry ID card on a lanyard */
.pass-hang { position: relative; width: min(440px, 100%); margin-top: 26px; transform-origin: 50% -26px; animation: swing 2.6s var(--ease) both; animation-delay: var(--pd, .4s); }
@keyframes swing { 0% { transform: translateY(-40px) rotate(-7deg); opacity: 0; } 25% { opacity: 1; } 45% { transform: rotate(4deg); } 65% { transform: rotate(-2deg); } 82% { transform: rotate(.8deg); } 100% { transform: none; } }
.pass-hang::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 16px); width: 22px; height: 100vh; margin-left: -11px; z-index: -1;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 2px, transparent 2px 6px), linear-gradient(90deg, var(--navy) 0 34%, var(--teal) 34% 66%, var(--navy) 66%);
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,35,64,.15), 6px 0 16px rgba(22,50,92,.12); }
.pass-hang::after { content: ""; position: absolute; left: 50%; top: -24px; width: 34px; height: 30px; margin-left: -17px; border-radius: 9px 9px 7px 7px;
  background: linear-gradient(180deg, #f4f7fa, #c9d3dd 55%, #e9eef3); border: 1px solid #b9c5d1; box-shadow: 0 4px 10px rgba(22,50,92,.2), inset 0 1px 0 #fff; }
.pass-card { position: relative; }
.pass-flip { display: grid; }
.pass.turning .pass-flip { animation: turn .7s cubic-bezier(.65, 0, .35, 1); }
@keyframes turn { 50% { transform: scaleX(.02); filter: brightness(.96); } }
.pass.flipped .face.front, .face.back { visibility: hidden; }
.pass.flipped .face.back { visibility: visible; }
.face { grid-area: 1 / 1; position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbfd 55%, #eef6f9 100%); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,50,92,.07), 0 60px 110px -30px rgba(22,50,92,.35), 0 18px 36px -18px rgba(22,50,92,.25);
  padding: 22px 26px 0; display: grid; gap: 14px; align-content: start; }
.face .slot { position: absolute; left: 50%; top: 12px; width: 64px; height: 9px; margin-left: -32px; border-radius: 9px; background: #e6edf3; box-shadow: inset 0 1px 3px rgba(15,35,64,.25); }
.face .guil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.face .guil path { fill: none; stroke: var(--teal); stroke-width: .6; opacity: .14; }
.face .sheen { position: absolute; inset: 0; pointer-events: none; opacity: .0; transition: opacity .5s; mix-blend-mode: soft-light;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 10%), rgba(79,195,247,.9), rgba(28,124,140,.45) 30%, rgba(52,102,159,.25) 55%, transparent 70%); }
.pass-card:hover .sheen { opacity: 1; }
.face > *:not(.guil):not(.sheen):not(.slot) { position: relative; }
.p-top { display: flex; align-items: center; gap: 11px; padding-top: 14px; }
.p-top img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(22,50,92,.2); }
.p-top b { display: block; font: 700 10.5px/1.25 var(--display); letter-spacing: .2em; color: var(--navy); }
.p-top small { display: block; font: 600 10px/1.3 var(--display); letter-spacing: .2em; color: var(--teal); }
.chip { margin-left: auto; width: 44px; height: 34px; border-radius: 8px; position: relative; flex: none;
  background: linear-gradient(135deg, #e9f1f6, #c2d3df 40%, #eef4f8 60%, #b6c9d6); box-shadow: inset 0 0 0 1px rgba(22,50,92,.18), 0 2px 4px rgba(22,50,92,.12); }
.chip::before, .chip::after { content: ""; position: absolute; inset: 9px 7px; border: 1px solid rgba(22,50,92,.25); border-radius: 4px; }
.chip::after { inset: 16px 0 auto; height: 0; border-width: 1px 0 0; border-radius: 0; }
.p-title { margin-top: 6px; }
.p-title h2 { font: 700 27px/1.1 var(--display); color: var(--navy); letter-spacing: -.015em; }
.p-title p { font-size: 14px; color: var(--slate); margin-top: 5px; }
.field { position: relative; }
.field input { width: 100%; height: 60px; padding: 22px 50px 6px 50px; border-radius: 16px; border: 1px solid #d3dde7; background: rgba(255,255,255,.92);
  font: 500 16px var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.field input:hover { border-color: #b9c8d6; }
.field input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(28,124,140,.14); }
.field.bad input { border-color: #b42318; box-shadow: 0 0 0 4px rgba(180,35,24,.10); }
.field label { position: absolute; left: 50px; top: 20px; font: 500 15.5px var(--body); color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .22s var(--ease), color .22s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.74); color: var(--teal-dark); font-weight: 600; }
.field .fi { position: absolute; left: 17px; top: 19px; color: var(--steel); }
.field .fi svg { width: 21px; height: 21px; }
.field .eye { position: absolute; right: 9px; top: 10px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.field .eye:hover { background: var(--row); color: var(--navy); }
.field .eye svg { width: 20px; height: 20px; }
.p-err { min-height: 0; font-size: 13px; color: #b42318; margin-top: -6px; }
.p-err:empty { display: none; }
.p-go { position: relative; overflow: hidden; height: 58px; width: 100%; justify-content: center; border-radius: 16px; font-size: 16px; border: 0;
  background: linear-gradient(120deg, var(--navy), var(--steel) 70%, #2f6f9f); box-shadow: 0 14px 30px -10px rgba(22,50,92,.55); }
.p-go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.p-go:hover { background: linear-gradient(120deg, var(--steel), var(--blue) 70%, var(--teal)); }
.p-go:hover::after { left: 120%; }
.p-go .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.p-go.busy .spin { display: block; } .p-go.busy svg { display: none; }
.p-go.done { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); }
@keyframes spin { to { transform: rotate(360deg); } }
.p-or { display: flex; align-items: center; gap: 12px; font: 600 11px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.p-or::before, .p-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.p-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-alt a { display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 15px; border: 1px solid rgba(217,224,232,.9); background: rgba(255,255,255,.7); transition: all .3s var(--ease); }
.p-alt a:hover { border-color: var(--teal-line); background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(22,50,92,.09); }
.p-alt .ai { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--teal); background: var(--teal-bg); }
.p-alt a + a .ai { color: var(--steel); background: #e9eff7; }
.p-alt .ai svg { width: 18px; height: 18px; }
.p-alt b { display: block; font: 700 13.5px var(--display); color: var(--navy); }
.p-alt small { display: block; font-size: 11.5px; color: var(--muted); }
.who { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.8); border: 1px solid var(--line-soft); }
.who .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font: 700 17px var(--display); letter-spacing: .04em;
  background: linear-gradient(140deg, var(--navy), var(--steel) 55%, var(--teal)); box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(22,50,92,.25); }
.who b { display: block; font: 700 15px var(--display); color: var(--navy); }
.who > span:nth-child(2) { min-width: 0; flex: 1; }
.who span span { display: block; font-size: 13px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who button { margin-left: auto; border: 0; background: none; font: 600 13px var(--display); color: var(--teal); cursor: pointer; white-space: nowrap; padding: 8px; border-radius: 10px; }
.who button:hover { background: var(--teal-bg); }
.p-row { display: flex; justify-content: flex-end; font-size: 13.5px; margin-top: -4px; }
.p-row a { color: var(--teal); font-weight: 600; }
.micro { margin: 6px -26px 0; padding: 9px 0 10px; border-top: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(22,50,92,.03), rgba(28,124,140,.05), rgba(22,50,92,.03));
  overflow: hidden; white-space: nowrap; font: 600 7.5px/1 var(--display); letter-spacing: .28em; color: rgba(22,50,92,.45); text-transform: uppercase; }
.micro span { display: inline-block; animation: micro 40s linear infinite; }
@keyframes micro { to { transform: translateX(-50%); } }
.steps-dots { display: flex; gap: 6px; margin-left: auto; }
.steps-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); }
.steps-dots i.on { background: linear-gradient(90deg, var(--steel), var(--teal)); }
@media (max-width: 900px) {
  .pass-hang { margin-inline: auto; margin-top: 8px; }
  .pass-hang::before, .pass-hang::after { display: none; }
}
@media (max-width: 420px) {
  .face { padding: 20px 18px 0; border-radius: 22px; }
  .micro { margin-inline: -18px; }
  .p-alt { grid-template-columns: 1fr; }
  .p-title h2 { font-size: 24px; }
}
@media (hover: none) { .sheen { display: none; } }
.date { font: 600 13px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.page { min-height: calc(100vh - 84px - 58px); }
.greet { font: 700 clamp(34px, 3.6vw, 56px)/1.06 var(--display); color: var(--navy); letter-spacing: -.02em; }

.note { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .brand .bar, .brand .org, .nav-r .clock, .nav-r .pill span { display: none; }
  .nav-r .pill { width: 40px; padding: 0; justify-content: center; }
  .si-alt { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
