/* ==========================================================================
   WW Housing Development LLC — global.css
   Site-wide tokens, reset, typography, buttons, site header and navigation.

   MOBILE FIRST: base rules target the smallest practical viewport.
   Larger layouts are added with min-width queries only (handbook §12).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Inter Tight, self-hosted from /fonts — no font CDN (handbook §5).
   Only the four weights the site actually uses are declared: 400 body,
   500 navigation links, 600 buttons, 700 headings and emphasis.
   The 200, 300 and 800 files sit unused in /fonts; declare them here only
   if a design need appears.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-v9-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-v9-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-v9-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-v9-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design
   -------------------------------------------------------------------------- */
:root {
  /* Brand color — swap these six values when the client confirms a palette */
  --clr-primary: #0f2a44;        /* navy — bars, headings, primary buttons   */
  --clr-primary-deep: #0a1e32;   /* navy, darker — hovers, mobile nav panel  */
  --clr-accent: #c08a2e;         /* brass — rules, icons, accent hover       */
  --clr-accent-light: #d9a94a;   /* brass, lighter — CTA fill, on-navy accent*/
  --clr-surface: #faf7f2;        /* cream — page and utility-bar ground      */
  --clr-surface-alt: #ffffff;    /* white — sections lifted off the cream    */
  --clr-body: #23292f;           /* charcoal — body copy                     */
  --clr-muted: #5a6672;          /* slate — labels, captions, form hints     */

  --clr-line: rgba(15, 42, 68, 0.384);
  --clr-line-on-dark: rgba(250, 247, 242, 0.18);

  /* Typography */
  /* Fallbacks are metrically close to Inter Tight to limit layout shift */
  --ff-heading: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ff-body: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-100: 0.75rem;
  --fs-200: 0.8125rem;
  --fs-300: 0.9375rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-700: clamp(1.75rem, 5vw, 2.5rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius — generous by default for a friendlier, less corporate feel */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-pill: 62.4375rem;

  /* Motion */
  --t-fast: 180ms;
  --t-base: 260ms;
  --t-panel: 380ms;
  --t-slow: 420ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout */
  --section-space: clamp(3.5rem, 8vw, 7rem);
  /* Depth of the curved edge a .curve-out section hangs into the next one */
  --curve-height: clamp(2.5rem, 6vw, 6rem);
  --container-max: 80rem;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --nav-bar-height: 4.5rem;
  /* Fixed so the sticky header can offset the utility bar out of view */
  --utility-bar-height: 4.75rem;
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--clr-surface);
  color: var(--clr-body);
  font-family: var(--ff-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* Set by global.js while the mobile nav panel is open */
body.has-open-nav {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-md);
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--clr-primary);
}

h1 {
  font-size: var(--fs-700);
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--clr-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure,
blockquote {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--clr-accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.bold {
 font-weight: bold;
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 200;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Vertical rhythm shared by every page section */
.section {
  padding-block: var(--section-space);
}

/* Small pill label that opens a section, e.g. "About Us" */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: var(--space-2xs) var(--space-sm) var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-pill);
  background-color: rgba(15, 42, 68, 0.07);
  color: var(--clr-primary);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

.section-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--clr-accent);
}

/* Centred section opener: badge, heading, lead paragraph */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.section-heading {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-intro {
  margin: 0;
  max-width: 56ch;
  color: var(--clr-muted);
  font-size: var(--fs-400);
  line-height: 1.65;
}

/* Left-aligned variant */
.section-header--start {
  align-items: flex-start;
  text-align: left;
}

/* Split variant: heading and lead paragraph share a row on wide screens.
   A centred column of text in a 1400px viewport leaves most of the row empty;
   this fills it and gives the section a proper shoulder. */
.section-header--split {
  align-items: flex-start;
  text-align: left;
}

.section-header--split .section-heading {
  max-width: 20ch;
}

@media (min-width: 64em) {
  .section-header--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: end;
  }

  .section-header--split .section-intro {
    max-width: 46ch;
    padding-bottom: 0.35rem;
  }
}

/* Icon + heading + copy, used in feature grids */
.feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

.feature__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature__body {
  min-width: 0;
}

.feature__title {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
}

.feature__text {
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-300);
  line-height: 1.6;
}

/* Ticked list item */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--clr-body);
  font-size: var(--fs-300);
  line-height: 1.5;
}

.check__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.125rem;
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

.check__icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Hand-drawn brass underline beneath a word inside a heading.
   Wrap the word: <span class="mark-underline">Homes</span>

   inline-block keeps the word and its mark from being split by a line break,
   and the padding-bottom reserves the room the mark occupies so it can never
   collide with whatever follows the heading. The mark is a pseudo-element, so
   it stays out of the accessibility tree with no aria needed. */
.mark-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5em;
}

.mark-underline::after {
  content: "";
  position: absolute;
  /* Overshoots the word slightly at both ends, the way a drawn stroke would */
  left: -5%;
  right: -5%;
  bottom: 0.05em;
  /* Width comes from the insets; the ratio then sets the height, so the
     stroke is never squashed whatever the heading size */
  aspect-ratio: 1399 / 187;
  background-image: url("../images/svg-backgrounds/5-point-wide-underline.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* Uppercase text link with a trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--clr-primary);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-arrow svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  color: var(--clr-accent);
  transition: transform var(--t-base) var(--ease-out);
}

.link-arrow:hover svg,
.link-arrow:focus-visible svg {
  transform: translate(0.15rem, -0.15rem);
}

/* Underline is drawn rather than declared, so it can sweep in from the left.
   Scoped to the label so it stops short of the arrow. */
.link-arrow__label {
  position: relative;
}

.link-arrow__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35em;
  height: 2px;
  border-radius: 2px;
  background-color: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease-out);
}

.link-arrow:hover .link-arrow__label::after,
.link-arrow:focus-visible .link-arrow__label::after {
  transform: scaleX(1);
}

/* Overlapping circular portraits */
.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack li + li {
  margin-left: -0.875rem;
}

.avatar-stack img {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--clr-surface);
  border-radius: 50%;
  background-color: var(--clr-primary);
  object-fit: cover;
}

.avatar-stack--sm img {
  width: 2.25rem;
  height: 2.25rem;
}

.avatar-stack--sm li + li {
  margin-left: -0.625rem;
}

/* Portrait + pull quote + attribution */
.quote-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: rgba(15, 42, 68, 0.06);
}

.quote-card__photo {
  width: clamp(5.5rem, 26%, 10rem);
  flex: none;
  background-color: rgba(15, 42, 68, 0.12);
}

.quote-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.quote-card__quote p {
  margin: 0;
  font-size: var(--fs-300);
  font-weight: var(--fw-medium);
  line-height: 1.55;
  color: var(--clr-primary);
}

.quote-card__cite {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--clr-line);
  font-style: normal;
}

.quote-card__name {
  font-size: var(--fs-300);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
}

.quote-card__role {
  font-size: var(--fs-200);
  color: var(--clr-muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 2.875rem;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-slow) var(--ease-out),
    color var(--t-slow) var(--ease-out);
}

/* The sweep. Sits behind the label via z-index -1, kept inside the button by
   isolation: isolate, and clipped to the pill by overflow: hidden.
   Each variant sets its own --btn-fill. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--btn-fill, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}

.btn__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform var(--t-base) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translate(0.15rem, -0.15rem);
}

/* Circular arrow badge seated inside the pill */
.btn--with-badge {
  padding-right: var(--space-2xs);
}

.btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--clr-primary);
  color: var(--clr-surface);
  transition: transform var(--t-base) var(--ease-out);
}

.btn__badge svg {
  width: 1rem;
  height: 1rem;
}

.btn:hover .btn__badge {
  transform: translateX(0.15rem);
}

.btn--accent {
  --btn-fill: var(--clr-accent);
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

.btn--primary {
  --btn-fill: var(--clr-primary-deep);
  background-color: var(--clr-primary);
  color: var(--clr-surface);
}

/* Outlined, for use on photography — fills cream and flips the label to navy */
.btn--ghost {
  --btn-fill: var(--clr-surface);
  background-color: transparent;
  border-color: var(--clr-surface);
  color: var(--clr-surface);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--clr-primary);
}

/* Draws the eye: two quick hops, then still, repeating every 4 seconds.
   Uses transform, so it stacks with the scroll fade-in (which uses translate). */
.btn--bounce {
  animation: btn-bounce 4s var(--ease-out) infinite;
}

.btn--bounce:hover,
.btn--bounce:focus-visible {
  animation-play-state: paused;
}

@keyframes btn-bounce {
  0%,
  12%,
  24%,
  100% {
    transform: translateY(0);
  }

  6% {
    transform: translateY(-0.5rem);
  }

  18% {
    transform: translateY(-0.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--bounce {
    animation: none;
  }
}

/* Leading line icon, e.g. the download arrow on the brochure buttons */
.btn--icon-lead svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

/* Circular icon button — outlined, used in the utility bar */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--clr-line);
  border-radius: 50%;
  background-color: transparent;
  color: var(--clr-primary);
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

.btn-icon svg {
  width: 1rem;
  height: 1rem;
}

.btn-icon:hover,
.btn-icon:focus-visible {
  border-color: var(--clr-accent);
  background-color: var(--clr-accent);
  color: var(--clr-surface);
}

.btn-icon--on-dark {
  border-color: var(--clr-line-on-dark);
  color: var(--clr-surface);
}

.btn-icon--on-dark:hover,
.btn-icon--on-dark:focus-visible {
  border-color: var(--clr-accent-light);
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

/* ==========================================================================
   6. Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* --------------------------------------------------------------------------
   6a. Utility bar — hidden on phones, where the header collapses to a single
   bar. Contact details stay reachable from the mobile nav panel and footer.
   -------------------------------------------------------------------------- */
.utility-bar {
  display: none;
  background-color: var(--clr-surface);
  border-bottom: 1px solid var(--clr-line);
}

.utility-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-lg);
  /* Fill the bar's fixed height so items centre and dividers run full height */
  height: 100%;
}

.utility-bar__contacts {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
}

.utility-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1 1 0;
  padding: 0 var(--space-lg) 0 0;
}

.utility-item + .utility-item {
  padding-left: var(--space-lg);
  border-left: 1px solid var(--clr-line);
  /* Stops the divider short of the bar's edges */
  margin-block: var(--space-md);
}

.utility-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--clr-line);
  border-radius: 50%;
  color: var(--clr-primary);
}

.utility-item__icon svg {
  width: 1.1875rem;
  height: 1.1875rem;
}

.utility-item__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
}

.utility-item__label {
  color: var(--clr-muted);
  font-size: var(--fs-200);
  line-height: 1.2;
}

.utility-item__value {
  font-family: var(--ff-heading);
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--clr-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t-base) var(--ease-out);
}

.utility-item__value:hover,
.utility-item__value:focus-visible {
  color: var(--clr-accent);
}

/* --------------------------------------------------------------------------
   6b. Main navigation bar
   -------------------------------------------------------------------------- */
.nav-bar {
  background-color: var(--clr-primary);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--nav-bar-height);
}

/* Brand lockup — replace .brand__mark with the client logo SVG when supplied */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  flex: none;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  font-family: var(--ff-heading);
  font-size: var(--fs-300);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  transition: background-color var(--t-base) var(--ease-out);
}

.brand:hover .brand__mark {
  background-color: var(--clr-accent);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--clr-surface);
}

.brand__suffix {
  font-size: var(--fs-100);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent-light);
}

/* Hamburger — visible up to the desktop breakpoint only */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  padding: 0;
  border: 1px solid var(--clr-line-on-dark);
  border-radius: 50%;
  background-color: transparent;
  color: var(--clr-surface);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--clr-accent-light);
  background-color: rgba(217, 169, 74, 0.16);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.nav-toggle__bars span {
  display: block;
  width: 1.375rem;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

/* Close button inside the panel, aligned with the hamburger it replaces */
.nav-close {
  position: absolute;
  top: calc((var(--nav-bar-height) - 2.5rem) / 2);
  right: var(--space-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--clr-line-on-dark);
  border-radius: 50%;
  background-color: transparent;
  color: var(--clr-surface);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.nav-close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.nav-close:hover,
.nav-close:focus-visible {
  border-color: var(--clr-accent-light);
  background-color: rgba(217, 169, 74, 0.16);
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   6c. Primary nav — off-canvas panel on phones and tablets, sliding in from
   the right edge. Becomes an inline row at the desktop breakpoint.
   -------------------------------------------------------------------------- */
.primary-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: min(20rem, 84vw);
  padding: calc(var(--nav-bar-height) + var(--space-xl)) var(--space-lg)
    var(--space-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--clr-primary-deep);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform var(--t-panel) var(--ease-out),
    visibility 0s linear var(--t-panel);
}

.nav-is-open .primary-nav {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
}

.primary-nav__list a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--clr-surface);
  font-size: var(--fs-500);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
  background-color: rgba(250, 247, 242, 0.08);
  color: var(--clr-accent-light);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--clr-accent-light);
}

/* --------------------------------------------------------------------------
   Project Experience submenu

   In the panel it is a disclosure: the chevron button opens the list in place.
   In the desktop row it is a dropdown that opens on hover. Keyboard users get
   it either way — focus landing on the parent link satisfies :focus-within,
   which reveals the list and so makes its own links reachable by Tab.
   -------------------------------------------------------------------------- */
.primary-nav__row {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.primary-nav__row a {
  flex: 1 1 auto;
}

.primary-nav__disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  color: var(--clr-surface);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.primary-nav__disclosure svg {
  width: 1rem;
  height: 1rem;
}

.primary-nav__disclosure:hover,
.primary-nav__disclosure:focus-visible {
  background-color: rgba(250, 247, 242, 0.08);
  color: var(--clr-accent-light);
}

.primary-nav__disclosure[aria-expanded="true"] {
  color: var(--clr-accent-light);
  transform: rotate(180deg);
}

/* Opens by growing a grid row from nothing, so the panel never has to guess a
   height the project names might outgrow.

   The row grows on the wrapper, not on the list: the trick needs exactly one
   grid child, and three list items would take an explicit row each and stack
   on top of one another. The wrapper holds the single row; the list inside it
   does the clipping. */
.primary-nav__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-panel) var(--ease-out);
}

.primary-nav__item--menu.is-open .primary-nav__drawer {
  grid-template-rows: 1fr;
}

.primary-nav__submenu {
  overflow: hidden;
  min-height: 0;
}

.primary-nav__submenu > li:first-child {
  padding-top: var(--space-2xs);
}

.primary-nav__submenu > li:last-child {
  padding-bottom: var(--space-xs);
}

.primary-nav__submenu a {
  padding-block: var(--space-xs);
  padding-inline: var(--space-lg) var(--space-md);
  color: rgba(250, 247, 242, 0.82);
  font-size: var(--fs-300);
  font-weight: var(--fw-regular);
  line-height: 1.4;
}

/* Panel links fade in from the right, staggered behind the panel itself */
.primary-nav__item,
.primary-nav__cta,
.primary-nav__contact {
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.nav-is-open .primary-nav__item,
.nav-is-open .primary-nav__cta,
.nav-is-open .primary-nav__contact {
  opacity: 1;
  transform: translateX(0);
}

.nav-is-open .primary-nav__item:nth-child(1) { transition-delay: 140ms; }
.nav-is-open .primary-nav__item:nth-child(2) { transition-delay: 200ms; }
.nav-is-open .primary-nav__item:nth-child(3) { transition-delay: 260ms; }
.nav-is-open .primary-nav__item:nth-child(4) { transition-delay: 320ms; }
.nav-is-open .primary-nav__item:nth-child(5) { transition-delay: 380ms; }
.nav-is-open .primary-nav__cta { transition-delay: 440ms; }
.nav-is-open .primary-nav__contact { transition-delay: 500ms; }

/* Contact details in the panel: the utility bar that carries them is hidden
   below the desktop breakpoint, so the panel repeats them */
.primary-nav__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-line-on-dark);
}

.primary-nav__contact a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--clr-surface);
  text-decoration: none;
  transition: background-color var(--t-base) var(--ease-out);
}

.primary-nav__contact a:hover,
.primary-nav__contact a:focus-visible {
  background-color: rgba(250, 247, 242, 0.08);
}

.primary-nav__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1px solid var(--clr-line-on-dark);
  border-radius: 50%;
  color: var(--clr-accent-light);
}

.primary-nav__contact-icon svg {
  width: 1rem;
  height: 1rem;
}

.primary-nav__contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.primary-nav__contact-label {
  color: rgba(250, 247, 242, 0.62);
  font-size: var(--fs-100);
  line-height: 1.3;
}

.primary-nav__contact-value {
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Dimmed backdrop behind the open panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background-color: rgba(10, 30, 50, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-panel) var(--ease-out);
}

.nav-is-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   7. Larger screens — min-width only
   ========================================================================== */

/* Tablet: a little more breathing room in the bar */
@media (min-width: 48em) {
  :root {
    --nav-bar-height: 5rem;
  }

  .primary-nav {
    width: min(24rem, 60vw);
  }
}

/* Desktop: utility bar appears, nav becomes an inline row.
   68em rather than 64em because the full page labels ("Fee Arrangement",
   "Project Experience") overflow a 1024px row. Kept in sync with the
   matchMedia query in js/global.js. */
@media (min-width: 68em) {
  /* Pull the utility bar above the viewport as the page scrolls so the
     navigation bar alone stays pinned */
  .site-header {
    top: calc(var(--utility-bar-height) * -1);
  }

  .utility-bar {
    display: block;
    height: var(--utility-bar-height);
  }

  .nav-toggle,
  .nav-close {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .primary-nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
    width: auto;
    flex: 1 1 auto;
    padding: 0;
    overflow: visible;
    background-color: transparent;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
    margin-inline: auto;
  }

  .primary-nav__list a {
    padding: var(--space-xs);
    border-radius: var(--radius-pill);
    font-size: var(--fs-300);
  }

  .primary-nav__item,
  .primary-nav__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .primary-nav__contact {
    display: none;
  }

  .nav-is-open .primary-nav__item,
  .nav-is-open .primary-nav__cta {
    transition-delay: 0s;
  }

  .primary-nav__cta {
    flex: none;
  }

  /* ---- Project Experience dropdown ---- */
  .primary-nav__item--menu {
    position: relative;
  }

  /* The chevron on the link itself; the button is a panel control only */
  .primary-nav__disclosure {
    display: none;
  }

  .primary-nav__item--menu > .primary-nav__row > a::after {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
    transition: transform var(--t-base) var(--ease-out);
  }

  .primary-nav__item--menu:hover > .primary-nav__row > a::after,
  .primary-nav__item--menu:focus-within > .primary-nav__row > a::after {
    transform: translateY(0.05em) rotate(225deg);
  }

  /* visibility rather than display, so the links leave the tab order while the
     list is shut but come back the moment the parent link takes focus */
  .primary-nav__drawer {
    position: absolute;
    top: 100%;
    left: 50%;
    display: block;
    width: max-content;
    max-width: min(22rem, 70vw);
    margin: 0;
    padding: var(--space-xs);
    border: 1px solid var(--clr-line-on-dark);
    border-radius: var(--radius-md);
    background-color: var(--clr-primary-deep);
    box-shadow: 0 20px 44px rgba(10, 30, 50, 0.32);
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 0.35rem);
    transition: opacity var(--t-base) var(--ease-out),
      transform var(--t-base) var(--ease-out),
      visibility 0s linear var(--t-base);
  }

  .primary-nav__submenu {
    overflow: visible;
  }

  /* Bridges the gap between the row and the panel, so the cursor can travel
     down to the list without passing over dead space and closing it */
  .primary-nav__drawer::before {
    content: "";
    position: absolute;
    inset: auto 0 100% 0;
    height: var(--space-sm);
  }

  .primary-nav__item--menu:hover .primary-nav__drawer,
  .primary-nav__item--menu:focus-within .primary-nav__drawer {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, var(--space-xs));
    transition-delay: 0s;
  }

  .primary-nav__submenu > li:first-child,
  .primary-nav__submenu > li:last-child {
    padding: 0;
  }

  .primary-nav__submenu a {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--fs-300);
  }
}

/* Wide desktop: let the nav row breathe */
@media (min-width: 80em) {
  .primary-nav {
    gap: var(--space-lg);
  }

  .primary-nav__list a {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-400);
  }
}

/* ==========================================================================
   8. Reduced 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;
  }

  .primary-nav__item,
  .primary-nav__cta,
  .primary-nav__contact {
    transform: none;
  }
}

/* ==========================================================================
   9. Forms
   Shared controls — the contact section repeats on every page, and inner
   pages will reuse these fields.
   ========================================================================== */
.form {
  display: grid;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  color: var(--clr-primary);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
}


.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  /* A visible edge at rest, not only on focus — a borderless field on a
     near-matching ground reads as decoration rather than something to fill in */
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-pill);
  background-color: var(--clr-surface-alt);
  color: var(--clr-body);
  font-family: inherit;
  font-size: var(--fs-300);
  line-height: 1.5;
  transition: border-color var(--t-base) var(--ease-out);
}

.field textarea {
  min-height: 9rem;
  border-radius: var(--radius-lg);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--clr-muted);
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--clr-accent);
}

/* Native select arrow replaced with an inline SVG — no external request */
.field select {
  appearance: none;
  padding-right: var(--space-2xl);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 1rem 1rem;
  cursor: pointer;
}

.form__actions {
  grid-column: 1 / -1;
  justify-self: start;
}

/* ==========================================================================
   9b. Page hero
   Opening band for the inner pages. Slightly deeper than the navigation bar
   above it so the two read as separate bands rather than one slab.
   ========================================================================== */
.page-hero {
  position: relative;
  /* Contains the background layer's negative z-index */
  isolation: isolate;
  padding-block: clamp(2.75rem, 8vw, 5rem);
  background-color: var(--clr-primary-deep);
  text-align: center;
}

/* Optional photographic ground. Picture element rather than a CSS background,
   so the mobile crop, lazy loading and async decoding all apply (handbook §4).
   Pages without one simply fall back to the deep navy above. */
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, so the copy holds contrast over whatever photograph is used */
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.78) 0%,
    rgba(10, 30, 50, 0.88) 100%
  );
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.page-hero__eyebrow {
  margin: 0;
  color: var(--clr-accent-light);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero__title {
  margin: 0;
  max-width: 24ch;
  color: var(--clr-surface);
  font-size: clamp(1.875rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero__text {
  margin: 0;
  max-width: 56ch;
  color: rgba(250, 247, 242, 0.84);
  font-size: var(--fs-400);
  line-height: 1.7;
}

/* ==========================================================================
   10. Contact
   Photographic panel of contact details on one side, form on the other.
   Repeats at the foot of every page.
   ========================================================================== */
/* ==========================================================================
   Pricing / fee tiers

   Shared: the home page carries it as a summary and the Fee Arrangement page
   leads with it. It lived in styles.css until the second page needed it.
   Uses .section-header, .check and .btn from earlier in this file.
   ========================================================================== */
.pricing {
  position: relative;
  /* Contains the background layer's negative z-index. No overflow: hidden —
     it would clip the featured card's glow. */
  isolation: isolate;
}

/* Photographic ground. Picture element rather than a CSS background so the
   mobile crop, lazy loading and async decoding all apply (handbook §4).
   The gradient is the empty state until the photograph is added. */
.pricing__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    140deg,
    var(--clr-primary) 0%,
    var(--clr-primary-deep) 100%
  );
}

.pricing__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, so the section reads the same over any photograph */
.pricing__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.82) 0%,
    rgba(10, 30, 50, 0.9) 100%
  );
}

/* Section header inverts over the photograph */
.pricing .section-badge {
  background-color: rgba(250, 247, 242, 0.12);
  color: var(--clr-surface);
}

.pricing .section-heading {
  color: var(--clr-surface);
}

.pricing .section-intro {
  color: rgba(250, 247, 242, 0.82);
}

.pricing__list {
  display: grid;
  gap: var(--space-xl);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  /* Opaque, so the cards read as solid panels on the photographic ground */
  background-color: var(--clr-surface);
}

.plan__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

.plan__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.plan__name {
  margin: 0;
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
}

.plan__summary {
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-300);
  line-height: 1.6;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  margin: var(--space-md) 0 0;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-line);
}

.plan__amount {
  color: var(--clr-primary);
  font-size: clamp(1.875rem, 6vw, 2.375rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan__period {
  color: var(--clr-muted);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-block: var(--space-lg);
}

/* Pins every card's button to the same baseline regardless of list length */
.plan__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Highlighted tier
   -------------------------------------------------------------------------- */
.plan--featured {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 1px var(--clr-accent), 0 0 18px rgba(192, 138, 46, 0.28);
  animation: plan-glow 3.4s var(--ease-out) infinite;
}

/* Slow breath on the glow. The global reduced-motion block disables it. */
@keyframes plan-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px var(--clr-accent), 0 0 16px rgba(192, 138, 46, 0.24);
  }

  50% {
    box-shadow: 0 0 0 1px var(--clr-accent), 0 0 38px rgba(192, 138, 46, 0.55);
  }
}

.plan__tag {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: var(--space-xs) var(--space-md);
  /* Square to the card's corner, rounded where it meets the card */
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  background-color: var(--clr-primary);
  color: var(--clr-surface);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Reassurance row
   -------------------------------------------------------------------------- */
.pricing__notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.pricing__note {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(250, 247, 242, 0.88);
  font-size: var(--fs-300);
}

.pricing__note-icon {
  display: inline-flex;
  flex: none;
  color: var(--clr-accent-light);
}

.pricing__note-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ==========================================================================
   Fee Arrangement — larger screens
   ========================================================================== */
@media (min-width: 48em) {
  .pricing__notes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
  }
}

@media (min-width: 64em) {
  .pricing__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    align-items: stretch;
  }

  .plan {
    max-width: none;
    margin-inline: 0;
    padding: var(--space-xl);
  }
}


/* ==========================================================================
   Step cards

   Shared: the home page's "From Land to Homes" and the /start/ landing page.
   Three cards on a rail, each under a numbered pill. The active card reveals
   its photograph and darkens, and its pill inverts.

   Active state is a single class, .is-active. The home page moves it with
   js/script.js — hover on pointer devices, scroll position on touch. The
   landing page carries no JavaScript, so there it simply rests on the first
   card, which is the correct rest state everywhere anyway.
   ========================================================================== */
.process {
  /* White, so its curves come from the white copy of the artwork */
  --curve-image: url("../images/svg-backgrounds/curve-divider-white.svg");
  background-color: var(--clr-surface-alt);
}

/* Mobile first: this section is far taller than it is wide (three stacked
   cards), so covering all of it scales the 1920x1080 artwork about 1.85x and
   shows barely a tenth of its width — a few huge lines. Bounding the pattern
   to a band at the top holds it near its drawn scale, and the mask dissolves
   its lower edge into the ground. Grown at 48em, unbounded at 64em. */


/* --------------------------------------------------------------------------
   Step rail
   -------------------------------------------------------------------------- */
.process__list {
  position: relative;
  display: grid;
  gap: var(--space-xl);
}

.process__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  /* Keeps stacked cards from stretching uncomfortably wide on tablets */
  max-width: 34rem;
  margin-inline: auto;
  width: 100%;
}

.process__step {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 2rem;
  margin: 0;
  padding-inline: var(--space-md);
  border-radius: var(--radius-pill);
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  transition: background-color var(--t-slow) var(--ease-out),
    color var(--t-slow) var(--ease-out);
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.process__card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 20rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* Opaque, so the stripe pattern cannot bleed through behind card copy —
     it reads as a clean panel floating on the pattern */
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-line);
  transition: background-color var(--t-slow) var(--ease-out),
    border-color var(--t-slow) var(--ease-out);
}

/* Photograph, revealed on the active card */
.process__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}

.process__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, so copy stays legible over whatever photograph is dropped in */
.process__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.55) 0%,
    rgba(10, 30, 50, 0.82) 100%
  );
}

.process__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-lg);
}

.process__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  transition: background-color var(--t-slow) var(--ease-out);
}

.process__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.process__card-title {
  margin: 0;
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
  transition: color var(--t-slow) var(--ease-out);
}

.process__card-text {
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-300);
  line-height: 1.6;
  transition: color var(--t-slow) var(--ease-out);
}

/* Bullet list, pinned to the foot of the card */
.process__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-line);
  transition: border-color var(--t-slow) var(--ease-out);
}

.process__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--clr-body);
  font-size: var(--fs-300);
  line-height: 1.5;
  transition: color var(--t-slow) var(--ease-out);
}

.process__points li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  flex: none;
  margin-top: 0.5rem;
  border-radius: 50%;
  background-color: var(--clr-accent);
}

/* --------------------------------------------------------------------------
   Active card
   -------------------------------------------------------------------------- */
.process__item.is-active .process__media {
  opacity: 1;
}

.process__item.is-active .process__card {
  background-color: var(--clr-primary-deep);
  border-color: transparent;
}

.process__item.is-active .process__step {
  background-color: var(--clr-primary);
  color: var(--clr-surface);
}

.process__item.is-active .process__icon {
  background-color: var(--clr-surface);
}

.process__item.is-active .process__card-title,
.process__item.is-active .process__points li {
  color: var(--clr-surface);
}

.process__item.is-active .process__card-text {
  color: rgba(250, 247, 242, 0.85);
}

.process__item.is-active .process__points {
  border-top-color: rgba(250, 247, 242, 0.28);
}

.process__item.is-active .process__points li::before {
  background-color: var(--clr-accent-light);
}

/* --------------------------------------------------------------------------
   Closing line
   -------------------------------------------------------------------------- */
.process__footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  text-align: center;
}

.process__footnote-text {
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-300);
}

/* Navy label with a brass underline: brass alone is too light for body text */
.process__footnote-text a {
  color: var(--clr-primary);
  font-weight: var(--fw-semibold);
  text-decoration-color: var(--clr-accent);
  text-decoration-thickness: 2px;
  transition: text-decoration-thickness var(--t-base) var(--ease-out);
}

.process__footnote-text a:hover,
.process__footnote-text a:focus-visible {
  text-decoration-thickness: 3px;
}

/* ==========================================================================
   Our Process — larger screens
   ========================================================================== */
@media (min-width: 64em) {
  .process__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  /* The rail the step pills sit on, centred on their 2rem height */
  .process__list::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--clr-line);
  }

  .process__item {
    max-width: none;
    margin-inline: 0;
  }

  .process__card {
    min-height: 26rem;
  }

  .process__body {
    padding: var(--space-xl);
  }
}


/* ==========================================================================
   FAQ disclosure panels

   Shared: the Fee Arrangement page and the project detail page both use them.
   Each page frames them differently, so only the panels live here.

   Every panel ships open in the markup and js/global.js closes all but the
   first, so with no JavaScript the section is a readable list of questions and
   answers rather than a column of headings that do nothing.
   ========================================================================== */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq__item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--clr-surface-alt);
  /* The section is white too now, so the panels carry their own lift */
  box-shadow: 0 10px 24px rgba(15, 42, 68, 0.06);
}

.faq__question {
  margin: 0;
  font-size: inherit;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 0;
  /* Open is the resting state, because that is what the markup ships */
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  font-family: inherit;
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out);
}

.faq__item.is-closed .faq__trigger {
  background-color: transparent;
}

.faq__item.is-closed .faq__trigger:hover,
.faq__trigger:focus-visible {
  background-color: rgba(217, 169, 74, 0.22);
}

.faq__trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  transition: transform var(--t-base) var(--ease-out);
}

.faq__trigger-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* The arrow points up at an open panel and down at a closed one */
.faq__item.is-closed .faq__trigger-icon {
  transform: rotate(180deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--t-panel) var(--ease-out);
}

.faq__item.is-closed .faq__answer {
  grid-template-rows: 0fr;
}

/* The clipping half of the pair. min-height: 0 is what lets a grid row of 0fr
   actually reach zero rather than stopping at the content's minimum. */
.faq__answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__text {
  margin: 0;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  color: var(--clr-muted);
  font-size: var(--fs-300);
  line-height: 1.75;
}


/* --------------------------------------------------------------------------
   Curved section edges

   Every solid-coloured section is bounded top and bottom by a curve: the one
   at its foot carries its colour down over the section below, the one at its
   head carries it up over the section above. Between two solid sections only
   the upper one carries a curve, or the two would fight over the same strip.

   There are two copies of the artwork, one filled cream and one white, and a
   section picks its own with --curve-image alongside its background-color. A
   single file used as a mask would have coloured itself from CSS and saved the
   duplicate — but a CSS mask taken from an external SVG is subject to the same
   origin rules as a fetch, and over file:// every local file is its own origin,
   so the mask fails and the curve silently disappears. Opening the pages
   straight off disk has to keep working, so: two files.

   A curve has to overlap its neighbour — that is the only way the empty half
   has anything to reveal — so the bands it reaches into are given room for it
   further down this file.
   -------------------------------------------------------------------------- */
.curve-in,
.curve-in-white,
.curve-out,
.curve-out-white {
  position: relative;
  /* The neighbouring bands are positioned too, and would otherwise paint over
     whichever shape is reaching into them */
  z-index: 1;
}

.curve-in::before,
.curve-in-white::before,
.curve-out::after,
.curve-out-white::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--curve-height);
  background-image: var(--curve-image, url("../images/svg-backgrounds/curve-divider.svg"));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}




/* At the foot, hanging down. The artwork's own orientation: deep on the right.
   Pulled back a pixel so the shape and the section it belongs to overlap: sat
   exactly edge to edge, a fractional layout position leaves a hairline of the
   section below showing through between them. */
.curve-out::after,
.curve-out-white::after {
  top: calc(100% - 1px);
}

/* At the head, hanging up. Turned a half circle, which does two jobs at once —
   it puts the filled half against the section rather than away from it, and it
   runs the sweep the opposite way from the curve at the foot, so a section is
   not bracketed by the same shape twice. */
.curve-in::before,
.curve-in-white::before {
  bottom: calc(100% - 1px);
  transform: scale(-1, -1);
}

/* The white pair. Everything above already applies to them; all that changes
   is which copy of the artwork is used. Reach for these on a section whose own
   ground is white but which has not set --curve-image itself — a section that
   has set it needs nothing, and gets white curves either way. */
.curve-in-white,
.curve-out-white {
  --curve-image: url("../images/svg-backgrounds/curve-divider-white.svg");
}

/* Per-instance overrides, for when a run of sections wants the sweep broken up */
.curve-out--flip::after {
  transform: scaleX(-1);
}

.curve-in--flip::before {
  transform: scaleY(-1);
}

/* --section-space has room for a curve with a margin to spare, so a plain
   .section needs nothing. These two bands sit much closer to their content —
   the marquee is only --space-lg deep — so each is given the depth of the
   shape plus a breath. Both are always preceded by a solid section, so
   neither is conditional.

   Three bands take no curve at all. A hero gets none because a curve across
   the top of a photograph reads as a mistake rather than a join; the map gets
   none because it would sit on the embed's own controls; and the marquee gets
   none because the band is barely deeper than the curve itself, so the shape
   lands across the scrolling row however much padding it is given. */
.curve-out + .cta {
  padding-top: calc(var(--curve-height) + var(--space-xl));
}

.pricing {
  padding-bottom: calc(var(--curve-height) + var(--space-xl));
}

.contact {
  position: relative;
  /* Contains the texture layer's negative z-index */
  isolation: isolate;
  /* White, so its curves come from the white copy of the artwork */
  --curve-image: url("../images/svg-backgrounds/curve-divider-white.svg");
  /* Clears the sticky header when a CTA jumps to #contact */
  scroll-margin-top: calc(var(--nav-bar-height) + var(--space-md));
  background-color: var(--clr-surface-alt);
}

/* Tortoise-shell texture behind the section. A real element rather than a
   pseudo: ::before and ::after both belong to the curved edges now, and a
   section only gets two. The artwork carries its own near-white ground, so it
   is laid over the section rather than swapped in for the background colour,
   and it is masked rather than simply tiled — a repeat that runs to the edge
   ends on a visible seam, while this one dissolves into the ground before it
   gets there. Held at the size it was drawn, 400px, so the brass lines keep
   their intended weight. */
/* Any section that carries one needs to be its containing block, and to keep
   the layer's negative z-index from escaping behind the section's own ground */
.has-texture {
  position: relative;
  isolation: isolate;
}

.section-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/svg-backgrounds/tortoise-shell.svg");
  background-repeat: repeat;
  background-size: 25rem 25rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 90%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   Details panel
   -------------------------------------------------------------------------- */
.contact__aside {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 24rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--clr-primary-deep);
}

.contact__aside-photo {
  position: absolute;
  inset: 0;
}

.contact__aside-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, so the details stay legible over whatever photograph is used */
.contact__aside-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.45) 0%,
    rgba(10, 30, 50, 0.88) 62%,
    rgba(10, 30, 50, 0.94) 100%
  );
}

.contact__aside-content {
  position: relative;
  width: 100%;
  padding: var(--space-lg);
  color: var(--clr-surface);
}

.contact__points {
  display: grid;
  gap: var(--space-lg);
}

.contact__point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-width: 0;
}

.contact__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--radius-md);
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  transition: background-color var(--t-base) var(--ease-out);
}

.contact__point-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.contact__point-label {
  display: block;
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.contact__point-value {
  display: block;
  margin-top: var(--space-2xs);
  color: rgba(250, 247, 242, 0.88);
  font-size: var(--fs-300);
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t-base) var(--ease-out);
}

a.contact__point-value:hover,
a.contact__point-value:focus-visible {
  color: var(--clr-accent-light);
}

.contact__point:hover .contact__point-icon {
  background-color: var(--clr-accent);
}

.contact__location {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(250, 247, 242, 0.22);
}

/* --------------------------------------------------------------------------
   Form panel
   -------------------------------------------------------------------------- */
.contact__panel {
  padding: var(--space-lg);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  /* Cool grey, not cream — separates from the white ground without warmth */
  background-color: rgba(15, 42, 68, 0.05);
}

.contact__panel .section-header {
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   10b. Service-area map
   Full-bleed band at the foot of the page, above the footer.
   ========================================================================== */
.map {
  display: block;
  background-color: rgba(15, 42, 68, 0.08);
}

/* Google's own snippet carries style="border:0" — kept out of the markup */
.map__frame {
  display: block;
  width: 100%;
  height: clamp(16rem, 38vh, 24rem);
  border: 0;
}

/* ==========================================================================
   11. Site footer
   ========================================================================== */
.site-footer {
  background-color: var(--clr-primary);
  color: rgba(250, 247, 242, 0.78);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__contact a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: inherit;
  text-decoration: none;
}

.site-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  transition: background-color var(--t-base) var(--ease-out);
}

.site-footer__contact a:hover .site-footer__contact-icon,
.site-footer__contact a:focus-visible .site-footer__contact-icon {
  background-color: var(--clr-accent);
}

.site-footer__contact-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.site-footer__contact-label {
  display: block;
  color: var(--clr-surface);
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.site-footer__contact-value {
  display: block;
  font-size: var(--fs-300);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Columns
   -------------------------------------------------------------------------- */
.site-footer__main {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--clr-line-on-dark);
}

.site-footer__heading {
  margin: 0 0 var(--space-md);
  color: var(--clr-surface);
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
}

.site-footer__about p {
  margin: 0;
  font-size: var(--fs-300);
  line-height: 1.7;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-300);
  line-height: 1.5;
}

.site-footer__list svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  margin-top: 0.3125rem;
  color: var(--clr-accent-light);
}

.site-footer__list a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--clr-accent-light);
}

/* Office hours panel */
.site-footer__hours {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background-color: rgba(250, 247, 242, 0.06);
}

.site-footer__hours h3 {
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--clr-line-on-dark);
  color: var(--clr-surface);
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
}

.site-footer__hours ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs);
  font-size: var(--fs-300);
}

.site-footer__hours dt,
.site-footer__hours-day {
  color: var(--clr-surface);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--clr-line-on-dark);
  text-align: center;
}

.site-footer__copyright {
  margin: 0;
  font-size: var(--fs-200);
}

/* Designer credit. Quieter than the copyright beside it — it belongs to the
   footer, not to the firm's own notice. */
.site-footer__credit {
  margin: 0;
  color: rgba(250, 247, 242, 0.55);
  font-size: var(--fs-100);
}

.site-footer__credit a {
  color: rgba(250, 247, 242, 0.75);
  font-weight: var(--fw-medium);
  text-decoration-color: rgba(250, 247, 242, 0.32);
  text-underline-offset: 0.2em;
  transition: color var(--t-base) var(--ease-out);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: var(--clr-accent-light);
}

/* TEMPORARY, with the markup in index.html: a quiet way through to the
   unlinked /start/ page while it is under review. Delete both before launch. */
.site-footer__preview {
  margin-left: var(--space-sm);
  color: rgba(250, 247, 242, 0.5);
  font-size: var(--fs-100);
  text-decoration-color: rgba(250, 247, 242, 0.28);
  text-underline-offset: 0.2em;
  transition: color var(--t-base) var(--ease-out);
}

.site-footer__preview:hover,
.site-footer__preview:focus-visible {
  color: var(--clr-accent-light);
}

/* ==========================================================================
   12. Contact and footer — larger screens
   ========================================================================== */
@media (min-width: 48em) {
  .contact__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact__panel {
    padding: var(--space-xl);
  }

  .site-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__contact {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .site-footer__contact li + li {
    padding-left: var(--space-xl);
    border-left: 1px solid var(--clr-line-on-dark);
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2xl) var(--space-xl);
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 64em) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-lg);
  }

  .contact__panel {
    padding: var(--space-2xl);
  }

  .site-footer__main {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  }
}

/* ==========================================================================
   13. Back to top
   Fixed bottom-right, revealed once the visitor has scrolled past the fold.
   Sits below the navigation panel and overlay so it never floats over an
   open menu.
   ========================================================================== */
.to-top {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
  box-shadow: 0 10px 24px rgba(10, 30, 50, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    visibility 0s linear var(--t-base);
}

.to-top svg {
  width: 1.125rem;
  height: 1.125rem;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.to-top:hover,
.to-top:focus-visible {
  background-color: var(--clr-accent);
  transform: translateY(-0.125rem);
}

@media (min-width: 48em) {
  .to-top {
    width: 3rem;
    height: 3rem;
  }
}

/* ==========================================================================
   14. Call-to-action banner
   Full-bleed photographic band. Sits above the contact section, and will be
   reused at the foot of the inner pages, so it lives here rather than in the
   homepage stylesheet.
   ========================================================================== */
.cta {
  position: relative;
  /* Contains the background layer's negative z-index */
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

/* Picture element rather than a CSS background, so the mobile crop, lazy
   loading and async decoding all apply (handbook §4). The gradient is the
   empty state until the photograph is added. */
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    135deg,
    var(--clr-primary) 0%,
    var(--clr-primary-deep) 100%
  );
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, so the copy holds contrast over whatever photograph is dropped in */
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.74) 0%,
    rgba(10, 30, 50, 0.84) 100%
  );
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta__heading {
  margin: 0;
  max-width: 24ch;
  color: var(--clr-surface);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta__text {
  margin: 0;
  max-width: 52ch;
  color: rgba(250, 247, 242, 0.85);
  font-size: var(--fs-400);
  line-height: 1.65;
}

.cta__actions {
  margin-top: var(--space-sm);
}

/* Brochure — a quieter second route under the main CTA, set off by a hairline
   so it reads as an alternative rather than a second ask. Shared with the
   /start/ landing page's closing band (.closer__brochure). */
.cta__brochure,
.closer__brochure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 34rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--clr-line-on-dark);
}

.cta__brochure-text,
.closer__brochure-text {
  margin: 0;
  color: rgba(250, 247, 242, 0.78);
  font-size: var(--fs-300);
  line-height: 1.65;
}

/* Brochure cover, between the line above and the download button: the whole
   cover at its own 16:9 shape, kept small (about 213 x 120). The grey border
   lifts it off the photograph behind. */
.cta__brochure-cover,
.closer__brochure-cover {
  display: block;
  width: 13.3125rem;
  flex: none;
  overflow: hidden;
  border: 3px solid #c8ccd0;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cta__brochure-cover img,
.closer__brochure-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   15. Splash screen
   First arrival in a visit only — js/splash-init.js adds .has-splash to
   <html> before the first paint, so it never flashes on later pages, and
   never appears at all without JavaScript.
   ========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-primary-deep);
}

.has-splash .splash {
  display: flex;
}

/* Hold the page still underneath while the splash is up */
.has-splash body {
  overflow: hidden;
}

.splash-done .splash {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms var(--ease-out),
    visibility 0s linear 420ms;
}

/* The brand lockup, scaled up. Reuses .brand from the navigation and footer,
   so when the real logo arrives it is one swap in three places. */
.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.brand--splash {
  gap: var(--space-md);
}

.brand--splash .brand__mark {
  width: 4.5rem;
  height: 4.5rem;
  font-size: var(--fs-500);
}

.brand--splash .brand__name {
  font-size: clamp(1.5rem, 6vw, 2rem);
}

.brand--splash .brand__suffix {
  font-size: var(--fs-300);
  letter-spacing: 0.16em;
}

/* Progress fills left to right. A bar rather than a ring because a circle
   cannot wrap a horizontal lockup without crowding it. */
.splash__progress {
  width: min(16rem, 56vw);
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background-color: rgba(250, 247, 242, 0.16);
}

.splash__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--clr-accent-light);
  transform: scaleX(0);
  transform-origin: left center;
  animation: splash-fill 1400ms var(--ease-out) forwards;
}

@keyframes splash-fill {
  to {
    transform: scaleX(1);
  }
}

/* Reduced motion: the bar is drawn full, no sweep. splash-init.js drops its
   wait to zero to match, so the reveal is immediate. */
@media (prefers-reduced-motion: reduce) {
  .splash__progress-fill {
    animation: none;
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Fade in on scroll

   js/global.js tags the elements and flips them to "shown" as they reach the
   viewport, then removes the attribute once they have settled. :root lifts the
   specificity above single-class component rules, so their own transitions
   cannot cut the fade short. `translate` rather than `transform`, so anything
   that already uses transform (hover lifts, centring) is left alone.
   ========================================================================== */
:root [data-reveal] {
  opacity: 0;
  translate: 0 1.5rem;
  transition: opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
    translate 700ms var(--ease-out) var(--reveal-delay, 0ms);
}

:root [data-reveal="shown"] {
  opacity: 1;
  translate: none;
}


/* ==========================================================================
   Swipe carousels (phones)

   Card lists that stack into a very long column on a phone become a sideways
   strip there instead: the projects (home + Project Experience). js/global.js adds .swipe-track to the
   list and builds .swipe-controls (prev / next + dots) after it, so without
   JavaScript the cards simply stay stacked. From 48em up both are switched
   off and each list keeps its own grid.
   ========================================================================== */
@media (max-width: 47.999em) {
  /* :root lifts these above each list's own grid rules, which live in page
     stylesheets loaded after this one */
  :root .swipe-track {
    /* Positioned, so each card's offsetLeft is measured from the strip */
    position: relative;
    display: flex;
    gap: var(--space-md);
    /* Bleeds to the screen edges so the next card peeks in from the side;
       the padding puts the first card back on the page gutter. The vertical
       padding keeps glows and shadows from being clipped by the scroller. */
    margin-inline: calc(var(--container-pad) * -1);
    padding: var(--space-lg) var(--container-pad) var(--space-xl);
    scroll-padding-inline: var(--container-pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  :root .swipe-track::-webkit-scrollbar {
    display: none;
  }

  :root .swipe-track > * {
    flex: 0 0 86%;
    max-width: none;
    margin-inline: 0;
    scroll-snap-align: center;
  }
}

/* Navy, for the light grounds both project lists sit on */
.swipe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--clr-primary);
}

.swipe-controls__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background-color: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    opacity var(--t-base) var(--ease-out);
}

.swipe-controls__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.swipe-controls__arrow:hover:not(:disabled),
.swipe-controls__arrow:focus-visible {
  border-color: var(--clr-accent-light);
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

.swipe-controls__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.swipe-controls__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

/* 24px tap target around a small visible dot */
.swipe-controls__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.swipe-controls__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background-color: currentColor;
  opacity: 0.35;
  transition: width var(--t-base) var(--ease-out),
    opacity var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
}

.swipe-controls__dot[aria-current="true"]::before {
  width: 1.375rem;
  background-color: var(--clr-accent);
  opacity: 1;
}

@media (min-width: 48em) {
  .swipe-controls {
    display: none;
  }
}
