/* Starlight Hospice. Concept: night to light.
   A night sky hero stays pinned while a white sheet of content slides up over it; the footer waits underneath like the next night.
   Single deliberate light look: every color is set explicitly so it renders the same in any host theme. */
:root {
  color-scheme: light;
  --night: #0b1030;
  --night-2: #151d52;
  --navy: #283891;
  --navy-2: #3447b4;
  --gold: #feca34;
  --paper: #ffffff;
  --mist: #f3f4f8;
  --ink: #0b1030;
  --body: #3b4160;
  --muted: #5b6181;
  --dim: #848aa4;
  --line: #e4e6ee;
  --line-2: #cfd3e0;
  --on-dark: #ffffff;
  --on-dark-2: #b9bfdc;
  --line-dark: rgba(255,255,255,.14);
  --error: #a3261b;
  --success: #1d6b43;

  --font: "Varela", "Varela Round", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --maxw: 84rem;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: clamp(20px, 2.6vw, 34px);
  --small: .9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7rem; scroll-padding-bottom: 5.5rem; }
body { margin: 0; background: var(--night); color: var(--body); font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; overflow-x: clip; font-synthesis: none; -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { font-family: var(--font); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
[data-theme="dark"] :focus-visible, .site-header.is-dark :focus-visible, .menu :focus-visible { outline-color: var(--gold); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 300; background: var(--gold); color: var(--ink); padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none; transition: top .3s var(--ease); }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Type */
.display { font-size: clamp(3rem, .9rem + 7.6vw, 8.5rem); line-height: .98; letter-spacing: -0.055em; }
.title { font-size: clamp(2.2rem, 1rem + 4.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.048em; }
.title-sm { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.65; color: var(--body); }
.accent { color: var(--navy); }
[data-theme="dark"] .accent { color: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
[data-theme="dark"] .eyebrow { color: var(--on-dark-2); }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: #fff; --fill: var(--navy); --fill-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .9rem; min-height: 56px; padding: .45rem .45rem .45rem 1.6rem;
  border-radius: 999px; border: 0; background: var(--bg); color: var(--fg); font: inherit; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .6s var(--ease-out), color .45s var(--ease);
}
.btn:not(:has(.arrow)) { padding-right: 1.6rem; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); clip-path: circle(0 at var(--mx, 85%) var(--my, 50%)); transition: clip-path .7s var(--ease-out); }
.btn:hover { color: var(--fill-fg); }
.btn:hover::before { clip-path: circle(160% at var(--mx, 85%) var(--my, 50%)); }
.btn .arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform .6s var(--ease-out); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); --fill: #fff; --fill-fg: var(--ink); }
.btn-gold .arrow { background: var(--ink); color: var(--gold); }
.btn-line { --bg: transparent; --fg: var(--ink); --fill: var(--ink); --fill-fg: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
[data-theme="dark"] .btn-line { --fg: #fff; --fill: #fff; --fill-fg: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; }
.link-arrow .arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; transition: transform .5s var(--ease-out), background .4s, color .4s; }
.link-arrow:hover .arrow { transform: rotate(-45deg); background: var(--navy); color: #fff; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: calc(.8rem + env(safe-area-inset-top, 0px)); pointer-events: none; transition: transform .6s var(--ease-out); view-transition-name: site-header; }
.site-header.is-hidden { transform: translateY(-130%); }
.site-header.is-hidden:focus-within, .site-header.menu-open { transform: none; }
.bar { pointer-events: auto; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem .4rem .4rem .5rem; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--ink); border: 1px solid rgba(11,16,48,.08); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 14px 40px -26px rgba(11,16,48,.55); transition: background .5s var(--ease), color .5s var(--ease), border-color .5s, box-shadow .5s; }
.site-header.is-dark .bar { background: rgba(14,20,58,.5); color: #fff; border-color: rgba(255,255,255,.12); box-shadow: none; }
.site-header.menu-open .bar { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; color: inherit; text-decoration: none; padding-right: .5rem; }
.brand img { width: 42px; height: 42px; display: block; border-radius: 50%; background: #fff; padding: 2px; transition: transform 1s var(--ease-out); }
.brand:hover img { transform: rotate(-20deg); }
.brand-name { font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.site-nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; color: inherit; text-decoration: none; border-radius: 999px; transition: background .35s; }
.site-nav a:hover { background: rgba(127,135,170,.14); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.bar-end { display: flex; align-items: center; gap: .4rem; }
.call-pill { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 1.15rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; white-space: nowrap; transition: background .4s, color .4s, transform .5s var(--ease-out); }
.call-pill svg { width: 17px; height: 17px; }
.call-pill:hover { transform: scale(1.03); }
.site-header.is-dark .call-pill { background: var(--gold); color: var(--ink); }
.menu-toggle { display: none; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1.1rem 0 1rem; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.menu-toggle .bars { position: relative; width: 16px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out), bottom .5s var(--ease-out); }
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { bottom: 4.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 1; pointer-events: auto; background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem; padding: 7.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); clip-path: circle(0 at calc(100% - 4rem) 2.6rem); transition: clip-path .8s var(--ease-out); overflow-y: auto; }
.menu.is-open { clip-path: circle(150% at calc(100% - 4rem) 2.6rem); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(.12s + var(--n, 0) * 55ms); }
.menu.is-open li { opacity: 1; transform: none; }
.menu .big { display: inline-block; padding: .15rem 0; font-size: clamp(2.3rem, 9vw, 3.6rem); line-height: 1.12; letter-spacing: -0.045em; color: #fff; text-decoration: none; }
.menu .big[aria-current="page"] { color: var(--gold); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); }
.menu-foot a { color: #fff; }

.motion-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: inherit; font: inherit; font-size: var(--small); cursor: pointer; transition: border-color .3s; }
.motion-toggle:hover { border-color: rgba(255,255,255,.7); }
.motion-toggle .ico { width: 26px; height: 15px; border-radius: 999px; background: rgba(255,255,255,.22); position: relative; transition: background .3s; }
.motion-toggle .ico::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.motion-toggle[aria-checked="true"] .ico { background: var(--gold); }
.motion-toggle[aria-checked="true"] .ico::after { transform: translateX(11px); background: var(--ink); }

@media (max-width: 1060px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .call-pill { padding: 0; width: 46px; justify-content: center; }
  .call-pill .call-text { display: none; }
  .brand-name { font-size: .98rem; }
  .menu-toggle .label { display: none; }
  .menu-toggle { width: 46px; padding: 0; justify-content: center; }
}

/* Hero */
main { display: block; position: relative; z-index: 1; }
.hero { position: sticky; top: var(--hero-top, 0px); z-index: 0; isolation: isolate; overflow: clip; color: var(--on-dark-2); background: radial-gradient(120% 90% at 78% 0%, #1b2670 0%, var(--night) 55%, #060920 100%); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.dawn { position: absolute; left: 50%; bottom: -55%; width: 150vw; height: 100%; translate: -50% 0; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(254,202,52,.42), rgba(52,71,180,.32) 50%, transparent 78%); opacity: var(--dawn, 0); transform: scale(calc(.55 + var(--dawn, 0) * .7)); }
.hero-star { position: absolute; z-index: -1; right: clamp(1.5rem, 13vw, 16rem); top: clamp(8rem, 22vh, 14rem); width: clamp(54px, 8vw, 132px); aspect-ratio: 1; pointer-events: none; will-change: transform; }
.hero-star svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(254,202,52,.9)) drop-shadow(0 0 48px rgba(254,202,52,.5)); animation: ignite 2s var(--ease-out) .35s both; }
.hero-star::before { content: ""; position: absolute; inset: -260%; border-radius: 50%; background: radial-gradient(circle, rgba(254,202,52,.2) 0%, rgba(254,202,52,.06) 30%, transparent 62%); animation: halo 2.6s var(--ease-out) .5s both; }
@keyframes ignite { from { opacity: 0; transform: scale(.15) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes halo { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.hero-inner { position: relative; display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.4rem); padding-block: clamp(9rem, 14vh + 5rem, 13.5rem) clamp(3rem, 6vw, 5rem); transform-origin: 0 100%; will-change: transform, opacity; }
.hero h1 { color: #fff; max-width: 12ch; }
.hero.compact h1 { font-size: clamp(2.8rem, 1rem + 6vw, 6.75rem); max-width: 14ch; }
.hero h1 .gold { color: var(--gold); }
.hero h1 .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .wd > span { display: inline-block; animation: wordUp 1.25s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * 75ms); }
@keyframes wordUp { from { transform: translateY(108%) rotate(4deg); } to { transform: none; } }
.hero-in { animation: fadeUp 1.1s var(--ease-out) both; animation-delay: calc(.75s + var(--t, 0) * 90ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; }
.hero .lead { color: var(--on-dark-2); max-width: 44ch; }
.hero-meta { position: relative; border-top: 1px solid var(--line-dark); }
.hero-meta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.3rem calc(1.3rem + var(--r)); }
.hero-meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: 0; padding: 0; font-size: .92rem; color: var(--on-dark-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-meta li svg { width: 16px; height: 16px; color: var(--gold); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: .8rem; }
.crumbs li + li::before { content: ""; width: 1px; height: 1.05em; background: currentColor; transform: rotate(22deg); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: #fff; text-underline-offset: .3em; }
.crumbs a:hover { color: var(--gold); }
.scroll-cue { display: inline-flex; align-items: center; gap: .75rem; font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 1.6s var(--ease) 1.4s 2 both; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* The sheet that slides over the hero */
.sheet { position: relative; z-index: 1; background: var(--paper); border-radius: var(--r); margin-top: calc(-1 * var(--r)); overflow: clip; box-shadow: 0 -40px 80px -50px rgba(0,0,0,.6); }
.section { position: relative; padding-block: clamp(5.5rem, 11vw, 10rem); }
.section.tight { padding-block: clamp(4rem, 8vw, 6.5rem); }
.mist { background: var(--mist); }
.head { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.head-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.5rem 5rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.head-split > * { min-width: 0; }
.head-split .stack { display: flex; flex-direction: column; gap: 1.25rem; }

/* Statement with scroll scrubbed words */
.statement { font-size: clamp(1.9rem, .9rem + 3.4vw, 4.1rem); line-height: 1.16; letter-spacing: -0.04em; color: var(--ink); max-width: 23ch; }
.statement .sw { color: var(--dim); transition: color .4s var(--ease); }
.statement .sw.lit { color: var(--ink); }
.statement .sw.accent.lit { color: var(--navy); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: clamp(4rem, 8vw, 6.5rem) 0 0; padding: 0; }
.stat { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem 1.5rem 0 0; min-width: 0; }
.stat::before { content: ""; position: absolute; left: 0; right: 1.5rem; top: 0; height: 1px; background: var(--line-2); transform-origin: left; transition: transform 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.stat.is-pending::before { transform: scaleX(0); }
.stat .num { font-size: clamp(3rem, 1.6rem + 4vw, 6rem); line-height: .95; letter-spacing: -0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .num .plus { color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: .98rem; }

/* Horizontal services rail, pinned on wide screens */
.hscroll { position: relative; }
.hscroll-pin { padding-block: clamp(5.5rem, 11vw, 9rem) clamp(4rem, 8vw, 6rem); }
.hs-bar { display: none; height: 2px; margin-top: 1.25rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(0); }
.hscroll-track { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--maxw); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1rem; }
.hscroll.is-pinned .hscroll-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: clip; padding-block: 6rem 2.5rem; }
.hscroll.is-pinned .hs-bar { display: block; }
.hscroll.is-pinned .head-split { margin-bottom: clamp(2rem, 4vh, 3.25rem); }
.hscroll.is-pinned .hscroll-track { display: flex; max-width: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); padding-right: 0; gap: 1.25rem; will-change: transform; }
.hscroll.is-pinned .hcard { flex: 0 0 clamp(18rem, 24vw, 23.5rem); min-height: min(28rem, 54vh); transition: opacity 1s var(--ease-out), background .6s var(--ease), color .6s var(--ease); }
.hscroll.is-pinned .hcard.is-pending { transform: none; }
.hcard { position: relative; display: flex; flex-direction: column; gap: .85rem; min-height: 19rem; padding: clamp(1.5rem, 2.4vw, 2.1rem); border-radius: 26px; background: #fff; color: var(--body); box-shadow: 0 1px 0 rgba(11,16,48,.04); transition: background .6s var(--ease), color .6s var(--ease); will-change: transform; }
.hcard .ic { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: auto; border-radius: 50%; background: var(--mist); color: var(--navy); transition: background .5s, color .5s, transform .7s var(--ease-out); }
.hcard .ic svg { width: 25px; height: 25px; }
.hcard h3 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.95rem); letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); transition: color .5s; }
.hcard h3 a { color: inherit; text-decoration: none; }
.hcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hcard h3 a:focus-visible { outline: none; }
.hcard p { font-size: .98rem; line-height: 1.6; }
.hcard .more { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); transition: color .5s; }
.hcard .more .arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; transition: transform .6s var(--ease-out); }
.hcard:hover, .hcard:focus-within { background: var(--ink); color: var(--on-dark-2); }
.hcard:hover h3, .hcard:focus-within h3 { color: #fff; }
.hcard:hover .ic, .hcard:focus-within .ic { background: var(--gold); color: var(--ink); transform: rotate(-14deg) scale(1.06); }
.hcard:hover .more, .hcard:focus-within .more { color: var(--gold); }
.hcard:hover .more .arrow { transform: rotate(-45deg); }
.hcard:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.hcard.all { background: var(--navy); color: var(--on-dark-2); }
.hcard.all h3 { color: #fff; }
.hcard.all .ic { background: var(--gold); color: var(--ink); }
.hcard.all .more { color: var(--gold); }

/* Big type that slides with the scroll */
.bigtype { padding-block: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; background: var(--paper); border-block: 1px solid var(--line); }
.bigtype .row { display: flex; gap: clamp(1.5rem, 3vw, 3rem); white-space: nowrap; font-size: clamp(3.2rem, 1.6rem + 7vw, 9rem); line-height: 1.08; letter-spacing: -0.055em; color: var(--ink); will-change: transform; }
.bigtype .row .o { color: var(--dim); -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px var(--dim); }
.bigtype .row .n { color: var(--navy); }
.bigtype .row .dot { flex: none; align-self: center; width: .26em; height: .26em; margin-inline: .05em; border-radius: 50%; background: var(--gold); }

/* Stacking step cards */
.stack-cards { list-style: none; margin: 0; padding: 0 0 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.scard { position: sticky; top: calc(6.75rem + var(--i, 0) * 1.35rem); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem 3rem; align-items: end; min-height: clamp(18rem, 44vh, 27rem); padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: var(--r); transform-origin: 50% 0; will-change: transform; box-shadow: 0 -24px 60px -48px rgba(11,16,48,.6); }
.scard > * { min-width: 0; }
.scard .num { align-self: start; font-size: clamp(4.5rem, 1.5rem + 9vw, 10.5rem); line-height: .8; letter-spacing: -0.07em; }
.scard .txt { display: flex; flex-direction: column; gap: .8rem; }
.scard .kicker { font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; }
.scard h3 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3.1rem); line-height: 1.04; letter-spacing: -0.045em; }
.scard.c1 { background: var(--mist); }
.scard.c1 .num { color: var(--navy); }
.scard.c1 .kicker { color: var(--muted); }
.scard.c2 { background: var(--navy); color: var(--on-dark-2); }
.scard.c2 h3 { color: #fff; }
.scard.c2 .num { color: var(--gold); }
.scard.c3 { background: var(--gold); color: #2a2f4f; }
.scard.c3 h3, .scard.c3 .num { color: var(--ink); }
.scard.c4 { background: var(--ink); color: var(--on-dark-2); }
.scard.c4 h3 { color: #fff; }
.scard.c4 .num { color: var(--gold); }

/* Coverage rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.rows li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: center; padding: 1.6rem 0; }
.rows li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); transform-origin: left; transition: transform 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
.rows li.is-pending::after { transform: scaleX(0); }
.rows .k { font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem); letter-spacing: -0.035em; color: var(--ink); line-height: 1.2; }
.rows .v { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); text-align: right; }
.rows .v svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.rows .v.yes { color: var(--navy); }

/* Credentials */
.creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.creds li { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.6rem; border-radius: 22px; border: 1px solid var(--line); min-width: 0; transition: border-color .4s, transform .6s var(--ease-out); }
.creds li:hover { border-color: var(--line-2); transform: translateY(-4px); }
.creds .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); }
.creds .ic svg { width: 22px; height: 22px; }
.creds .t { color: var(--ink); line-height: 1.35; }
.creds .s { display: block; color: var(--muted); font-size: var(--small); margin-top: .25rem; }

/* Values */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.values li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; padding: 2.25rem 2rem 2.25rem 0; border-bottom: 1px solid var(--line-2); }
.values li:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line-2); }
.values .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); transition: background .5s, color .5s, transform .7s var(--ease-out); }
.values li:hover .ic { background: var(--navy); color: var(--gold); transform: rotate(-12deg); }
.values .ic svg { width: 23px; height: 23px; }
.values h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.035em; margin-bottom: .4rem; }

/* Service detail rows */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 clamp(3rem, 6vw, 4.5rem); padding: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: background .35s, color .35s, border-color .35s; }
.chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 5rem; padding-block: clamp(3rem, 6vw, 4.75rem); border-top: 1px solid var(--line-2); scroll-margin-top: 7rem; }
.svc:last-of-type { border-bottom: 1px solid var(--line-2); }
.svc > * { min-width: 0; }
.svc .side { position: sticky; top: 7.5rem; align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.svc .ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); transition: background .7s, color .7s, transform 1s var(--ease-out); }
.svc.is-in .ic { background: var(--navy); color: var(--gold); transform: rotate(-12deg); transition-delay: .35s; }
.svc .ic svg { width: 26px; height: 26px; }
.svc .label { font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.svc h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); letter-spacing: -0.045em; line-height: 1.04; }
.svc .body { display: flex; flex-direction: column; gap: 1.15rem; font-size: 1.08rem; }
.ticks { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .82em; width: 1rem; height: 1px; background: var(--navy); }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem .25rem; min-height: 44px; font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1.35; transition: color .3s, padding .5s var(--ease-out); }
.faq summary:hover { color: var(--navy); padding-left: .75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .6s var(--ease-out), background .4s, border-color .4s; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .6s var(--ease-out), background .4s; }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 .25rem 1.75rem; display: flex; flex-direction: column; gap: .8rem; max-width: 60ch; }
.faq details[open] .answer { animation: fadeUp .6s var(--ease-out); }

/* Info cards */
.info { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.info li { display: flex; flex-direction: column; gap: .5rem; padding: 2rem; border-radius: 24px; background: var(--mist); min-width: 0; }
.info .k { font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info .v { font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.contact-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--line-2); }
.contact-list .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); }
.contact-list .ic svg { width: 21px; height: 21px; }
.contact-list .txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.contact-list .k { font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-size: 1.1rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-list .big { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.15; color: var(--ink); text-decoration: none; }
.contact-list .big:hover { color: var(--navy); }

.form { display: flex; flex-direction: column; gap: 1.4rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r); background: var(--mist); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.form label, .form legend { color: var(--ink); }
.req { color: var(--muted); font-size: var(--small); }
.hint { color: var(--muted); font-size: .93rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; min-height: 54px; padding: .8rem 1.1rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #6c7290; border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
.form textarea { min-height: 9.5rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(40,56,145,.22); }
.form [aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px; }
.error { color: var(--error); font-size: .93rem; }
.error:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .5rem; }
.choice { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); }
.form-status { padding: 1rem 1.25rem; border-radius: 14px; border: 1.5px solid currentColor; background: #fff; }
.form-status.ok { color: var(--success); }
.form-status.bad { color: var(--error); }
.note { font-size: .93rem; color: var(--muted); }

/* Office map on the contact page: a Google Maps embed. The address and directions link beside it are the text alternative. */
.map-embed { display: block; width: 100%; height: clamp(20rem, 58vh, 38rem); border: 0; border-radius: var(--r); background: #e5e3df; }
iframe.frame-focus { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Closing call to action */
.cta { position: relative; isolation: isolate; overflow: hidden; margin: 0 clamp(.6rem, 1.6vw, 1.25rem) clamp(.6rem, 1.6vw, 1.25rem); padding-block: clamp(4.5rem, 10vw, 8.5rem); border-radius: var(--r); background: radial-gradient(90% 120% at 100% 0%, #1b2670 0%, var(--night) 60%); color: var(--on-dark-2); overflow: clip; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -18rem; border-radius: 50%; background: radial-gradient(circle, rgba(254,202,52,.16), transparent 62%); }
.cta .inner { display: flex; flex-direction: column; gap: clamp(1.75rem, 3vw, 2.5rem); }
.fill-text { font-size: clamp(3rem, .8rem + 8.4vw, 9.25rem); line-height: .98; letter-spacing: -0.058em; color: #fff; }
.fill-text .fl { display: table; background: linear-gradient(90deg, #fff 0 var(--f, 100%), rgba(255,255,255,.5) var(--f, 100%) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.fill-text .fl.gold { background: linear-gradient(90deg, var(--gold) 0 var(--f, 100%), rgba(254,202,52,.58) var(--f, 100%) 100%); -webkit-background-clip: text; background-clip: text; }
.cta-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line-dark); }
.cta .phone { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); letter-spacing: -0.04em; color: #fff; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; transition: background-size .6s var(--ease-out), color .4s; }
.cta .phone:hover { color: var(--gold); background-size: 0 1px; }
.cta .small { display: block; margin-bottom: .35rem; font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }

/* Footer, revealed beneath the sheet */
.site-footer { position: sticky; bottom: 0; z-index: 0; background: var(--night); color: var(--on-dark-2); padding-block: clamp(4rem, 8vw, 6rem) 1.75rem; overflow: clip; }
.site-footer.no-curtain { position: relative; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-size: var(--small); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 1rem; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.footer-grid a { color: #fff; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { text-decoration: underline; color: var(--gold); }
.footer-grid address { font-style: normal; color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; }
.footer-brand img { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 3px; }
.footer-brand span { font-size: 1.35rem; letter-spacing: -0.03em; }
.footer-about p { margin-top: 1.1rem; max-width: 34ch; }
.footer-mark { margin: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: clamp(4.5rem, 1rem + 19vw, 21rem); line-height: .78; letter-spacing: -0.07em; white-space: nowrap; max-width: none; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 88%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: var(--small); }
.footer-bottom p { max-width: none; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--gold); }

/* Back to top */
.to-top { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 14px 30px -14px rgba(11,16,48,.7); opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none; transition: opacity .45s, transform .6s var(--ease-out); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: calc(160 - 160 * var(--p, 0)); }
.to-top .arr { position: relative; font-size: 1.1rem; }

/* Scroll reveals. Content is visible by default; the script hides only items that start below the fold. */
[data-reveal] { transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out), clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-pending { opacity: 0; transform: translateY(48px); }
[data-reveal="left"].is-pending { transform: translateX(-56px); }
[data-reveal="right"].is-pending { transform: translateX(56px); }
[data-reveal="zoom"].is-pending { transform: scale(.92) translateY(28px); }
[data-reveal="blur"].is-pending { filter: blur(14px); transform: translateY(18px); }
[data-reveal="tilt"].is-pending { transform: perspective(1000px) rotateX(-18deg) translateY(60px); transform-origin: 50% 0; }
[data-reveal="clip"].is-pending { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r)); }
[data-reveal="clip"] { clip-path: inset(0 0 0 0 round var(--r)); }
[data-reveal="line"].is-pending { opacity: 1; transform: none; }
.split-words .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-words .wd > span { display: inline-block; transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.split-words.is-pending .wd > span { transform: translateY(108%) rotate(3deg); }
.split-words.is-pending { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* Page transitions between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut .4s var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn .7s var(--ease-out) both; }
}
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(24px); } }

/* Responsive */
@media (max-width: 1000px) {
  .head-split, .contact-grid, .svc { grid-template-columns: 1fr; }
  .svc .side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .info { grid-template-columns: 1fr 1fr; }
  .scard { grid-template-columns: 1fr; align-items: start; top: calc(5.75rem + var(--i, 0) * 1rem); }
  .scard .num { font-size: clamp(3.5rem, 2rem + 8vw, 6rem); }
}
@media (max-width: 680px) {
  .values { grid-template-columns: 1fr; }
  .values li, .values li:nth-child(even) { padding: 2rem 0; border-left: 0; }
  .creds, .info, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; }
  .rows .v { text-align: left; }
  .hero-star { right: 1.25rem; top: 6.25rem; }
  .hero-meta .scroll-cue { display: none; }
  .scard { min-height: 0; }
}

/* Reduced motion: honors the OS setting and the on-site toggle */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  [data-reveal].is-pending, .split-words.is-pending .wd > span { opacity: 1; transform: none; filter: none; clip-path: none; }
  .stat.is-pending::before, .rows li.is-pending::after { transform: none; }
  .statement .sw { color: var(--ink); } .statement .sw.accent { color: var(--navy); }
}
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
html.reduce-motion [data-reveal].is-pending, html.reduce-motion .split-words.is-pending .wd > span { opacity: 1; transform: none; filter: none; clip-path: none; }
html.reduce-motion .stat.is-pending::before, html.reduce-motion .rows li.is-pending::after { transform: none; }
html.reduce-motion .statement .sw { color: var(--ink); }
html.reduce-motion .statement .sw.accent { color: var(--navy); }
html.reduce-motion .menu { transition: none; }

@media (forced-colors: active) {
  .btn, .hcard, .creds li, .menu-toggle, .call-pill, .scard { border: 1px solid ButtonText; }
  .fill-text .fl { color: CanvasText; background: none; }
  .footer-mark { display: none; }
}
@media print {
  .site-header, .progress, .to-top, .form, .bigtype, .sky, .dawn, .hero-star { display: none !important; }
  .hero { position: static; }
  .site-footer { position: static; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
@media (min-width: 681px) { .footer-bottom { padding-right: 4.5rem; } }
@media (max-width: 680px) { .footer-bottom { padding-bottom: 4.5rem; } }

/* Hero photograph. Flipped so she faces the headline; it wipes in from the right, settles, then drifts as the sheet covers it. */
.hero.has-media { background: var(--night); }
.hero-media { position: absolute; top: 0; bottom: 0; left: 38%; right: 0; z-index: -2; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); animation: mediaIn 1.8s var(--ease-out) .1s both; will-change: transform; transform-origin: 60% 40%; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 30%; transform: scaleX(-1); animation: mediaZoom 3.2s var(--ease-out) both; }
@keyframes mediaIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes mediaZoom { from { transform: scaleX(-1) scale(1.2); filter: brightness(.55) saturate(.8); } to { transform: scaleX(-1) scale(1); filter: none; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(11,16,48,.9) 0%, rgba(11,16,48,.55) 42%, rgba(11,16,48,.08) 70%, rgba(11,16,48,.12) 100%),
  linear-gradient(0deg, rgba(11,16,48,.92) 0%, rgba(11,16,48,.35) 26%, rgba(11,16,48,0) 48%),
  linear-gradient(180deg, rgba(11,16,48,.55) 0%, rgba(11,16,48,0) 22%); }
.hero.has-media .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.hero.has-media h1 { text-shadow: 0 2px 40px rgba(11,16,48,.5); }

/* Inner page heroes: a soft pool of light instead of a picture */
.hero-glow { position: absolute; z-index: -1; pointer-events: none; width: 54rem; height: 54rem; right: -16rem; top: -22rem; border-radius: 50%; background: radial-gradient(circle, rgba(254,202,52,.22) 0%, rgba(52,71,180,.28) 38%, transparent 68%); animation: glowIn 2.4s var(--ease-out) .2s both; will-change: transform; }
@keyframes glowIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .hero-media { left: 0; bottom: auto; height: min(64vh, 560px); -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
  .hero-media img { object-position: 46% 25%; }
  .hero-shade { background: linear-gradient(180deg, rgba(11,16,48,.55) 0%, rgba(11,16,48,.1) 22%, rgba(11,16,48,.35) 40%, rgba(11,16,48,.94) 58%, var(--night) 80%); }
  .hero.has-media .hero-inner { padding-top: max(11rem, calc(min(64vh, 560px) - 7rem)); }
  .hero.has-media .eyebrow { align-self: flex-start; padding: .45rem .9rem; border-radius: 999px; background: rgba(11,16,48,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
/* On wide screens the eyebrow can reach the photo, so it keeps the same dark pill; the negative margin keeps its text aligned with the headline */
@media (min-width: 1001px) {
  .hero.has-media .eyebrow { align-self: flex-start; margin-left: -.9rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(11,16,48,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) { .hero-media, .hero-media img { animation: none; } .hero-media img { transform: scaleX(-1); } }
html.reduce-motion .hero-media img { transform: scaleX(-1); }

/* 404 page: no header or menu, so the brand sits in the hero and the footer skips its curtain spacing */
.notfound .brand { align-self: flex-start; color: #fff; }
.notfound-links { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: 0; padding: 0; list-style: none; }
.notfound-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-underline-offset: .3em; }
.notfound-links a:hover { color: var(--gold); }
.notfound, .notfound .site-footer { background: #060920; }
.notfound .site-footer { padding-top: 0; }

/* Accessibility safeguards */
.stack-cards.flat .scard { position: relative; top: auto; transform: none !important; }
.contact-list .big { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.hero h1 > [aria-hidden="true"], .fill-text > [aria-hidden="true"] { display: block; }
.split-words > [aria-hidden="true"] { display: inline; }
.menu[hidden] { display: none !important; }
