/* =========================================================
   MSNT Projects: homepage (sections 1-4)
   Layout and type follow the reference at 1440px.
   Colours are tokens, so a final brand palette is a swap here.
   ========================================================= */
:root {
  --bg: #0c1921;
  --surface: #132530;
  --tile: #1a2d39;
  --white: #ffffff;
  --off-white: #f2f2f0;
  --muted: #a7b3bc;
  --accent: #ec6810;
  --accent-deep: #c9560c;
  --accent-light: #ff8a3d;
  --on-accent: #ffffff;
  --line: rgba(255, 255, 255, 0.14);

  --font-display: "Orbitron", "Arial Black", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page-max: 1440px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.container { width: min(var(--page-max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3;
  letter-spacing: 0.6px;
  padding: 12px 24px; border-radius: 30px; border: 0;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-icon { width: 15px; height: 15px; flex: none; transition: transform .2s ease; }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-red { background: var(--accent); color: var(--on-accent); }
.btn-red:hover { background: var(--accent-deep); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: #fff0e6; }
.btn:active { transform: translateY(1px); }

/* ---------- Shared section pieces (used by sections 5-13 + footer) ---------- */
.section-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: .5px; color: #fff;
}
.section-title.center { text-align: center; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.title-dot {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--bg);
}
.title-dot svg { width: 16px; height: 16px; }
.text-red { color: var(--accent); font-style: italic; font-weight: 700; }
.btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1;
  letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
  padding: 26px 64px; border-radius: 35px; border: 0; background: var(--accent); color: var(--on-accent);
  transition: background-color .2s ease, transform .2s ease;
}
.btn-lg:hover { background: var(--accent-deep); }
.btn-lg:active { transform: translateY(1px); }
.btn-lg.btn-sm { padding: 18px 40px; font-size: 15px; }
@media (max-width: 640px) { .btn-lg { padding: 20px 36px; font-size: 16px; } }

/* ---------- Big centred section heads (services, stages): kicker, title, subtitle ---------- */
.section-kicker {
  display: block; text-align: center; margin-bottom: 16px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; line-height: 1.5;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
}
.section-title-xl {
  max-width: 1100px; margin: 0 auto 20px; text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 60px); line-height: 1.06; letter-spacing: .5px; color: #fff;
}
.section-sub {
  max-width: 640px; margin: 0 auto 56px; text-align: center;
  font-size: 17px; line-height: 1.65; color: var(--muted);
}
@media (max-width: 640px) {
  .section-kicker { font-size: 11.5px; letter-spacing: 2.4px; margin-bottom: 12px; }
  .section-sub { font-size: 16px; margin-bottom: 40px; }
}
/* Photo with a shallow chevron (peak) along its bottom edge */
.media-peak { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px)); }

/* =========================================================
   HEADER
   ========================================================= */
/* Fixed overlay header; the footer retains the shared stacked brand. */
:root { --header-h: 80px; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h);
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled, .site-header:has(#site-nav.is-open) {
  background: rgba(12, 25, 33, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(1280px, 100% - 64px); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo: building mark, then MSNT, then PROJECTS */
.brand {
  display: inline-flex; flex-direction: column; align-items: center; flex: none;
  line-height: 1; padding: 2px 4px;
}
.brand-mark { width: 60px; height: 50px; }
.brand-mark { --mark-tower: var(--accent); --mark-core: #fff; }
.brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 31px;
  letter-spacing: 3.5px; margin-top: 7px; padding-left: 3.5px;
}
.brand-tag {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 9.5px;
  letter-spacing: 4.8px; text-transform: uppercase; color: var(--accent); margin-top: 6px;
  padding-left: 4px;
}
.brand-tag::before, .brand-tag::after { content: ""; width: 12px; height: 1.5px; background: var(--accent); }
.brand-tag::after { margin-left: -4px; }

.site-header .brand { flex-direction: row; gap: 12px; padding: 0; }
.site-header .brand-mark { width: 46px; height: 38px; }
.site-header .brand-text { display: flex; flex-direction: column; align-items: center; }
.site-header .brand-name { font-size: 24px; letter-spacing: 3px; margin-top: 0; padding-left: 3px; }
.site-header .brand-tag { font-size: 8px; letter-spacing: 4px; margin-top: 7px; color: var(--accent-light); }
.site-header .brand-tag::before, .site-header .brand-tag::after { width: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; padding: 0; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-row { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 28px); }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 1.04px; color: rgba(255, 255, 255, .92);
  transition: color .2s ease;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-menu > li > a:hover, .nav-menu > li > a.is-active { color: var(--white); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.is-active::after { transform: scaleX(1); }
.caret { width: 12px; height: 12px; flex: none; transition: transform .2s ease; }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: calc(100% + 18px); left: 0; min-width: 250px; z-index: 20;
  background: var(--white); padding: 8px 0; border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(8, 18, 25, .45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: 10px 20px; color: var(--bg); font-size: 15px; font-weight: 600;
  border-left: 3px solid transparent; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.sub-menu a:hover { color: var(--accent-deep); border-left-color: var(--accent); background: var(--off-white); }
.nav-quote { display: none; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  padding: 11px 20px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 30px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 20px;
  letter-spacing: .52px; color: var(--white); white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease;
}
.header-call svg { width: 15px; height: 15px; flex: none; color: var(--accent); transition: color .25s ease; }
.header-call:hover { background: var(--accent); border-color: var(--accent); background-image: linear-gradient(rgba(12, 25, 33, .08), rgba(12, 25, 33, .08)); }
.header-call:hover svg { color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .nav-menu a, .site-header .nav-menu a::after,
  .site-header .nav-toggle span, .site-header .caret, .site-header .sub-menu, .site-header .header-call,
  .site-header .header-call svg, .site-header .nav-quote, .site-header .nav-quote svg { transition: none; }
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, 100vh); min-height: max(620px, 100svh);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: calc(var(--header-h) + 40px) 24px 64px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  /* A light tint, so the footage stays visible: darker only under the header,
     in a soft pool behind the text and toward the bottom edge. */
  background:
    linear-gradient(180deg, rgba(12, 25, 33, .45), rgba(12, 25, 33, 0) 150px),
    radial-gradient(ellipse 50% 42% at 50% 52%, rgba(12, 25, 33, .22), rgba(12, 25, 33, 0) 100%),
    linear-gradient(180deg, rgba(12, 25, 33, .3) 0%, rgba(12, 25, 33, .3) 60%, rgba(12, 25, 33, .55) 100%);
}
.hero-content {
  position: relative; width: min(1180px, 100%); min-width: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  max-width: min(100%, 20ch); margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; letter-spacing: .5px;
  color: var(--white); text-wrap: balance;
  text-shadow: 0 2px 16px rgba(8, 18, 25, .5);
}
.hero-sub {
  max-width: 580px; margin: 0 auto 28px;
  font-family: var(--font-body); font-size: 18px; line-height: 1.55; font-weight: 500;
  color: rgba(255, 255, 255, .94); text-shadow: 0 1px 10px rgba(8, 18, 25, .7);
}
/* Orange over live footage needs a tight dark edge to stay readable on bright frames. */
.hero-sub strong { font-weight: 800; font-style: italic; color: var(--accent-light); text-shadow: 0 1px 2px rgba(8, 18, 25, .9), 0 0 10px rgba(8, 18, 25, .65); }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 26px; max-width: 100%; }
.hero-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  background-image: linear-gradient(rgba(12, 25, 33, .08), rgba(12, 25, 33, .08));
  font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.3;
  letter-spacing: .3px; text-transform: none;
  transition: background-color .2s ease;
}
.hero-cta svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.hero-cta:hover { background: var(--accent-deep); }
.hero-cta:hover svg { transform: translateX(3px); }
.hero-cta:focus-visible, .hero-call:focus-visible {
  outline: 2px solid var(--white); outline-offset: 4px;
}
.hero-call { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-align: left; border-radius: 999px; }
.hero-call-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: background-color .2s ease;
}
.hero-call-icon svg { width: 20px; height: 20px; }
.hero-call-label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 13px; color: var(--white); text-shadow: 0 1px 8px rgba(8, 18, 25, .7); }
.hero-call-number {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: .5px; color: var(--accent-light); transition: color .2s ease;
  text-shadow: 0 1px 2px rgba(8, 18, 25, .9), 0 0 10px rgba(8, 18, 25, .65);
}
.hero-call:hover .hero-call-icon { background: var(--accent-deep); }
.hero-call:hover .hero-call-number { color: var(--white); }
.hero-badge {
  width: min(400px, 100%); min-height: 60px; margin-top: 36px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 8px 8px 8px 10px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 999px;
  background: rgba(12, 25, 33, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: left;
}
.hero-badge-icons { display: flex; align-items: center; }
.hero-badge-icons span {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 2px solid var(--surface); border-radius: 50%; background: var(--white); color: var(--accent-deep);
}
.hero-badge-icons span + span { margin-left: -11px; }
.hero-badge-icons svg { width: 18px; height: 18px; }
.hero-badge-text { min-width: 0; }
.hero-badge-title { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--white); }
.hero-badge-sub { margin: 2px 0 0; font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; font-weight: 500; color: #d8dee3; }
.hero-badge-spark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--white); color: var(--surface); }
.hero-badge-spark svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-cta, .hero .hero-cta svg, .hero .hero-call-icon,
  .hero .hero-call-number { transition: none; }
  .hero .hero-cta:hover svg { transform: none; }
}

/* =========================================================
   2. QUOTE BAR
   ========================================================= */
.quote-bar { padding-top: 30px; scroll-margin-top: 20px; }
.quote-box { background: var(--surface); border-radius: 20px; padding: 20px; }
.quote-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: 32px; line-height: 38.4px; color: var(--off-white); margin-bottom: 20px;
}
.quote-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; align-items: center; }
.field {
  width: 100%; height: 57px; padding: 15px 22px;
  background: var(--surface); color: #fff;
  border: 1px solid #fff; border-radius: 50px;
  font-family: var(--font-body); font-size: 17px; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #93a0aa; opacity: 1; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 104, 16, .25); }
.field[aria-invalid="true"] { border-color: #ff8f8f; }
.field-select { position: relative; }
.field-select select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.field-select select:invalid { color: #93a0aa; }
.field-select select option { color: var(--surface); }
.field-select svg { position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: #fff; }

.quote-consent { grid-column: 1 / 4; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #fff; cursor: pointer; }
.quote-consent input { flex: none; width: 15px; height: 15px; margin: 4px 0 0; accent-color: var(--accent); }
.quote-submit {
  grid-column: 4; height: 50px; border: 0; border-radius: 20px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-body); font-weight: 600; font-size: 20px; letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}
.quote-submit:hover { background: var(--accent-deep); }
.quote-submit:active { transform: translateY(1px); }
.quote-submit[disabled] { opacity: .65; cursor: progress; }
.quote-status { grid-column: 1 / -1; font-size: 15px; min-height: 0; }
.quote-status:empty { display: none; }
.quote-status.is-error { color: #ff8f8f; }
.quote-status.is-ok { color: #7be08f; }

/* =========================================================
   3. CREDENTIALS STRIP (marquee, like the reference logo row)
   ========================================================= */
.trust-strip { padding: 150px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; gap: 32px; padding-right: 32px; animation: marquee 34s linear infinite; }
.trust-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { width: auto; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
}
.trust-tile {
  width: 213px; height: 110px; flex: none; border-radius: 10px; background: var(--tile);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .05);
}
.trust-big { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: 1px; }
.trust-big em { font-style: normal; color: var(--accent); }
.trust-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #bac5cd;
}
.trust-label::before { content: ""; width: 14px; height: 2px; background: var(--accent); }

/* =========================================================
   4. ON-SITE MEDIA (before/after scroll scrub)
   ========================================================= */
.media-showcase { padding-bottom: 100px; }
.scrub-stage { padding-top: 40px; }
/* Heading sits inside the pinned stage; main.js writes its height to --scrub-head
   so the grid below can shrink to fit short screens. */
.scrub-head { padding-bottom: 28px; text-align: center; }
.scrub-head .section-kicker { margin-bottom: 10px; }
.scrub-head .section-title-xl { font-size: clamp(22px, 2.6vw, 38px); margin-bottom: 10px; }
.scrub-hint { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.media-grid {
  display: grid; grid-template-columns: minmax(0, 810fr) minmax(0, 165fr) minmax(0, 461fr);
  align-items: center;
}
.scrub-viewer {
  position: relative; margin: 0; min-width: 0; aspect-ratio: 810 / 530;
  border-radius: 20px; overflow: hidden; background: var(--surface);
}
.scrub-video { width: 100%; height: 100%; object-fit: cover; }

.media-chip {
  position: absolute; left: 18px; bottom: 18px;
  padding: 7px 14px; border-radius: 30px;
  background: rgba(8, 18, 25, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 700; letter-spacing: .4px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
}
.media-chip::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px;
}

.media-side { display: grid; gap: 26px; min-width: 0; }
.scrub-card {
  position: relative; margin: 0; overflow: hidden; border-radius: 14px;
  aspect-ratio: 461 / 258; background: var(--surface);
}
.scrub-card img { width: 100%; height: 100%; object-fit: cover; }
.scrub-card .media-chip { left: 14px; bottom: 14px; font-size: 12px; }
.is-scrub-ready .scrub-card {
  transition: opacity .45s ease, filter .45s ease, outline-color .45s ease;
  outline: 3px solid transparent; outline-offset: -3px;
}
.is-scrub-ready .scrub-card.is-before { outline-color: var(--accent); }
.is-scrub-ready .scrub-card.is-after { opacity: .5; }
.is-scrub-ready.is-complete .scrub-card.is-before { opacity: .5; filter: grayscale(1); outline-color: transparent; }
.is-scrub-ready.is-complete .scrub-card.is-after { opacity: 1; outline-color: var(--accent); }

/* Padding equals half the thumb, so the thumb never pokes out of the rail at either end. */
.scrub-rail {
  display: flex; flex-direction: column; align-items: center; align-self: stretch;
  padding-block: 28px; min-height: 0;
}
.scrub-rail-track {
  position: relative; flex: 1; width: 2px;
  background: rgba(255, 255, 255, .18); border-radius: 2px;
}
.scrub-rail-fill {
  position: absolute; inset: 0; background: var(--accent); border-radius: inherit;
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.scrub-rail-thumb {
  position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); translate: -50% -50%;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(236, 104, 16, .25);
  transition: background-color .2s ease;
}
.scrub-rail-thumb svg { width: 22px; height: 22px; }
.scrub-rail-thumb .icon-arrow { transform: rotate(90deg); }
.scrub-rail-thumb .icon-check { display: none; }
.is-complete .scrub-rail-thumb { background: var(--accent-deep); }
.is-complete .scrub-rail-thumb .icon-arrow { display: none; }
.is-complete .scrub-rail-thumb .icon-check { display: block; }

@media (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .scrub.is-scrub-ready {
    --scrub-distance: 140vh;
    height: calc(100vh + var(--scrub-distance));
    /* Keep end spacing outside the measured scroll distance. */
    padding-bottom: 0; margin-bottom: 100px;
  }
  .is-scrub-ready .scrub-stage {
    position: sticky; top: var(--header-h);
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center; padding-block: 40px;
  }
  .is-scrub-ready .media-grid {
    /* The two cards plus their 26px gap are the tallest desktop column. */
    max-width: calc((100vh - var(--header-h) - 106px - var(--scrub-head, 0px)) * 1436 / 516);
    max-width: calc((100svh - var(--header-h) - 106px - var(--scrub-head, 0px)) * 1436 / 516);
  }
}
@media (max-height: 559px) {
  .scrub.is-scrub-ready { height: auto; }
  .is-scrub-ready .scrub-stage { position: static; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scrub, .scrub *, .scrub *::before, .scrub *::after { transition: none; animation: none; }
  .scrub-hint { display: none; } /* nothing scrubs, so there's nothing to scroll for */
}

/* ---------- Fixed side tab ---------- */
.side-tab {
  position: fixed; right: 0; top: 39%; z-index: 40;
  writing-mode: vertical-rl;
  padding: 18px 12px; border-radius: 10px 0 0 10px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; letter-spacing: .4px;
  box-shadow: -6px 8px 24px rgba(8, 18, 25, .35);
  transition: padding .2s ease, background-color .2s ease;
}
.side-tab:hover { background: var(--accent-deep); padding-right: 16px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-header .brand { margin-right: auto; }
  .nav-row {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 18px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 32px 24px; border-top: 1px solid var(--line); background: var(--bg);
  }
  .nav-row.is-open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
  .nav-menu > li > a { flex: 1; padding: 15px 0; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
  .nav-menu > li > a::after { right: auto; bottom: 8px; width: 24px; }
  .nav-menu .caret { display: none; }
  .sub-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .06); color: var(--white);
  }
  .sub-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub-menu {
    position: static; flex-basis: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 10px 6px; border-radius: 0;
  }
  .sub-menu::before { display: none; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { transform: none; }
  .sub-menu.is-open { display: block; }
  .sub-menu a { color: var(--off-white); padding: 9px 12px; font-size: 15px; }
  .sub-menu a:hover { background: transparent; color: var(--accent-light); }
  .nav-quote { display: inline-flex; align-self: flex-start; font-family: var(--font-body); font-size: 14px; background: var(--accent-deep); }
}

@media (max-width: 1024px) {
  .hero-sub { font-size: 17px; }

  .quote-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-consent { grid-column: 1 / -1; }
  .quote-submit { grid-column: 1 / -1; }

  .trust-strip { padding: 100px 0; }

}

/* Before/after scrub: side by side down to 901px; stacked below, where a landscape
   tablet's short height would otherwise squeeze the stacked layout. */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr; gap: 18px; }
  .scrub-viewer { aspect-ratio: 16 / 9; border-radius: 16px; }
  .scrub-rail { flex-direction: row; height: 40px; padding: 0 20px; }
  .scrub-rail-track { width: auto; height: 2px; }
  .scrub-rail-fill { transform: scaleX(var(--p, 0)); transform-origin: left; }
  .scrub-rail-thumb { width: 40px; height: 40px; top: 50%; left: calc(var(--p, 0) * 100%); }
  .scrub-rail-thumb svg { width: 16px; height: 16px; }
  .scrub-rail-thumb .icon-arrow { transform: none; }
  .media-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .scrub-card { border-radius: 12px; }
  .scrub-card .media-chip { font-size: 11px; }
  @media (min-height: 560px) and (prefers-reduced-motion: no-preference) {
    .is-scrub-ready .media-grid {
      /* 16:9 viewer + half-width cards + rail and two gaps, within stage padding. */
      max-width: calc((100vh - var(--header-h) - 156px - var(--scrub-head, 0px)) / (9 / 16 + 258 / 922));
      max-width: calc((100svh - var(--header-h) - 156px - var(--scrub-head, 0px)) / (9 / 16 + 258 / 922));
    }
  }
}

@media (max-width: 640px) {
  .brand-mark { width: 42px; height: 35px; }
  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 7px; letter-spacing: 3.4px; }

  :root { --header-h: 68px; }
  .header-inner { width: calc(100% - 32px); gap: 12px; }
  .site-header .brand { gap: 9px; }
  .site-header .brand-mark { width: 42px; height: 35px; }
  .site-header .brand-name { font-size: 22px; }
  .site-header .brand-tag { font-size: 7px; letter-spacing: 3.4px; }
  .header-call { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .header-call-number { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .nav-row { padding-inline: 16px; }
  /* Keep the video control above the fixed quote tab while the hero is visible. */
  .hero { padding: calc(var(--header-h) + 20px) 20px 64px; }
  .hero-title { font-size: clamp(20px, 5.8vw, 24px); }
  .hero-sub { margin-top: 14px; font-size: 14px; line-height: 1.6; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 14px; width: 100%; margin-top: 24px; }
  .hero-cta { width: min(280px, 100%); height: 46px; padding-inline: 20px; font-size: 13px; }
  .hero-call-icon { width: 40px; height: 40px; }
  .hero-call-icon svg { width: 17px; height: 17px; }
  .hero-call-label { font-size: 12px; }
  .hero-call-number { font-size: 14.5px; }
  .hero-call { justify-content: center; }
  .hero-badge { width: min(310px, 100%); min-height: 52px; margin-top: 26px; gap: 10px; }
  .hero-badge-icons span { width: 30px; height: 30px; }
  .hero-badge-icons span + span { margin-left: -10px; }
  .hero-badge-icons svg { width: 16px; height: 16px; }
  .hero-badge-title { font-size: 12.5px; }
  .hero-badge-sub { font-size: 11px; }
  .hero-badge-spark { width: 32px; height: 32px; }

  .quote-title { font-size: 24px; line-height: 30px; }
  .quote-box { padding: 18px 14px; }
  .quote-form { grid-template-columns: 1fr; }
  .field { height: 54px; font-size: 16px; }
  .quote-consent { font-size: 14px; }

  .trust-strip { padding: 72px 0; }
  .trust-tile { width: 180px; height: 96px; }
  .trust-big { font-size: 26px; }
  .marquee-track { gap: 20px; padding-right: 20px; }

  .scrub-card .media-chip { font-size: 11px; padding: 5px 10px; left: 10px; bottom: 10px; }
  .media-showcase { padding-bottom: 72px; }
  @media (min-height: 560px) and (prefers-reduced-motion: no-preference) {
    .scrub.is-scrub-ready { padding-bottom: 0; margin-bottom: 72px; }
  }

  .side-tab {
    writing-mode: horizontal-tb; top: auto; right: 14px; bottom: 14px;
    padding: 12px 18px; border-radius: 30px; font-size: 13px;
    box-shadow: 0 10px 28px rgba(8, 18, 25, .5);
  }
  .side-tab:hover { padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) { .site-header .sub-toggle svg { transition: none; } }

/* Quote-first header, shared by the homepage and generated pages. */
.header-quote.hero-cta { flex: none; width: auto; height: 44px; padding: 0 20px; font-size: 12px; }
.quote-label-short, .nav-contact { display: none; }
@media (max-width: 1180px) {
  .quote-label-full { display: none; }
  .quote-label-short { display: inline; }
  .nav-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 8px; }
  .nav-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 14px; }
  .nav-contact svg { width: 18px; height: 18px; color: var(--accent-light); }
}
@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .header-quote.hero-cta { height: 40px; padding: 0 13px; font-size: 10px; gap: 6px; }
  .header-quote svg { width: 13px; height: 13px; }
  .site-header .nav-toggle { width: 40px; height: 40px; }
  .side-tab { right: 80px; bottom: max(20px, calc(env(safe-area-inset-bottom) + 6px)); padding: 12px 16px; }
  .side-tab:hover { padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .header-quote, .header-quote svg, .side-tab { transition: none; } }

/* Group the complete service registry without extending the desktop dropdown. */
.nav-service-group h2 {
  margin: 8px 20px 9px; color: var(--accent-deep); font-size: 11px;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.sub-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (min-width: 1181px) {
  .services-menu {
    display: grid; grid-template-columns: 1fr 1fr; width: 620px;
    max-width: calc(100vw - 48px); padding: 16px 8px 8px;
    max-height: calc(100svh - var(--header-h) - 40px); overflow-y: auto;
  }
  .services-menu a { padding: 9px 16px; font-size: 14px; line-height: 1.4; }
  .nav-service-group + .nav-service-group { border-left: 1px solid #d8dee3; }
  .nav-services-all { grid-column: 1 / -1; margin-top: 12px; padding-top: 6px; border-top: 1px solid #d8dee3; }
}
@media (max-width: 1180px) {
  .nav-service-group h2 { margin: 16px 15px 4px; color: var(--accent-light); }
  .nav-services-all { margin-top: 10px; border-top: 1px solid var(--line); }
}

/* Enquiry delivery states share the existing dark/red form palette. */
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; overflow: hidden; pointer-events: none; }
.enquiry-success { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 10px 0; color: var(--white); }
.enquiry-success h3 { font: 800 24px/1.3 var(--font-body); text-transform: none; letter-spacing: -.5px; overflow-wrap: anywhere; }
.enquiry-success p, .quote-success p { margin: 14px 0; font: 400 15px/1.65 var(--font-body); color: var(--muted); }
.enquiry-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; margin-top: 12px; padding: 12px 20px; border-radius: 12px; background: var(--accent); color: var(--on-accent) !important; font: 700 14px/1.5 var(--font-body); text-decoration: none !important; text-align: center; overflow-wrap: anywhere; }
.enquiry-whatsapp:hover { background: var(--accent-deep); }
.enquiry-whatsapp:focus-visible, .enquiry-success h3:focus-visible { outline: 2px solid white; outline-offset: 4px; }
