/* ==========================================================================
   Atlas Building Consultants — site stylesheet
   Brand: deep Atlas greens, light "Cultured" grey, one mint accent, taken from
   the 2026 report cover (survey grid, orbit line, diagonal panel, mint rule).
   Colours, type and spacing are variables at the top; change them here.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable.woff2') format('woff2-variations'),
       url('../fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colour */
  --deep: #0a261a;          /* darkest green: footer, page ends */
  --ink: #0f2f21;           /* main dark green */
  --green-900: #113a27;
  --green: #1c5238;         /* Atlas brand green */
  --green-600: #226544;     /* panel highlight */
  --mint: #8fe0b0;          /* accent: rules, highlights, buttons on dark */
  --gunmetal: #27383f;
  --paper: #ededed;         /* "Cultured" */
  --paper-2: #e2e5e2;
  --white: #f8f8f6;
  --text-dark: #14201a;
  --muted-on-dark: #a9bdb2;
  --muted-on-paper: #4d5a53;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 0.25s;
  --dur: 0.6s;

  /* Layout */
  --gutter: clamp(16px, 3.4vw, 52px);
  --gap: clamp(12px, 1.6vw, 24px);
  --header-h: 100px;
  --max: 1560px;

  color-scheme: light;
}

/* ---------- Section themes ---------- */
:root,
.theme-paper {
  --bg: var(--paper);
  --fg: var(--text-dark);
  --muted: var(--muted-on-paper);
  --line: rgb(20 32 26 / 0.16);
  --accent: var(--green);
  --surface: var(--paper-2);
}
.theme-white {
  --bg: var(--white);
  --fg: var(--text-dark);
  --muted: var(--muted-on-paper);
  --line: rgb(20 32 26 / 0.14);
  --accent: var(--green);
  --surface: var(--paper);
}
.theme-green,
.theme-deep,
.theme-gunmetal {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: var(--muted-on-dark);
  --line: rgb(237 237 237 / 0.16);
  --accent: var(--mint);
  --surface: var(--green-900);
}
.theme-deep {
  --bg: var(--deep);
}
.theme-gunmetal {
  --bg: var(--gunmetal);
  --muted: #b4c0c3;
  --surface: #2f444c;
}
.theme-paper,
.theme-white,
.theme-green,
.theme-deep,
.theme-gunmetal {
  background-color: var(--bg);
  color: var(--fg);
}
.bg-gradient {
  background-image: linear-gradient(170deg, var(--green-900) 0%, var(--ink) 45%, var(--deep) 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
strong {
  font-weight: 600;
}
address {
  font-style: normal;
}
::selection {
  background: var(--mint);
  color: var(--deep);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent, var(--green));
  outline-offset: 3px;
  border-radius: 1px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--mint);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  transform: none;
}
main:focus {
  outline: none;
}

/* ---------- Layout ---------- */
.wrap,
.wrap[role='list'] {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 176px);
}
.section--tight {
  padding-block: clamp(56px, 7vw, 112px);
}
.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.008em;
}
.display-xxl {
  font-size: clamp(3.4rem, 10.4vw, 11rem);
}
.display-xl {
  font-size: clamp(2.9rem, 7.4vw, 7.75rem);
}
.display-l {
  font-size: clamp(2.5rem, 5.6vw, 5.75rem);
}
.display-m {
  font-size: clamp(2.1rem, 4vw, 4rem);
}
.display-s {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 0.98;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -0.01em;
}
.display .serif {
  font-size: 1.08em;
  line-height: 0.8;
  color: var(--accent);
}
.accent {
  color: var(--accent);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* The short mint rule from the Atlas report cover */
.kicker::before {
  content: '';
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.kicker--muted {
  color: var(--muted);
}
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 36ch;
}
.body-l {
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  line-height: 1.62;
}
.prose p + p {
  margin-top: 1em;
}
.prose p {
  max-width: 64ch;
}
.muted {
  color: var(--muted);
}

/* Word-by-word headline reveal (markup written by the build) */
.split .w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
  vertical-align: top;
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
}
.split .w > span {
  display: inline-block;
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--white);
  --btn-hover: var(--deep);
  --btn-hover-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  min-height: 50px;
  padding: 0.9em 1.45em;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover,
.btn:focus-visible {
  color: var(--btn-hover-fg);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}
.theme-green .btn,
.theme-deep .btn,
.theme-gunmetal .btn {
  --btn-bg: var(--mint);
  --btn-fg: var(--deep);
  --btn-hover: var(--paper);
  --btn-hover-fg: var(--deep);
}
.btn .arrow {
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .arrow,
.btn:focus-visible .arrow {
  transform: translateX(4px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.theme-green .btn--ghost,
.theme-deep .btn--ghost,
.theme-gunmetal .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-hover: var(--paper);
  --btn-hover-fg: var(--deep);
  box-shadow: inset 0 0 0 1px rgb(237 237 237 / 0.35);
}
.btn--lg {
  font-size: 0.875rem;
  min-height: 60px;
  padding: 1.15em 1.8em;
}

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: 0.4em;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0.3);
  transition: transform var(--dur) var(--ease-out);
}
.link:hover::after,
.link:focus-visible::after {
  transform-origin: left;
  transform: scaleX(1);
}
.link .arrow {
  transition: transform var(--dur) var(--ease-out);
}
.link:hover .arrow,
.link:focus-visible .arrow {
  transform: translateX(4px);
}
.text-link,
.prose a:not(.btn),
.legal a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent);
  transition: text-decoration-color var(--dur-fast);
}
.text-link:hover,
.prose a:not(.btn):hover,
.legal a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media picture {
  width: 100%;
  height: 100%;
}
.media__inner {
  position: absolute;
  inset: -9% 0;
  will-change: transform;
}
.mono img {
  filter: grayscale(1) contrast(1.06);
}

/* Survey-target corners: shown on hover and keyboard focus of image links */
.frame {
  position: relative;
  display: block;
}
.frame::after {
  --c: var(--paper);
  --l: clamp(14px, 1.4vw, 22px);
  --t: 2px;
  content: '';
  position: absolute;
  inset: clamp(10px, 1.1vw, 16px);
  pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity var(--dur-fast) ease, transform var(--dur) var(--ease-out);
  z-index: 6;
}
.frame img {
  transition: transform 1.2s var(--ease-out), filter 0.8s ease;
}
@media (hover: hover) {
  a:hover .frame::after {
    opacity: 1;
    transform: scale(1);
  }
  a:hover .frame img {
    transform: scale(1.045);
  }
  a:hover .frame.mono img {
    filter: grayscale(0) contrast(1);
  }
}
a:focus-visible .frame::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Brand motifs ---------- */
/* Survey grid, faded towards the edges */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(143 224 176 / 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(143 224 176 / 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 30% 40%, #000 30%, transparent 85%);
}
.theme-paper .grid-bg,
.theme-white .grid-bg {
  background-image:
    linear-gradient(to right, rgb(28 82 56 / 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(28 82 56 / 0.07) 1px, transparent 1px);
}
/* The orbit ring from the logo, drawn across a section */
.orbit {
  position: absolute;
  left: -6%;
  width: 112%;
  height: auto;
  pointer-events: none;
  color: var(--mint);
  opacity: 0.5;
  transform: rotate(-7deg);
  overflow: visible;
}
.orbit ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.theme-paper .orbit,
.theme-white .orbit {
  color: var(--green);
  opacity: 0.3;
}
/* The theodolite mark, ghosted */
.ghost-mark {
  position: absolute;
  pointer-events: none;
  color: var(--fg);
  opacity: 0.06;
}
.ghost-mark svg {
  width: 100%;
  height: auto;
}

/* ---------- Reveal system (the script adds .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.9s var(--ease-soft), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal='fade'] {
    transform: none;
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .js .split[data-split] .w > span {
    transform: translate3d(0, 108%, 0);
    transition: transform 1.05s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0) * 90ms);
  }
  .js .split[data-split].is-in .w > span {
    transform: none;
  }
  /* Image reveal: a curtain in the section colour lifts away */
  .js [data-reveal='image'] {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal='image']::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 5;
    background: var(--bg);
    transform-origin: 50% 0;
    transition: transform 1.25s var(--ease-in-out);
    transition-delay: calc(var(--d, 0) * 90ms);
    pointer-events: none;
  }
  .js [data-reveal='image'] img {
    transform: scale(1.16);
    transition: transform 1.6s var(--ease-out), filter 0.8s ease;
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal='image'].is-in::before {
    transform: scaleY(0);
  }
  .js [data-reveal='image'].is-in img {
    transform: scale(1);
  }
  @media (hover: hover) {
    .js a:hover [data-reveal='image'].is-in img {
      transform: scale(1.045);
      transition-delay: 0s;
    }
  }
  /* Orbit line draws itself in */
  .js .orbit[data-reveal] {
    opacity: 0.5;
    transform: rotate(-7deg);
  }
  .js .theme-paper .orbit[data-reveal],
  .js .theme-white .orbit[data-reveal] {
    opacity: 0.3;
  }
  .js .orbit[data-reveal] ellipse {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.6s var(--ease-in-out);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .orbit[data-reveal].is-in ellipse {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  --hfg: var(--paper);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  color: var(--hfg);
  view-transition-name: site-header;
  transition: transform 0.6s var(--ease-out), color 0.4s ease, background-color 0.4s ease, height 0.4s var(--ease-out);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(10 38 26 / 0.55), transparent);
  transition: opacity 0.4s ease, background 0.4s ease;
  pointer-events: none;
}
.site-header[data-tone='light'] {
  --hfg: var(--text-dark);
}
.site-header[data-tone='light']::before {
  opacity: 0;
}
.site-header.is-hidden {
  transform: translateY(-110%);
}
.site-header.is-scrolled {
  height: 80px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled[data-tone='light'] {
  background-color: rgb(237 237 237 / 0.9);
  box-shadow: 0 1px 0 rgb(20 32 26 / 0.08);
}
.site-header.is-scrolled[data-tone='dark']::before {
  background: rgb(10 38 26 / 0.82);
}

.brand {
  justify-self: start;
  display: block;
  color: inherit;
}
.brand svg {
  width: auto;
  height: clamp(58px, 5.6vw, 80px);
  transition: height 0.4s var(--ease-out);
}
.is-scrolled .brand svg {
  height: 58px;
}

.header-nav ul {
  display: flex;
  gap: clamp(22px, 2.8vw, 44px);
}
.header-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 10px;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.header-nav a:hover::after,
.header-nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header[data-tone='dark'] .header-nav a[aria-current='page']::after {
  background: var(--mint);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta {
  min-height: 44px;
  padding: 0.7em 1.15em;
  font-size: 0.75rem;
}
.site-header[data-tone='dark'] .header-cta {
  --btn-bg: var(--mint);
  --btn-fg: var(--deep);
  --btn-hover: var(--paper);
  --btn-hover-fg: var(--deep);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hfg) 35%, transparent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: box-shadow 0.3s ease;
}
.menu-btn:hover {
  box-shadow: inset 0 0 0 1px var(--hfg);
}
.menu-btn__icon {
  position: relative;
  width: 32px;
  height: 32px;
}
.menu-btn__icon i {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}
.menu-btn__icon i:nth-child(1) {
  top: 11px;
}
.menu-btn__icon i:nth-child(2) {
  top: 16px;
  right: 12px;
}
.menu-btn__icon i:nth-child(3) {
  top: 21px;
}
.menu-btn:hover .menu-btn__icon i:nth-child(2) {
  transform: scaleX(1.4);
  transform-origin: left;
}

@media (max-width: 1023px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .header-nav {
    display: none;
  }
}
@media (max-width: 560px) {
  :root {
    --header-h: 84px;
  }
  .header-cta {
    display: none;
  }
  .menu-btn {
    padding: 0 4px 0 12px;
  }
}

/* ==========================================================================
   Menu (full-screen dialog)
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--deep);
  color: var(--paper);
  overflow: hidden auto;
  overscroll-behavior: contain;
  isolation: isolate;
}
.menu:not([open]) {
  display: none;
}
.menu[open] {
  display: grid;
  grid-template-rows: var(--header-h) 1fr auto;
}
.menu::backdrop {
  background: transparent;
}
.menu .grid-bg {
  -webkit-mask-image: radial-gradient(90% 90% at 70% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(90% 90% at 70% 50%, #000 20%, transparent 80%);
}
.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
}
.menu__brand svg {
  height: clamp(58px, 5.6vw, 80px);
  width: auto;
}
.menu__close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgb(237 237 237 / 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu__close-icon {
  position: relative;
  width: 32px;
  height: 32px;
  background: var(--mint);
}
.menu__close-icon i {
  position: absolute;
  top: 15.25px;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--deep);
  transform: rotate(45deg);
}
.menu__close-icon i:last-child {
  transform: rotate(-45deg);
}
.menu__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 96px);
  padding: clamp(16px, 3vw, 40px) var(--gutter);
  align-items: center;
}
.menu__links li + li {
  margin-top: 0.08em;
}
.menu__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45em;
  font-size: clamp(2.8rem, 8.4vh, 7rem);
  line-height: 0.95;
  transition: color 0.4s ease, transform 0.6s var(--ease-out);
}
.menu__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 1em;
  color: var(--muted-on-dark);
}
.menu__link:hover,
.menu__link:focus-visible {
  color: var(--mint);
  transform: translateX(10px);
}
.menu__link[aria-current='page'] .menu__label {
  color: var(--mint);
}
.menu__services-title {
  margin-bottom: 18px;
  color: var(--muted-on-dark);
}
.menu__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 48px);
  border-top: 1px solid rgb(237 237 237 / 0.16);
}
.menu__services a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgb(237 237 237 / 0.16);
  font-size: 1rem;
  line-height: 1.3;
  transition: color 0.3s, padding 0.5s var(--ease-out);
}
.menu__services a span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-on-dark);
}
.menu__services a:hover,
.menu__services a:focus-visible,
.menu__services a[aria-current='page'] {
  color: var(--mint);
  padding-left: 6px;
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  align-items: center;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgb(237 237 237 / 0.16);
}
.menu__area {
  margin-left: auto;
  color: var(--muted-on-dark);
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.85s var(--ease-in-out);
  }
  .menu.is-open {
    clip-path: inset(0 0 0 0);
  }
  .menu.is-closing {
    clip-path: inset(0 0 100% 0);
    transition-duration: 0.6s;
  }
  .menu__links li,
  .menu__services li,
  .menu__foot > * {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
    transition-delay: calc(0.25s + var(--i, 0) * 0.04s);
  }
  .menu.is-open .menu__links li,
  .menu.is-open .menu__services li,
  .menu.is-open .menu__foot > * {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 899px) {
  .menu__body {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .menu__link {
    font-size: clamp(2.6rem, 13vw, 4.5rem);
  }
  .menu__area {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .menu__services {
    grid-template-columns: 1fr;
  }
  .menu__close-label {
    display: none;
  }
  .menu__close {
    padding: 0 6px;
    box-shadow: none;
  }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  /* lifts the four facts clear of the bottom edge */
  padding-bottom: clamp(48px, 9vh, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  z-index: -1;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--green);
}
.hero__panel .media {
  position: absolute;
  inset: 0;
  background: var(--green);
}
.hero__panel img,
.hero__panel video {
  filter: grayscale(1) contrast(1.12);
  mix-blend-mode: luminosity;
  opacity: 0.85;
}
.hero__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(28 82 56 / 0.25), rgb(10 38 26 / 0.6));
}
.hero__panel .ghost-mark {
  right: -8%;
  top: 8%;
  width: 66%;
  opacity: 0.14;
  z-index: 2;
  color: var(--paper);
}
.hero .orbit {
  top: 50%;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: calc(var(--header-h) + clamp(12px, 3vh, 56px));
  padding-bottom: clamp(20px, 3vh, 48px);
}
.hero__kicker {
  margin-bottom: clamp(14px, 2.4vh, 32px);
}
/* The name, as on the Viewed Through A Lens homepage: ATLAS in the logo's
   letters (filled, then outlined over the film), finished in the serif */
.hero__name {
  position: relative;
  margin: 0;
  font: inherit;
}
.hero__word {
  display: block;
  /* wide enough to cross onto the film, short enough to fit the first screen */
  width: min(74%, 118vh);
}
.wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.wordmark path {
  fill: currentColor;
}
.wordmark .outline {
  fill: none;
  stroke: currentColor;
  stroke-width: clamp(1.25px, 0.14vw, 2.5px);
  vector-effect: non-scaling-stroke;
}
.hero__sub {
  position: absolute;
  right: 0;
  bottom: -0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, min(4.2vw, 7.4vh), 5.25rem);
  line-height: 0.92;
  text-shadow: 0 2px 24px rgb(10 38 26 / 0.5);
}
.hero__sub::before {
  content: '';
  display: block;
  width: 1.1em;
  height: 0.05em;
  margin-bottom: 0.32em;
  background: var(--mint);
}
.hero__lede {
  margin-top: clamp(20px, 3.4vh, 48px);
  max-width: 44ch;
}
.hero__actions {
  margin-top: clamp(18px, 2.6vh, 40px);
}
.hero .hero__toggle {
  top: auto;
  bottom: clamp(120px, 16vh, 168px);
  z-index: 3;
}
.hero__facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--gap);
}

.hero__facts li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 82%;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.hero__facts span {
  display: block;
  margin-top: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__panel {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path 1.5s var(--ease-in-out) 0.1s;
  }
  .js .hero.is-loaded .hero__panel {
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  }
  .js .hero__panel img,
  .js .hero__panel video {
    transform: scale(1.18);
    transition: transform 2.4s var(--ease-out) 0.1s;
  }
  .js .hero.is-loaded .hero__panel img,
  .js .hero.is-loaded .hero__panel video {
    transform: scale(1);
  }
  /* each letter rises into place, then the serif follows */
  .js .wordmark path {
    transform-box: fill-box;
    animation: letter-rise 1.25s var(--ease-out) both;
    animation-delay: calc(0.3s + var(--i) * 0.07s);
  }
  .js .hero__sub {
    animation: fade-up 1s var(--ease-out) 0.8s both;
  }
}
@keyframes letter-rise {
  from {
    transform: translateY(112%);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}
@media (max-width: 899px) {
  .hero__panel {
    width: 100%;
    clip-path: none !important;
  }
  .hero__panel img,
  .hero__panel video {
    opacity: 0.35;
  }
  .hero__panel::after {
    background: linear-gradient(180deg, rgb(10 38 26 / 0.55), rgb(10 38 26 / 0.92) 80%);
  }
  .hero__panel .ghost-mark {
    width: 90%;
    right: -32%;
  }
  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px var(--gap);
  }
  .hero {
    padding-bottom: 30px;
  }
  .hero__word {
    width: 100%;
  }
  .hero__sub {
    position: static;
    display: block;
    margin-top: 0.35em;
    font-size: clamp(2rem, 8.4vw, 3.4rem);
  }
  .hero__sub br {
    display: none;
  }
  .hero__sub::before {
    display: inline-block;
    width: 0.8em;
    margin: 0 0.25em 0 0;
    vertical-align: 0.3em;
  }
}

/* ==========================================================================
   Home: introduction
   ========================================================================== */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) var(--gap);
  align-items: start;
}
.intro__head {
  grid-column: 1 / -1;
}
.intro__head .kicker {
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.intro__title {
  max-width: 14em;
}
.intro__media {
  grid-column: 1 / span 6;
  aspect-ratio: 4 / 3;
}
.intro__text {
  grid-column: 8 / -1;
  align-self: center;
}
.intro__text .lede {
  margin-bottom: 1.2em;
}
.intro__text .link {
  margin-top: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(56px, 7vw, 112px);
}
.stats li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.stats span {
  display: block;
  margin-top: 10px;
  max-width: 22ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
@media (max-width: 899px) {
  .intro__media,
  .intro__text {
    grid-column: 1 / -1;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

/* ==========================================================================
   Service rows (home)
   ========================================================================== */
.svc {
  overflow: hidden;
  isolation: isolate;
}
.svc__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gap);
  margin-bottom: clamp(44px, 6vw, 96px);
  align-items: end;
}
.svc__head > div:first-child {
  grid-column: 1 / span 7;
}
.svc__head .kicker {
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.svc__intro {
  grid-column: 9 / -1;
  color: var(--muted);
}
.svc__intro p + p {
  margin-top: 1em;
}
.svc__list {
  position: relative;
}
.svc__list ol {
  border-top: 1px solid var(--line);
}
.svc__row {
  border-bottom: 1px solid var(--line);
}
.svc__link {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 24rem) 3rem;
  align-items: center;
  gap: 12px var(--gap);
  padding-block: clamp(20px, 2.2vw, 32px);
  z-index: 2;
}
.svc__thumb {
  display: none;
}
.svc__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.svc__title {
  font-size: clamp(1.7rem, 3.3vw, 3.4rem);
  line-height: 0.95;
  transition: transform 0.7s var(--ease-out), color 0.4s ease;
}
.svc__summary {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color 0.4s;
}
.svc__arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  font-size: 1.1rem;
  transition: transform 0.6s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.svc__link:hover .svc__title,
.svc__link:focus-visible .svc__title {
  transform: translateX(14px);
  color: var(--accent);
}
.svc__link:hover .svc__summary,
.svc__link:focus-visible .svc__summary {
  color: var(--fg);
}
.svc__link:hover .svc__arrow,
.svc__link:focus-visible .svc__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: rotate(-45deg);
}
.svc__more {
  margin-top: clamp(32px, 4vw, 56px);
}
/* Photo that follows the pointer (desktop with a mouse only) */
.svc__follow {
  --fw: clamp(220px, 20vw, 320px);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--fw);
  aspect-ratio: 4 / 5;
  margin: calc(var(--fw) * -0.625) 0 0 calc(var(--fw) * -0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.is-following > .svc__follow {
  opacity: 1;
}
.svc__follow-img {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s var(--ease-in-out);
}
.svc__follow-img.is-active {
  clip-path: inset(0 0 0 0);
  z-index: 1;
}
.svc__follow-img picture,
.svc__follow-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .svc__follow {
    display: none;
  }
}
@media (max-width: 899px) {
  .svc__head > div,
  .svc__intro {
    grid-column: 1 / -1;
  }
  .svc__link {
    grid-template-columns: 72px minmax(0, 1fr) 2.5rem;
    grid-template-areas:
      'thumb title arrow'
      'thumb summary arrow';
    gap: 6px 16px;
    align-items: start;
  }
  .svc__num {
    display: none;
  }
  .svc__thumb {
    display: block;
    grid-area: thumb;
    width: 72px;
    aspect-ratio: 4 / 5;
  }
  .svc__title {
    grid-area: title;
    font-size: clamp(1.45rem, 6.4vw, 2.2rem);
  }
  .svc__summary {
    grid-area: summary;
    font-size: 0.875rem;
  }
  .svc__arrow {
    grid-area: arrow;
    width: 36px;
    height: 36px;
    align-self: center;
  }
  .svc__link:hover .svc__title,
  .svc__link:focus-visible .svc__title {
    transform: none;
  }
}

/* ==========================================================================
   Home: approach
   ========================================================================== */
.approach__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gap);
  margin-bottom: clamp(44px, 6vw, 88px);
  align-items: end;
}
.approach__head > div:first-child {
  grid-column: 1 / span 7;
}
.approach__head > div + div {
  grid-column: 9 / -1;
  align-items: flex-start;
  flex-direction: column;
}
.approach__head .kicker {
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.approach__head > p {
  grid-column: 9 / -1;
  color: var(--muted);
}
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.principles li,
.values li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.principles li::before,
.values li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
}
.principles .label,
.values .label {
  display: block;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}
.principles h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  margin-bottom: 14px;
}
.principles p {
  color: var(--muted);
  font-size: 0.96875rem;
  line-height: 1.55;
  max-width: 34ch;
}
@media (max-width: 1023px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}
@media (max-width: 899px) {
  .approach__head > div,
  .approach__head > div + div,
  .approach__head > p {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Team
   ========================================================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) var(--gap);
  align-items: end;
}
.team__head {
  grid-column: 1 / span 5;
  align-self: start;
}
.team__head .kicker {
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.team__head .body-l {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 40ch;
}
.team__head .link {
  margin-top: 28px;
}
.people {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.person .media {
  aspect-ratio: 4 / 5;
}
@media (hover: hover) {
  .person:hover .mono img {
    filter: grayscale(0) contrast(1);
  }
}
.person h3 {
  margin-top: 18px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}
.person p {
  margin-top: 6px;
}
@media (max-width: 899px) {
  .team__head,
  .people {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--gap);
  border-top: 1px solid var(--line);
}
.clients__list li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.clients__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 899px) {
  .clients__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .clients__list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.quote {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gap);
}
.quote__mark {
  grid-column: 1 / span 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(7rem, 14vw, 13rem);
  line-height: 0.7;
  color: var(--accent);
}
.quote__body {
  grid-column: 3 / span 9;
}
.quote blockquote {
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.quote cite {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin-top: clamp(28px, 3vw, 44px);
  font-style: normal;
}
.quote cite strong {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 650;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
@media (max-width: 899px) {
  .quote__mark,
  .quote__body {
    grid-column: 1 / -1;
  }
  .quote__mark {
    font-size: 7rem;
    margin-bottom: -0.3em;
  }
}

/* ==========================================================================
   Enquire (closing invitation)
   ========================================================================== */
.enq {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(96px, 12vw, 200px);
}
.enq__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
}
.enq__bg img {
  opacity: 0.24;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
}
.enq__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--ink) 20%, rgb(15 47 33 / 0.55) 70%, rgb(15 47 33 / 0.25));
}
.enq .ghost-mark {
  right: clamp(-120px, -4vw, -40px);
  top: 50%;
  width: clamp(280px, 34vw, 560px);
  transform: translateY(-50%);
  opacity: 0.1;
  z-index: -1;
}
.enq .orbit {
  top: 56%;
  z-index: -1;
}
.enq__content {
  display: grid;
  gap: clamp(22px, 2.6vw, 36px);
  justify-items: start;
}
.enq__title {
  max-width: 11em;
}
.enq__text {
  max-width: 46ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer .grid-bg {
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 40px var(--gap);
  padding-block: clamp(48px, 6vw, 88px);
}
.footer__brand svg {
  height: 86px;
  width: auto;
}
.footer__brand address {
  margin-top: 26px;
  color: var(--muted);
  line-height: 1.6;
}
.footer__brand address strong {
  color: var(--paper);
  font-weight: 500;
}
/* "Regulated by RICS" mark: the white version from RICS's current logo pack */
.footer__rics {
  margin-top: 30px;
}
.footer__rics img {
  width: 190px;
  height: auto;
}
.footer__col .label {
  margin-bottom: 16px;
}
.footer__col li + li {
  margin-top: 8px;
}
.footer__col a {
  transition: color 0.3s;
}
.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--mint);
}
.footer__services {
  columns: 2;
  column-gap: var(--gap);
}
.footer__services li {
  break-inside: avoid;
  margin: 0 0 8px !important;
  line-height: 1.35;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 28px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom > span {
  max-width: 78ch;
  line-height: 1.6;
}
.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer__bottom a:hover {
  color: var(--paper);
}
@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__services {
    columns: 1;
  }
}

/* ==========================================================================
   Inner page heading
   ========================================================================== */
.phead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 128px));
  padding-bottom: clamp(56px, 7vw, 112px);
}
.phead .orbit {
  top: 62%;
  z-index: -1;
}
.phead .ghost-mark {
  right: -4%;
  top: 14%;
  width: clamp(260px, 30vw, 480px);
  z-index: -1;
}
.phead__crumb {
  margin-bottom: clamp(18px, 2vw, 28px);
}
.phead__crumb a {
  transition: color 0.3s;
}
.phead__crumb a:hover {
  color: var(--accent);
}
.phead__title {
  margin-left: -0.03em;
  max-width: 12em;
}
.phead__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gap);
  margin-top: clamp(28px, 4vw, 64px);
  align-items: end;
}
.phead__intro {
  grid-column: 1 / span 7;
}
.phead__aside {
  grid-column: 9 / -1;
  color: var(--muted);
}
@media (max-width: 899px) {
  .phead__intro,
  .phead__aside {
    grid-column: 1 / -1;
  }
}

/* Service page heading with photo panel */
.shead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px));
  padding-bottom: clamp(56px, 7vw, 112px);
}
.shead .orbit {
  top: 66%;
  z-index: -1;
}
.shead__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gap);
  align-items: end;
}
.shead__text {
  grid-column: 1 / span 7;
}
.shead__title {
  font-size: clamp(2.5rem, 5.2vw, 5.5rem);
  max-width: 11em;
  margin-left: -0.03em;
}
.shead__lede {
  margin-top: clamp(24px, 3vw, 40px);
}
.shead__actions {
  margin-top: clamp(28px, 3vw, 40px);
}
.shead__media {
  grid-column: 9 / -1;
  aspect-ratio: 4 / 5;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 899px) {
  .shead__text,
  .shead__media {
    grid-column: 1 / -1;
  }
  .shead__media {
    aspect-ratio: 16 / 10;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ==========================================================================
   Service cards (services page)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.5vw, 72px) var(--gap);
}
.card a {
  display: grid;
  gap: 18px;
}
.card .media {
  aspect-ratio: 4 / 3;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.card h3 {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  transition: color 0.3s;
}
.card p {
  color: var(--muted);
  font-size: 0.96875rem;
  line-height: 1.55;
}
.card .link {
  justify-self: start;
}
.card a:hover h3,
.card a:focus-visible h3 {
  color: var(--accent);
}
@media (max-width: 1023px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Service page body (copy written in tools/content.py)
   ========================================================================== */
.service-body > .section {
  padding-block: clamp(64px, 8vw, 128px);
}
.service-body > .section.theme-paper + .section.theme-paper {
  padding-top: 0;
}
.service-intro,
.two-col {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) var(--gap);
  align-items: start;
}
.service-intro > :first-child {
  grid-column: 1 / span 7;
}
.service-intro > :last-child {
  grid-column: 9 / -1;
}
.service-intro > .media:first-child {
  grid-column: 1 / span 4;
}
.service-intro > .media:first-child + div {
  grid-column: 6 / -1;
}
.service-intro > .media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 5;
}
.two-col > :first-child {
  grid-column: 1 / span 6;
}
.two-col > :last-child {
  grid-column: 7 / -1;
}
.two-col > .media {
  aspect-ratio: 4 / 5;
}
.service-body .kicker {
  margin-bottom: 22px;
}
.service-body .lede {
  max-width: 40ch;
  margin-bottom: 1em;
}
.service-body p + p {
  margin-top: 1em;
}
.service-body p {
  max-width: 64ch;
}
.service-body p > .btn {
  margin-top: 0.8em;
}
.checklist {
  list-style: none;
  padding: 0;
  margin-block: 1.4em;
  border-top: 1px solid var(--line);
}
.checklist li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.2em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.wrap-narrow {
  max-width: 920px;
}
.wrap-narrow > * + * {
  margin-top: 1em;
}
.def {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border-top: 1px solid var(--line);
}
.def dt,
.def dd {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.def dt {
  font-weight: 600;
  padding-right: 24px;
}
.def dd {
  color: var(--muted);
}
@media (max-width: 899px) {
  .service-intro > *,
  .service-intro > :first-child,
  .service-intro > :last-child,
  .service-intro > .media:first-child,
  .service-intro > .media:first-child + div,
  .two-col > :first-child,
  .two-col > :last-child {
    grid-column: 1 / -1;
  }
  .service-intro > .media {
    position: relative;
    top: 0;
    aspect-ratio: 16 / 10;
  }
  .service-intro > .media:first-child {
    order: 2;
  }
  .def {
    grid-template-columns: 1fr;
  }
  .def dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }
  .def dd {
    padding-top: 0;
  }
}

/* Project monitoring: an illustrative report in place of a photo */
.pm-graphic {
  margin: 0;
  color: var(--paper);
  background: linear-gradient(165deg, var(--green-900) 0%, var(--ink) 55%, var(--deep) 100%);
}
.pm-graphic svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pm-graphic text {
  fill: currentColor;
  font-family: var(--font-body);
}
.pm-grid {
  fill: none;
  stroke: rgb(237 237 237 / 0.06);
}
.pm-graphic .pm-label,
.pm-graphic .pm-small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.pm-graphic .pm-small {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  fill: var(--muted-on-dark);
}
.pm-graphic .pm-accent {
  fill: var(--mint);
}
.pm-graphic .pm-title,
.pm-graphic .pm-row {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: 21px;
}
.pm-graphic .pm-row {
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.pm-graphic .pm-note {
  font-size: 12px;
  fill: var(--muted-on-dark);
}
.pm-axis,
.pm-gridline,
.pm-rule,
.pm-plan,
.pm-today,
.pm-actual,
.pm-key,
.pm-bracket {
  fill: none;
}
.pm-axis {
  stroke: rgb(237 237 237 / 0.32);
}
.pm-gridline {
  stroke: rgb(237 237 237 / 0.14);
  stroke-dasharray: 1 3;
}
.pm-rule {
  stroke: rgb(237 237 237 / 0.14);
}
.pm-plan {
  stroke: rgb(237 237 237 / 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.pm-today {
  stroke: rgb(143 224 176 / 0.55);
  stroke-dasharray: 2 3;
}
.pm-actual,
.pm-key {
  stroke: var(--mint);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pm-bracket {
  stroke: var(--mint);
}
.pm-visit,
.pm-key-visit {
  fill: var(--ink);
  stroke: var(--mint);
  stroke-width: 1.5;
}
.pm-dot {
  fill: var(--mint);
}
.pm-dot--watch {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  /* the actual line draws in, a site visit lands on it each month, then the status rows */
  .js .pm-graphic .pm-actual {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2s var(--ease-in-out) 0.4s;
  }
  .js .pm-graphic .pm-visit,
  .js .pm-graphic .pm-gap,
  .js .pm-graphic .pm-status {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
  }
  .js .pm-graphic .pm-visit {
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    transition-delay: calc(0.6s + var(--i) * 0.24s);
  }
  .js .pm-graphic .pm-gap {
    transition-delay: 2.3s;
  }
  .js .pm-graphic .pm-status {
    transform: translateY(6px);
    transition-delay: calc(1.2s + var(--i) * 0.14s);
  }
  .js .pm-graphic.is-in .pm-actual {
    stroke-dashoffset: 0;
  }
  .js .pm-graphic.is-in .pm-visit,
  .js .pm-graphic.is-in .pm-gap,
  .js .pm-graphic.is-in .pm-status {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 899px) {
  .service-intro > .pm-graphic {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 480px;
  }
}

/* Typical instructions, shown as tags under a service heading */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 2.6vw, 32px);
  max-width: 44rem;
}
.tags li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tags li:first-child {
  border-color: var(--accent);
  color: var(--accent);
}

/* Key points in words rather than numbers */
.stats--words {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px);
}
.stats--words strong {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .stats--words {
    grid-template-columns: 1fr;
  }
}

/* Two-sided services (for example landlords and tenants) */
.routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 96px) var(--gap);
}
.route h3 {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.route li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.route li .label {
  padding-top: 0.3em;
  color: var(--accent);
}
.route h4 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.route p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}
.callout {
  margin-top: clamp(40px, 5vw, 72px);
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  max-width: 78ch;
}
.callout strong {
  color: var(--accent);
}
@media (max-width: 899px) {
  .routes {
    grid-template-columns: 1fr;
  }
}

/* Frequently asked questions */
.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) var(--gap);
  align-items: start;
}
.faq__head {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.faq__head .body-l {
  margin-top: clamp(20px, 2.4vw, 32px);
  color: var(--muted);
}
.faq__head .link {
  margin-top: 22px;
}
.faq__list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.3s;
}
.faq__item summary:hover h3 {
  color: var(--accent);
}
.faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::after {
  transform: rotate(90deg);
}
.faq__item[open] .faq__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}
.faq__item p {
  padding: 0 60px 26px 0;
  color: var(--muted);
  max-width: 64ch;
}
@media (max-width: 899px) {
  .faq__head,
  .faq__list {
    grid-column: 1 / -1;
  }
  .faq__head {
    position: static;
  }
  .faq__item p {
    padding-right: 0;
  }
}

/* ---------- Party wall page ---------- */
/* Kinds of party wall, drawn in section */
.pw-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.pw-type {
  padding: 22px 22px 26px;
  background: var(--surface);
}
.pw-type svg {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  overflow: visible;
}
.pw-type h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  margin-bottom: 10px;
}
.pw-type p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.pw-ground {
  stroke: var(--fg);
  stroke-width: 1.5;
  opacity: 0.5;
}
.pw-building {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  opacity: 0.55;
}
.pw-wall {
  fill: var(--accent);
}
.pw-boundary {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.8;
}
.pw-plant {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.45;
}
.pw-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-anchor: middle;
  fill: var(--muted);
  text-transform: uppercase;
}
.pw-not {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 70ch;
  color: var(--muted);
}
.pw-not strong {
  color: var(--fg);
}
@media (max-width: 1023px) {
  .pw-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .pw-types {
    grid-template-columns: 1fr;
  }
}

/* Which notice: tabs */
.notices__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.notices__tab {
  display: grid;
  gap: 8px;
  padding: 20px 4px 22px;
  border-top: 2px solid var(--line);
  text-align: left;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.notices__tab-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
  text-transform: uppercase;
}
.notices__tab:hover {
  color: var(--fg);
}
.notices__tab[aria-selected='true'] {
  border-top-color: var(--accent);
  color: var(--fg);
}
.notices__tab[aria-selected='true'] .label {
  color: var(--accent);
}
.notices__panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px var(--gap);
  padding-top: clamp(36px, 4vw, 56px);
}
.notices__panel:focus-visible {
  outline-offset: 8px;
}
.notices__key {
  grid-column: 1 / span 4;
}
.notices__body {
  grid-column: 6 / -1;
}
.notices__period {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  text-transform: uppercase;
  line-height: 1;
}
.notices__period strong {
  display: block;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 0.85;
  color: var(--accent);
}
.notices__silence {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}
.notices__silence strong {
  display: block;
  margin-bottom: 4px;
}
.notices__body h3 {
  margin-bottom: 16px;
}
.notices__body > p {
  max-width: 62ch;
}
.notices__body .checklist {
  margin-block: 1.4em;
}
html:not(.js) .notices__tabs {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .notices__panel:not([hidden]) {
    animation: panel-in 0.6s var(--ease-out);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (max-width: 899px) {
  .notices__tabs {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .notices__tab {
    padding-block: 16px;
  }
  .notices__key,
  .notices__body {
    grid-column: 1 / -1;
  }
}

/* 3 m and 6 m checker */
.excav {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) var(--gap);
  align-items: center;
}
.excav__diagram {
  grid-column: 1 / span 7;
  padding: clamp(14px, 2vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
}
.excav__diagram svg {
  width: 100%;
  height: auto;
}
.excav__panel {
  grid-column: 9 / -1;
}
.excav__zone--3 {
  fill: var(--green);
  opacity: 0.1;
  transition: opacity 0.4s;
}
.excav__zone--6 {
  fill: var(--green);
  opacity: 0.05;
  transition: opacity 0.4s;
}
.excav__zone.is-active {
  opacity: 0.2;
}
.excav__mark {
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: 0.5;
}
.excav__level {
  stroke: var(--text-dark);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.45;
}
.excav__diag {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  transition: stroke-width 0.3s;
}
.excav__diag.is-active {
  stroke-width: 4;
}
.excav__ground {
  stroke: var(--text-dark);
  stroke-width: 2;
}
.excav__house {
  fill: var(--paper-2);
  stroke: var(--text-dark);
  stroke-width: 1.5;
}
.excav__found {
  fill: var(--muted-on-paper);
  opacity: 0.55;
}
.excav__hole {
  fill: var(--ink);
  transition: x 0.25s var(--ease-out), height 0.25s var(--ease-out);
}
.excav__label {
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 4px;
  stroke-linejoin: round;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--green);
}
.excav__label--muted {
  fill: var(--muted-on-paper);
  font-size: 13px;
}
.excav__label--hole {
  fill: var(--text-dark);
  font-size: 13px;
  transition: x 0.25s var(--ease-out);
}
.excav__controls {
  display: grid;
  gap: 26px;
}
.excav__field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.excav__field output {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.excav input[type='range'] {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.excav input[type='range']::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--green) var(--fill, 25%), var(--line) var(--fill, 25%));
}
.excav input[type='range']::-moz-range-track {
  height: 3px;
  background: var(--line);
}
.excav input[type='range']::-moz-range-progress {
  height: 3px;
  background: var(--green);
}
.excav input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9.5px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--green);
}
.excav input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--green);
}
.excav__result {
  padding: 22px 24px;
  border-left: 3px solid var(--line);
  background: var(--paper-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.excav__result.is-notice {
  border-left-color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, var(--paper));
}
.excav__verdict {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 82%;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.excav__result p:last-child {
  color: var(--muted);
}
.excav__static p + p {
  margin-top: 1em;
}
.js .excav__static {
  display: none;
}
html:not(.js) .excav__controls {
  display: none;
}
.excav__note {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 52ch;
}
@media (max-width: 899px) {
  .excav__diagram,
  .excav__panel {
    grid-column: 1 / -1;
  }
}

/* Notice-to-award timeline; the line fills as you scroll */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 52px;
}
.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: var(--line);
}
.timeline::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 8px var(--gap);
  padding: 0 0 clamp(32px, 4vw, 52px);
}
.timeline__step:last-child {
  padding-bottom: 0;
}
.timeline__dot {
  position: absolute;
  top: 4px;
  left: -52px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transition: background-color 0.4s, border-color 0.4s;
}
.timeline__step.is-done .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline__when {
  padding-top: 6px;
  color: var(--accent);
}
.timeline__step h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin-bottom: 10px;
}
.timeline__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  vertical-align: middle;
  margin-right: 6px;
}
.timeline__step p:last-child {
  color: var(--muted);
  max-width: 60ch;
}
@media (max-width: 760px) {
  .timeline__step {
    grid-template-columns: 1fr;
  }
}
.faq__note {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- Drone page ---------- */
/* Full-bleed aerial video loop */
.film {
  position: relative;
  min-height: clamp(420px, 70vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.film__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 38 26 / 0.15) 30%, rgb(10 38 26 / 0.85));
}
.film__content {
  padding-block: clamp(48px, 7vw, 112px);
}
.film__title {
  max-width: 10em;
  margin-top: 18px;
}
.film__toggle {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  right: var(--gutter);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 2px;
  background: rgb(10 38 26 / 0.6);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(237 237 237 / 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Traditional access compared with a drone */
.compare {
  overflow-x: auto;
}
.compare table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.compare th,
.compare td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--fg);
}
.compare thead th:last-child {
  color: var(--accent);
}
.compare tbody th {
  width: 22%;
  font-weight: 600;
}
.compare tbody td {
  color: var(--muted);
  width: 39%;
}
.compare tbody td:last-child {
  color: var(--fg);
  font-weight: 500;
}
.compare tbody td:last-child::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 2px 0;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Sideways-scrolling photo strip */
.gallery__track,
.gallery__track[role='list'] {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.gallery__track:focus-visible {
  outline-offset: -4px;
}
.gallery__item {
  flex: 0 0 clamp(260px, 38vw, 620px);
  scroll-snap-align: start;
}
.gallery__item .media {
  aspect-ratio: 4 / 3;
}
.gallery__item figcaption {
  margin-top: 12px;
}

/* Next / previous service */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pager a {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px) 0;
}
.pager a + a {
  border-left: 1px solid var(--line);
  padding-left: var(--gap);
  text-align: right;
  justify-items: end;
}
.pager .display {
  font-size: clamp(1.5rem, 3vw, 3rem);
  max-width: 14em;
  transition: color 0.4s;
}
.pager a:hover .display,
.pager a:focus-visible .display {
  color: var(--accent);
}
@media (max-width: 620px) {
  .pager {
    grid-template-columns: 1fr;
  }
  .pager a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}

/* ==========================================================================
   About
   ========================================================================== */
.statement__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) var(--gap);
}
.statement__lede {
  grid-column: 1 / span 6;
}
.statement__lede .lede {
  max-width: 26ch;
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
}
.statement__text {
  grid-column: 8 / -1;
}
.statement__sign {
  margin-top: 1.6em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--accent);
}
.band {
  position: relative;
  height: clamp(320px, 52vw, 720px);
}
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.5vw, 64px) var(--gap);
}
.values h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 14px;
}
.values p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 44ch;
}
@media (max-width: 1023px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 899px) {
  .statement__lede,
  .statement__text {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 80px) var(--gap);
  align-items: start;
}
.contact__details {
  grid-column: 1 / span 5;
}
.contact__form {
  grid-column: 7 / -1;
}
.contact__list > li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.contact__list > li:last-child {
  border-bottom: 1px solid var(--line);
}
.contact__list .label {
  display: block;
  margin-bottom: 8px;
}
.contact__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 85%;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  transition: color 0.3s;
  overflow-wrap: anywhere;
}
a.contact__big:hover {
  color: var(--accent);
}
.contact__list address {
  line-height: 1.55;
}
.contact__list .link {
  margin-top: 10px;
}

.form {
  display: grid;
  gap: 26px;
}
.form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px var(--gap);
}
.field {
  display: grid;
  gap: 8px;
}
.field label,
.form legend {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .req {
  color: var(--accent);
}
.form input:not([type='radio']),
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.form textarea {
  min-height: 150px;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.form legend {
  padding: 0;
  margin-bottom: 10px;
}
.radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.radio input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  margin: 0;
}
.radio label:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.form .hp {
  position: absolute;
  left: -9999px;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}
.form__foot small {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 40ch;
}
@media (max-width: 899px) {
  .contact__details,
  .contact__form {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Legal pages, notices
   ========================================================================== */
.legal {
  max-width: 820px;
}
.legal h2 {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 650;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 2.2em 0 0.6em;
}
.legal p,
.legal ul {
  margin-bottom: 1em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.4em;
}
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.notice {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  margin-bottom: clamp(36px, 4vw, 56px);
  max-width: 70ch;
}
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) var(--gap);
}
.case__img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case h3 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
}
.case p {
  color: var(--muted);
}
@media (max-width: 899px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vt-out 0.45s var(--ease-in-out) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 0.7s var(--ease-out) both;
  }
  ::view-transition-group(site-header),
  ::view-transition-old(site-header),
  ::view-transition-new(site-header) {
    animation: none;
  }
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Reduced motion: nothing moves for visitors who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
