/* Vulogic — site stylesheet. Concept A's system (white page, Montserrat headings, Inter body,
   charcoal text, crimson for the primary button only) extended with the inner-page components
   and the motion effects. All motion is gated on html.motion, which site.js adds only when the
   visitor does not prefer reduced motion (QA override: ?motion=1). Without JS, or with reduced
   motion, every page is fully visible and static. */

:root {
  --crimson: #D0003F;
  --wine: #A00030;
  --ink: #202020;
  --text: #2b2b2b;
  --muted: #6a6a6a;
  --line: #e7e7e7;
  --soft: #f6f6f5;
  --white: #ffffff;
  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 96px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.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;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 4px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--wine); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-primary:focus-visible { outline-color: var(--ink); }
html.motion .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(32, 32, 32, .16); }
html.motion .btn-primary:hover { box-shadow: 0 8px 18px rgba(208, 0, 63, .28); }
.link-dark { font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-dark:hover { color: var(--crimson); border-color: var(--crimson); }
.link-light { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 3px; }
.link-light:hover { border-color: #fff; }

/* ---------- Header: a floating dock. Smoked glass over photo and video heroes, frosted white
   once scrolled. A crimson route line along its foot fills with scroll progress while a small
   container rides the leading edge; a soft highlight glides between the nav links.
   The glass lives on ::before so the dock never becomes a containing block for the fixed
   mobile menu sheet. ---------- */
.site-header {
  --hc: var(--ink); --glass: rgba(255, 255, 255, .86); --edge: rgba(20, 20, 20, .08);
  --shadow: 0 18px 50px -28px rgba(10, 14, 18, .45);
  --cta-bg: var(--crimson); --cta-fg: #fff; --cta-hover: var(--wine);
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  padding: 18px var(--gutter) 0;
  pointer-events: none;
  transition: transform .45s var(--ease-out), padding .35s var(--ease-out);
}
html.js .site-header { position: fixed; }
body.has-hero .site-header:not(.is-scrolled):not(.is-open) {
  --hc: #fff; --glass: rgba(16, 22, 26, .28); --edge: rgba(255, 255, 255, .24);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  --cta-bg: #fff; --cta-fg: var(--ink); --cta-hover: rgba(255, 255, 255, .86);
}
.site-header.is-open { --glass: #fff; --edge: transparent; --shadow: none; }
.site-header.is-scrolled { padding-top: 10px; }
html.motion .site-header.is-hidden { transform: translateY(calc(-100% - 12px)); }
.header-dock {
  pointer-events: auto;
  position: relative; isolation: isolate;
  max-width: calc(var(--wrap) + 56px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 70px; padding: 0 12px 0 22px;
  color: var(--hc);
  transition: height .35s var(--ease-out), padding .35s var(--ease-out), color .35s ease;
}
.header-dock::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled .header-dock { height: 78px; padding-bottom: 16px; }
html.motion .header-dock { animation: dock-in .8s var(--ease-out) backwards; }
@keyframes dock-in { from { opacity: 0; transform: translateY(-18px) scale(.98); } }
.brand { display: inline-flex; color: var(--hc); }
.logo { width: 180px; height: 46px; color: var(--hc); transition: color .35s ease; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--hc);
  transition: color .2s ease;
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--crimson);
}
html:not(.js) .nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-glide {
  position: absolute; z-index: 0; left: 0; top: 50%;
  width: 0; height: 40px; margin-top: -20px; border-radius: 10px;
  color: var(--hc); background: currentColor; opacity: 0;
  pointer-events: none;
}
.nav-glide.is-on { opacity: .12; }
html.motion .nav-glide { transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s ease; }
.nav-cta.btn {
  padding: 12px 20px; border-radius: 12px; font-size: 0.95rem;
  background: var(--cta-bg); color: var(--cta-fg);
  transition: background-color .25s ease, color .25s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-cta.btn:hover { background: var(--cta-hover); }
.nav-extra { display: none; }
.menu-btn { display: none; }
.route { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 2px; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.site-header.is-scrolled .route { opacity: 1; }
.route::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: currentColor; opacity: .16; }
.route-fill { position: absolute; inset: 0; border-radius: 2px; background: var(--crimson); transform-origin: 0 50%; transform: scaleX(0); }
/* The truck: side view, facing right; .is-reversed turns it around when scrolling back up */
.route-box { position: absolute; left: 0; bottom: 1px; width: 42px; height: 15.75px; will-change: transform; }
.truck { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .35s var(--ease-out); }
.route-box.is-reversed .truck { transform: scaleX(-1); }
.truck .truck-shadow { fill: rgba(0, 0, 0, .16); }
.truck .ct { fill: var(--crimson); }
.truck .ct-ribs { fill: none; stroke: rgba(0, 0, 0, .2); stroke-width: .55; }
.truck .ct-rails { fill: none; stroke: var(--wine); stroke-width: .7; }
.truck .ct-door { fill: none; stroke: rgba(0, 0, 0, .35); stroke-width: .45; }
.truck .ct-corners { fill: #5e0020; }
.truck .chassis { fill: #2b2b2b; }
.truck .cab { fill: #f4f4f4; stroke: rgba(0, 0, 0, .3); stroke-width: .35; }
.truck .cab-window { fill: #2e3a42; }
.truck .cab-light { fill: #ffc93c; }
.truck .wheel { transform-box: fill-box; transform-origin: center; }
.truck .wheel circle { fill: #1c1c1c; stroke: #5a5a5a; stroke-width: .45; }
.truck .wheel path { fill: none; stroke: #a8a8a8; stroke-width: .5; stroke-linecap: round; }
html:not(.js) .route { display: none; }

/* ---------- Hero (effects 1 and 2) ---------- */
.hero {
  position: relative;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #2b3a40;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video, .page-head-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  background: #2b3a40;
}
.page-head-video { object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,18,20,.64) 0%, rgba(14,18,20,.40) 30%, rgba(14,18,20,0) 56%),
    linear-gradient(to top, rgba(14,18,20,.45) 0%, rgba(14,18,20,0) 34%),
    linear-gradient(to bottom, rgba(14,18,20,.30) 0%, rgba(14,18,20,0) 22%);
}
/* The ship sits in the middle of the footage; a video box wider than the screen, anchored left,
   moves it to about two-thirds across so the headline column on the left stays clear of it. */
.hero-video { width: 136%; }
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; color: #fff; }
.hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero h1 .w { display: block; }
.hero p { margin-top: 20px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero .btn-primary { padding: 16px 28px; font-size: 1rem; }

/* Entrance: words rise one after another, then the line, then the actions; header fades with it. */
html.motion .hero-in { opacity: 0; transform: translateY(18px); animation: rise .6s var(--ease-out) forwards; }
html.motion .hero h1 .w:nth-child(1) { animation-delay: 0ms; }
html.motion .hero h1 .w:nth-child(2) { animation-delay: 100ms; }
html.motion .hero h1 .w:nth-child(3) { animation-delay: 200ms; }
html.motion .hero p.hero-in { animation-delay: 380ms; }
html.motion .hero-actions.hero-in { animation-delay: 520ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Page load (effect 9) ---------- */
html.motion body { animation: body-in .3s ease-out both; }
@keyframes body-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll (effect 4) ---------- */
html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s var(--ease-out);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Blur-up photos (effect 7) ----------
   <div class="ph" style="background-image:url(data:image/jpeg;base64,...)"><img ...></div>
   The wrapper needs a size: an aspect-ratio (cards, split blocks) or absolute inset (bands). */
.ph { position: relative; overflow: hidden; background: var(--soft) center / cover no-repeat; }
.ph::before { content: ""; position: absolute; inset: -24px; background: inherit; filter: blur(20px); transform: scale(1.1); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.js .ph img { opacity: 0; transition: opacity .6s ease; }
html.js .ph img.is-loaded { opacity: 1; }

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.section--flush-top { padding-top: 0; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.18; letter-spacing: -0.01em; }
.lede { margin-top: 28px; font-size: 1.2rem; line-height: 1.7; color: var(--text); }
.prose { max-width: 68ch; }
.prose h2 + p, .prose h3 + p { margin-top: 20px; }
.prose p + p { margin-top: 18px; }
.prose h2 + h3 { margin-top: 24px; }
.prose p + h2 { margin-top: 56px; }
.prose p + h3 { margin-top: 36px; }
.prose h3 { font-size: 1.2rem; font-weight: 600; }
.prose a { color: var(--ink); }
.note { margin-top: 56px; max-width: 72ch; color: var(--muted); font-size: 1rem; }
.note a { color: var(--ink); }

.intro { padding-bottom: 72px; }
.intro h2 { max-width: 18ch; }

/* Photo cards (effect 5: breathe on hover, title underline draws) */
.services { padding-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cards a { display: block; text-decoration: none; color: inherit; }
.cards .ph { aspect-ratio: 4 / 5; border-radius: 6px; }
.cards h3 { margin-top: 20px; font-size: 1.15rem; font-weight: 600; transition: color .3s ease; }
.cards h3 > span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease-out);
}
.cards p { margin-top: 8px; font-size: 0.97rem; line-height: 1.55; color: var(--muted); }
.cards a:hover h3 { color: var(--crimson); }
html.motion .cards .ph img { transition: opacity .6s ease, transform .6s var(--ease-out); }
@media (hover: hover) {
  html.motion:not(.touch) .cards a:hover .ph img, html.motion:not(.touch) .cards a:focus-visible .ph img { transform: scale(1.04); }
  html.motion:not(.touch) .cards a:hover h3 > span, html.motion:not(.touch) .cards a:focus-visible h3 > span { background-size: 100% 2px; }
}
.services-note { margin-top: 56px; max-width: 72ch; color: var(--muted); font-size: 1rem; }
.services-note a { color: var(--ink); }

/* Shipment line (effect 6) */
.steps { padding-top: 0; }
.steps h2 { margin-bottom: 40px; }
.step-wrap { position: relative; }
.step-line { position: absolute; display: block; overflow: visible; pointer-events: none; }
.step-line-h { left: 0; top: -1px; width: 100%; height: 2px; }
.step-line-v { display: none; left: -1px; top: 0; width: 2px; height: 100%; }
.step-line line { stroke: #cfcfcf; stroke-width: 1; fill: none; }
.step-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step-row li { position: relative; padding-top: 22px; }
.step-row li::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--crimson);
}
.step-row strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.step-row span { display: block; margin-top: 8px; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
html.motion .step-line line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s linear; }
html.motion .is-drawn .step-line line { stroke-dashoffset: 0; }
html.motion .step-row li::before { background: #d6d6d6; transition: background-color .35s ease; }
html.motion .is-drawn .step-row li::before { background: var(--crimson); }
html.motion .step-row li:nth-child(2)::before { transition-delay: 280ms; }
html.motion .step-row li:nth-child(3)::before { transition-delay: 560ms; }
html.motion .step-row li:nth-child(4)::before { transition-delay: 840ms; }
html.motion .step-row li:nth-child(5)::before { transition-delay: 1120ms; }
.corridors { margin-top: 56px; max-width: 64ch; color: var(--muted); font-size: 1rem; }

/* Soft call-to-action band (home: portal; inner pages: request a quote) */
.cta { background: var(--soft); text-align: center; }
.cta p { margin: 20px auto 32px; font-size: 1.15rem; max-width: 52ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta .actions, .error-page .actions { justify-content: center; }

/* Portal milestone card (effect 10) */
.milestones {
  max-width: 420px; margin: 48px auto 0; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px 8px;
}
.milestones-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }
.milestones-head strong { font-weight: 600; color: var(--ink); }
.milestones li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.milestones li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); }
.milestones li small { margin-left: auto; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
html.motion .milestones li { opacity: .4; transition: opacity .4s ease; }
html.motion .milestones li::before { background: #d6d6d6; transition: background-color .4s ease; }
html.motion .milestones.is-on li { opacity: 1; }
html.motion .milestones.is-on li::before { background: var(--crimson); }
html.motion .milestones li:nth-child(2), html.motion .milestones li:nth-child(2)::before { transition-delay: 350ms; }
html.motion .milestones li:nth-child(3), html.motion .milestones li:nth-child(3)::before { transition-delay: 700ms; }
html.motion .milestones li:nth-child(4), html.motion .milestones li:nth-child(4)::before { transition-delay: 1050ms; }
html.motion .milestones li:nth-child(5), html.motion .milestones li:nth-child(5)::before { transition-delay: 1400ms; }

/* ---------- Inner-page components ---------- */

/* Page header band: photo (body.has-hero) or plain soft grey (.page-head--plain, no has-hero) */
.page-head {
  position: relative; padding: 0;
  min-height: min(60vh, 560px);
  display: flex; align-items: flex-end;
  background: #2b3a40; color: #fff;
  isolation: isolate; overflow: hidden;
}
.page-head-media { position: absolute; inset: 0; z-index: -2; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14,18,20,.74) 0%, rgba(14,18,20,.42) 36%, rgba(14,18,20,.16) 70%, rgba(14,18,20,.26) 100%);
}
.page-head-content { padding-top: 170px; padding-bottom: 60px; }
.page-head h1 { color: #fff; font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.01em; }
.page-head p { margin-top: 16px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 58ch; color: rgba(255,255,255,.92); }
.page-head--plain { background: var(--soft); color: var(--text); min-height: 0; }
.page-head--plain::after { display: none; }
.page-head--plain h1 { color: var(--ink); }
.page-head--plain p { color: var(--text); }
.page-head--plain .page-head-content { padding-top: calc(var(--header-h) + 72px); padding-bottom: 64px; }

/* Text / photo block, alternating with .reverse */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 104px; }
.split-media { aspect-ratio: 4 / 3; border-radius: 6px; }
.split.reverse .split-media { order: -1; }
.split h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.split p { margin-top: 16px; }
.split .rules { margin-top: 24px; }

/* Short list with thin rules */
.rules li { border-top: 1px solid var(--line); padding: 11px 0; line-height: 1.5; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules--muted li { color: var(--muted); font-size: 1rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--ink); transition: transform .25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; }
.faq details p + p { padding-top: 0; margin-top: -8px; }

/* Forms */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; margin: 0;
  padding: 12px 14px; border: 1px solid #cdcdcd; border-radius: 4px;
  background: var(--white); color: var(--text);
  transition: border-color .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 1px; }
.field-hint { font-size: 0.88rem; color: var(--muted); }
form.is-submitted :invalid { border-color: var(--wine); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.status { font-size: 0.95rem; color: var(--muted); max-width: 60ch; }
.status:empty { display: none; }
.status.is-error { color: var(--wine); }
.status.is-ok { color: var(--ink); }
.form .status { margin-top: -6px; }

/* Track form: reference + button in one row */
.track-form { max-width: 560px; }
.track-row { display: flex; gap: 12px; }
.track-row input {
  flex: 1 1 auto; min-width: 0; font: inherit; margin: 0;
  padding: 12px 14px; border: 1px solid #cdcdcd; border-radius: 4px; background: var(--white); color: var(--text);
}
.track-row input:focus { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 1px; }
.track-row .btn { flex: none; }
.track-form .status { margin-top: 12px; }
.cta .track-form { margin: 0 auto; }

/* Portrait slot (about page): light grey, calm; replace the inner mark with a photo later */
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 440px; background: var(--soft); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.portrait .mark { width: 72px; height: 72px; color: var(--crimson); opacity: .28; }

/* Contact layout: form beside details */
.contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 80px; align-items: start; }
.contact-aside h2 { font-size: 1.15rem; font-weight: 600; }
.contact-aside p { margin-top: 10px; }
.contact-aside p + h2 { margin-top: 36px; }
.contact-aside a { color: var(--ink); }

/* 404 */
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-top: calc(var(--header-h) + 48px); }
.error-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.error-page p { margin: 18px auto 32px; max-width: 46ch; }
.error-page .mark { width: 56px; height: 56px; color: var(--crimson); margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d9d9; padding: 72px 0 36px; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.footer-brand p { margin-top: 20px; max-width: 30ch; color: #b9b9b9; }
.footer-h { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #d9d9d9; text-decoration: none; line-height: 1.9; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p + p { margin-top: 12px; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: #9a9a9a; font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .step-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .site-header { padding: 10px 12px 0; }
  .site-header.is-scrolled { padding-top: 8px; }
  .header-dock { height: 60px; padding: 0 6px 0 16px; }
  .header-dock::before { border-radius: 16px; }
  .site-header.is-scrolled .header-dock { height: 70px; padding-bottom: 14px; }
  .route-box { width: 34px; height: 12.75px; }
  .route { bottom: 4px; }
  .logo { width: 150px; height: 38px; }
  .menu-btn {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
    background: none; color: var(--hc); cursor: pointer;
    font: 600 0.92rem var(--display);
  }
  .menu-icon { position: relative; width: 20px; height: 10px; }
  .menu-icon span { position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
  .menu-icon span:first-child { top: 0; }
  .menu-icon span:last-child { top: 8px; }
  .site-header.is-open .menu-icon span { top: 4px; }
  .site-header.is-open .menu-icon span:first-child { transform: rotate(45deg); }
  .site-header.is-open .menu-icon span:last-child { transform: rotate(-45deg); }
  .route { left: 16px; right: 16px; }

  /* Menu sheet: white, full screen, opens as a circle from the menu button */
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 104px 24px 32px; overflow-y: auto;
    background: #fff; color: var(--ink);
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 52px) 40px);
    transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { visibility: visible; clip-path: circle(150% at calc(100% - 52px) 40px); transition: clip-path .6s var(--ease-out), visibility 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-glide { display: none; }
  .nav-links a {
    padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.01em; color: var(--ink);
  }
  .nav-links a[aria-current="page"] { color: var(--crimson); }
  .nav-links a[aria-current="page"]::after { display: none; }
  html.motion .nav-links a, html.motion .nav-cta, html.motion .nav-extra { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s var(--ease-out); }
  html.motion body.nav-open .nav-links a, html.motion body.nav-open .nav-cta, html.motion body.nav-open .nav-extra { opacity: 1; transform: none; }
  html.motion body.nav-open .nav-links a:nth-of-type(1) { transition-delay: .12s; }
  html.motion body.nav-open .nav-links a:nth-of-type(2) { transition-delay: .17s; }
  html.motion body.nav-open .nav-links a:nth-of-type(3) { transition-delay: .22s; }
  html.motion body.nav-open .nav-links a:nth-of-type(4) { transition-delay: .27s; }
  html.motion body.nav-open .nav-links a:nth-of-type(5) { transition-delay: .32s; }
  html.motion body.nav-open .nav-cta { transition-delay: .38s; }
  html.motion body.nav-open .nav-extra { transition-delay: .44s; }
  .nav-cta.btn { margin-top: 28px; padding: 16px 24px; text-align: center; font-size: 1rem; background: var(--crimson); color: #fff; }
  .nav-extra { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 36px; }
  .nav-extra a { color: var(--muted); text-decoration: none; font-size: 0.98rem; }

  .hero { align-items: flex-start; }
  .hero::after { background: linear-gradient(to bottom, rgba(14,18,20,.64) 0%, rgba(14,18,20,.44) 44%, rgba(14,18,20,.04) 60%, rgba(14,18,20,.22) 100%); }
  .hero-video { width: 100%; height: 118%; bottom: auto; object-position: 50% 50%; }
  .hero-content { padding-top: calc(var(--header-h) + 36px); padding-bottom: 32px; }
  .hero-cue { display: none; }
  .hero-actions { gap: 20px; margin-top: 28px; }
  .hero .btn-primary { padding: 14px 24px; font-size: 0.95rem; }
  .intro { padding-bottom: 56px; }
  .lede { font-size: 1.1rem; }
  .services { padding-top: 56px; }
  .section-head { margin-bottom: 28px; }
  .services-note, .corridors, .note { margin-top: 40px; }
  .cta p { font-size: 1.05rem; }
  .site-footer { padding-top: 56px; }

  .page-head { min-height: 440px; }
  .page-head-content { padding-top: 130px; padding-bottom: 44px; }
  .page-head--plain .page-head-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split + .split { margin-top: 72px; }
  .split .split-media, .split.reverse .split-media { order: -1; }
  .error-page { padding-top: calc(var(--header-h) + 24px); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 36px; }
  .cards .ph { aspect-ratio: 4 / 3; }
  .step-row { grid-template-columns: 1fr; row-gap: 22px; padding-left: 26px; }
  .step-row li { padding-top: 0; }
  .step-row li::before { left: -31px; top: 10px; }
  .step-line-h { display: none; }
  .step-line-v { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.6rem; }
  .field-row { grid-template-columns: 1fr; }
  .track-row { flex-direction: column; }
  .track-row .btn { width: 100%; text-align: center; }
  .portrait { max-width: none; aspect-ratio: 4 / 3; }
}

/* ---------- Reduced motion: every effect off, page finished and static.
   html.motion-forced is the QA-only ?motion=1 override. ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) { scroll-behavior: auto; }
  html:not(.motion-forced) *,
  html:not(.motion-forced) *::before,
  html:not(.motion-forced) *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  html:not(.motion-forced) body { opacity: 1; animation: none; }
  html:not(.motion-forced) .site-header { animation: none; }
  html:not(.motion-forced) .site-header.is-hidden { transform: none; }
  html:not(.motion-forced) .header-dock { animation: none; }
  html:not(.motion-forced) .nav-links a, html:not(.motion-forced) .nav-cta, html:not(.motion-forced) .nav-extra { opacity: 1; transform: none; }
  html:not(.motion-forced) .hero-media { transform: none !important; }
  html:not(.motion-forced) .hero-in { opacity: 1; transform: none; animation: none; }
  html:not(.motion-forced) [data-reveal] { opacity: 1; transform: none; }
  html:not(.motion-forced) .cards .ph img, html:not(.motion-forced) .cards a:hover .ph img { transform: none; }
  html:not(.motion-forced) .step-line line { stroke-dasharray: none; stroke-dashoffset: 0; }
  html:not(.motion-forced) .step-row li::before { background: var(--crimson); }
  html:not(.motion-forced) .milestones li { opacity: 1; }
  html:not(.motion-forced) .milestones li::before { background: var(--crimson); }
  html:not(.motion-forced) .btn:hover { transform: none; box-shadow: none; }
}

/* ---- additions from the page builders (contact, tax, portal, about) ---- */
.contact-grid .form { margin-top: 40px; }
@media (max-width: 860px) { .contact-grid .form { margin-top: 32px; } }
.split--top { align-items: start; }
@media (max-width: 860px) { .split--top { gap: 8px; } }
.split .milestones { margin: 0; justify-self: center; }
.split .milestones-head { margin-top: 0; }
.rules strong { font-weight: 500; color: var(--ink); }

/* Scroll cue at the foot of the full-page hero */
.hero-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 1;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
}
.hero-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
html.motion .hero-cue span { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@media (max-height: 640px) { .hero-cue { display: none; } }
/* Short phones: tighter hero text and the ship pushed a little lower so the two never meet */
@media (max-width: 860px) and (max-height: 800px) {
  .hero-video { height: 130%; }
  .hero-content { padding-top: calc(var(--header-h) + 22px); }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin-top: 14px; font-size: 1rem; }
  .hero-actions { margin-top: 20px; }
}
