/* TREOS Ltd: site styles.
   Brand: ink navy, settled green, mint (on dark only), cool paper. Type: Source Serif 4 (headings), Instrument Sans.
   The one loud element is the home page's reconciliation: a dark glass console where bank lines match to treasury
   records until nothing is left unmatched and a "reconciled" seal lands. Photos share one cool grade (tools/photos.py). Everything else stays quiet and ruled, like a ledger.

   Motion: <html> gets "motion" only when JavaScript runs and the visitor hasn't asked for reduced motion. Every
   animated thing is styled finished by default; only ".motion" puts it in its starting state, and site.js moves it on.
   So no JavaScript, reduced motion, print and a failed script all show the finished page. */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-ext.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #10243E;
  --ink-2: #183253;
  --green: #0F6B5C;
  --green-dark: #0B5448;
  --mint: #8ED9C0;
  --mint-2: #B4E8D6;
  --mint-soft: #E7F5EF;
  --paper: #F4F7F6;
  --white: #FFFFFF;
  --slate: #4A5D73;
  --mist: #C6D3E0;
  --rule: #D8E0DD;
  --rule-dark: rgba(255, 255, 255, .14);
  --error: #B42318;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--green);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--white); font-kerning: normal; overflow-x: hidden; }
html.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
picture { display: block; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.9rem); line-height: 1.05; font-variation-settings: "opsz" 60; letter-spacing: -.022em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.3rem); line-height: 1.1; font-variation-settings: "opsz" 48; letter-spacing: -.018em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-variation-settings: "opsz" 24; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--mint); color: var(--ink); font-weight: 600; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; }

.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--slate); max-width: 36em; }
.lead-on-dark { color: var(--mist); }

/* dark areas: lighter focus ring */
.site-header, .hero, .page-hero, .controls, .cta-band, .site-footer, .svc-cell-cta, .email-card, .story, .svc-map { --focus: var(--mint); }

/* ---------------------------------------------------------------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px;
  font: 600 1rem/1.2 var(--sans); color: var(--white); background: var(--green);
  padding: 12px 24px; border-radius: var(--radius); border: 0; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: .9375rem; }
@media (hover: hover) {
  .btn:hover { background: var(--green-dark); color: var(--white); }
  .btn-mint:hover { background: var(--mint-2); color: var(--ink); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
}
.link-strong { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: .3em; transition: color .2s ease; }
.link-on-dark { font-weight: 600; color: var(--mint); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; transition: color .2s ease; }
@media (hover: hover) {
  a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
  .link-strong:hover { color: var(--green); }
  .link-on-dark:hover { color: var(--white); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 36px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; color: var(--white); isolation: isolate; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16, 36, 62, .94); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .3s ease; }
.site-header.is-scrolled::before { box-shadow: 0 10px 30px -18px rgba(5, 14, 28, .7); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.site-nav ul a { position: relative; display: block; color: #DCE5EE; text-decoration: none; font-weight: 500; padding: 8px 0; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav ul a[aria-current="page"] { color: var(--white); }
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .site-nav ul a:hover { color: var(--white); }
  .site-nav ul a:hover::after { transform: scaleX(1); }
}
.nav-toggle { display: none; align-items: center; gap: 10px; font: 600 .9375rem/1 var(--sans); color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); padding: 0 14px; min-height: 44px; cursor: pointer; }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle-bars span:first-child { top: 2px; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .js .nav-toggle { display: inline-flex; }
  .brand img { height: 28px; }
  /* without JavaScript the menu simply sits under the logo */
  .header-row { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 14px; }
  .site-nav ul { flex-wrap: wrap; gap: 4px 22px; }
  .js .header-row { flex-wrap: nowrap; }
  .js .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 39; width: auto;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 12px var(--gutter) 40px; background: var(--ink); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .35s var(--ease), visibility 0s; }
  .js .site-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .js .site-nav ul a { font: 500 1.75rem/1.2 var(--serif); font-variation-settings: "opsz" 36; color: var(--white); padding: 18px 0; border-bottom: 1px solid var(--rule-dark); }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav ul a[aria-current="page"] { color: var(--mint); }
  .js .site-nav .btn { min-height: 54px; font-size: 1.0625rem; }
}

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); display: flex; align-items: center; min-height: clamp(640px, calc(100svh - var(--header-h)), 940px); padding: clamp(56px, 8vh, 104px) 0 clamp(80px, 11vh, 128px); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 64%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 36, 62, .92) 0%, rgba(16, 36, 62, .76) 50%, rgba(16, 36, 62, .24) 100%),
    linear-gradient(180deg, rgba(16, 36, 62, .55) 0%, rgba(16, 36, 62, 0) 26%, rgba(16, 36, 62, 0) 68%, rgba(16, 36, 62, .9) 100%); }
.hero > .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-title { color: var(--white); font-size: clamp(2.6rem, 1.2rem + 3.9vw, 4.6rem); line-height: 1.02; font-weight: 520; letter-spacing: -.03em; font-variation-settings: "opsz" 72; margin-bottom: .4em; max-width: 11em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: block; }
.hero-lead { color: var(--mist); font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.6; max-width: 32rem; margin: 0; }

/* the headline rises line by line from behind a mask; the rest follows */
.motion .hero-title .line > span { animation: lineUp 1.1s var(--ease) both; }
.motion .hero-title .line:nth-child(2) > span { animation-delay: .14s; }
.motion .hero-lead, .motion .hero .actions, .motion .hero-proof { animation: rise .9s var(--ease) both; }
.motion .hero-lead { animation-delay: .34s; }
.motion .hero .actions { animation-delay: .46s; }
.motion .hero-proof { animation-delay: .62s; }
.motion .hero-media img { animation: settle 3.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }

/* ---------------------------------------------------------------- hero ambience
   A ledger grid that drifts, a scan line that passes now and then, and the panel's figures floating up behind the glass.
   All of it is decoration (aria-hidden) and only moves with .motion; without it the grid is still and the rest hidden. */
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-ledger { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 52% 72% at 74% 52%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 80%);
  mask-image: radial-gradient(ellipse 52% 72% at 74% 52%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 80%); }
.hero-ledger::before { content: ""; position: absolute; inset: -56px 0 0;
  background-image: linear-gradient(rgba(142, 217, 192, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 217, 192, .08) 1px, transparent 1px);
  background-size: 56px 56px; }
.motion .hero-ledger::before { animation: ledgerPan 9s linear infinite; }
@keyframes ledgerPan { to { transform: translateY(56px); } }
.hero-scanline { position: absolute; left: 0; right: 0; top: 0; height: 34%; opacity: 0; transform: translateY(-100%);
  background: linear-gradient(180deg, rgba(142, 217, 192, 0) 0%, rgba(142, 217, 192, .05) 80%, rgba(142, 217, 192, .16) 99%, rgba(142, 217, 192, .5) 100%); }
.motion .hero-scanline { animation: heroScan 11s 1.6s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes heroScan { 0% { transform: translateY(-100%); opacity: 0; } 6% { opacity: 1; } 46% { opacity: .9; } 55%, 100% { transform: translateY(310%); opacity: 0; } }
.hero-drift { position: absolute; inset: 0 0 0 48%; display: none; }
.motion .hero-drift { display: block; }
.hero-drift i { position: absolute; bottom: -1.5em; left: calc(3% + var(--i) * 16%); font: 600 .8125rem/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--mint); opacity: 0; }
.hero-drift i:nth-child(even) { font-size: .6875rem; }
.motion .hero-drift i { animation: figureDrift 15s calc(1.4s + var(--i) * 2.5s) linear infinite; }
@keyframes figureDrift { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .3; } 70% { opacity: .16; } 100% { transform: translateY(-980px); opacity: 0; } }

/* ---------------------------------------------------------------- the reconciliation (home hero)
   A dark glass console over the city. Matching runs line by line: the statement line is scanned, the records column is
   searched until the match lights up, a pulse runs down the connecting line, the matched value bar fills, the unmatched
   value rolls down to $0.00 and the ring at the foot turns into a "reconciled" seal. Finished state = the HTML as sent. */
.recon-wrap { position: relative; width: 100%; max-width: 560px; justify-self: end; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.recon-aura { position: absolute; inset: -22% -18%; pointer-events: none; }
.recon-aura i { position: absolute; border-radius: 50%; }
.recon-aura i:nth-child(1) { width: 60%; height: 60%; left: 4%; top: 14%; background: radial-gradient(circle, rgba(15, 107, 92, .7), rgba(15, 107, 92, 0) 68%); }
.recon-aura i:nth-child(2) { width: 48%; height: 48%; right: 2%; bottom: 4%; background: radial-gradient(circle, rgba(142, 217, 192, .32), rgba(142, 217, 192, 0) 68%); }
.recon-aura i:nth-child(3) { width: 44%; height: 44%; right: 14%; top: 0; background: radial-gradient(circle, rgba(64, 116, 190, .26), rgba(64, 116, 190, 0) 68%); }
.motion .recon-aura i { animation: auraDrift 18s ease-in-out infinite alternate; }
.motion .recon-aura i:nth-child(2) { animation-duration: 14s; animation-direction: alternate-reverse; }
.motion .recon-aura i:nth-child(3) { animation-duration: 22s; animation-delay: -6s; }
@keyframes auraDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(9%, -7%) scale(1.14); } 100% { transform: translate(-7%, 9%) scale(.9); } }

/* earlier reconciliations stacked behind, moving a little against the pointer */
.recon-ghost { position: absolute; inset: 0; border-radius: 18px; transform-origin: 50% 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(30, 60, 96, .62), rgba(13, 30, 52, .7)); border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .6s var(--ease); }
.recon-ghost-1 { opacity: .85; transform: translate(calc(var(--tx, 0) * -5px), calc(-15px + var(--ty, 0) * -4px)) scale(.95); }
.recon-ghost-2 { opacity: .5; transform: translate(calc(var(--tx, 0) * -10px), calc(-29px + var(--ty, 0) * -8px)) scale(.9); }
.motion .recon-wrap.is-ready .recon-ghost { animation: ghostIn 1s .55s var(--ease) backwards; }
.motion .recon-wrap.is-ready .recon-ghost-2 { animation-delay: .7s; }
.motion .recon-wrap:not(.is-ready) .recon-ghost { opacity: 0; }
@keyframes ghostIn { from { opacity: 0; transform: translateY(0) scale(1); } }

.recon {
  --fg: var(--white); --fg-2: #9FB4C9; --accent: var(--mint); --line: rgba(255, 255, 255, .1);
  --cell: rgba(255, 255, 255, .035); --cell-line: rgba(255, 255, 255, .09); --hit: rgba(142, 217, 192, .075); --hit-line: rgba(142, 217, 192, .34);
  --node: #3B536D; --card: #11273F;
  position: relative; isolation: isolate; margin: 0; width: 100%;
  color: var(--fg); border-radius: 18px; padding: 22px 24px 20px;
  background: linear-gradient(155deg, rgba(30, 60, 96, .8) 0%, rgba(15, 33, 57, .88) 52%, rgba(10, 24, 42, .94) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 60px 100px -40px rgba(0, 4, 12, .9), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .1);
}
.motion .recon { transition: opacity .8s ease, transform 1s var(--ease); }
.motion .recon-wrap:not(.is-ready) .recon { opacity: 0; transform: translateY(32px) scale(.98); }

/* a light that runs round the edge while matching, and once more when it is done */
@property --edge-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.recon-edge { position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--edge-a), rgba(142, 217, 192, 0) 0deg, rgba(142, 217, 192, 0) 230deg, rgba(142, 217, 192, .95) 320deg, rgba(255, 255, 255, .9) 340deg, rgba(142, 217, 192, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .5s ease; }
.recon.is-running .recon-edge { opacity: 1; animation: edgeSpin 2.6s linear infinite; }
.recon.is-finale .recon-edge { opacity: 0; animation: edgeSpin 1.4s var(--ease), edgeFade 1.4s ease; }
@keyframes edgeSpin { to { --edge-a: 360deg; } }
@keyframes edgeFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
/* light from the pointer */
.recon-spot { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(142, 217, 192, .13), rgba(142, 217, 192, 0) 70%); }
.recon-wrap.is-pointer .recon-spot { opacity: 1; }
.recon.is-finale { animation: finale 1.4s var(--ease); }
@keyframes finale { 25% { box-shadow: 0 60px 100px -40px rgba(0, 4, 12, .9), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(142, 217, 192, .75), 0 0 70px -12px rgba(142, 217, 192, .6); } }

.recon-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding-bottom: 13px; margin-bottom: 13px; }
.recon-kicker { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.recon-live { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.motion .recon-live { animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(142, 217, 192, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(142, 217, 192, 0); } }
.recon-title { font: 600 1.25rem/1.25 var(--serif); font-variation-settings: "opsz" 24; color: var(--fg); }
.recon-sub { grid-column: 1 / -1; font-size: .8125rem; color: var(--fg-2); }
.recon-status { grid-column: 2; grid-row: 2; display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; line-height: 1; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgba(142, 217, 192, .13); border: 1px solid rgba(142, 217, 192, .32); color: var(--accent); white-space: nowrap; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.recon-status .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.recon.is-running .recon-status { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--fg-2); }
.recon.is-running .recon-status-tick { display: none; }
.recon.is-running .recon-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1s ease-in-out infinite; }
.recon.is-finale .recon-status { animation: pop .5s var(--ease); }
@keyframes blink { 50% { opacity: .25; } }
.recon-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--line); }
.recon-progress i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--accent)); box-shadow: 0 0 10px rgba(142, 217, 192, .7); transform-origin: left; transition: transform .7s var(--ease); }

.recon-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--lane) minmax(0, 1fr); row-gap: 8px; }
.recon-col-h { margin: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); grid-row: 1; grid-column: 1; }
.recon-col-h-r { grid-column: 3; }
.recon-col { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: var(--row); gap: var(--row-gap); grid-row: 2; }
.recon-col-l { grid-column: 1; }
.recon-col-r { grid-column: 3; }
.recon-lane { grid-row: 2; grid-column: 2; width: var(--lane); height: 100%; overflow: visible; filter: drop-shadow(0 0 3px rgba(142, 217, 192, .55)); }
.recon-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-content: center; column-gap: 8px;
  padding: 0 12px; border-radius: 10px; background-color: var(--cell); border: 1px solid var(--cell-line); cursor: default;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.recon-label { grid-column: 1; font-size: clamp(.7rem, 3.2vw, .8125rem); line-height: 1.25; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recon-amt { grid-column: 1; font-weight: 600; font-size: clamp(.75rem, 3.6vw, .9375rem); line-height: 1.3; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.recon-tick { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--accent); stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.recon-row::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--node); border: 2px solid var(--card); transition: background-color .3s ease; }
.recon-col-l .recon-row::after { right: -5px; }
.recon-col-r .recon-row::after { left: -5px; }
.recon-row.is-matched { background-color: var(--hit); border-color: var(--hit-line); }
.recon-row.is-matched .recon-tick { opacity: 1; transform: none; }
.recon-row.is-matched::after { background: var(--accent); }
.recon-row.is-probe { border-color: rgba(142, 217, 192, .5); background-color: rgba(142, 217, 192, .1); transition-duration: .08s; }
.recon-row.is-scanning { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(142, 217, 192, .14), 0 0 26px -6px rgba(142, 217, 192, .55);
  background-image: linear-gradient(100deg, rgba(142, 217, 192, 0) 35%, rgba(142, 217, 192, .3) 50%, rgba(142, 217, 192, 0) 65%); background-size: 300% 100%; background-repeat: no-repeat; animation: beam .75s ease-out both; }
@keyframes beam { from { background-position: 100% 0; } to { background-position: 0 0; } }
.recon-row.is-hit::after { animation: ping .8s ease-out; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(142, 217, 192, .8); } 100% { box-shadow: 0 0 0 12px rgba(142, 217, 192, 0); } }
.recon-row.is-verify { border-color: rgba(142, 217, 192, .6); transition-duration: .2s; }
.recon-row.is-linked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(142, 217, 192, .18); }
.recon-line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; transition: stroke-dashoffset .5s var(--ease), stroke-width .2s ease, opacity .2s ease; }
.recon-line.is-drawn { stroke-dashoffset: 0; }
.recon-line.is-linked { stroke-width: 2.8; opacity: 1; }
.recon.has-link .recon-line:not(.is-linked) { opacity: .2; }
.recon-pulse { fill: var(--white); opacity: 0; transition: opacity .15s ease; }
.recon-pulse.is-on { opacity: 1; }

/* matched value: one bar, a piece per line, sized by its amount */
.recon-meter { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.recon-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.recon-meter-head .recon-foot-label { margin: 0; }
.recon-meter-value { font-size: .8125rem; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.recon-bar { position: relative; display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.recon-bar i { flex: var(--w) 1 0; min-width: 0; border-radius: 2px; transform-origin: left; transition: transform .7s var(--ease); background: var(--accent); }
.recon-bar i:nth-child(2) { background: #4FB596; }
.recon-bar i:nth-child(3) { background: #B9ECDB; }
.recon-bar i:nth-child(4) { background: #2F8E75; }
.recon-bar i:nth-child(5) { background: #78CDB2; }
.recon.is-running .recon-bar i:not(.is-on) { transform: scaleX(0); }
.recon-bar::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); opacity: 0; }
.recon.is-finale .recon-bar::after { animation: shine 1.1s .1s ease-in-out; }
@keyframes shine { 0% { transform: translateX(-100%); opacity: 1; } 100% { transform: translateX(100%); opacity: 1; } }

.recon-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 12px; }
.recon-foot-label { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 4px; }
.recon-count { text-align: right; }
.recon-count strong { display: block; font: 600 1.5rem/1.05 var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.recon-total strong { display: block; font: 600 clamp(1.6rem, 1.15rem + 1.3vw, 2.25rem)/1.05 var(--serif); font-variation-settings: "opsz" 40; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; color: var(--accent); white-space: nowrap; transform-origin: left bottom; transition: color .4s ease; }
.recon.is-running .recon-total strong { color: var(--fg); }
.recon.is-finale .recon-total strong { animation: settled .7s var(--ease); text-shadow: 0 0 24px rgba(142, 217, 192, .45); }
@keyframes settled { 40% { transform: scale(1.07); } }
/* the rolling digits (site.js builds them; without it the figure is plain text) */
.odo-cur { display: inline-block; height: 1.05em; line-height: 1.05; }
.odo { display: inline-flex; align-items: flex-start; height: 1.05em; overflow: hidden; vertical-align: top; }
.odo-slot { display: inline-block; overflow: hidden; height: 1.05em; max-width: .7em; transition: max-width .5s var(--ease), opacity .35s ease; }
.odo-slot.is-off { max-width: 0; opacity: 0; }
.odo-strip { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.16, .84, .2, 1); }
.odo-strip > span { display: block; height: 1.05em; line-height: 1.05; text-align: center; }

/* the ring: a progress ring while matching; the seal (tick, words turning round the edge) once reconciled */
.recon-seal { position: relative; display: grid; place-items: center; width: 76px; height: 76px; flex: none; }
.recon-seal .seal-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-edge { fill: rgba(142, 217, 192, .06); stroke: rgba(142, 217, 192, .3); stroke-width: 1; transition: opacity .4s ease; }
.seal-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 4; }
.seal-ring { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease); filter: drop-shadow(0 0 4px rgba(142, 217, 192, .6)); }
.seal-words { transform-origin: 50px 50px; transition: opacity .5s ease; }
.seal-words text { font: 700 9px var(--sans); letter-spacing: .2px; fill: var(--accent); }
.motion .recon.is-done .seal-words { animation: spin 32s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-pct, .seal-tick { grid-area: 1 / 1; transition: opacity .3s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.seal-pct { font: 600 1rem/1 var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; opacity: 0; transform: scale(.6); }
.seal-tick { width: 26px; height: 26px; color: var(--accent); stroke-width: 2.4; }
.recon.is-running .seal-pct { opacity: 1; transform: none; }
.recon.is-running .seal-tick { opacity: 0; transform: scale(.3) rotate(-30deg); }
.recon.is-running .seal-words, .recon.is-running .seal-edge { opacity: 0; }
.seal-wave { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; }
.recon.is-finale .seal-wave { animation: wave 1.1s ease-out; }
.recon.is-finale .seal-wave + .seal-wave { animation-delay: .18s; }
@keyframes wave { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.recon.is-finale .recon-seal { animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stamp { 0% { transform: scale(1.25) rotate(-8deg); } 100% { transform: none; } }

.recon-replay { position: absolute; right: 4px; bottom: -46px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px; font: 600 .875rem/1 var(--sans); color: var(--mist); background: none; border: 0; border-radius: var(--radius); cursor: pointer; transition: color .2s ease; --focus: var(--mint); }
.recon-replay .icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.recon-replay[hidden] { display: none; }
@media (hover: hover) {
  .recon-replay:hover { color: var(--white); }
  .recon-replay:hover .icon { transform: rotate(-200deg); }
}
/* nothing moves while the hero is off screen or the tab is hidden */
.hero.is-paused .hero-fx *, .hero.is-paused .hero-fx *::before, .hero.is-paused .recon-aura i, .hero.is-paused .seal-words, .hero.is-paused .recon-live { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section-tint { background: var(--paper); }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--slate); font-size: 1.0625rem; margin: 0; max-width: 38em; }
.section-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; }
.section-head-split h2 { margin: 0; max-width: 14em; }

/* badge icons (benefits, services) */
.badge-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--mint-soft); color: var(--green); margin-bottom: 22px; }
.badge-icon .icon { width: 26px; height: 26px; }

/* benefits */
.benefits { background: var(--paper); }
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 44px); }
.benefit { border-top: 2px solid var(--ink); padding-top: 26px; }
.benefit h3 { margin-bottom: .45em; }
.benefit p { color: var(--slate); margin: 0; font-size: .98rem; }

/* services grid: ruled cells, like a ledger */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.svc-grid > li { display: flex; }
.svc-cell { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 268px; padding: 28px 26px 24px; background: var(--white); color: var(--ink); text-decoration: none; transition: background-color .3s ease; }
.svc-cell:focus-visible { outline-offset: -4px; border-radius: 0; }
.svc-cell-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--paper); color: var(--green); margin-bottom: 24px; transition: background-color .3s ease, color .3s ease, transform .4s var(--ease); }
.svc-cell-icon .icon { width: 26px; height: 26px; }
.svc-cell-name { font: 600 1.3rem/1.25 var(--serif); font-variation-settings: "opsz" 30; margin-bottom: 8px; }
.svc-cell-text { color: var(--slate); font-size: .95rem; line-height: 1.5; }
.svc-cell-go { margin-top: auto; padding-top: 20px; color: var(--green); }
.svc-cell-go .icon { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.svc-cell-cta { background: var(--ink); color: var(--white); }
.svc-cell-cta .svc-cell-name { color: var(--white); }
.svc-cell-cta .svc-cell-text { color: var(--mist); }
.svc-cell-button { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; margin-top: auto; border-radius: var(--radius); background: var(--mint); color: var(--ink); font-weight: 600; font-size: .9375rem; transition: background-color .2s ease; }
.svc-cell-cta .svc-cell-text { margin-bottom: 22px; }
@media (hover: hover) {
  .svc-cell:hover { background: #F7FAF9; color: var(--ink); }
  .svc-cell:hover .svc-cell-icon { background: var(--green); color: var(--white); transform: translateY(-3px); }
  .svc-cell:hover .svc-cell-go .icon { transform: translateX(6px); }
  .svc-cell-cta:hover { background: var(--ink-2); color: var(--white); }
  .svc-cell-cta:hover .svc-cell-button { background: var(--mint-2); }
}


/* controls: the dark band with the photo and the approval flow */
.controls { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: var(--ink); color: var(--white); }
.controls h2 { color: var(--white); }
.controls-media { position: relative; min-height: 640px; overflow: hidden; }
.controls-media picture, .controls-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.controls-media img { object-fit: cover; object-position: 40% 50%; }
.controls-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 36, 62, 0) 45%, rgba(16, 36, 62, .75) 100%), linear-gradient(90deg, rgba(16, 36, 62, 0) 70%, rgba(16, 36, 62, .6) 100%); }
.flow { position: absolute; z-index: 1; left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 20px 12px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(16, 36, 62, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 8px; }
.flow li + li::before, .flow li + li::after { content: ""; position: absolute; top: 23px; right: 50%; width: 100%; height: 2px; background: rgba(255, 255, 255, .2); }
.flow li + li::after { background: var(--mint); transform-origin: left center; }
.flow-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--mint); color: var(--ink); transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .5s var(--ease); }
.flow-icon .icon { width: 22px; height: 22px; }
.flow-label { font-size: .8125rem; line-height: 1.35; color: #DCE5EE; max-width: 12em; }
.motion .flow .flow-icon { background: var(--ink); border-color: rgba(255, 255, 255, .3); color: var(--white); transform: scale(.88); transition-delay: calc(.2s + var(--i) * .8s); }
.motion .flow.is-in .flow-icon { background: var(--mint); border-color: var(--mint); color: var(--ink); transform: none; }
.motion .flow li + li::after { transform: scaleX(0); transition: transform .6s var(--ease); transition-delay: calc(var(--i) * .8s - .4s); }
.motion .flow.is-in li + li::after { transform: scaleX(1); }
.controls-body { padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(64px, 8vw, 120px) clamp(32px, 6vw, 96px); max-width: 760px; }
.controls-body .lead { margin-bottom: 36px; }
.control-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule-dark); }
.control-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--rule-dark); color: #DCE5EE; font-size: .98rem; line-height: 1.5; }
.control-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(142, 217, 192, .12); color: var(--mint); }
.control-icon .icon { width: 22px; height: 22px; }
.controls-more { margin: 0; }

/* leadership */
.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.lead-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.lead-media picture, .lead-media img { width: 100%; height: 100%; }
.lead-media img { object-fit: cover; }
.lead-body .lead { margin-bottom: 30px; }
.degree { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); margin-bottom: 32px; max-width: 36rem; }
.degree-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--ink); color: var(--mint); }
.degree-icon .icon { width: 26px; height: 26px; }
.degree p { margin: 0; font: 600 1.15rem/1.35 var(--serif); font-variation-settings: "opsz" 24; }
.skills-title { font: 600 .9375rem/1.3 var(--sans); color: var(--slate); margin-bottom: 12px; }
.skills { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { padding: 8px 15px; border-radius: 999px; border: 1px solid #BFD3CC; background: var(--white); font-size: .9375rem; font-weight: 500; }
.lead-more { margin: 0; }

/* steps: a real sequence, so numbered */
.steps-section { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.steps li { position: relative; padding-top: 76px; }
.steps li::before, .steps li::after { content: ""; position: absolute; left: 60px; right: -28px; top: 25px; height: 2px; background: var(--rule); }
.steps li::after { background: var(--green); transform-origin: left center; }
.steps li:last-child::before, .steps li:last-child::after { display: none; }
.step-n { position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--white); border: 2px solid var(--green); font: 600 1.25rem/1 var(--serif); font-variant-numeric: lining-nums; transition: background-color .4s ease, color .4s ease; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--slate); margin: 0; font-size: .98rem; }
.motion .steps .step-n { background: var(--white); color: var(--green); transition-delay: calc(.1s + var(--i) * .5s); }
.motion .steps.is-in .step-n { background: var(--green); color: var(--white); }
.motion .steps li::after { transform: scaleX(0); transition: transform .5s var(--ease); transition-delay: calc(.35s + var(--i) * .5s); }
.motion .steps.is-in li::after { transform: scaleX(1); }

/* who we work with */
.who-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.who-grid li { display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; background: var(--white); }
.who-icon { color: var(--green); margin-bottom: 14px; }
.who-icon .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.who-grid strong { font: 600 1.15rem/1.3 var(--serif); font-variation-settings: "opsz" 24; }
.who-grid span:last-child { color: var(--slate); font-size: .95rem; }

/* call to action band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(88px, 11vw, 160px) 0; }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media picture, .cta-media img { width: 100%; height: 100%; }
.cta-media img { object-fit: cover; object-position: 50% 55%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 36, 62, .93) 0%, rgba(16, 36, 62, .84) 55%, rgba(16, 36, 62, .66) 100%); }
.cta-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta-row h2 { color: var(--white); margin: 0; max-width: 13em; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
.cta-copy p { color: var(--mist); max-width: 30em; font-size: 1.0625rem; margin-bottom: 24px; }

/* ---------------------------------------------------------------- inner pages */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.page-hero.has-photo { min-height: clamp(380px, 46vw, 540px); display: flex; align-items: center; }
.page-hero.has-photo > .wrap { width: 100%; }
.page-hero h1 { color: var(--white); max-width: 14em; }
.page-hero .lead { color: var(--mist); margin: 18px 0 0; }
.page-hero-copy > * { max-width: 40rem; }
.page-hero-copy > h1 { max-width: 14em; }
.page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: -1; }
.page-hero-media picture, .page-hero-media img { width: 100%; height: 100%; }
.page-hero-media img { object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(16, 36, 62, .7) 30%, rgba(16, 36, 62, .2) 100%); }
.page-hero-tall { padding-bottom: clamp(88px, 12vw, 160px); }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.page-hero h1 .line > span { display: block; }
.motion .page-hero h1 .line > span { animation: lineUp 1s var(--ease) both; }
.motion .page-hero-copy > :not(h1) { animation: rise .8s var(--ease) both; }
.motion .page-hero-copy > :nth-child(2) { animation-delay: .1s; }
.motion .page-hero-copy > :nth-child(3) { animation-delay: .2s; }
.motion .page-hero-copy > :nth-child(4) { animation-delay: .3s; }
.motion .page-hero-copy > :nth-child(5) { animation-delay: .4s; }
.motion .page-hero-media img { animation: settle 3s var(--ease) both; }
.crumbs { margin: 0 0 18px; font-weight: 600; font-size: .9375rem; }
.crumbs a { color: var(--mint); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a .icon { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .3s var(--ease); }
@media (hover: hover) {
  .crumbs a:hover { color: var(--white); }
  .crumbs a:hover .icon { transform: rotate(180deg) translateX(3px); }
}
.hero-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: rgba(142, 217, 192, .14); color: var(--mint); margin-bottom: 24px; }
.hero-icon .icon { width: 30px; height: 30px; }
.hero-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; color: #DCE5EE; }
.hero-chips .icon { width: 18px; height: 18px; color: var(--mint); }

/* services page: alternating rows */
.svc-rows { display: grid; gap: clamp(64px, 8vw, 112px); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.svc-media picture, .svc-media img { width: 100%; height: 100%; }
.svc-media img { object-fit: cover; transition: transform .8s var(--ease); }
.svc-body .badge-icon { margin-bottom: 20px; }
.svc-body h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: .4em; }
.svc-body h2 a { color: var(--ink); text-decoration: none; }
.svc-body > p { color: var(--slate); font-size: 1.0625rem; }
@media (hover: hover) {
  .svc-media:hover img, .svc-row:has(h2 a:hover) .svc-media img { transform: scale(1.04); }
  .svc-body h2 a:hover { color: var(--green-dark); }
}

.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 34px; line-height: 1.5; }
.ticks li .icon { position: absolute; left: 0; top: 10px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--mint-soft); color: var(--green); stroke-width: 2.6; }
.ticks-lg li { padding: 16px 0 16px 40px; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
.ticks-lg li:first-child { border-top: 1px solid var(--rule); }
.ticks-lg li .icon { top: 17px; width: 26px; height: 26px; padding: 5px; }

/* one service */
.svc-page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-page h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.svc-why { background: var(--paper); border-radius: var(--radius-lg); padding: 30px 30px 8px; border-top: 3px solid var(--green); }
.svc-why div { margin-bottom: 24px; }
.svc-why h3 { font-size: 1.15rem; margin-bottom: .3em; }
.svc-why p { color: var(--slate); margin: 0; font-size: .97rem; }
.svc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid-3 .svc-cell { min-height: 220px; }
.h-small { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); margin-bottom: 28px; }

/* two columns of icon + text (how we work, about) */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 72px); }
.feature { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 22px; }
.feature .badge-icon { margin: 0; grid-row: 1 / span 2; }
.feature h3 { margin: 10px 0 .35em; }
.feature p { color: var(--slate); margin: 0; grid-column: 2; }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #2F435B; }
.prose-narrow { max-width: 760px; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.enquiry { display: grid; gap: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.form-alert, .field { scroll-margin-top: calc(var(--header-h) + 24px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 7px; padding: 0; }
.optional { font-weight: 400; color: var(--slate); }
.hint { font-size: .875rem; color: var(--slate); margin: -2px 0 8px; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--white);
  border: 1.5px solid #AFBDB8; border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .field input:not([type="checkbox"]):hover, .field textarea:hover { border-color: var(--slate); } }
.field input:not([type="checkbox"]):focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(15, 107, 92, .18); }
.field textarea { resize: vertical; min-height: 160px; }
.has-error input, .has-error textarea { border-color: var(--error); }
.error { color: var(--error); font-size: .9rem; font-weight: 600; margin: 0 0 6px; }
.form-alert { border-left: 4px solid var(--error); background: #FDF1F0; padding: 14px 18px; font-weight: 600; border-radius: 0 var(--radius) var(--radius) 0; }
.form-alert:focus { outline: 3px solid rgba(180, 35, 24, .35); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.field .check { position: relative; display: flex; align-items: center; gap: 12px; font-weight: 400 !important; padding: 12px 14px; margin: 0 !important; border: 1.5px solid var(--rule); border-radius: var(--radius); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; min-height: 50px; }
.field .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; cursor: pointer; }
.field .check:has(input:checked) { border-color: var(--green); background: var(--mint-soft); }
.field .check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(15, 107, 92, .25); }
@media (hover: hover) { .field .check:hover { border-color: #9FB2AC; } }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-foot .btn { min-width: 180px; }
.form-foot .hint { margin: 0; }
.btn.is-sending { opacity: .75; pointer-events: none; }

.contact-aside { display: grid; gap: 28px; }
.email-card { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 26px 26px 24px; }
.email-card h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.email-card a { display: inline-flex; align-items: center; gap: 10px; color: var(--mint); font: 600 1.15rem/1.3 var(--serif); text-decoration: none; word-break: break-word; }
.email-card a .icon { width: 22px; height: 22px; }
@media (hover: hover) { .email-card a:hover { color: var(--white); text-decoration: underline; } }
.next { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; }
.next h2 { font-size: 1.3rem; margin-bottom: 18px; }
.next ol { list-style: none; margin: 0; padding: 0; }
.next li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; color: var(--slate); }
.next li:last-child { padding-bottom: 0; }
.next li::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--rule); }
.next li:last-child::before { display: none; }
.next-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--green-dark); font: 600 .95rem/1 var(--serif); font-variant-numeric: lining-nums; }

/* thank-you tick */
.done-tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); margin-bottom: 28px; }
.done-tick .icon { width: 36px; height: 36px; stroke-width: 2.2; }
.motion .done-tick { animation: pop .7s var(--ease) both; }
.motion .done-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .6s ease .35s forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.page-hero-copy > .link-on-dark { display: inline-block; margin-top: 28px; }

/* ---------------------------------------------------------------- home: the promises under the headline */
.hero-proof { grid-column: 1 / -1; list-style: none; margin: clamp(36px, 6vh, 64px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 14px 44px; }
.hero-proof li { display: flex; align-items: center; gap: 12px; color: #DCE5EE; font-weight: 500; font-size: .98rem; }
.hero-proof .icon { width: 22px; height: 22px; color: var(--mint); }

/* ---------------------------------------------------------------- home: a business day (the scroll story) */
.story { position: relative; color: var(--white); padding: var(--section) 0; background:
  radial-gradient(60% 45% at 88% 12%, rgba(142, 217, 192, .10), rgba(142, 217, 192, 0) 70%),
  radial-gradient(50% 40% at 0% 100%, rgba(52, 96, 160, .18), rgba(52, 96, 160, 0) 70%),
  var(--ink); }
.story h2 { color: var(--white); }
.story-head p { color: var(--mist); }
.story-pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 104px); }
.story-detail { display: none; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { position: relative; }
.story-step + .story-step { margin-top: 64px; }
.story-time { display: block; font: 600 1rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--mint); margin-bottom: 14px; }
.story-text h3 { color: var(--white); font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1.15; margin-bottom: .35em; }
.story-text p { color: var(--mist); margin: 0; max-width: 30em; font-size: 1.05rem; }
.story-inline { margin-top: 26px; container-type: inline-size; max-width: 560px; }
.story-inline .screen { --screen-size: clamp(12px, 3.5cqi, 15px); }
.story-stage { display: none; }

.clock { display: flex; align-items: flex-end; font: 500 clamp(3.6rem, 2rem + 3.4vw, 5.6rem)/1 var(--serif); font-variation-settings: "opsz" 72; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; color: var(--white); }
.odo { display: inline-block; height: 1.08em; overflow: hidden; }
.odo-strip { display: block; transform: translateY(calc(var(--d, 0) * -1.08em)); transition: transform .9s var(--ease); }
.odo-strip > span { display: block; height: 1.08em; line-height: 1.08em; }
.clock-colon { display: inline-block; height: 1.08em; line-height: 1.02em; padding: 0 .03em; color: var(--mint); }
.daybar { position: relative; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin: 24px 0 10px; }
.daybar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 5%); border-radius: inherit; background: var(--mint); transition: width .9s var(--ease); }
.daybar-mark { position: absolute; top: 50%; left: var(--x); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255, 255, 255, .35); transition: background-color .4s ease, border-color .4s ease; }
.daybar-mark.is-done { background: var(--mint); border-color: var(--mint); }
.daybar-scale { display: flex; justify-content: space-between; margin-bottom: 26px; font-size: .78rem; font-variant-numeric: tabular-nums; color: rgba(198, 211, 224, .7); }
.story-screens { display: grid; container-type: inline-size; }
.story-screens > .screen { grid-area: 1 / 1; align-self: start; --screen-size: clamp(13px, 2.7cqi, 15.5px); opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985); transition: opacity .35s ease, transform .5s var(--ease), visibility 0s linear .5s; }
.story-screens > .screen.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .12s, transform .7s var(--ease) .12s, visibility 0s; }
.story-clockrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.story-note { margin: 0 0 .6em; font-size: .8125rem; line-height: 1.45; text-align: right; color: rgba(198, 211, 224, .75); }

/* wide screens with JavaScript: the whole day is one pinned panel. Scrolling moves through the steps; nothing on it
   moves position. Left: the seven steps as a fixed list (upcoming faint, done half-lit, current fully lit) and the
   current step's description; right: the clock, the day bar and the screen. Each step takes a third of a screen of
   scrolling (--story-step). Shorter screens keep the phone layout. */
@media (min-width: 980px) and (min-height: 700px) {
  .js .story { --story-step: 34vh; }
  .js .story-scroll { position: relative; height: calc(100vh - var(--header-h) + 7 * var(--story-step)); }
  .js .story-pin { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .js .story-stage { display: block; }
  .js .story-inline { display: none; }

  .js .story-steps { position: relative; padding-left: 32px; }
  .js .story-steps::before, .js .story-steps::after { content: ""; position: absolute; left: 5px; top: 1.75rem; bottom: 1.75rem; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
  .js .story-steps::after { background: var(--mint); transform-origin: center top; transform: scaleY(var(--prog, 0)); transition: transform .6s var(--ease); }
  .js .story-step { display: flex; align-items: center; height: 3.5rem; cursor: pointer; }
  .js .story-step + .story-step { margin-top: 0; }
  .js .story-step::before { content: ""; position: absolute; z-index: 1; left: -32px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255, 255, 255, .3); transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease; }
  .js .story-step.is-past::before { background: var(--mint); border-color: var(--mint); }
  .js .story-step.is-current::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 6px rgba(142, 217, 192, .18); }
  .js .story-text { display: flex; align-items: baseline; gap: 18px; min-width: 0; opacity: .28; transition: opacity .55s ease; }
  .js .story-step.is-past .story-text { opacity: .58; }
  .js .story-step.is-current .story-text { opacity: 1; }
  .js .story-time { flex: none; width: 3.2em; margin: 0; }
  .js .story-text h3 { margin: 0; font-size: clamp(1.1rem, .7rem + .85vw, 1.4rem); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* the list's own descriptions stay readable to screen readers; sighted visitors see the one under the list */
  .js .story-text p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .js .story-detail { display: grid; margin-top: 28px; padding: 22px 0 0 32px; border-top: 1px solid var(--rule-dark); }
  .js .story-detail-text { grid-area: 1 / 1; margin: 0; max-width: 30em; font-size: 1.08rem; line-height: 1.6; color: var(--mist); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .4s var(--ease); }
  .js .story-detail-text.is-current { opacity: 1; transform: none; transition: opacity .55s ease .1s, transform .6s var(--ease) .1s; }
}
@media (min-width: 980px) and (min-height: 700px) and (hover: hover) {
  .js .story-step:not(.is-current):hover .story-text { opacity: .85; }
}

/* ---------------------------------------------------------------- screens (app/panels.php) */
.screen { font-size: 14px; font-size: var(--screen-size, 14px); line-height: 1.4; background: var(--white); color: var(--ink); border-radius: 16px; padding: 1.35em 1.45em 1.3em; box-shadow: 0 44px 80px -40px rgba(2, 8, 20, .75), 0 0 0 1px rgba(255, 255, 255, .08); text-align: left; }
.screen .icon { width: 1.25em; height: 1.25em; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding-bottom: .9em; margin-bottom: 1em; border-bottom: 1px solid var(--rule); }
.screen-title { min-width: 0; font: 600 1.12em/1.25 var(--serif); font-variation-settings: "opsz" 24; }
.screen-label { display: block; font-size: .76em; font-weight: 600; color: var(--slate); margin-bottom: .25em; }
.screen-foot { display: flex; align-items: center; gap: .5em; margin: 1em 0 0; font-size: .82em; color: var(--slate); }
.screen-foot .icon { color: var(--green); flex: none; }
.screen-foot-ok { color: var(--green-dark); font-weight: 600; }
.chip { display: grid; flex: none; font-size: .78em; font-weight: 600; line-height: 1; }
.chip > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .6em .95em .6em .8em; border-radius: 999px; white-space: nowrap; transition: opacity .3s ease; }
.chip-wait { background: #EDF1F5; color: var(--slate); opacity: 0; }
.chip-wait i { width: .55em; height: .55em; border-radius: 50%; background: var(--green); animation: blink 1s ease-in-out infinite; }
.chip-done { background: var(--mint-soft); color: var(--green-dark); }
.chip-done .icon { width: 1.1em; height: 1.1em; stroke-width: 2.8; }
.tick { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; flex: none; border-radius: 50%; background: var(--green); color: var(--white); }
.tick .icon { width: .85em; height: .85em; stroke-width: 3.2; }

/* what each screen shows */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.5em auto; align-items: center; gap: .8em; padding: .72em .85em; border-radius: .6em; background: var(--paper); border: 1px solid var(--rule); }
.feed-name { font-weight: 600; font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-cur { font-size: .74em; font-weight: 600; color: var(--slate); }
.feed-bar { height: .4em; border-radius: 999px; background: #DCE5E1; overflow: hidden; }
.feed-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); transform-origin: left center; }

.cash-top { margin-bottom: 1.1em; }
.cash-total strong { font: 600 2.1em/1 var(--serif); font-variation-settings: "opsz" 40; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.cash-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; align-items: end; height: 8.5em; margin-bottom: 2em; border-bottom: 1px solid var(--rule); }
.cash-bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.cash-bar i { display: block; width: 100%; max-width: 3.4em; height: var(--h); border-radius: .35em .35em 0 0; background: linear-gradient(180deg, #168A74, var(--green)); transform-origin: center bottom; }
.cash-val { font-size: .74em; font-weight: 600; color: var(--slate); margin-bottom: .35em; font-variant-numeric: tabular-nums; }
.cash-name { position: absolute; top: 100%; margin-top: .5em; font-size: .72em; color: var(--slate); white-space: nowrap; }
.cash-move { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6em; padding: .75em .9em; border-radius: .6em; background: var(--mint-soft); color: var(--green-dark); font-size: .88em; font-weight: 600; }
.cash-move strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.td-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .7em; margin-bottom: 1.3em; }
.td-box { padding: .9em 1em; border-radius: .7em; background: var(--paper); border: 1px solid var(--rule); }
.td-box strong { display: block; font: 600 1.22em/1.2 var(--serif); font-variation-settings: "opsz" 24; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.td-new { background: var(--mint-soft); border-color: #A6D9C6; }
.td-arrow { color: var(--green); }
.td-arrow .icon { width: 1.5em; height: 1.5em; }
.limit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.limit-head strong { font-variant-numeric: tabular-nums; }
.limit-bar { position: relative; height: .55em; margin: .45em 0 1.2em; border-radius: 999px; background: #DCE5E1; }
.limit-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: inherit; background: var(--green); transform-origin: left center; }
.limit-bar b { position: absolute; right: 0; top: -.3em; bottom: -.3em; width: 2px; border-radius: 2px; background: var(--ink); }
.mini-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.mini-checks li { display: flex; align-items: center; gap: .65em; font-size: .92em; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .8em; padding: .62em 0; border-bottom: 1px solid var(--rule); }
.lines-tight li { padding: .5em 0; }
.line-name { min-width: 0; font-size: .92em; }
.line-amt { font-weight: 600; font-size: .95em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-text { font-weight: 600; color: var(--green-dark); }
.flag { display: flex; align-items: center; gap: .4em; width: fit-content; max-width: 100%; margin-top: .35em; padding: .3em .55em; border-radius: .4em; background: var(--mint-soft); color: var(--green-dark); font-size: .8em; font-weight: 600; line-height: 1.3; }
.flag .icon { width: 1.1em; height: 1.1em; flex: none; }
.lines-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .75em; font-weight: 600; }
.lines-total strong { font: 600 1.3em/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }

.fx { display: grid; grid-template-columns: minmax(0, 1fr) 2em minmax(0, 1fr); row-gap: .5em; }
.fx-h { grid-row: 1; grid-column: 1; margin: 0 0 .1em; font-size: .76em; font-weight: 600; color: var(--slate); }
.fx-h-r { grid-column: 3; }
.fx-cell { position: relative; grid-column: 1; padding: .55em .8em; border-radius: .55em; background: var(--mint-soft); border: 1px solid #A6D9C6; transition: background-color .35s ease, border-color .35s ease; }
.fx-cell-r { grid-column: 3; padding-right: 2.5em; }
.fx-cell .screen-label { margin-bottom: .1em; }
.fx-cell strong { display: block; font-weight: 600; font-size: .95em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-cell-r .tick { position: absolute; right: .7em; top: 50%; margin-top: -.7em; }
.fx-link { grid-column: 2; align-self: center; position: relative; height: 2px; }
.fx-link i { position: absolute; inset: 0; background: var(--green); transform-origin: left center; }

.sign { position: relative; margin-top: 1.1em; padding-bottom: .2em; border-bottom: 1.5px solid var(--ink); }
.sign-ink { display: block; width: 58%; height: auto; }
.sign-ink path { fill: none; stroke: #1E3F78; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sign-label { position: absolute; right: 0; bottom: .5em; font-size: .76em; font-weight: 600; color: var(--slate); }

.rec-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; margin-top: .9em; }
.rec-foot strong { font: 600 1.3em/1 var(--sans); font-variant-numeric: tabular-nums; }
.rec-zero { text-align: right; }
.rec-zero strong { font: 600 2.05em/1 var(--serif); font-variation-settings: "opsz" 40; font-variant-numeric: lining-nums tabular-nums; color: var(--green); }

.table-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, .9fr) 1.4em; align-items: center; gap: .6em; padding: .6em 0; border-bottom: 1px solid var(--rule); font-size: .92em; }
.table-row > span:nth-child(2), .table-row > span:nth-child(3) { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-h { padding-top: 0; font-size: .76em; font-weight: 600; color: var(--slate); }

.nodes { display: grid; grid-template-columns: auto minmax(1.2em, 1fr) auto minmax(1.2em, 1fr) auto; align-items: start; gap: .5em; margin-bottom: 1.2em; }
.node { display: flex; flex-direction: column; align-items: center; gap: .45em; font-size: .8em; font-weight: 600; text-align: center; }
.screen .node .icon { width: 3em; height: 3em; padding: .7em; border-radius: .75em; background: var(--paper); border: 1px solid var(--rule); color: var(--green); }
.screen .node-mid .icon { background: var(--ink); border-color: var(--ink); color: var(--mint); }
.node-link { position: relative; height: 2px; margin-top: 1.9em; background: var(--rule); }
.node-link i { position: absolute; inset: 0; background: var(--green); transform-origin: left center; }

/* screens play (only with motion on): drawn finished by default; starting state until "is-active". The reset back to
   the start waits until a screen has faded out, so nothing visibly rewinds. */
.motion .screen .chip-wait { opacity: 1; transition: opacity 0s .5s; }
.motion .screen .chip-done { opacity: 0; transition: opacity 0s .5s; }
.motion .screen.is-active .chip-wait { opacity: 0; transition: opacity .3s ease var(--done); }
.motion .screen.is-active .chip-done { opacity: 1; transition: opacity .3s ease var(--done); }
.motion .screen .tick { opacity: 0; transform: scale(0); transition: opacity 0s .5s, transform 0s .5s; }
.motion .screen.is-active .tick { opacity: 1; transform: none; transition: opacity .2s ease var(--t, .3s), transform .45s var(--ease) var(--t, .3s); }
.motion .screen .feed-bar i, .motion .screen .limit-bar i, .motion .screen .fx-link i, .motion .screen .node-link i { transform: scaleX(0); transition: transform 0s .5s; }
.motion .screen .cash-bar i { transform: scaleY(0); transition: transform 0s .5s; }
.motion .screen.is-active .feed-bar i, .motion .screen.is-active .limit-bar i, .motion .screen.is-active .fx-link i, .motion .screen.is-active .node-link i, .motion .screen.is-active .cash-bar i { transform: none; transition: transform .6s var(--ease) var(--t2, .2s); }
.motion .screen .fx-cell { background: var(--paper); border-color: var(--rule); transition: background-color 0s .5s, border-color 0s .5s; }
.motion .screen.is-active .fx-cell { background: var(--mint-soft); border-color: #A6D9C6; transition: background-color .35s ease var(--t2), border-color .35s ease var(--t2); }
.motion .screen .td-new, .motion .screen .td-arrow, .motion .screen .cash-move, .motion .screen .flag, .motion .screen .lines-total, .motion .screen .rec-foot, .motion .screen .screen-foot-ok { opacity: 0; transform: translateY(.4em); transition: opacity 0s .5s, transform 0s .5s; }
.motion .screen.is-active .td-new, .motion .screen.is-active .td-arrow, .motion .screen.is-active .cash-move, .motion .screen.is-active .flag, .motion .screen.is-active .lines-total, .motion .screen.is-active .rec-foot, .motion .screen.is-active .screen-foot-ok { opacity: 1; transform: none; transition: opacity .4s ease var(--t3, .8s), transform .5s var(--ease) var(--t3, .8s); }
.motion .screen .sign-ink path { stroke-dashoffset: 1; transition: stroke-dashoffset 0s .5s; }
.motion .screen.is-active .sign-ink path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-in-out .75s; }
/* timings, screen by screen */
.screen-statements .feed li { --t2: calc(.2s + var(--i) * .3s); --t: calc(.75s + var(--i) * .3s); }
.screen-cash .cash-bar { --t2: calc(.25s + var(--i) * .14s); }
.screen-cash .cash-move { --t3: 1.15s; }
.screen-deposit .td-arrow { --t3: .35s; }
.screen-deposit .td-new { --t3: .6s; }
.screen-deposit .limit-bar i { --t2: .9s; }
.screen-deposit .mini-checks li { --t: calc(1.35s + var(--i) * .22s); }
.screen-batch .lines li { --t: calc(.3s + var(--i) * .3s); }
.screen-batch .flag { --t3: 1.4s; }
.screen-batch .lines-total { --t3: 1.85s; }
.screen-fx .fx-cell, .screen-fx .fx-link { --t2: calc(.3s + var(--i) * .38s); }
.screen-fx .fx-cell-r .tick { --t: calc(.6s + var(--i) * .38s); }
.screen-release .lines-total { --t3: .35s; }
.screen-release .screen-foot-ok { --t3: 2s; }
.screen-reconciled .lines li { --t: calc(.25s + var(--i) * .28s); }
.screen-reconciled .rec-foot { --t3: 1.7s; }
.screen-access .table-row { --t: calc(.35s + var(--i) * .3s); }
.screen-access .screen-foot-ok { --t3: 1.75s; }
.screen-connections .node-link { --t2: .3s; }
.screen-connections .node-link + .node + .node-link { --t2: .75s; }
.screen-connections .mini-checks li { --t: calc(1s + var(--i) * .22s); }
.screen-report .lines li { --t: calc(.3s + var(--i) * .3s); }

/* a screen in a page header (service pages) */
.page-hero.has-aside .page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.page-hero.has-aside.has-photo .page-hero-media { width: 100%; }
.page-hero.has-aside.has-photo .page-hero-media::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(16, 36, 62, .82) 45%, rgba(16, 36, 62, .55) 100%); }
.page-hero-aside { min-width: 0; }
.hero-screen { container-type: inline-size; max-width: 520px; margin-left: auto; }
.hero-screen .screen { --screen-size: clamp(12.5px, 2.95cqi, 15px); }
.hero-screen-note { margin: 12px 4px 0; font-size: .8125rem; color: rgba(198, 211, 224, .75); text-align: right; }
.motion .page-hero-aside { animation: rise 1s var(--ease) .3s both; }

/* ---------------------------------------------------------------- services: the map */
.map-section { background: var(--paper); }
.svc-map { position: relative; padding: clamp(20px, 3vw, 36px); border-radius: 22px; color: var(--white); background:
  radial-gradient(60% 60% at 100% 0%, rgba(142, 217, 192, .12), rgba(142, 217, 192, 0) 70%), var(--ink); box-shadow: 0 40px 80px -50px rgba(16, 36, 62, .7); }
.map-managed { display: flex; align-items: center; gap: 18px; padding: 4px 4px 22px; margin-bottom: 22px; border-bottom: 1px dashed rgba(142, 217, 192, .35); }
.map-managed > div { display: grid; gap: 2px; }
.map-managed-name { font: 600 clamp(1.25rem, 1.1rem + .5vw, 1.55rem)/1.2 var(--serif); font-variation-settings: "opsz" 30; color: var(--white); text-decoration: none; justify-self: start; }
.map-managed .map-text { color: var(--mist); }
.map-label { margin: 0 0 12px; font-size: .875rem; font-weight: 600; color: var(--mint); }
.map-band + .map-band { margin-top: 26px; }
.map-flow, .map-base { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.map-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 42px; }
.map-base { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-flow li, .map-base li { position: relative; display: flex; }
.map-flow li + li::before { content: ""; position: absolute; top: 50%; right: 100%; width: 42px; height: 2px; margin-top: -1px; background: var(--mint); transform-origin: left center; }
.map-flow li + li::after { content: ""; position: absolute; top: 50%; right: calc(100% + 2px); width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--mint); border-right: 2px solid var(--mint); transform: rotate(45deg); }
.map-node { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 20px 20px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--white); text-decoration: none; transition: background-color .3s ease, border-color .3s ease, transform .4s var(--ease); }
.map-node:focus-visible { outline-offset: 2px; }
.map-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(142, 217, 192, .14); color: var(--mint); margin-bottom: 8px; transition: background-color .3s ease, color .3s ease; }
.map-managed .map-icon { margin: 0; }
.map-icon .icon { width: 24px; height: 24px; }
.map-name { font: 600 1.1rem/1.25 var(--serif); font-variation-settings: "opsz" 24; }
.map-text { font-size: .9rem; line-height: 1.45; color: var(--mist); }
/* the foundation: wide cards, icon on the left */
.map-base .map-node { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
.map-base .map-icon { grid-row: 1 / span 2; margin: 0; }
.map-base .map-name, .map-base .map-text { grid-column: 2; }
@media (hover: hover) {
  .map-node:hover { background: rgba(255, 255, 255, .1); border-color: rgba(142, 217, 192, .5); transform: translateY(-3px); color: var(--white); }
  .map-node:hover .map-icon { background: var(--mint); color: var(--ink); }
  .map-managed-name:hover { color: var(--mint); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
}
.motion .svc-map .map-node { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease), background-color .3s ease, border-color .3s ease; transition-delay: calc(.1s + var(--i) * .16s), calc(.1s + var(--i) * .16s), 0s, 0s; }
.motion .svc-map.is-in .map-node { opacity: 1; transform: none; }
.motion .svc-map .map-flow li + li::before { transform: scaleX(0); transition: transform .4s var(--ease); }
.motion .svc-map.is-in .map-flow li:nth-child(2)::before { transform: none; transition-delay: .3s; }
.motion .svc-map.is-in .map-flow li:nth-child(3)::before { transform: none; transition-delay: .46s; }
.motion .svc-map.is-in .map-flow li:nth-child(4)::before { transform: none; transition-delay: .62s; }
@media (hover: hover) {
  .motion .svc-map.is-in .map-node:hover { transform: translateY(-3px); transition-delay: 0s; }
}

/* ---------------------------------------------------------------- how we work: the engagement on one time line */
.plan { position: relative; }
.plan-axis { position: relative; height: 22px; margin: 0 0 8px calc(40% + 32px); font-size: .8125rem; font-weight: 600; color: var(--slate); }
.plan-axis span { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); white-space: nowrap; }
.plan-axis span:first-child { transform: none; }
.plan-axis span:last-child { transform: translateX(-100%); }
.plan-rows { position: relative; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
/* go-live: one dashed line down through every row, at 58% of the time line */
.plan-rows::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(40% + 32px + (60% - 32px) * .58); border-left: 2px dashed rgba(15, 107, 92, .35); }
.plan-rows li { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.plan-text { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
.plan-text .step-n { position: static; grid-row: 1 / span 2; }
.plan-text h3 { margin: 6px 0 .3em; }
.plan-text p { grid-column: 2; margin: 0; color: var(--slate); font-size: .98rem; }
.plan-track { position: relative; height: 60px; background: repeating-linear-gradient(90deg, rgba(16, 36, 62, .06) 0, rgba(16, 36, 62, .06) 1px, transparent 1px, transparent 10%); border-radius: 8px; }
.plan-track::after { content: ""; display: none; position: absolute; top: 0; bottom: 0; left: 58%; border-left: 2px dashed rgba(15, 107, 92, .35); }
.plan-label { position: absolute; top: 6px; left: var(--s); max-width: calc(100% - var(--s)); font-size: .8125rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-bar { position: absolute; left: var(--s); width: var(--w); bottom: 12px; height: 14px; border-radius: 999px; background: var(--green); transform-origin: left center; }
.plan-bar-open { background: linear-gradient(90deg, var(--green) 75%, rgba(15, 107, 92, .25)); border-radius: 999px 0 0 999px; }
.plan-ticks { position: absolute; left: var(--s); width: var(--w); bottom: 9px; height: 20px; display: flex; justify-content: space-between; }
.plan-ticks i { width: 6px; height: 20px; border-radius: 3px; background: var(--green); }
.plan-ticks i:nth-child(3n) { background: var(--ink); height: 20px; }
.motion .plan .plan-bar { transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(.2s + var(--i) * .3s); }
.motion .plan.is-in .plan-bar { transform: none; }
.motion .plan .plan-ticks i { transform: scaleY(0); transition: transform .35s var(--ease); transition-delay: calc(1.2s + var(--k) * .1s); }
.motion .plan.is-in .plan-ticks i { transform: none; }
.motion .plan .plan-label { opacity: 0; transition: opacity .5s ease; transition-delay: calc(.4s + var(--i) * .3s); }
.motion .plan.is-in .plan-label { opacity: 1; }

/* ---------------------------------------------------------------- about: what the name stands for */
.acro { font: 500 clamp(2.4rem, 1.4rem + 3vw, 4.4rem)/1.04 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; color: rgba(255, 255, 255, .3); text-align: right; }
.acro p { margin: 0; }
.acro b { font-weight: 600; color: var(--mint); }
.acro-word { display: inline-block; margin-top: .35em; padding-top: .25em; border-top: 2px solid rgba(142, 217, 192, .5); font-weight: 600; letter-spacing: .06em; color: var(--white); }
.motion .acro p, .motion .acro-word { opacity: 0; transform: translateX(24px); transition: opacity .7s ease, transform .9s var(--ease); }
.motion .acro p:nth-child(2) { transition-delay: .12s; }
.motion .acro p:nth-child(3) { transition-delay: .24s; }
.motion .acro .acro-word { transition-delay: .6s; }
.motion .acro.is-in p, .motion .acro.is-in .acro-word { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- service cells: their photo fades in behind them on hover */
@media (hover: hover) {
  .svc-cell.has-photo::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .45s ease; }
  .photos-ready .svc-cell.has-photo::before { background: linear-gradient(180deg, rgba(16, 36, 62, .62), rgba(16, 36, 62, .92)), var(--photo) center / cover no-repeat, var(--ink); }
  .svc-cell.has-photo > * { position: relative; }
  .svc-cell.has-photo:hover { background: var(--ink); }
  .svc-cell.has-photo:hover::before { opacity: 1; }
  .svc-cell.has-photo:hover .svc-cell-name { color: var(--white); }
  .svc-cell.has-photo:hover .svc-cell-text { color: var(--mist); }
  .svc-cell.has-photo:hover .svc-cell-go { color: var(--mint); }
  .svc-cell.has-photo:hover .svc-cell-icon { background: var(--mint); color: var(--ink); }
}
.svc-cell.has-photo:focus-visible { --focus: var(--green); }
.svc-cell.has-photo:hover:focus-visible { --focus: var(--mint); }

/* ---------------------------------------------------------------- footer wordmark */
.footer-mark { margin: 28px 0 0; text-align: center; white-space: nowrap; user-select: none; pointer-events: none; font: 600 clamp(5rem, 24vw, 24rem)/.74 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.01em; color: rgba(255, 255, 255, .045); }

/* ---------------------------------------------------------------- moving between pages (browsers that support it) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- the new parts on smaller screens */
@media (max-width: 1100px) {
  .map-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 42px; }
  .map-flow li:nth-child(3)::before, .map-flow li:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .page-hero.has-aside .page-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-screen { margin: 0; }
  .hero-screen-note { text-align: left; }
  .acro { text-align: left; font-size: clamp(2.2rem, 1.4rem + 4vw, 3.2rem); }
  .plan-axis { display: none; }
  .plan-rows li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plan-rows::before { display: none; }
  .plan-track::after { display: block; }
  /* labels of bars that start late end at the right edge instead, so they fit */
  .plan-label-late { left: auto; right: 0; max-width: 100%; }
  .plan-track { margin-left: 70px; }
}
@media (max-width: 640px) {
  .hero-proof { flex-direction: column; gap: 12px; }
  .map-flow, .map-base { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .map-base { gap: 14px; }
  .map-flow li + li::before { top: auto; bottom: 100%; right: auto; left: 34px; width: 2px; height: 34px; margin: 0; transform-origin: center top; }
  .map-flow li + li::after { top: auto; bottom: calc(100% + 2px); right: auto; left: 31px; margin: 0; transform: rotate(135deg); }
  .map-flow li:nth-child(3)::before, .map-flow li:nth-child(3)::after { display: block; }
  .motion .svc-map .map-flow li + li::before { transform: scaleY(0); }
  .motion .svc-map.is-in .map-flow li + li::before { transform: none; }
  .map-managed { align-items: flex-start; }
  .plan-track { margin-left: 0; }
  .plan-label { font-size: .75rem; }
  .story-step + .story-step { margin-top: 56px; }
  .footer-mark { margin-top: 18px; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--mist); padding: 72px 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 20em; }
.footer-col h2 { font: 600 .9375rem/1.3 var(--sans); color: var(--white); letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 0; }
.footer-col li a { display: inline-block; padding: 5px 0; }
.site-footer a { color: #E2EAF2; text-decoration: none; }
.footer-email { display: inline-flex; align-items: center; gap: 10px; }
.footer-email .icon { width: 20px; height: 20px; color: var(--mint); }
.site-footer .btn-mint { color: var(--ink); }
@media (hover: hover) {
  .site-footer a:hover { color: var(--mint); text-decoration: underline; }
  .site-footer .btn-mint:hover { color: var(--ink); text-decoration: none; }
}
.footer-base { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: 8px 24px; padding-top: 22px; font-size: .8125rem; color: #93A5B9; }
.footer-tagline { text-align: center; }
.footer-credit { justify-self: end; text-align: right; }
.footer-preview { grid-column: 1 / -1; text-align: center; color: var(--mint); }
/* phones: the tagline on its own line in the middle, then the copyright on the left and the credit on the right */
@media (max-width: 640px) {
  .footer-base { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-tagline { grid-column: 1 / -1; grid-row: 1; }
  .footer-copy { grid-row: 2; }
  .footer-credit { grid-row: 2; }
}
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--rule-dark); }
.footer-base p { margin: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; }
  .steps li:nth-child(2)::before, .steps li:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero { min-height: 0; padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-title { max-width: 12em; }
  .recon-wrap { justify-self: start; margin-top: 18px; }
  .hero-ledger { -webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 74%, #000 0%, transparent 80%); mask-image: radial-gradient(ellipse 90% 40% at 50% 74%, #000 0%, transparent 80%); }
  .motion .hero-drift { display: none; }
  .hero::before { background:
    linear-gradient(180deg, rgba(16, 36, 62, .88) 0%, rgba(16, 36, 62, .7) 45%, rgba(16, 36, 62, .82) 100%); }
  .hero-media img { object-position: 60% 60%; }

  .controls { grid-template-columns: minmax(0, 1fr); }
  .controls-media { min-height: 0; aspect-ratio: 16 / 11; max-height: 560px; }
  .controls-body { padding: 56px var(--gutter) 72px; max-width: none; }

}

@media (max-width: 900px) {
  .section-head-split { grid-template-columns: minmax(0, 1fr); }
  .lead-grid, .cta-row, .svc-row, .svc-page, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-media { aspect-ratio: 16 / 10; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .svc-media { aspect-ratio: 16 / 10; }
  .who-grid, .svc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cta-row { align-items: start; }
  .page-hero-media { width: 100%; }
  .page-hero-media::after { background: linear-gradient(180deg, rgba(16, 36, 62, .82) 0%, rgba(16, 36, 62, .9) 100%); }
  .contact-aside { grid-row: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .benefit-grid, .svc-grid, .who-grid, .svc-grid-3, .steps, .control-list { grid-template-columns: minmax(0, 1fr); }
  .svc-cell { min-height: 0; padding: 24px 22px 20px; display: grid; grid-template-columns: 50px minmax(0, 1fr) 22px; column-gap: 18px; align-items: start; }
  .svc-cell-icon { grid-row: 1 / span 2; margin: 0; }
  .svc-cell-name { grid-column: 2; margin-top: 2px; }
  .svc-cell-text { grid-column: 2; }
  .svc-cell-go { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 12px 0 0; }
  .svc-cell-cta { display: flex; }
  .svc-cell-cta .svc-cell-text { margin-bottom: 18px; }
  .steps li { padding-top: 0; padding-left: 72px; min-height: 52px; }
  .steps li::before, .steps li::after { display: block; left: 25px; right: auto; top: 60px; bottom: -32px; width: 2px; height: auto; }
  .steps li:nth-child(2)::before, .steps li:nth-child(2)::after { display: block; }
  .steps li:last-child::before, .steps li:last-child::after { display: none; }
  .steps li::after { transform-origin: center top; }
  .motion .steps li::after { transform: scaleY(0); }
  .motion .steps.is-in li::after { transform: scaleY(1); }
  .steps h3 { padding-top: 12px; }
  .field-row, .checks { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .actions .btn { flex: 1 1 auto; }
  .recon { padding: 18px 14px 16px; }
  .recon-row { padding: 0 9px; grid-template-columns: minmax(0, 1fr); }
  .recon-tick { display: none; }
  .recon-head { grid-template-columns: minmax(0, 1fr); }
  .recon-status { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 10px; }
  .recon-foot { gap: 12px; }
  .recon-seal { width: 66px; height: 66px; }
  .seal-tick { width: 22px; height: 22px; }
  .recon-count strong { font-size: 1.25rem; }
  .recon-ghost-1 { transform: translateY(-11px) scale(.95); }
  .recon-ghost-2 { transform: translateY(-21px) scale(.9); }
  .controls-media { aspect-ratio: 1 / 1; max-height: 460px; }
  .benefit { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; padding-top: 22px; }
  .benefit .badge-icon { grid-row: 1 / span 2; margin: 0; }
  .benefit h3 { margin: 12px 0 .35em; }
  .benefit p { grid-column: 2; }
  .who-grid li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 22px 20px; }
  .who-icon { grid-row: 1 / span 2; margin: 0; }
  .flow { padding: 16px 4px 14px; }
  .flow li { padding: 0 4px; gap: 10px; }
  .flow-label { font-size: .75rem; }
  .degree { padding: 16px; gap: 14px; }
  .degree p { font-size: 1.05rem; }
  .form-foot .btn { width: 100%; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .recon-replay, .hero-media, .controls-media picture { display: none; }
  .hero, .page-hero, .controls { background: none; color: var(--ink); }
  .hero-title, .page-hero h1, .controls h2 { color: var(--ink); }
  .hero::before, .page-hero-media { display: none; }
  .story, .svc-map { background: none; color: var(--ink); }
  .story h2, .story-text h3, .map-managed-name, .map-name { color: var(--ink); }
  .story-text p, .story-head p, .map-text { color: var(--slate); }
  .story-stage { display: none !important; }
  .story-inline { display: block !important; }
  .js .story-text { opacity: 1 !important; }
  .footer-mark { display: none; }
  .hero-fx, .recon-aura, .recon-ghost, .recon-edge, .recon-spot, .seal-wave { display: none; }
  .recon { --fg: var(--ink); --fg-2: var(--slate); --accent: var(--green); --line: var(--rule); --cell: var(--paper); --cell-line: var(--rule); --hit: #EFF8F4; --hit-line: #A6D9C6; --node: #B9C6C2; --card: var(--white);
    background: var(--white); box-shadow: 0 0 0 1px var(--rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .recon-wrap { transform: none; }
  .recon-status { background: var(--mint-soft); border-color: #A6D9C6; color: var(--green-dark); }
}
