/* ==========================================================================
   Rugeley 707 – Logicor holding page
   Colours and type taken from the RUG001 brochure (Montserrat, navy/blue/green)
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0c1f29;
  --navy-2: #24353f; /* site plan / map artwork background */
  --blue: #00a2e3;
  --blue-ink: #0077aa;
  --green: #56e366;
  --ink: #0c1f29;
  --muted: #55646c;
  --line: #dde5e9;
  --soft: #f3f7f9;
  --soft-hover: #e9f0f3;
  --bg: #fff;
  --surface: #fff;
  --tint: rgb(12 31 41 / .07);
  --tint-hover: rgb(12 31 41 / .12);
  --rule-strong: rgb(12 31 41 / .45);
  --header-bg: rgb(255 255 255 / .86);
  --card-dark: var(--navy);
  --footer-bg: var(--navy);
  --grad: linear-gradient(90deg, var(--green), var(--blue));

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --header: 76px;
  --header-x: clamp(20px, 2.8vw, 40px);
  --inset: clamp(10px, 1.2vw, 18px);
  --radius: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);

  color-scheme: light;
}

/* Dark theme – the brochure's navy palette. Light is the default; main.js toggles data-theme */
:root[data-theme="dark"] {
  --ink: #eef3f5;
  --muted: #9fb0b8;
  --blue-ink: #3dbdf0;
  --line: rgb(255 255 255 / .12);
  --soft: #112a35;
  --soft-hover: #17313d;
  --bg: var(--navy);
  --surface: #17313d;
  --tint: rgb(255 255 255 / .08);
  --tint-hover: rgb(255 255 255 / .14);
  --rule-strong: rgb(255 255 255 / .4);
  --header-bg: rgb(12 31 41 / .82);
  --card-dark: var(--navy-2);
  --footer-bg: #07141a;

  color-scheme: dark;
}

/* Base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

main { container-type: inline-size; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.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: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1rem; border-radius: 8px;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 52px; padding: 0 1.6rem;
  border-radius: 999px;
  font-family: inherit; font-size: .9375rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { height: 42px; padding: 0 1.15rem; font-size: .875rem; }

.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: #74ee82; transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgb(86 227 102 / .9); }
.btn--primary:hover .ico-down { animation: nudge 1s var(--ease) infinite; }

.btn--ghost { color: var(--ink); background: var(--tint); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }

/* Header
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  transition: background-color .4s, box-shadow .4s, transform 1s var(--ease) .1s;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 30px -22px rgb(12 31 41 / .4);
}
html.js .site-header { transform: translateY(-100%); }
html.is-ready .site-header { transform: none; }

/* Full width, three columns: logo | centred nav | brochure button */
.header__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  padding-inline: var(--header-x);
}
.brand { justify-self: start; }
.brand img { height: 30px; width: auto; }
.brand__logo--dark,
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }

.header__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .5rem; }

/* Light / dark switch (needs JS, so hidden without it) */
.theme-toggle {
  display: none; place-items: center;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--tint); color: var(--ink);
  cursor: pointer; transition: background-color .3s;
}
html.js .theme-toggle { display: grid; }
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .ico-sun,
:root[data-theme="dark"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .ico-sun { opacity: 1; transform: none; }

.nav { display: flex; gap: 2.5rem; font-size: .875rem; font-weight: 500; }
.nav a { position: relative; padding: .35rem 0; text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Menu button: centred between logo and brochure button on small screens */
.menu-toggle {
  display: none; grid-column: 2; justify-self: center;
  position: relative; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--tint); color: var(--ink);
  cursor: pointer; transition: background-color .3s;
}
.menu-toggle:hover,
.theme-toggle:hover { background: var(--tint-hover); }
.menu-toggle i {
  position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px;
  background: currentColor; transition: top .45s var(--ease), transform .45s var(--ease);
}
.menu-toggle i:nth-of-type(1) { top: 16.25px; }
.menu-toggle i:nth-of-type(2) { top: 24.25px; }
html.menu-open .menu-toggle i:nth-of-type(1) { top: 20.25px; transform: rotate(45deg); }
html.menu-open .menu-toggle i:nth-of-type(2) { top: 20.25px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav { display: none; }
  html.js .menu-toggle { display: block; }
  .header__inner { gap: 1rem; }
  .brand img { height: 26px; }
}
@media (max-width: 599px) {
  .header__cta { width: 42px; padding: 0; }
  .header__cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 389px) {
  .brand img { height: 22px; }
}

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: calc(var(--header) + 32px) var(--header-x) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(70% 45% at 0% 0%, rgb(86 227 102 / .14), transparent 70%),
    radial-gradient(70% 50% at 100% 100%, rgb(0 162 227 / .12), transparent 70%),
    var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease-in-out); }

.menu__nav { display: grid; gap: .25rem; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .45rem 0;
  font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -.025em;
  text-decoration: none;
}
.menu__nav small { font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--blue-ink); }
.menu__foot { display: grid; gap: 1.25rem; }
.menu__foot p { font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.menu__foot strong { color: var(--ink); font-weight: 600; }

.menu__nav a,
.menu__foot { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms + 280ms); }
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: 560ms; }

html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (min-width: 900px) {
  .menu { display: none; }
}

/* Hero
   ========================================================================== */

/* Hero copy lines up with the header logo (--header-x), not the content column */
.hero {
  --edge: var(--header-x);
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--edge) + min(640px, 42cqw)) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1.25fr;
  min-height: max(660px, 100svh);
  padding: var(--header) 0 var(--inset);
  background:
    radial-gradient(40% 50% at 0% 8%, rgb(86 227 102 / .12), transparent 70%),
    radial-gradient(45% 60% at 28% 100%, rgb(0 162 227 / .09), transparent 70%),
    var(--bg);
  overflow: clip;
}

.hero__head,
.hero__body { grid-column: 1; padding-left: var(--edge); padding-right: clamp(24px, 3.5cqw, 56px); }
.hero__head { grid-row: 2; }
.hero__body { grid-row: 3; }

.hero__media {
  grid-column: 2; grid-row: 1 / -1;
  position: relative;
  margin-right: var(--inset);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: #9cc3e3;
}
.hero__frame { position: absolute; inset: 0; transform-origin: 50% 72%; }
.hero__frame picture,
.hero__img,
.hero__wedge,
.hero__boundary { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 100%; }
.hero__boundary { filter: drop-shadow(0 0 6px rgb(86 227 102 / .6)); }
.hero__boundary path { fill: none; stroke: var(--green); stroke-width: 8; stroke-linejoin: round; }
.hero__shade { display: none; }

.hero__title {
  font-size: clamp(3.25rem, 5.6cqw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .w > span { display: inline-block; }

.hero__address { margin-top: 1.25rem; font-size: clamp(1rem, 1.2cqw, 1.125rem); line-height: 1.6; color: var(--muted); }
.hero__address strong { color: var(--ink); font-weight: 700; }
.w3w { text-decoration: none; }
.w3w span { color: var(--blue-ink); font-weight: 600; }
.w3w:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero__rule {
  display: block; width: min(380px, 80%); height: 3px; margin-top: 1.75rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue) 65%, rgb(0 162 227 / 0));
  transform-origin: left;
}

.hero__message {
  max-width: 19ch; margin-top: 1.75rem;
  font-size: clamp(1.5rem, 2.2cqw, 2.125rem); font-weight: 400; line-height: 1.22; letter-spacing: -.015em;
}

.hero__size { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .5em; margin-top: 1.75rem; }
.hero__size-num {
  display: inline-block;
  font-size: clamp(2.25rem, 3.6cqw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero__size-unit { font-size: clamp(1.125rem, 1.4cqw, 1.375rem); font-weight: 500; }
.hero__size-alt { margin-left: .25rem; padding-left: .75rem; border-left: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 34px; padding: 0 .95rem;
  border-radius: 999px;
  background: var(--tint);
  font-size: .8125rem; font-weight: 500; white-space: nowrap;
}
.chip--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(86 227 102 / .7); }
  80%, 100% { box-shadow: 0 0 0 8px rgb(86 227 102 / 0); }
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__scroll {
  position: absolute; left: var(--edge); bottom: calc(var(--inset) + 16px);
  display: inline-flex; flex-direction: column; align-items: center; gap: .75rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.hero__scroll span { margin-right: -.2em; } /* offset trailing letter-spacing so the line centres */
.hero__scroll i { position: relative; width: 1px; height: 56px; overflow: hidden; background: var(--line); }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--green), var(--blue));
  animation: scrollcue 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Hero intro (runs once the hero photo has decoded) */
html.js [data-load] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
html.is-ready [data-load] { opacity: 1; transform: none; }

html.js .hero__title .w > span { transform: translateY(110%); transition: transform 1.2s var(--ease) .15s; }
html.js .hero__title .w + .w > span { transition-delay: .27s; }
html.is-ready .hero__title .w > span { transform: none; }

html.js .hero__rule { transform: scaleX(0); transition: transform 1.4s var(--ease) .55s; }
html.is-ready .hero__rule { transform: none; }

html.js .hero__media { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-in-out); }
html.is-ready .hero__media { clip-path: inset(0 0 0 0 round var(--radius)); }

html.js .hero__frame { transform: scale(1.14); transition: transform 2.8s var(--ease); }
html.is-ready .hero__frame { transform: none; }

html.js .hero__wedge { opacity: 0; transform: translateX(-14%); transition: opacity 1.4s var(--ease) 1s, transform 1.8s var(--ease) 1s; }
html.is-ready .hero__wedge { opacity: 1; transform: none; }

html.js .hero__boundary path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s var(--ease-in-out) 1.25s; }
html.is-ready .hero__boundary path { stroke-dashoffset: 0; }

@media (max-height: 820px), (max-width: 959px) {
  .hero__scroll { display: none; }
}

/* Small screens: brochure-cover treatment, title sits on the sky */
@media (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; padding-bottom: 0; }
  .hero__media { grid-column: 1; grid-row: 1; height: clamp(500px, 76svh, 720px); margin: 0 var(--inset); }
  .hero__shade {
    display: block; position: absolute; inset: 0 0 auto; z-index: 1; height: 55%;
    background: linear-gradient(180deg, rgb(12 31 41 / .32), rgb(12 31 41 / 0));
    pointer-events: none;
  }
  .hero__head {
    grid-column: 1; grid-row: 1; align-self: start; z-index: 2;
    padding: clamp(24px, 6vw, 40px) calc(var(--inset) + clamp(20px, 5vw, 36px)) 0;
    color: #fff;
  }
  .hero__title { font-size: clamp(2.6rem, 12cqw, 4.25rem); }
  .hero__address,
  .hero__address strong { color: #fff; }
  .w3w span { color: #b9f6c1; }
  .hero__body { grid-column: 1; grid-row: 2; padding: 32px var(--gutter) 72px; }
  .hero__ctas .btn { flex: 1 1 auto; }

  /* Let the photo arrive before the white title lands on it */
  html.js .hero__title .w > span { transition-delay: .7s; }
  html.js .hero__title .w + .w > span { transition-delay: .82s; }
  html.js .hero__head [data-load] { transition-delay: 1s; }
  html.js .hero__rule { transition-delay: 1.1s; }
}

/* Landscape phones: the crop puts the title over the roof rather than the sky */
@media (max-width: 959px) and (orientation: landscape) {
  .hero__shade { height: 75%; background: linear-gradient(180deg, rgb(12 31 41 / .55), rgb(12 31 41 / 0)); }
}

/* Sections
   ========================================================================== */

.section { padding-block: clamp(80px, 10vw, 144px); }
.section--soft { background: var(--soft); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }

/* Accommodation: same navy as the site plan artwork so the plan sits seamlessly */
.section--plan { background: var(--navy-2); color: #fff; }
.section--plan .lead { color: rgb(255 255 255 / .72); }
.section--plan .schedule th,
.section--plan .schedule td { border-bottom-color: rgb(255 255 255 / .14); }
.section--plan .schedule thead th { color: var(--blue); border-bottom-color: rgb(255 255 255 / .5); }
.section--plan .plan { border-radius: 0; box-shadow: none; background: none; }

.h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.028em; }
.h2::before {
  content: ""; display: block; width: 44px; height: 3px; margin-bottom: 1.25rem;
  border-radius: 3px; background: var(--grad); transform-origin: left;
}

.lead { max-width: 36em; margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.7; color: var(--muted); }

/* Scroll reveals */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Keep hover transitions on revealed cards */
html.js .spec[data-reveal] { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), background-color .4s; }
html.js .agent[data-reveal] { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), box-shadow .5s var(--ease); }
html.js .h2[data-reveal]::before { transform: scaleX(0); transition: transform 1s var(--ease) .25s; }
html.js .h2[data-reveal].is-in::before { transform: none; }

/* Overview / accommodation
   ========================================================================== */

.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.schedule { width: 100%; margin-top: 2.5rem; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.schedule th,
.schedule td { padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: right; }
.schedule td { width: 7.5rem; }
.schedule th:first-child { text-align: left; }
.schedule thead th { padding-top: 0; border-bottom-color: var(--rule-strong); color: var(--blue-ink); font-size: .8125rem; font-weight: 600; }
.schedule tbody th { font-weight: 500; }
.schedule tfoot th,
.schedule tfoot td { padding-top: 1rem; border-bottom: 0; font-weight: 700; }

html.js .schedule[data-reveal] tr { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 320ms); }
html.js .schedule[data-reveal].is-in tr { opacity: 1; transform: none; }

.plan,
.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: 0 40px 80px -40px rgb(12 31 41 / .55);
}
.plan img,
.map img { width: 100%; height: auto; }

@media (max-width: 959px) {
  .overview { grid-template-columns: minmax(0, 1fr); }
}

/* Key specification
   ========================================================================== */

.specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px);
  margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none;
}
.spec {
  position: relative;
  padding: clamp(22px, 2.8vw, 40px);
  border-radius: 20px;
  background: var(--soft);
  overflow: hidden;
  transition: background-color .4s;
}
.spec::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.spec:hover { background: var(--soft-hover); }
.spec:hover::after { transform: none; }

.spec__icon { width: 44px; height: 44px; color: var(--blue); }
.spec__icon path { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.spec--green .spec__icon { color: var(--green); }
.spec__icon .dots { stroke-width: 1.5; }

.spec__value {
  display: flex; align-items: flex-end;
  min-height: calc(clamp(1.75rem, 2.8vw, 2.625rem) * 1.1);
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(1.75rem, 2.8vw, 2.625rem); font-weight: 500; line-height: 1.1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.spec__value span { display: inline-block; }
.spec__value--word { font-size: clamp(1.25rem, 2vw, 1.875rem); letter-spacing: -.02em; }
.spec__label { margin-top: .5rem; font-size: .9375rem; line-height: 1.4; color: var(--muted); }

html.js .spec[data-reveal] .spec__icon path:not(.dots) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out) calc(var(--d, 0ms) + 200ms); }
html.js .spec[data-reveal].is-in .spec__icon path:not(.dots) { stroke-dashoffset: 0; }
html.js .spec[data-reveal] .dots { opacity: 0; transition: opacity .8s ease calc(var(--d, 0ms) + 900ms); }
html.js .spec[data-reveal].is-in .dots { opacity: 1; }

@media (max-width: 959px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .spec__value--word { font-size: 1.125rem; }
  .spec__label { font-size: .875rem; }
}

/* Aerial band */
.aerial {
  position: relative;
  width: min(100% - 2 * var(--inset), 1408px);
  aspect-ratio: 2236 / 698;
  margin: clamp(64px, 8vw, 120px) auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.aerial img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0%)) scale(1.12); will-change: transform; }

@media (max-width: 767px) {
  .aerial { aspect-ratio: 16 / 10; }
}

/* Location
   ========================================================================== */

.location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.finder { display: flex; flex-wrap: wrap; gap: .625rem; margin: 2rem 0 0; }
.finder div {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: .875rem;
}
.finder dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.finder dd { margin: 0; font-weight: 600; }
.finder a { text-decoration: none; }
.finder a:hover { color: var(--blue-ink); }

.drive { margin-top: 2.5rem; }
.drive ul { margin: 0; padding: 0; list-style: none; }
.drive__head,
.drive li { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 4.5rem; align-items: baseline; gap: 1rem; }
.drive__head { padding-bottom: .75rem; border-bottom: 1px solid var(--rule-strong); font-size: .8125rem; font-weight: 600; color: var(--blue-ink); }
.drive__head span:not(:first-child),
.drive__dist,
.drive__mins { text-align: right; }
.drive li { position: relative; padding: 1rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.drive__place { font-weight: 500; }
.drive__dist { font-size: .9375rem; color: var(--muted); }
.drive__mins { font-size: 1.25rem; font-weight: 600; line-height: 1; }
.drive__bar {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: var(--grad); transform-origin: left; transform: scaleX(var(--p));
}
html.js .drive[data-reveal] .drive__bar { transform: scaleX(0); transition: transform 1.4s var(--ease) calc(var(--i, 0) * 120ms + 400ms); }
html.js .drive[data-reveal].is-in .drive__bar { transform: scaleX(var(--p)); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
  font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* Pulse on the scheme pin (pin tip sits at 60.8% / 27.8% of the map artwork) */
.map__pulse {
  position: absolute; left: 60.8%; top: 27.8%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--green);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(86 227 102 / .75); }
  70%, 100% { box-shadow: 0 0 0 28px rgb(86 227 102 / 0); }
}

@media (max-width: 959px) {
  .location { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .drive__head,
  .drive li { grid-template-columns: minmax(0, 1fr) 5rem 3rem; gap: .75rem; }
  .drive__place { font-size: .9375rem; }
}

/* Brochure
   ========================================================================== */

.download {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 2rem;
  padding: clamp(36px, 5vw, 72px);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(60% 90% at 100% 100%, rgb(0 162 227 / .38), transparent 70%),
    radial-gradient(50% 80% at 0% 0%, rgb(86 227 102 / .2), transparent 70%),
    var(--card-dark);
  color: #fff;
  overflow: hidden;
}
.download__meta { margin-top: 1rem; font-size: .9375rem; color: rgb(255 255 255 / .7); }
.download .btn { margin-top: 2rem; }

.download__pages { position: relative; display: block; height: clamp(260px, 26vw, 360px); }
.page {
  position: absolute; top: 50%; left: 50%;
  width: clamp(150px, 15vw, 210px); aspect-ratio: 560 / 792;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 28px 56px -18px rgb(0 0 0 / .6);
  transition: transform .8s var(--ease);
}
.page img { width: 100%; height: 100%; object-fit: cover; }
.page--back { transform: translate(-28%, -50%) rotate(7deg); }
.page--front { transform: translate(-78%, -48%) rotate(-5deg); }
.download:hover .page--back { transform: translate(-14%, -53%) rotate(10deg); }
.download:hover .page--front { transform: translate(-92%, -47%) rotate(-8deg); }

html.js .download[data-reveal]:not(.is-in) .page { opacity: 0; }
html.js .download.is-in .page--back { animation: page-back 1.2s var(--ease) .35s backwards; }
html.js .download.is-in .page--front { animation: page-front 1.2s var(--ease) .2s backwards; }
@keyframes page-back { from { opacity: 0; transform: translate(-50%, -30%) rotate(0deg); } }
@keyframes page-front { from { opacity: 0; transform: translate(-50%, -26%) rotate(0deg); } }

@media (max-width: 767px) {
  .download { grid-template-columns: minmax(0, 1fr); }
  .download__pages { height: 280px; }
}

/* Agents
   ========================================================================== */

.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.agent {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}
.agent:hover { box-shadow: 0 28px 56px -32px rgb(12 31 41 / .35); }

.agent__logo { height: 24px; color: var(--ink); }
.agent__logo svg { width: auto; height: 100%; }
.agent__logo path { fill: currentColor; }

.contacts { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.contacts li { display: grid; justify-items: start; gap: .15rem; font-size: .9375rem; }
.contact__name { font-weight: 600; }
.contacts a {
  color: var(--muted); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
.contacts a:hover { color: var(--ink); background-size: 100% 1.5px; }

@media (max-width: 1023px) {
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .agents { grid-template-columns: minmax(0, 1fr); }
}

/* Footer
   ========================================================================== */

.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; background: var(--footer-bg); color: rgb(255 255 255 / .82); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--green); }

.footer__top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 2rem 4rem;
  padding-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / .12);
}
.footer__logo { width: auto; height: 34px; }
.footer__address { font-style: normal; line-height: 1.6; }
.footer__links { display: grid; gap: .35rem; text-align: right; }

.footer__legal { display: grid; gap: .75rem; padding-top: 24px; font-size: .75rem; line-height: 1.6; color: rgb(255 255 255 / .55); }
.footer__legal a { color: rgb(255 255 255 / .8); }

@media (max-width: 767px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__links { text-align: left; }
}

/* Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
