/* RoadSafe Traffic Planning: site styles. Tokens come from brand-guideline.html, no drift. */
@layer reset, base, layout, components, pages, motion;

:root {
  --navy: #1B3A6B;
  --navy-deep: #0F2447;
  --navy-hover: #264C86;
  --orange: #E8892B;
  --orange-hover: #F29A40;
  --orange-burnt: #A9570F;
  --cream: #FFF3E0;
  --slate: #4A4A4A;
  --mist: #F5F7FA;
  --line: #DDE2ED;
  --white: #FFFFFF;
  --danger: #B3261E;
  --ok: #1A6B4A;

  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 1.25 scale from 16px */
  --t-sm: 0.8125rem; --t-base: 1rem; --t-lg: 1.25rem; --t-h4: 1.5625rem; --t-h3: 1.9375rem;
  --t-h2: clamp(2rem, 1.4rem + 2.2vw, 2.4375rem);
  --t-h1: clamp(2.4375rem, 1.6rem + 3.2vw, 3.0625rem);
  --t-display: clamp(2.75rem, 1.2rem + 5.4vw, 4.5rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 9vw, 120px);
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1240px;

  --r-sm: 6px; --r-md: 14px; --r-lg: 24px; --r-pill: 999px;
  --e-1: 0 1px 2px rgb(15 36 71 / .05), 0 4px 14px -6px rgb(15 36 71 / .10);
  --e-2: 0 1px 2px rgb(15 36 71 / .06), 0 14px 34px -14px rgb(15 36 71 / .22);
  --e-3: 0 2px 4px rgb(15 36 71 / .06), 0 28px 60px -22px rgb(15 36 71 / .32);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-expo: cubic-bezier(.76, 0, .24, 1);
  --spring: linear(0, .14 4%, .94 17%, 1.08 24% 30%, 1.02 43%, .99 51%, 1 77%, 1);
  --header-h: 76px;

  /* z-index scale: header 50, drawer 60, skip link 70 */
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
  img, svg, video, canvas { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
  a { color: inherit; }
  [hidden] { display: none !important; }
}

@layer base {
  html { background: var(--white); }
  body { font-family: var(--body); font-size: var(--t-base); line-height: 1.7; color: var(--slate); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
  h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--navy-deep); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
  h1 { font-size: var(--t-h1); line-height: 1.05; }
  h2 { font-size: var(--t-h2); }
  h3 { font-size: var(--t-h4); line-height: 1.2; }
  p { text-wrap: pretty; }
  a { text-underline-offset: 3px; }
  strong { color: var(--navy-deep); font-weight: 600; }
  :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
  .on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }
  ::selection { background: var(--orange); color: var(--navy-deep); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .skip { position: absolute; left: 16px; top: -80px; z-index: 70; background: var(--navy-deep); color: var(--white); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
  .skip:focus { top: 12px; }
  .icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .section { padding-block: var(--section); }
  .section--mist { background: var(--mist); }
  .section--cream { background: var(--cream); }
  .section:not(.section--mist, .section--cream) + .section--cta, .page-head + .section--cta { padding-top: 0; }
  .section-head { max-width: 46rem; margin-bottom: var(--s-7); }
  .section-head p { margin-top: var(--s-4); font-size: var(--t-lg); line-height: 1.6; max-width: 38rem; }
  .kicker { font-family: var(--display); font-weight: 600; font-size: var(--t-base); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-burnt); margin-bottom: var(--s-4); }
  .lead { font-size: var(--t-lg); line-height: 1.6; }
  /* centre-line: the dashed road marking used as the brand rule */
  .centre-line { height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 44px, transparent 44px 72px); }
}

@layer components {
  /* ---------- Buttons ---------- */
  .btn { --bg: var(--navy); --fg: var(--white); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font-weight: 600; font-size: var(--t-base); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s, color .2s; }
  .btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .38) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
  .btn:hover { transform: translateY(-2px); box-shadow: var(--e-2); }
  .btn:hover::after { transform: translateX(120%); }
  .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
  .btn .icon { transition: transform .3s var(--ease); }
  .btn:hover .icon--go { transform: translateX(4px); }
  .btn--primary { --bg: var(--orange); --fg: var(--navy-deep); }
  .btn--primary:hover { --bg: var(--orange-hover); }
  .btn--navy:hover { --bg: var(--navy-hover); }
  .btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
  .btn--ghost:hover { --bg: var(--navy); --fg: var(--white); }
  .btn--light { --bg: transparent; --fg: var(--white); border-color: rgb(255 255 255 / .7); }
  .btn--light:hover { --bg: var(--white); --fg: var(--navy-deep); border-color: var(--white); }
  .btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
  .btn[disabled] { opacity: .6; pointer-events: none; }
  .link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; padding-block: 6px; background: linear-gradient(var(--orange), var(--orange)) left bottom / 100% 2px no-repeat; }
  .link-arrow .icon { transition: transform .3s var(--ease); }
  .link-arrow:hover .icon { transform: translateX(5px); }

  /* ---------- Header ---------- */
  .site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; view-transition-name: site-header; }
  .site-header.is-stuck { border-color: var(--line); box-shadow: var(--e-1); }
  .site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); }
  .brand { display: inline-flex; flex: none; border-radius: var(--r-sm); }
  .brand img { width: 164px; height: auto; }
  .nav { display: flex; align-items: center; gap: var(--s-1); }
  .nav__item { position: static; }
  .nav__pill { display: inline-flex; align-items: center; border-radius: var(--r-pill); transition: background-color .2s; }
  .nav__pill:hover, .nav__item.is-open .nav__pill { background: var(--mist); }
  .nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 500; font-size: .9375rem; color: var(--navy-deep); text-decoration: none; }
  .nav__link[aria-current='page'] { color: var(--orange-burnt); font-weight: 600; }
  .nav__pill .nav__link { padding-right: 4px; }
  .nav__toggle { display: inline-grid; place-items: center; width: 34px; height: 44px; margin-right: 4px; border: 0; background: none; color: var(--navy-deep); cursor: pointer; border-radius: var(--r-pill); }
  .nav__toggle .icon { width: 14px; height: 14px; transition: transform .35s var(--ease); }
  .nav__item.is-open .nav__toggle .icon { transform: rotate(180deg); }
  .site-header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
  .burger { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--navy-deep); cursor: pointer; place-items: center; }

  /* ---------- Mega menu ---------- */
  .mega { position: absolute; left: 0; right: 0; top: 100%; padding-top: 10px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .28s var(--ease), transform .38s var(--ease), visibility 0s .28s; pointer-events: none; }
  .nav__item.is-open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  /* Only the panel takes the pointer, so moving sideways off it closes the menu. The ::before bridges the gap up to the nav link. */
  .nav__item.is-open .mega__panel { pointer-events: auto; }
  .mega__panel::before { content: ''; position: absolute; left: 0; right: 0; top: -34px; height: 34px; }
  .mega__panel { position: relative; width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-3); padding: var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-6); }
  .mega__title { font-family: var(--display); font-weight: 600; font-size: var(--t-h4); line-height: 1.2; color: var(--navy-deep); margin-bottom: var(--s-5); }
  .mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--s-4); }
  .mega__link { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: center; padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--navy-deep); transition: background-color .2s; }
  .mega__link:hover { background: var(--mist); }
  .mega__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cream); color: var(--orange-burnt); transition: transform .35s var(--spring), background-color .2s, color .2s; }
  .mega__link:hover .mega__ico { transform: scale(1.08) rotate(-4deg); background: var(--orange); color: var(--navy-deep); }
  .mega__name { font-weight: 600; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
  .mega__price { display: block; font-weight: 400; font-size: var(--t-sm); color: var(--slate); }
  .mega__all { margin-top: var(--s-5); }
  .mega__card { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--navy-deep); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-3); padding: var(--s-5); min-height: 300px; isolation: isolate; }
  .mega__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .mega__card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(15 36 71 / .96) 30%, rgb(27 58 107 / .55)); }
  .mega__card h3 { color: var(--white); }
  .mega__card p { font-size: .9375rem; line-height: 1.55; color: #E3E9F4; }
  .mega__card .btn { align-self: flex-start; margin-top: var(--s-2); }
  /* stagger the links as the panel opens */
  .mega__link, .mega__card { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease), background-color .2s; }
  .nav__item.is-open .mega__link, .nav__item.is-open .mega__card { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 28ms + 60ms), calc(var(--i, 0) * 28ms + 60ms), 0s; }

  /* ---------- Mobile drawer ---------- */
  .drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
  .drawer__scrim { position: absolute; inset: 0; background: rgb(15 36 71 / .5); opacity: 0; transition: opacity .3s; }
  .drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(100%, 420px); background: var(--white); padding: 14px var(--gutter) var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); overflow-y: auto; transform: translateX(100%); transition: transform .5s var(--ease); }
  .drawer.is-open { visibility: visible; }
  .drawer.is-open .drawer__scrim { opacity: 1; }
  .drawer.is-open .drawer__panel { transform: none; }
  .drawer:not(.is-open) { transition: visibility 0s .5s; }
  .drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .drawer__close { width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--navy-deep); cursor: pointer; display: grid; place-items: center; }
  .drawer__nav a, .drawer__nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-family: var(--display); font-weight: 600; font-size: var(--t-h3); color: var(--navy-deep); text-decoration: none; cursor: pointer; list-style: none; }
  .drawer__nav summary::-webkit-details-marker { display: none; }
  .drawer__nav a[aria-current='page'] { color: var(--orange-burnt); }
  .drawer__nav details[open] summary .icon { transform: rotate(180deg); }
  .drawer__nav summary .icon { transition: transform .3s var(--ease); width: 20px; height: 20px; }
  .drawer__sub { padding: 0 0 var(--s-3) var(--s-4); border-left: 1px solid var(--line); margin-left: 4px; }
  .drawer__sub a { font-family: var(--body); font-size: var(--t-base); font-weight: 500; min-height: 44px; }
  .drawer__actions { display: grid; gap: var(--s-3); margin-top: auto; }

  /* ---------- Hero (service box hero) ---------- */
  .hero { padding: 8px clamp(8px, 1.6vw, 20px) 0; }
  .hero__stage { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(18px, 2.4vw, 32px); background: var(--navy-deep); color: var(--white); min-height: min(760px, calc(100dvh - var(--header-h) - 28px)); display: grid; grid-template-rows: 1fr auto; }
  .hero__bg { position: absolute; inset: 0; z-index: -3; }
  .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
  .hero__bg img.is-active { opacity: 1; transform: none; }
  .hero__stage::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgb(15 36 71 / .94) 0%, rgb(15 36 71 / .82) 42%, rgb(27 58 107 / .42) 100%), linear-gradient(to top, rgb(15 36 71 / .92), transparent 46%); }
  .hero__lanes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
  .hero__copy { align-self: center; padding: clamp(40px, 7vw, 88px) clamp(22px, 5vw, 72px) clamp(28px, 4vw, 48px); max-width: 1020px; }
  .hero__copy .kicker { color: var(--orange); }
  .hero h1 { color: var(--white); font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.015em; }
  .hero .lead { margin-top: var(--s-5); max-width: 34rem; color: #E3E9F4; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
  .hero__boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgb(255 255 255 / .28); }
  .sbox { position: relative; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) clamp(20px, 2.6vw, 36px) var(--s-6); color: var(--white); text-decoration: none; transition: background-color .4s; }
  .sbox + .sbox { border-left: 1px solid rgb(255 255 255 / .2); }
  .sbox::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
  .sbox.is-active { background: rgb(255 255 255 / .09); }
  .sbox.is-active::before { transform: scaleX(1); }
  .sbox__title { font-family: var(--display); font-weight: 600; font-size: var(--t-h4); line-height: 1.15; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
  .sbox__title .icon { width: 22px; height: 22px; opacity: .6; transition: transform .4s var(--ease), opacity .3s; }
  .sbox.is-active .sbox__title .icon { transform: translate(3px, -3px); opacity: 1; color: var(--orange); }
  .sbox__blurb { font-size: .9375rem; line-height: 1.55; color: #D5DDEC; }
  .sbox__price { margin-top: auto; padding-top: var(--s-2); font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9375rem; color: var(--orange); }

  /* ---------- Service tiles ---------- */
  .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
  .tile { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); min-height: 196px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
  .tile:hover { transform: translateY(-6px); box-shadow: var(--e-2); border-color: transparent; }
  .tile__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--orange-burnt); transition: transform .5s var(--spring), background-color .25s, color .25s; }
  .tile__ico .icon { width: 26px; height: 26px; }
  .tile:hover .tile__ico { transform: rotate(-6deg) scale(1.08); background: var(--orange); color: var(--navy-deep); }
  .tile h3 { font-size: 1.375rem; }
  .tile__price { margin-top: auto; font-weight: 600; font-size: .9375rem; color: var(--navy); }
  .tiles-foot { margin-top: var(--s-6); }

  /* ---------- Split (text + media) ---------- */
  .split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
  .split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e-2); background: var(--cream); }
  .split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
  .split__body > * + * { margin-top: var(--s-5); }
  .split__body p { max-width: 36rem; }
  .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); }
  .feature { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); }
  .feature .icon { width: 36px; height: 36px; color: var(--orange-burnt); }
  .feature h3 { font-size: 1.375rem; margin-bottom: var(--s-2); }
  .feature p { font-size: .9375rem; line-height: 1.65; }

  /* ---------- Reviews ---------- */
  .reviews__top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-7); flex-wrap: wrap; }
  .reviews__top h2 { max-width: 30rem; }
  .rating { display: flex; align-items: center; gap: var(--s-4); }
  .rating__score { font-family: var(--display); font-weight: 700; font-size: 3.8125rem; line-height: 1; color: var(--navy); }
  .rating__meta { font-size: .9375rem; line-height: 1.5; }
  .stars { display: inline-flex; gap: 2px; color: var(--orange); }
  .stars .icon { width: 20px; height: 20px; }
  .stars .is-off { color: var(--line); }
  .reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 400px); gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--gutter) 28px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
  .reviews__track::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--e-1); }
  .review--featured { background: var(--navy-deep); border-color: transparent; color: #E3E9F4; }
  .review--featured .review__name { color: var(--white); }
  .review blockquote { font-size: var(--t-base); line-height: 1.7; flex: 1; }
  .review--featured blockquote { font-size: 1.0625rem; }
  .review__by { display: flex; align-items: center; gap: var(--s-3); }
  .review__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--orange-burnt); font-family: var(--display); font-weight: 700; font-size: 1.125rem; flex: none; }
  .review__name { font-weight: 600; color: var(--navy-deep); line-height: 1.3; }
  .review__date { font-size: var(--t-sm); display: block; font-weight: 400; color: inherit; }
  .reviews__nav { display: flex; gap: var(--s-2); }
  .round-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--ease); }
  .round-btn:hover { background: var(--navy); color: var(--white); }
  .round-btn:active { transform: scale(.94); }
  .round-btn--prev .icon { transform: rotate(180deg); }

  /* ---------- Closing banner ---------- */
  .cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #E3E9F4; border-radius: var(--r-lg); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; }
  .cta-band h2 { color: var(--white); font-size: var(--t-h1); }
  .cta-band p { margin-top: var(--s-3); font-size: var(--t-lg); }
  .cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
  .cta-band__road { position: absolute; left: 0; right: 0; bottom: 22px; height: 4px; z-index: -1; opacity: .5; background: repeating-linear-gradient(90deg, var(--orange) 0 44px, transparent 44px 72px); background-size: 72px 4px; }

  /* ---------- Page head ---------- */
  .page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px); background: linear-gradient(to bottom, var(--cream), var(--white)); }
  .crumbs { display: flex; gap: var(--s-2); font-size: .9375rem; margin-bottom: var(--s-5); }
  .crumbs a { color: var(--navy); font-weight: 500; }
  .crumbs li + li::before { content: '/'; margin-right: var(--s-2); color: var(--slate); }
  .page-head h1 { max-width: 20ch; }
  .page-head .lead { margin-top: var(--s-4); max-width: 40rem; }
  .page-head .centre-line { width: 216px; margin-top: var(--s-6); }

  /* ---------- Services page ---------- */
  .svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .svc { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-5); padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; scroll-margin-top: calc(var(--header-h) + 24px); }
  .svc:hover { transform: translateY(-4px); box-shadow: var(--e-2); border-color: transparent; }
  .svc:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(232 137 43 / .25); }
  .svc__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--cream); color: var(--orange-burnt); }
  .svc__ico .icon { width: 30px; height: 30px; }
  .svc p { margin-top: var(--s-2); }
  .svc__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); flex-wrap: wrap; }
  .svc__price { font-family: var(--display); font-weight: 600; font-size: var(--t-h4); color: var(--navy); line-height: 1; }
  .note { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); background: var(--cream); border-radius: var(--r-md); color: var(--navy-deep); margin-bottom: var(--s-6); max-width: 52rem; }
  .note .icon { color: var(--orange-burnt); margin-top: 3px; }
  .hire-list { display: grid; gap: var(--s-4); margin-block: var(--s-5); }
  .hire-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); }
  .hire-list .icon { width: 24px; height: 24px; color: var(--orange-burnt); margin-top: 3px; }
  .hire-list b { display: block; color: var(--navy-deep); font-weight: 600; }

  /* ---------- About page ---------- */
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-6); }
  .stat__value { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
  .stat__value small { font-size: .5em; color: var(--orange-burnt); font-weight: 600; margin-left: 2px; }
  .stat__label { margin-top: var(--s-2); font-weight: 500; color: var(--navy-deep); }
  .steps { position: relative; display: grid; gap: var(--s-7); max-width: 52rem; counter-reset: step; }
  .steps::before { content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--orange) 0 26px, transparent 26px 44px); }
  .step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: var(--s-5); counter-increment: step; }
  .step::before { content: counter(step); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--navy-deep); color: var(--white); font-family: var(--display); font-weight: 700; font-size: var(--t-h4); box-shadow: 0 0 0 8px var(--mist); }
  .step h3 { padding-top: 12px; margin-bottom: var(--s-2); }

  /* ---------- Contact ---------- */
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-2); padding: clamp(24px, 4vw, 44px); }
  .form { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
  .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .field { display: grid; gap: var(--s-2); }
  .field label { font-weight: 600; font-size: .9375rem; color: var(--navy-deep); }
  .field .opt { font-weight: 400; color: var(--slate); }
  .field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #8C97AD; border-radius: var(--r-md); background: var(--white); color: var(--navy-deep); transition: border-color .2s, box-shadow .2s; }
  .field textarea { min-height: 148px; resize: vertical; field-sizing: content; }
  .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230F2447' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgb(27 58 107 / .2); }
  .field [aria-invalid='true'] { border-color: var(--danger); }
  .field__error { display: none; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--danger); }
  .field__error.is-shown { display: flex; }
  .form__hp { position: absolute; left: -9999px; }
  .form__status { padding: var(--s-5); border-radius: var(--r-md); background: #E8F4EE; color: var(--ok); }
  .form__status h3 { color: var(--ok); margin-bottom: var(--s-1); }
  .form__status--error { background: #FBEAE8; color: var(--danger); }
  .details > * + * { margin-top: var(--s-5); }
  .details p .icon { display: inline-block; vertical-align: -4px; color: var(--orange-burnt); }
  .contact-list { display: grid; gap: var(--s-3); }
  .contact-list a { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3); border-radius: var(--r-md); text-decoration: none; color: var(--navy-deep); font-weight: 600; transition: background-color .2s; }
  .contact-list a:hover { background: var(--mist); }
  .contact-list span.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--orange-burnt); }
  .contact-list small { display: block; font-weight: 400; font-size: var(--t-sm); color: var(--slate); }

  /* ---------- Long-form (legal) ---------- */
  .prose { max-width: 44rem; }
  .prose h2 { font-size: var(--t-h3); margin-top: var(--s-7); margin-bottom: var(--s-3); }
  .prose p + p, .prose ul + p, .prose p + ul { margin-top: var(--s-4); }
  .prose ul { padding-left: 1.2em; }
  .prose li + li { margin-top: var(--s-2); }
  .prose li::marker { color: var(--orange-burnt); }
  .prose a { color: var(--navy); font-weight: 500; }
  .updated { font-size: .9375rem; margin-bottom: var(--s-6); }

  /* ---------- 404 ---------- */
  .lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; min-height: 60dvh; }
  .lost__sign { justify-self: center; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; rotate: 45deg; background: var(--orange); border: 8px solid var(--navy-deep); border-radius: 28px; box-shadow: var(--e-3); }
  .lost__sign span { rotate: -45deg; font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 12vw, 8rem); line-height: 1; color: var(--navy-deep); }
  .lost p { margin-block: var(--s-4) var(--s-6); max-width: 30rem; }

  /* ---------- Footer ---------- */
  .site-footer { background: var(--mist); border-top: 1px solid var(--line); }
  .faq { padding-block: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); border-bottom: 1px solid var(--line); }
  .faq__list { display: grid; gap: var(--s-3); }
  .faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow .3s; }
  .faq details[open] { box-shadow: var(--e-1); }
  .faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px; padding: var(--s-3) var(--s-5); font-weight: 600; color: var(--navy-deep); cursor: pointer; list-style: none; border-radius: var(--r-md); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .icon { color: var(--orange-burnt); transition: transform .4s var(--spring); }
  .faq details[open] summary .icon { transform: rotate(135deg); }
  .faq__a { padding: 0 var(--s-5) var(--s-5); max-width: 46rem; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; interpolate-size: allow-keywords; }
  .faq details[open]::details-content { block-size: auto; }
  .footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); padding-block: var(--s-8); }
  .footer-main img { width: 190px; margin-bottom: var(--s-4); mix-blend-mode: multiply; }
  .footer-main h2 { font-size: var(--t-base); font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-deep); margin-bottom: var(--s-4); }
  .footer-main ul { display: grid; gap: 2px; }
  .footer-main li a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; color: var(--navy-deep); text-decoration: none; font-weight: 500; }
  .footer-main li a:hover { color: var(--orange-burnt); text-decoration: underline; }
  .footer-main p { max-width: 22rem; }
  .footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-sm); }
  .footer-base a { color: var(--navy); font-weight: 600; }
}

@layer motion {
  @view-transition { navigation: auto; }

  /* Scroll reveals: set by site.js only when motion is allowed, so content is never hidden without JS. */
  .js-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js-motion .reveal--left { transform: translateX(-32px); }
  .js-motion .reveal--right { transform: translateX(32px); }
  .js-motion .reveal--zoom { transform: scale(.94); }
  .js-motion .reveal.in { opacity: 1; transform: none; }
  .js-motion .centre-line.reveal { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-expo); }
  .js-motion .centre-line.reveal.in { transform: none; }

  /* Hero entrance: words rise out of a mask, then the rest follows. */
  .hw { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; }
  .js-motion .hw > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .8s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--w) * 60ms + 150ms); }
  .js-motion .is-ready .hw > span { transform: none; opacity: 1; }
  .js-motion .hero .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 500ms); }
  .js-motion .hero .is-ready .rise { opacity: 1; transform: none; }

  .cta-band__road { animation: road 2.4s linear infinite; }
  @keyframes road { to { transform: translateX(72px); } }
  .cta-band__road { left: -72px; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .hero__lanes { display: none; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  }
}

/* ---------- Responsive ---------- */
@media (width < 1080px) {
  .nav, .site-header__actions .btn--primary { display: none; }
  .burger { display: grid; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width < 860px) {
  .split, .contact-grid, .faq, .lost, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .split__media { order: -1; }
  .features, .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__boxes { grid-template-columns: minmax(0, 1fr); }
  .sbox { padding-block: var(--s-4); }
  .sbox + .sbox { border-left: 0; border-top: 1px solid rgb(255 255 255 / .2); }
  .sbox__blurb { display: none; }
  .sbox__price { padding-top: 0; }
  .lost__sign { width: 220px; order: -1; margin-block: var(--s-6); }
}
@media (width < 560px) {
  :root { --header-h: 68px; }
  .brand img { width: 140px; }
  .tiles, .form__row, .footer-main { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: var(--s-4); row-gap: 2px; padding: var(--s-4); }
  .tile__ico { grid-row: span 2; }
  .tile__price { margin-top: 0; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .site-header__actions .btn--ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .site-header__actions .btn--ghost { padding: 0; width: 48px; min-height: 48px; }
  .hero__actions .btn, .cta-band__actions .btn { flex: 1 1 100%; }
}
