:root {
  --ink: #0b0b0c;
  --ink-2: #161618;
  --paper: #faf8f3;
  --text: #141414;
  --muted: #5c5a55;
  --muted-light: #c9c6be;
  --gold: #c9a24a;
  --gold-deep: #7d5f1a;
  --line: rgb(20 20 20 / 0.12);
  --ring: var(--gold);
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--ink); color: #fff; font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: #fff; color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 2px;
  background: var(--gold); color: var(--ink);
  font: 600 1rem/1 var(--body); letter-spacing: 0.01em; cursor: pointer;
  transition: background-color 0.2s;
}
.btn:hover { background: #dbb75f; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2d; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  transition: background-color 0.3s;
}
.site-header.is-solid { background: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 700 1rem/1 var(--display); letter-spacing: 0.02em; }
.badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.site-header nav { margin-left: auto; }
.site-header nav ul, .site-footer ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 0.9rem; opacity: 0.85; }
.site-header nav a:hover { opacity: 1; }

/* Scroll World */
.story { position: relative; height: 480svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); }
.scenes { position: absolute; inset: 0; }
.scenes::after {
  /* scrim keeps captions readable; kept off the vehicle (centre/right) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.6), transparent 30%),
    linear-gradient(90deg, rgb(0 0 0 / 0.5), transparent 42%);
}
.scene { position: absolute; inset: 0; visibility: hidden; }
.scene img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
  will-change: transform; /* transform set per frame by scroll-world.js */
}

.caption {
  position: absolute; left: var(--gutter); top: clamp(84px, 12vh, 150px);
  max-width: min(26rem, 30vw);
  opacity: 0; will-change: opacity, transform;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
  pointer-events: none;
}
.caption.is-active, .caption:focus-within { opacity: 1; pointer-events: auto; }
.caption h1, .caption h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.caption p { margin-top: 14px; font-size: clamp(1rem, 1.2vw, 1.15rem); color: #f1efe9; }
.kicker { display: block; margin-bottom: 14px; font: 600 0.8rem/1.4 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.caption-final { max-width: none; }
.caption-final h2 { font-size: clamp(2.2rem, 3.8vw, 3.8rem); white-space: nowrap; }
.caption-final .tagline { font: 700 clamp(1.2rem, 1.8vw, 1.6rem)/1.2 var(--display); color: #fff; }
.caption-final h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 16px; background: var(--gold); }

.hint {
  position: absolute; left: 50%; bottom: 32px; translate: -50% 0;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: calc(1 - var(--p, 0) * 20);
}
.progress {
  position: absolute; inset: auto 0 0; height: 3px; background: var(--gold);
  transform: scaleX(var(--p, 0)); transform-origin: left; will-change: transform;
}

/* Chapter rail: 6 dots on a thin line at the right edge; shadow keeps it visible on bright image areas */
.rail { position: absolute; right: clamp(18px, 2vw, 32px); top: 58%; translate: 0 -50%; display: grid; justify-items: center; gap: 18px; }
.rail-dots { position: relative; display: grid; gap: 22px; }
.rail-dots::before, .rail-fill { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; translate: -50% 0; background: rgb(255 255 255 / 0.3); }
.rail-dots::before { box-shadow: 0 0 2px rgb(0 0 0 / 0.6); }
.rail-fill { background: var(--gold); transform-origin: top; transform: scaleY(var(--rail, 0)); will-change: transform; }
.rail-dots i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / 0.38); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35); transition: background-color 0.3s, transform 0.3s; }
.rail-dots i.is-past { background: #d9d6ce; }
.rail-dots i.is-current { background: var(--gold); transform: scale(1.6); }
.rail-count { font: 600 0.7rem/1 var(--body); letter-spacing: 0.08em; color: rgb(255 255 255 / 0.6); white-space: nowrap; text-shadow: 0 1px 4px rgb(0 0 0 / 0.6); }
.rail-count b { font-weight: 600; color: #fff; }

/* Landscape caption readability: a soft dark pool behind the caption area (top-left, away from
   the vehicle), crisper text shadow, and brighter companion text. Portrait rules below override. */
@media (min-aspect-ratio: 7/5) {
  .scenes::after {
    background:
      linear-gradient(180deg, rgb(0 0 0 / 0.55), transparent 22%),
      radial-gradient(ellipse 58% 64% at 0% 24%, rgb(8 8 9 / 0.85), rgb(8 8 9 / 0.62) 55%, transparent 100%);
  }
  .caption { text-shadow: 0 1px 2px rgb(0 0 0 / 0.7), 0 2px 18px rgb(0 0 0 / 0.5); }
  .caption p { color: #fff; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; }
  .kicker { width: fit-content; padding: 6px 12px; border-left: 2px solid var(--gold); background: rgb(8 8 9 / 0.72); font-size: 0.82rem; color: #ecd08a; text-shadow: none; }
}

/* Portrait and near-square screens (phones, tablets): image on top, captions in their own
   panel below so text never sits on the vehicle. */
@media (max-aspect-ratio: 7/5) {
  .stage { --panel: 36svh; }
  .scenes { inset: 0 0 var(--panel); }
  .scenes::after { background: linear-gradient(180deg, rgb(0 0 0 / 0.55), transparent 22%); }
  .captions { position: absolute; inset: auto 0 0; height: var(--panel); }
  .caption { top: 22px; left: var(--gutter); right: var(--gutter); max-width: 34rem; text-shadow: none; }
  .caption h1, .caption h2 { font-size: clamp(1.6rem, 6.4vw, 2.6rem); }
  .caption p { margin-top: 10px; }
  .kicker { margin-bottom: 10px; font-size: 0.72rem; }
  .caption-final h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .hint { bottom: calc(var(--panel) + 16px); }
}
/* Phones: one continuous canvas. The image runs edge to edge and fades into the dark ground
   where the caption sits, so there is no separate panel. Header is logo-only during the story. */
@media (max-width: 600px) {
  .scenes { inset: 0 0 auto; height: 80svh; overflow: hidden; }
  /* static overlay fading into the stage colour (cheaper than mask-image over moving layers) */
  .scenes::after { background: linear-gradient(180deg, rgb(0 0 0 / 0.45), transparent 16%, transparent 76%, var(--ink)); }
  .captions { inset: 0; height: auto; }
  .caption { top: auto; bottom: 40px; }
  .caption h1, .caption h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .caption p { font-size: 0.95rem; color: var(--muted-light); }
  .kicker { font-size: 0.68rem; letter-spacing: 0.14em; }
  .caption-final h2 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .caption-final .tagline { color: #fff; }
  .hint { bottom: max(30svh, 220px); }
  .site-header { padding-block: 10px; }
  .site-header .badge { width: 36px; height: 36px; }
  .site-header .badge img { width: 26px; height: 26px; }
  .site-header:not(.is-solid) .brand > span:last-child { display: none; }
  /* phones: counter only, top-right just below the header button */
  .rail { inset: 72px var(--gutter) auto auto; translate: none; }
  .rail-dots { display: none; }
}
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 7/5) {
  .stage { --panel: 30svh; }
}

/* Mobile/tablet menu: hamburger opens a native popover with the page links */
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 2px; background: rgb(0 0 0 / 0.3); color: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; }
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu { inset: 68px var(--gutter) auto auto; margin: 0; width: min(320px, 100% - 2 * var(--gutter)); padding: 8px 20px 16px; border: 0; border-top: 3px solid var(--gold); background: var(--ink-2); color: #fff; }
.menu::backdrop { background: rgb(0 0 0 / 0.45); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li + li a { border-top: 1px solid rgb(255 255 255 / 0.1); }
.menu li a { display: flex; align-items: center; min-height: 52px; font: 700 1.1rem/1 var(--display); color: #fff; text-decoration: none; }
.menu a:hover { color: var(--gold); }
section[id], #contact { scroll-margin-top: 76px; } /* anchor jumps clear the fixed header */

@media (max-width: 860px) {
  .site-header nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 400px) {
  .site-header .brand > span:last-child { display: none; }
}

/* Normal sections */
.light { background: var(--paper); color: var(--text); --ring: var(--ink); color-scheme: light; }
.section { max-width: calc(1160px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; max-width: 22ch; }
.section h3 { font-size: 1.15rem; font-weight: 700; }
.lead { margin-top: 18px; max-width: 40rem; font-size: 1.125rem; color: var(--muted); }

.points, .steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.points li, .steps li { border-top: 2px solid var(--text); padding-top: 20px; }
.points p, .steps p { margin-top: 8px; color: var(--muted); }
.points svg { display: block; width: 28px; height: 28px; margin-bottom: 16px; color: var(--gold-deep); }
.points h3 { font-size: 1.2rem; }
/* Desktop: intro left, benefits as a 2×2 grid divided by hairlines */
@media (min-width: 861px) {
  .why { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .why-intro h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 24px; background: var(--gold); }
  .why .lead { font-size: 1.25rem; }
  .why .points { margin: 0; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--text); }
  .why .points li { border-top: 0; border-bottom: 1px solid var(--line); padding: 32px 32px 32px 0; }
  .why .points li:nth-child(even) { border-left: 1px solid var(--line); padding: 32px 0 32px 32px; }
}
.steps li { border-top: 0; padding-top: 0; position: relative; }
.steps h3 { font-size: 1.3rem; }
.step-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--text); border-radius: 50%; background: var(--paper); }
.step-icon svg, .tags svg, .points svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.step-icon svg { width: 26px; height: 26px; }
.steps li:last-child .step-icon { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.step-num { display: block; margin: 22px 0 8px; font: 800 0.85rem/1 var(--display); letter-spacing: 0.12em; color: var(--gold-deep); }
/* Desktop: one connected journey, gold line + arrow from each step to the next */
@media (min-width: 861px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: 80px; right: -24px; height: 2px; background: var(--gold); }
  .steps li:not(:last-child)::before { content: ""; position: absolute; top: 27px; right: -23px; width: 10px; height: 10px; border: solid var(--gold); border-width: 2px 2px 0 0; transform: rotate(45deg); }
}

.tags { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tags li {
  position: relative; display: grid; gap: 18px; padding: 24px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(20 20 20 / 0.04);
  font: 700 1.05rem/1.25 var(--display); transition: border-color 0.2s;
}
.tags li::after { content: ""; position: absolute; inset: auto -1px -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.tags li:hover { border-color: rgb(20 20 20 / 0.28); }
.tags li:hover::after { transform: scaleX(1); }
.tags svg { width: 28px; height: 28px; color: var(--gold-deep); }
@media (min-width: 861px) { .tags { grid-template-columns: repeat(4, 1fr); } }

.plans h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: none; }
.offers { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 48px; }
.offer { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 48px); border-top: 3px solid var(--gold); }
.offer h3 { font: 800 clamp(1.5rem, 3vw, 1.875rem)/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.price { display: grid; gap: 8px; margin-top: 24px; }
.price-label { font: 800 clamp(1.375rem, 2.8vw, 1.75rem)/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.price-now { font: 800 clamp(3.125rem, 2rem + 3.3vw, 4.875rem)/1 var(--display); letter-spacing: -0.02em; }
.price-unit { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; color: #f1efe9; }
.price-was { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: clamp(1.15rem, 1.6vw, 1.375rem); color: var(--muted-light); }
.price-was del { margin-left: 8px; font-weight: 600; color: #e9e6df; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.plans-foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.plan-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.plan-notes li { display: flex; gap: 10px; }
.plan-notes li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; background: var(--gold); transform: rotate(45deg); }


.site-footer { background: var(--ink-2); color: var(--muted-light); padding: clamp(40px, 5vw, 56px) var(--gutter) 20px; border-top: 1px solid rgb(201 162 74 / 0.35); }
.footer-main, .footer-bottom { max-width: 1160px; margin: 0 auto; }
.footer-main { display: grid; gap: 28px 56px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 861px) { .footer-main { grid-template-columns: 1.3fr 0.8fr 1.2fr; } }
@media (max-width: 860px) { #contact { grid-column: 1 / -1; } } /* full-width row so the address keeps its 3 lines */
.footer-brand .brand { color: #fff; font-size: 1.25rem; }
.footer-brand p { margin-top: 12px; font-size: 1.05rem; }
.footer-label { margin-bottom: 10px; font: 600 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { flex-direction: column; gap: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.05rem; color: #f1efe9; text-decoration: none; text-underline-offset: 5px; transition: color 0.2s; }
.site-footer li a:hover { color: var(--gold); text-decoration: underline; }
.site-footer address { margin-top: 10px; font-style: normal; font-size: 1.05rem; line-height: 1.65; }
/* mouse/trackpad only: tighter link rows; touch screens keep 44px targets */
@media (hover: hover) and (pointer: fine) { .site-footer li a { min-height: 34px; } }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.1); display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }

/* Enquiry modal */
dialog {
  width: min(560px, 100% - 32px); max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: 4px;
  background: #fff; color: var(--text); color-scheme: light; --ring: var(--ink);
}
dialog::backdrop { background: rgb(0 0 0 / 0.7); }
.dialog-panel { position: relative; padding: clamp(24px, 5vw, 40px); }
.dialog-panel h2 { font-size: 1.75rem; padding-right: 48px; }
.close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--text); cursor: pointer; }
form { display: grid; gap: 16px; margin-top: 20px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
input, textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #b8b5ad; border-radius: 2px;
  font: 400 1rem/1.4 var(--body); color: var(--text); background: #fff;
}
input:user-invalid, textarea:user-invalid { border-color: #b3261e; }
form .btn { justify-self: start; margin-top: 4px; }
.enquiry-done { margin-top: 16px; display: grid; gap: 12px; justify-items: start; }
.enquiry-done[hidden] { display: none; }

/* Phones: tighter content sections and footer (desktop/tablet unaffected) */
@media (max-width: 600px) {
  .why .lead { font-size: 1.05rem; }
  .why .points { margin-top: 32px; gap: 0; }
  .why .points li { padding: 18px 0 22px; }
  .points svg { width: 26px; height: 26px; margin-bottom: 10px; }
  .points p, .steps p { margin-top: 4px; }

  /* How It Works: icon column with a gold line linking each step to the next */
  .steps { gap: 0; margin-top: 32px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-content: start; padding-bottom: 26px; }
  .step-icon { grid-row: 1 / span 3; width: 52px; height: 52px; }
  .step-icon svg { width: 22px; height: 22px; }
  .step-num { margin: 4px 0 4px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 4px; width: 2px; background: var(--gold); opacity: 0.6; }

  .tags { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .tags li { gap: 10px; padding: 14px; font-size: 0.92rem; }
  .tags svg { width: 22px; height: 22px; }

  .offers { margin-top: 32px; gap: 16px; }
  .offer { padding: 28px 24px; }
  .price { margin-top: 18px; }
  .price-was { margin-top: 18px; padding-top: 14px; }

  .site-footer { padding: 36px var(--gutter) 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
  .footer-label { display: none; }
  #contact { padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.1); }
  #contact .footer-label { display: block; }
  .footer-brand p { margin-top: 10px; }
  .site-footer nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
  .footer-bottom { margin-top: 22px; padding-top: 14px; }
  .site-footer address { font-size: 1rem; } /* keeps each address line on one row */
}

/* Reduced motion: same story, no zoom/pan (handled in JS), no glide, minimal transitions */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .caption { transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
