/* ==========================================================================
   JMS Print & Mail - "The Richmond Terrace Line"
   Harbor navy + ferry orange. Paper-cut illustration, transit-line process,
   postcard review cards. WCAG 2.2 AA contrast pairs are noted inline.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #0B2A4A;          /* text on paper 14.3:1 */
  --night: #071B31;         /* darkest sections */
  --paper: #FFFDF8;
  --cream: #F5F1E6;
  --foam: #E8F1EF;
  --orange: #F26B1D;        /* fills/graphics; navy text on it 4.77:1; white text NOT allowed */
  --orange-deep: #B93B08;   /* text on paper 5.6:1, foam 4.95:1; white text on it >5:1 */
  --steel: #4F5F70;         /* secondary text on paper 6.45:1 */
  --signal: #FFD23F;        /* focus ring on navy 10:1 */
  --teal: #0E7C7B;
  --sky: #8EC5E8;
  --mist: #B8C7D6;          /* secondary text on navy ~8:1 */
  --rule: #CFD8DF;          /* decorative only */
  --field: #6B7A8A;         /* input borders 4.3:1 */

  --font-display: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(11, 42, 74, .08), 0 10px 24px -12px rgba(11, 42, 74, .28);
  --shadow-2: 0 2px 4px rgba(11, 42, 74, .10), 0 24px 48px -18px rgba(11, 42, 74, .38);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg { overflow: visible; }
a { color: var(--orange-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; font-stretch: 90%; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem); letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 2px dashed var(--rule); margin: 2rem 0; }
strong { font-weight: 700; }
small { font-size: .875em; }
/* two-tone focus ring: navy ring hugging the element + yellow outer ring (>=3:1 on paper, foam, cream AND navy); !important beats component box-shadows */
:focus-visible,
.btn:focus-visible, .tile:focus-visible, .anatomy__dot:focus-visible, .mobile-bar .btn:focus-visible, .consent .btn:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; box-shadow: 0 0 0 3px var(--navy) !important; border-radius: 4px; }
.btn:focus-visible, .tile:focus-visible, .card a:focus-visible { border-radius: 999px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; box-shadow: 0 0 0 3px var(--navy) !important; }
::selection { background: var(--signal); color: var(--navy); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--signal); color: var(--navy); padding: .75rem 1rem; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
main:focus { outline: none; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--foam { background: var(--foam); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--night); color: var(--cream); }
.section--dark a { color: var(--sky); }
.section--dark a:hover { color: #fff; }
.section--dark .lede, .on-dark .lede { color: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--orange); }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); color: var(--steel); line-height: 1.55; max-width: 40rem; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

/* Print-shop motifs */
.perf { height: 0; border: 0; border-top: 3px dotted currentColor; opacity: .28; margin: 0; }
.crop { position: relative; }
.crop::before, .crop::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--navy); opacity: .55; pointer-events: none; }
.crop::before { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.crop::after { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- 4. Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--night); color: var(--cream); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .55); }
.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); line-height: 1; flex: none; }
.brand:hover { color: #fff; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand img { display: block; height: 48px; width: auto; }
.site-footer .brand img { height: 56px; }
.brand__text { display: flex; flex-direction: column; gap: .28rem; }
.brand__jms { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; letter-spacing: .02em; font-stretch: 100%; }
.brand__sub { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--mist); }
.nav { margin-left: auto; display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__list > li { margin: 0; position: relative; }
.nav__link, .nav__btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; color: var(--cream); background: none; border: 0; font: inherit; font-weight: 600; font-size: .98rem; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; cursor: pointer; min-height: 44px; }
.nav__link:hover, .nav__btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__link[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__btn svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__panel { position: absolute; left: 0; top: calc(100% + 8px); min-width: 17rem; background: var(--paper); color: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .5rem; list-style: none; margin: 0; display: none; z-index: 5; }
.nav__panel.is-open { display: block; animation: pop .18s var(--ease); }
.nav__panel a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; }
.nav__panel a small { display: block; font-weight: 400; color: var(--steel); font-size: .85rem; line-height: 1.3; }
.nav__panel a:hover { background: var(--foam); color: var(--navy); }
.nav__panel li { margin: 0; }
.header-actions { display: none; align-items: center; gap: .5rem; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--cream); font-weight: 700; text-decoration: none; padding: .5rem .6rem; border-radius: 10px; white-space: nowrap; }
.header-phone:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-phone svg { width: 18px; height: 18px; color: var(--orange); }
.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; background: none; border: 2px solid rgba(255, 255, 255, .25); color: var(--cream); border-radius: 10px; padding: .55rem .8rem; font: inherit; font-weight: 700; min-height: 44px; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; background: var(--night); border-top: 1px solid rgba(255, 255, 255, .1); max-height: calc(100vh - var(--header-h)); overflow: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .75rem 0 1.25rem; }
.mobile-nav li { margin: 0; }
.mobile-nav a { display: block; color: var(--cream); text-decoration: none; padding: .8rem .25rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-nav .mobile-nav__group { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); padding: 1rem .25rem .25rem; }
.mobile-nav .mobile-nav__sub a { padding-left: 1rem; font-weight: 500; font-size: 1rem; color: var(--mist); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; }
@media (min-width: 1100px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1259px) { .header-phone span { display: none; } .nav__link, .nav__btn { padding-inline: .6rem; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

.breadcrumb { background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .06); padding: .7rem 0 .2rem; }
.breadcrumb ol { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; color: var(--mist); }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb [aria-current] { color: var(--cream); }

/* ---------- 5. Buttons / chips ---------- */
.btn { --b-bg: var(--orange); --b-fg: var(--navy); --b-bd: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px;
  font: 800 1rem/1.1 var(--font-body); letter-spacing: .005em; text-decoration: none; cursor: pointer; background: var(--b-bg); color: var(--b-fg); border: 2px solid var(--b-bd);
  box-shadow: 0 6px 0 -2px rgba(7, 27, 49, .35); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s; position: relative; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 -3px rgba(7, 27, 49, .35); color: var(--b-fg); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px rgba(7, 27, 49, .35); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn--dark { --b-bg: var(--navy); --b-fg: var(--cream); --b-bd: var(--navy); }
.btn--dark:hover { color: #fff; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--navy); --b-bd: var(--navy); box-shadow: none; }
.btn--ghost:hover { --b-bg: var(--navy); color: var(--cream); }
.on-dark .btn--ghost, .section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .site-header .btn--ghost, .mobile-bar .btn--ghost, .mobile-nav .btn--ghost { --b-fg: var(--cream); --b-bd: rgba(245, 241, 230, .6); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .mobile-bar .btn--ghost:hover { --b-bg: var(--cream); color: var(--navy); }
.btn--light { --b-bg: var(--paper); --b-fg: var(--navy); --b-bd: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: var(--cream); font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.chip svg { width: 16px; height: 16px; color: var(--orange); }
.chip--light { background: var(--foam); border-color: transparent; color: var(--navy); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.star { color: var(--orange-deep); fill: currentColor; }
.star--off { color: var(--field); }

/* ---------- 6. Hero (home) ---------- */
.hero { position: relative; background: var(--night); color: var(--cream); overflow: hidden; isolation: isolate; }
.hero__inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
.hero .lede { color: var(--mist); max-width: 34rem; }
.hero__proof { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.hero__scene { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 600 / 540; }
.hero__scene > svg { width: 100%; height: 100%; }
.float-badge { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 800; font-size: .92rem; box-shadow: 4px 4px 0 var(--navy); border: 2px solid var(--navy); white-space: nowrap; transform: translate3d(var(--px, 0), var(--py, 0), 0); }
.float-badge svg { width: 18px; height: 18px; }
.float-badge--a { top: 6%; left: 2%; rotate: -4deg; }
.float-badge--b { bottom: 12%; right: 0; rotate: 3deg; }
.float-badge--c { bottom: 3%; left: 8%; rotate: -2deg; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.piece { transform-box: fill-box; transform-origin: center; }
.piece--1 { transform: translate(var(--px, 0), var(--py, 0)); }
.piece--2 { transform: translate(var(--px, 0), var(--py, 0)); }
.piece--3 { transform: translate(var(--px, 0), var(--py, 0)); }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: .8deg; } }
.route-path { stroke-dasharray: 1 12; stroke-linecap: round; }
.route-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stop-dot { transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* misregistration headline effect (CMYK plates slide into register) */
.misreg { text-shadow: 3px 0 0 rgba(0, 174, 239, .0), -3px 0 0 rgba(236, 0, 140, .0); animation: register 1.4s .15s var(--ease) both; }
@keyframes register { 0% { text-shadow: 10px 0 0 rgba(0, 174, 239, .7), -10px 0 0 rgba(236, 0, 140, .6), 0 6px 0 rgba(255, 210, 63, .6); } 100% { text-shadow: 0 0 0 rgba(0, 174, 239, 0), 0 0 0 rgba(236, 0, 140, 0), 0 0 0 rgba(255, 210, 63, 0); } }

/* ---------- 7. Inner page hero ---------- */
.page-hero { background: var(--night); color: var(--cream); padding-block: clamp(2.25rem, 5vw, 4.25rem); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.2rem, 1.1rem + 4vw, 3.9rem); }
.page-hero .lede { color: var(--mist); }
.page-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .page-hero__grid--art { grid-template-columns: 1.3fr .7fr; } }
.page-hero__art { width: min(100%, 300px); margin-inline: auto; }
.page-hero__art svg { width: 100%; height: auto; rotate: -3deg; }

/* ---------- 8. Marquee ---------- */
.marquee { background: var(--orange); color: var(--navy); overflow: hidden; border-block: 3px solid var(--navy); }
.marquee__track { display: flex; width: auto; justify-content: center; }
.marquee__group[aria-hidden="true"] { display: none; }
.marquee__group { flex-wrap: wrap; justify-content: center; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__item { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); padding: .75rem 1.25rem; display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap; }
.marquee__item::after { content: ""; width: 14px; height: 14px; border: 3px solid var(--navy); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Cards ---------- */
.card { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: clamp(1.15rem, 2.5vw, 1.6rem); position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: 6px 6px 0 var(--navy); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover, .card--link:focus-within { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--orange); }
.card--link a.card__link::after { content: ""; position: absolute; inset: 0; }
.card--flat { box-shadow: none; }
.card--dark { background: #0F3358; border-color: rgba(245, 241, 230, .25); color: var(--cream); box-shadow: none; }
.card__art { height: 112px; margin: -.25rem 0 1rem; display: flex; align-items: flex-end; }
.card__art svg { height: 100%; width: auto; max-width: 100%; transition: transform .35s var(--ease); transform-origin: 30% 80%; }
.card--link:hover .card__art svg { transform: rotate(-4deg) translateY(-4px) scale(1.04); }
.card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--orange-deep); margin-top: .5rem; }
.card__more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card--link:hover .card__more svg { transform: translateX(4px); }
.card__tag { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--foam); border-radius: 999px; padding: .2rem .6rem; color: var(--navy); }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out; will-change: transform; }

/* intent tiles */
.tiles { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.tile { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: #fff; border: 2px solid var(--navy); text-decoration: none; color: var(--navy); font-weight: 800; box-shadow: 4px 4px 0 var(--navy); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; min-height: 76px; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); background: var(--paper); color: var(--navy); }
.tile svg.tile__art { width: 52px; height: 52px; flex: none; }
.tile small { display: block; font-weight: 500; color: var(--steel); font-size: .85rem; line-height: 1.3; }

/* ---------- 10. The Line (process) ---------- */
.line { --p: 0; position: relative; padding-top: 1rem; }
.line__rail { display: none; }
.line__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; counter-reset: stop; }
.line__stop { position: relative; padding: 0 0 1.75rem 3.25rem; margin: 0; counter-increment: stop; }
.line__stop::before { content: ""; position: absolute; left: 1.05rem; top: 2.1rem; bottom: -.1rem; width: 4px; background: rgba(245, 241, 230, .2); }
.line__stop:last-child::before { display: none; }
.line__stop::after { content: counter(stop); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--night); border: 4px solid rgba(245, 241, 230, .35); color: var(--cream); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: .95rem; transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.line__stop.is-on::after { background: var(--orange); border-color: var(--orange); color: var(--navy); transform: scale(1.12); }
.line__stop.is-on::before { background: var(--orange); }
.line__stop h3 { color: #fff; margin-bottom: .2rem; }
.line__stop p { color: var(--mist); margin: 0; }
.line__time { display: inline-block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: var(--signal); margin-bottom: .35rem; }
@media (min-width: 900px) {
  .line__stops { grid-template-columns: repeat(var(--n, 6), 1fr); gap: 1rem; }
  .line__rail { display: block; position: absolute; left: 1.25rem; right: 1.25rem; top: 2.5rem; height: 4px; background: rgba(245, 241, 230, .2); border-radius: 4px; }
  .line__rail > span { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--orange); border-radius: 4px; transition: width .15s linear; }
  .line__rail > i { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 44px; height: 44px; margin: -22px 0 0 -22px; transition: left .15s linear; }
  .line__rail > i svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
  .line__stop { padding: 5rem 0 0; }
  .line__stop::before { display: none; }
  .line__stop::after { top: .6rem; left: 0; }
}
.line--light .line__stop h3 { color: var(--navy); }
.line--light .line__stop p { color: var(--steel); }

/* ---------- 11. Stats ---------- */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); background: rgba(245, 241, 230, .18); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(245, 241, 230, .18); }
.stat { background: #0C2A4A; padding: 1.4rem 1.2rem; }
.stat__num { font-family: var(--font-display); font-weight: 900; font-stretch: 85%; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1; color: #fff; display: flex; align-items: baseline; gap: .3rem; }
.stat__num small { font-size: .45em; color: var(--orange); font-weight: 800; }
.stat__label { color: var(--mist); font-size: .95rem; margin-top: .4rem; line-height: 1.35; }

/* ---------- 12. Certification badges ---------- */
.certs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.cert { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius); background: #fff; border: 2px solid var(--navy); text-decoration: none; color: var(--navy); }
a.cert:hover { background: var(--foam); color: var(--navy); }
.cert__seal { width: 52px; height: 52px; flex: none; }
.cert strong { display: block; line-height: 1.2; }
.cert span { color: var(--steel); font-size: .9rem; line-height: 1.35; display: block; margin-top: .15rem; }
.cert-strip { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.cert-strip a, .cert-strip span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; color: var(--cream); text-decoration: none; padding: .3rem .7rem .3rem .4rem; border: 1px solid rgba(245, 241, 230, .28); border-radius: 999px; }
.cert-strip a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cert-strip svg { width: 20px; height: 20px; color: var(--orange); }

/* ---------- 13. Reviews (postcards) ---------- */
.rating-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.rating-hero__num { font-family: var(--font-display); font-weight: 900; font-stretch: 85%; font-size: clamp(3.4rem, 2rem + 5vw, 5.5rem); line-height: .9; }
.rating-hero__stars { display: flex; gap: 2px; }
.rating-hero__stars svg { width: 28px; height: 28px; }
.topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.topics li { margin: 0; background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .92rem; }
.topics li span { font-family: var(--font-mono); font-weight: 500; color: var(--orange-deep); margin-left: .3rem; }
.reviews-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.review-card { position: relative; background: #fffef9; border: 2px solid var(--navy); border-radius: 10px; padding: 1.5rem 1.35rem 1.2rem; box-shadow: 6px 6px 0 var(--navy); transform: rotate(var(--tilt, 0deg)); transition: transform .3s var(--ease), box-shadow .3s var(--ease); margin: 0; }
.review-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 9px 9px 0 var(--orange); }
.review-card::before { content: ""; position: absolute; inset: 7px; border: 2px dashed var(--rule); border-radius: 6px; pointer-events: none; }
.review-card__stamp { position: absolute; top: -14px; right: 16px; width: 70px; height: 70px; border-radius: 50%; border: 3px double var(--orange-deep); color: var(--orange-deep); display: grid; place-items: center; transform: rotate(12deg); background: var(--paper); font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.review-card__stamp span { display: block; border-block: 2px solid currentColor; padding: .15rem .25rem; }
.review-card__stars { display: flex; gap: 2px; margin-bottom: .6rem; }
.review-card__text { margin: 0 0 1rem; position: relative; }
.review-card__text p { margin: 0; font-size: 1.02rem; }
.review-card__by { display: flex; align-items: center; gap: .75rem; position: relative; border-top: 2px dotted var(--rule); padding-top: .85rem; line-height: 1.3; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-weight: 800; flex: none; }
.review-card__meta { color: var(--steel); font-size: .85rem; }

/* ---------- 14. Spec "job ticket" tables + FAQ ---------- */
.ticket { border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; margin: 0; overflow: hidden; }
.ticket__row { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; border-top: 2px dashed var(--rule); }
.ticket__row:first-child { border-top: 0; }
.ticket dt { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: var(--foam); padding: .85rem 1rem; display: flex; align-items: center; color: var(--navy); font-weight: 500; }
.ticket dd { margin: 0; padding: .8rem 1rem; }
.ticket__title { background: var(--navy); color: var(--cream); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .6rem 1rem; display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 560px) { .ticket__row { grid-template-columns: 1fr; } .ticket dt { padding-bottom: .4rem; } }
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3.25rem 1rem 1.15rem; font-weight: 800; font-size: 1.05rem; position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--orange-deep); border-bottom: 3px solid var(--orange-deep); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] { box-shadow: 5px 5px 0 var(--orange); }
.faq__a { padding: 0 1.15rem 1.15rem; }
.faq__a > :last-child { margin-bottom: 0; }

/* prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--orange-deep); font-weight: 800; }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1.5rem 0; }
.prose th, .prose td, .table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 2px solid var(--rule); vertical-align: top; }
.prose th, .table th { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: var(--foam); }
/* table scroll safety */
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.table-wrap { overflow-x: auto; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; }
.table-wrap .table { margin: 0; }
.glossary { margin: 0; display: grid; gap: .9rem; }
.glossary dt { font-weight: 800; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.glossary dd { margin: .15rem 0 0; padding-bottom: .9rem; border-bottom: 2px dotted var(--rule); }
.glossary dd:last-child { border-bottom: 0; }
.callout { border-left: 8px solid var(--orange); background: var(--cream); padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout > :last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 2rem; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .22rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--orange); }
.checks li::after { content: ""; position: absolute; left: .45rem; top: .45rem; width: .38rem; height: .65rem; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(40deg); }
.section--dark .checks li::before { background: var(--orange); }

/* ---------- 15. Mailpiece anatomy ---------- */
.anatomy { max-width: 760px; margin-inline: auto; }
.anatomy svg { width: 100%; height: auto; }
.anatomy__dot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--orange); color: var(--navy); border: 3px solid var(--navy); font-weight: 900; cursor: pointer; display: grid; place-items: center; font-family: var(--font-mono); box-shadow: 0 0 0 0 rgba(242, 107, 29, .6); animation: pulse 1.6s 3; padding: 0; }
.anatomy__stage { position: relative; }
.anatomy__dot[aria-pressed="true"], .anatomy__dot[aria-expanded="true"] { background: var(--navy); color: var(--cream); animation: none; }
html:not(.js) .anatomy__dot { display: none; }
@media (max-width: 480px) { .anatomy__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: .85rem; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(242, 107, 29, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 107, 29, 0); } }
.anatomy__legend { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); counter-reset: part; }
.anatomy__legend li { margin: 0; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: .8rem 1rem .8rem 3.2rem; position: relative; transition: background .2s, box-shadow .2s; }
.anatomy__legend li::before { counter-increment: part; content: counter(part); position: absolute; left: .8rem; top: .8rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--orange); color: var(--navy); font-family: var(--font-mono); font-weight: 700; display: grid; place-items: center; }
.anatomy__legend li.is-active { background: var(--foam); box-shadow: 4px 4px 0 var(--orange); }
.anatomy__legend strong { display: block; }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 800; }
.field .hint { font-weight: 400; color: var(--steel); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--navy); background: #fff; border: 2px solid var(--field); border-radius: 12px; padding: .8rem .9rem; min-height: 50px; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--orange-deep); background: #fff7f2; }
.field .error { color: var(--orange-deep); font-weight: 700; font-size: .92rem; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.checkset { border: 2px solid var(--field); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0; background: #fff; }
.checkset legend { padding: 0 .4rem; }
.checkset label { display: flex; align-items: center; gap: .6rem; font-weight: 600; padding: .35rem 0; min-height: 44px; }
.checkset input { width: 22px; height: 22px; min-height: 0; accent-color: var(--orange-deep); }
.dropzone { border: 3px dashed var(--field); border-radius: var(--radius); padding: 1.4rem; text-align: center; background: var(--paper); transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.is-over { background: var(--foam); border-color: var(--navy); }
.dropzone input[type=file] { border: 0; padding: .5rem; background: transparent; min-height: 0; }
.form-status { padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 700; }
.form-status:empty { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.form-status.is-ok { background: var(--foam); border: 2px solid var(--teal); }
.form-status.is-err { background: #fff1e8; border: 2px solid var(--orange-deep); }
.hp { position: absolute; left: -9999px; }

/* ---------- 17. CTA band / footer ---------- */
.cta-band { background: var(--orange); color: var(--navy); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--navy); }
.cta-band__inner { position: relative; display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1.4fr .6fr; } }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { font-size: 1.15rem; margin: 0; max-width: 40rem; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 860px) { .cta-band .btn-row { justify-content: flex-end; } }
.cta-band .btn--primary-alt { --b-bg: var(--navy); --b-fg: var(--cream); --b-bd: var(--navy); }
.site-footer { background: var(--night); color: var(--mist); padding-top: clamp(2.5rem, 6vw, 4rem); font-size: .98rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding-bottom: 2.5rem; }
.footer-grid h2 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 .9rem; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-nap { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 5.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .88rem; }
@media (min-width: 1100px) { .footer-bottom { padding-bottom: 1.5rem; } }
.footer-certs { margin: 1.25rem 0 0; }

/* sticky mobile action bar */
.mobile-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid rgba(255, 255, 255, .12); transform: translateY(0); transition: transform .3s var(--ease); }
.mobile-bar { transition: transform .3s var(--ease), visibility 0s; }
.mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.mobile-bar .btn { min-height: 48px; box-shadow: none; }
@media (min-width: 1100px) { .mobile-bar { display: none; } }

/* cookie / analytics consent */
.consent { position: fixed; z-index: 120; left: var(--gutter); right: var(--gutter); bottom: 5.25rem; max-width: 34rem; background: var(--paper); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 1rem 1.1rem; display: none; font-size: .95rem; }
.consent.is-open { display: block; animation: pop .25s var(--ease); }
.consent p { margin: 0 0 .8rem; }
.consent .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; box-shadow: none; }
@media (min-width: 1100px) { .consent { left: 1.25rem; right: auto; bottom: 1.25rem; } }

/* ---------- 18. Reveal / motion utilities ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-18px); }
.js .reveal--right { transform: translateX(18px); }
@media (max-width: 879px) { .js .reveal--left, .js .reveal--right { transform: translateY(26px); } }
.js .reveal--pop { transform: scale(.92); }
.js .review-card.reveal { transform: translateY(26px) rotate(var(--tilt, 0deg)); }
.js .review-card.reveal.is-in { transform: rotate(var(--tilt, 0deg)); }
.js .review-card.reveal.is-in:hover { transform: rotate(0deg) translateY(-4px); }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes rise { to { transform: none; } }

/* ---------- 19. Review redirect page ---------- */
.redirect-card { max-width: 38rem; margin: 0 auto; text-align: center; }
.redirect-card .spinner { width: 54px; height: 54px; margin: 0 auto 1.25rem; border-radius: 50%; border: 5px solid var(--rule); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 20. Reduced motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal--left, .js .reveal--right, .js .reveal--pop { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .route-draw { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
  .misreg { text-shadow: none; }
}
@media print {
  .site-header, .mobile-bar, .consent, .marquee, .cta-band, .breadcrumb, .hero__scene { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .section, .page-hero { padding-block: 1rem; background: none !important; color: #000 !important; }
}

/* ---------- 21. Audit fixes: motion control, failsafes, small-screen safety ---------- */
html { scroll-padding-bottom: 1rem; }
@media (max-width: 1099px) { html { scroll-padding-bottom: 6rem; } }
@media (max-height: 520px) { .site-header, .mobile-bar { position: static; } }

/* user-controlled pause (WCAG 2.2.2): html[data-motion="paused"] */
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation-play-state: paused !important; }
html[data-motion="paused"] .marquee__track { animation: none !important; }
html[data-motion="paused"] .split-words .w > span { transform: none; }
html[data-motion="paused"] .misreg { animation: none; text-shadow: none; }
.motion-toggle { background: transparent; border: 2px solid rgba(245, 241, 230, .45); color: var(--cream); border-radius: 999px; padding: .35rem .9rem; font: 700 .88rem/1.2 var(--font-body); min-height: 44px; cursor: pointer; }
.motion-toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.motion-toggle[aria-pressed="true"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--cream); text-decoration: underline; cursor: pointer; min-height: 44px; }
.linklike:hover { color: #fff; }
.hero__motion { margin-top: 1.1rem; }

/* content never stays hidden if the script is blocked */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.js .reveal:not(.is-in) { animation: reveal-failsafe .01s 3s forwards; }
.js .review-card.reveal:not(.is-in) { animation-name: reveal-failsafe-tilt; }
@keyframes reveal-failsafe-tilt { to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; animation: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .page-hero__art svg, .piece, .float-badge { animation: none; }
  .js .reveal:not(.is-in) { animation: none; opacity: 1; transform: none; }
}
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .motion-toggle, .linklike { display: none; }
}
/* ---------- 22. Valid ticket markup wrapper, no-JS navigation, narrow header ---------- */
.ticket-wrap { border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; position: relative; }
.ticket-wrap > .ticket { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.ticket-wrap > .ticket__title { margin: 0; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
html:not(.js) .nav, html:not(.js) .menu-toggle { display: none; }
html:not(.js) .mobile-nav { display: block; }
html:not(.js) .header-actions { display: flex; }
@media (max-width: 359px) { .brand img { height: 40px; } }
.mobile-nav a[aria-current="page"], .nav__panel a[aria-current="page"] { background: var(--foam); color: var(--navy); box-shadow: inset 4px 0 0 var(--orange); }
.mobile-nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
/* ---------- 23. Chat widget (quick answers + message to inbox) ---------- */
.chat { display: none; }
.js .chat { display: block; }
.chat__launch { position: fixed; z-index: 95; right: 1.1rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: .55rem; background: var(--orange); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: .75rem 1.1rem; font: 800 1rem/1 var(--font-body); cursor: pointer; min-height: 52px; box-shadow: 4px 4px 0 var(--navy); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.chat__launch:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
.chat__launch svg { width: 22px; height: 22px; }
.chat__launch[aria-expanded="true"] { display: none; }
.chat__panel { position: fixed; z-index: 110; right: 1.1rem; bottom: 1.1rem; width: min(390px, calc(100vw - 2rem)); max-height: min(640px, calc(100vh - 2.2rem)); display: flex; flex-direction: column; background: var(--paper); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--navy); overflow: hidden; }
.chat__panel[hidden] { display: none; }
.chat__head { background: var(--night); color: var(--cream); padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.chat__head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.chat__head p { margin: .15rem 0 0; font-size: .85rem; color: var(--mist); }
.chat__close { background: none; border: 2px solid rgba(245, 241, 230, .35); color: var(--cream); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat__close svg { width: 18px; height: 18px; }
.chat__log { padding: 1rem; overflow-y: auto; display: grid; gap: .6rem; align-content: start; flex: 1 1 auto; min-height: 90px; }
.chat__msg { max-width: 92%; padding: .65rem .85rem; border-radius: 14px; font-size: .96rem; line-height: 1.5; }
.chat__msg p { margin: 0; }
.chat__msg a { color: var(--orange-deep); font-weight: 700; }
.chat__msg--bot { background: var(--foam); border: 2px solid var(--navy); border-bottom-left-radius: 4px; }
.chat__msg--me { background: var(--navy); color: var(--cream); justify-self: end; border-bottom-right-radius: 4px; }
.chat__chips { padding: 0 1rem .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chat__chip { background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: .4rem .8rem; font: 700 .88rem/1.2 var(--font-body); cursor: pointer; min-height: 40px; }
.chat__chip:hover { background: var(--foam); }
.chat__form { border-top: 2px solid var(--navy); padding: .8rem 1rem 1rem; display: grid; gap: .3rem; background: #fff; overflow-y: auto; max-height: 45%; }
.chat__form-title { margin: 0; font-weight: 800; }
.chat__form label { font-weight: 700; font-size: .88rem; }
.chat__req { font-weight: 400; color: var(--steel); }
.chat__form input[type=text], .chat__form textarea { width: 100%; font: inherit; border: 2px solid var(--field); border-radius: 10px; padding: .55rem .65rem; background: #fff; color: var(--navy); min-height: 44px; }
.chat__form textarea { min-height: 76px; resize: vertical; }
.chat__form .btn { min-height: 46px; margin-top: .4rem; box-shadow: none; }
.chat__form [aria-invalid="true"] { border-color: var(--orange-deep); background: #fff7f2; }
.chat__note { margin: .3rem 0 0; font-size: .8rem; color: var(--steel); }
@media (max-width: 1099px) { .chat__launch { bottom: 5.4rem; } .chat__panel { bottom: .6rem; right: .6rem; width: calc(100vw - 1.2rem); max-height: calc(100vh - 1.2rem); } }
@media print { .chat { display: none !important; } }
/* ---------- 24. Checkbox groups: fixed-size boxes, even columns, consistent text ---------- */
.checkset { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: .15rem 1.25rem; padding: .7rem 1rem .9rem; }
.checkset legend { font-size: 1rem; line-height: 1.3; }
.checkset label { display: flex; align-items: center; gap: .65rem; font-size: 1rem; font-weight: 600; line-height: 1.3; min-height: 44px; margin: 0; }
.checkset input[type="checkbox"], .field .checkset input[type="checkbox"] { flex: none; width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin: 0; padding: 0; accent-color: var(--orange-deep); }
.checkset label span { flex: 1 1 auto; min-width: 0; }
/* hover contrast fix: chips/links on dark backgrounds must stay light (global a:hover is navy) */
.chip:hover, a.chip:hover, .section--dark a.chip:hover, .hero a.chip:hover { color: #fff; background: rgba(255,255,255,.14); }
.on-dark a:hover, .hero a:not(.btn):hover, .page-hero a:not(.btn):hover { color: #fff; }
.chip--light:hover, a.chip--light:hover { color: var(--navy); background: var(--foam); }

/* marquee: static strip must wrap, never clip */
.marquee__track { width: 100%; }
.marquee__group { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.marquee__item { padding-block: .5rem; }

/* marquee on phones: compact, wrapping, never wider than the screen */
@media (max-width: 640px) {
  .marquee__item { font-size: 1rem; padding: .4rem .6rem; gap: .9rem; white-space: normal; text-align: center; max-width: 100%; }
  .marquee__item::after { width: 9px; height: 9px; border-width: 2px; flex: none; }
}

/* mobile menu: Get a quote button text centered */
.header-actions .btn, #mobile-nav .btn, .mobile-nav .btn { justify-content: center; text-align: center; }

.mobile-nav .btn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; }

/* analytics notice: slim bar instead of a card */
.consent { max-width: none; left: 0; right: 0; bottom: 5.1rem; border-width: 2px 0 0; border-radius: 0; padding: .55rem var(--gutter); box-shadow: 0 -2px 10px rgba(7,27,49,.18); font-size: .9rem; }
.consent.is-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .9rem; }
.consent p { margin: 0; flex: 1 1 14rem; }
.consent .btn-row { gap: .5rem; flex-wrap: nowrap; }
.consent .btn { min-height: 40px; padding: .35rem .9rem; font-size: .9rem; }
@media (min-width: 1100px) { .consent { left: 0; right: 0; bottom: 0; } }
