/* ===== Fonts (DM Sans, self-hosted, SIL Open Font Licence) ===== */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/dm-sans-italic.woff2") format("woff2");
}

/* ===== Archie Homes: design tokens ===== */
:root {
  --cream: #eedec1;
  --charcoal: #342528;
  --orange: #ff9000;
  --orange-light: #ffb537;
  --pink: #e782a6;
  --pink-light: #f39bbd;
  --green: #5fb45c;
  --green-light: #7ac573;
  --cyan: #6de7fd;
  --cyan-light: #b2f4ff;
  --muted: #8d7c72;

  --font: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 9vw, 200px); /* side margin used across the site */
  --radius-card: 36px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
}
.section-title {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), filter 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }
.btn-wide { min-width: 166px; }
.btn-small { min-height: 46px; min-width: 79px; padding: 0 18px; }

.btn-pink { background: var(--pink); color: #fff3ea; }
.btn-green { background: var(--green); color: #fff3ea; }
.btn-orange { background: var(--orange); color: #fff3ea; }
.btn-cyan { background: var(--cyan); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--charcoal); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--orange); filter: none; }

/* ===== Header ===== */
.site-header {
  position: fixed; /* stays in place while the page scrolls */
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 46px clamp(16px, 5vw, 60px) 0;
}
.header-logo img { width: 46px; height: auto; }
.nav-pill {
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 18px;
  background: var(--charcoal);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(52, 37, 40, 0.18);
}
.nav-pill a {
  padding: 6px 9px;
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap; /* "Shared Ownership" and "Ask Archie" stay on one line */
  text-decoration: none;
  opacity: 0.9;
  transition: color 160ms var(--ease);
}
.nav-pill a:hover { color: var(--orange-light); }
/* the longer labels need room; below this the round menu button takes over */
@media (max-width: 1040px) { .nav-pill { display: none; } }
.nav-pill a[aria-current="page"] { font-weight: 600; opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 2px; }
.header-actions .btn { min-width: 100px; box-shadow: 0 6px 24px rgba(52, 37, 40, 0.18); }

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 3px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  cursor: pointer;
  position: relative;
  z-index: 40;
  box-shadow: 0 6px 24px rgba(52, 37, 40, 0.18);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  overflow-y: auto; /* scrolls if the screen is too short for every link */
  padding: 120px 20px 40px;
  background: var(--charcoal);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay nav { display: grid; gap: 8px; margin: auto; text-align: center; }
.menu-overlay a {
  color: var(--cream);
  /* sized to the screen height too, so all nine links fit on most screens */
  font-size: clamp(30px, min(7vw, 5.4vh), 64px);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.menu-overlay a:hover { color: var(--orange-light); }
/* Secondary pages: kept out of the top bar, in pink below a divider */
.menu-more {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(238, 222, 193, 0.25);
}
.menu-overlay .menu-more a { color: var(--pink); }
.menu-overlay .menu-more a:hover { color: var(--pink-light); }
body.menu-open .site-header { z-index: 40; }
body.menu-open .nav-pill, body.menu-open .header-actions .btn { visibility: hidden; }

/* ===== Hero ===== */
/* The hero stays put while the rest of the page scrolls up over it */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  /* fit the screen (leaving a sliver of cream) so the wordmark is visible on load */
  height: clamp(420px, min(56.2vw, calc(100vh - 2.5vw)), 900px);
  height: clamp(420px, min(56.2vw, calc(100svh - 2.5vw)), 900px);
  overflow: hidden;
  background: var(--charcoal);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
/* The wordmark lives at the top of the intro and pokes up over the hero,
   so it scrolls up with the cream section while the hero photo stays put */
.hero-wordmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin: 0;
  overflow: hidden; /* trims the ends and the tag bottoms */
  pointer-events: none;
}
.hero-wordmark img {
  width: 100%; /* edge to edge: the A and the s touch the sides without being cut */
  height: auto;
  /* letters sit on the join; the tag bottoms drop out of view */
  transform: translateY(6.5%);
}

/* ===== Intro ===== */
.intro, .repairs, .steps, .contact, .site-footer {
  position: relative;
  z-index: 2;
  scroll-margin-top: 110px; /* clear the fixed header when jumping to a section */
}
.intro, .contact { background: var(--cream); }

/* The intro also sticks, so the orange section slides up over it.
   --intro-top is set in main.js: 0 when the intro fits the screen, otherwise
   negative so it only sticks once its bottom is in view. */
.intro {
  position: sticky;
  top: var(--intro-top, 0px);
  z-index: 1;
}

.intro { padding: clamp(80px, 11vw, 140px) 0 clamp(100px, 10vw, 120px); }
.intro-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.intro-title strong { font-weight: 700; }
.intro-icon { width: 46px; flex: none; }
.intro-lead { max-width: 900px; margin-top: 55px; font-weight: 300; }
.intro-cta-label { margin: 55px 0 20px; }
.intro-cta-label strong { font-weight: 600; }
.pathways { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ===== Repairs ===== */
.repairs {
  position: relative;
  background: var(--orange);
  padding: 90px 0 50px;
  overflow-x: clip; /* the house frame deliberately runs off the right edge */
}
.repairs-copy {
  position: relative;
  z-index: 2;
  /* stop short of the house frame */
  max-width: min(640px, calc(100vw - var(--frame-w) * 0.69 - var(--gutter) - 48px));
}
.repairs .eyebrow { margin-bottom: 2px; }
.repairs-lead { margin-top: 40px; font-weight: 300; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.repairs-item { margin-top: 44px; }
.repairs-item + .repairs-item { margin-top: 12px; }
.repairs-item h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.04em; }
.repairs-item p { font-weight: 300; }
.repairs-item p a { text-decoration: none; }
.repairs-item p a:hover { text-decoration: underline; }
.repairs-item .btn { margin-top: 8px; }
/* Home: Shared Ownership and Affordable Rent in the orange block */
.home-ways .repairs-item { margin-top: clamp(64px, 7vw, 104px); }
.home-ways .repairs-item + .repairs-item { margin-top: clamp(56px, 6vw, 88px); }
.home-ways .repairs-item h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.05em; }
.home-ways .repairs-item p { margin-top: 16px; }
.home-ways .repairs-item .btn { margin-top: 24px; }

/* House frame: the exact logo shape. Positioned so the hole's centre sits
   just past the right edge of the screen (a bit over half the ring cut off). */
.repairs {
  --frame-w: clamp(520px, 62vw, 1000px);
  min-height: calc(var(--frame-w) * 0.966 + 50px);
}
.house-frame {
  position: absolute;
  top: calc(var(--frame-w) * -0.068); /* peak pokes up into the cream section */
  right: calc(var(--frame-w) * -0.31);
  width: var(--frame-w);
  pointer-events: none;
}
.house-frame-outline, .house-frame-ring { fill: var(--orange-light); }
.house-frame-hole { fill: var(--orange); }

/* ===== Steps ===== */
.steps {
  background: var(--charcoal);
  color: var(--cream);
  padding: 72px 0 110px;
  position: relative;
  z-index: 1;
}
.steps-header { text-align: right; }
.steps-track {
  display: flex;
  gap: 35px;
  margin-top: 60px;
  padding: 0 max(16px, 4vw);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, 4vw);
  scrollbar-width: none;
}
.steps-track::-webkit-scrollbar { display: none; }
.step-card {
  position: relative;
  flex: 0 0 min(355px, 82vw);
  min-height: 460px;
  padding: 34px 36px;
  border-radius: var(--radius-card);
  overflow: hidden;
  scroll-snap-align: start;
  color: var(--charcoal);
}
.step-card h3 {
  position: relative;
  font-size: clamp(40px, 4vw, 50px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.step-card p { position: relative; margin-top: 18px; font-size: 14px; font-weight: 300; line-height: 1.4; }
.step-cream { background: var(--cream); }
.step-orange { background: var(--orange); }
.step-photo { background: var(--cream); }
.step-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: 0;
}
.step-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(238, 222, 193, 0.55) 0%, rgba(238, 222, 193, 0.2) 40%, rgba(238, 222, 193, 0) 60%);
}
.step-photo h3, .step-photo p { z-index: 2; }
.step-num {
  position: absolute;
  right: 32px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 0.42em;
  min-height: 1.25em; /* keeps the arrowless "5" level with the others */
  padding: 0;
  border: 0;
  background: none;
  color: var(--charcoal);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 2;
}
button.step-num { cursor: pointer; }
.step-arrow {
  width: 0.56em;
  height: 1.25em;
  color: var(--orange);
  transition: transform 160ms var(--ease);
}
.step-photo .step-num { color: var(--cream); }
.step-orange .step-arrow { color: var(--cream); }
.step-num:hover .step-arrow { transform: translateX(4px); }
.step-num:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 6px; border-radius: 8px; }

/* ===== Contact ===== */
.contact { padding: 72px 0 55px; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  gap: 40px;
  align-items: start;
}
.contact-copy .eyebrow { margin-bottom: 2px; }
.contact-copy p:not(.eyebrow) { margin-top: 44px; }
.contact-copy .btn { margin-top: 32px; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 86px;
  padding: 52px 64px 48px;
  border: 3px solid var(--charcoal);
  border-radius: 44px;
}
.field { display: flex; flex-direction: column; border-bottom: 2px solid var(--charcoal); }
.field span { font-style: italic; font-weight: 300; font-size: 15px; }
.field input, .field select {
  width: 100%;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.05em;
  outline: none;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field:focus-within { border-bottom-color: var(--orange); }
.field-select { position: relative; }
.field-select select { appearance: none; cursor: pointer; padding-right: 28px; }
.field-select select:invalid { color: var(--muted); }
.field-select::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  transform: rotate(45deg);
  pointer-events: none;
}
.form-submit { display: flex; align-items: end; }
.form-submit .btn { min-width: 170px; }
.form-status { grid-column: 1 / -1; font-size: 14px; }
.form-status:empty { display: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0 24px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { width: 300px; height: auto; }
.intro-icon { height: auto; }
.footer-links { display: flex; gap: 72px; margin-right: 10px; }
.footer-links h2 { font-size: 17px; font-weight: 600; margin-bottom: 22px; }
.footer-links a { font-weight: 300; text-decoration: none; }
.footer-links a:hover { color: var(--orange-light); }
.footer-address { margin-top: 36px; font-style: normal; font-weight: 300; }
.footer-address p + p { margin-top: 22px; }
.policies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.policies li { flex: 0 0 auto; } /* buttons size to their label rather than stretching across */
.policies .btn { min-width: 190px; padding: 0 24px; font-size: 13px; white-space: nowrap; }
.legal {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(238, 222, 193, 0.2);
  font-size: 10px;
  letter-spacing: -0.02em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .policies .btn { min-width: 0; padding: 0 18px; }
  .nav-pill { display: none; }
  .repairs { --frame-w: min(92vw, 600px); min-height: 0; }
  .repairs-copy { max-width: none; }
  .house-frame {
    position: relative;
    top: auto;
    right: auto;
    margin: 40px 0 0 calc(100% - var(--frame-w) * 0.69);
  }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-copy p:not(.eyebrow) { margin-top: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .site-header { padding-top: 20px; }
  .header-logo img { width: 40px; }
  .header-actions .btn { min-width: 0; }
  .hero { height: 78vh; height: 78svh; min-height: 460px; }
  .intro-title { flex-direction: column; gap: 14px; }
  .intro-lead, .intro-cta-label { margin-top: 36px; }
  .pathways { flex-direction: column; width: 100%; }
  .pathways .btn { width: 100%; }
  .steps-header { text-align: left; }
  .step-card { min-height: 420px; padding: 28px; }
  .contact-form { grid-template-columns: 1fr; padding: 32px 24px; gap: 22px; border-radius: 32px; }
  .footer-links { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =====================================================================
   About page
   ===================================================================== */
.about-intro {
  background: var(--cream);
  padding: clamp(150px, 16vw, 220px) 0 clamp(90px, 9vw, 120px);
}
.about-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 6vw;
  align-items: start;
}
.about-title {
  margin-top: 4px;
  font-size: clamp(56px, 8.5vw, 132px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.about-intro-copy p { font-size: 19px; font-weight: 300; line-height: 1.45; }
.about-intro-copy p + p { margin-top: 20px; }
.about-intro-copy .about-lead { font-size: clamp(20px, 1.7vw, 24px); font-weight: 400; line-height: 1.35; }
.about-intro-copy .about-standout {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

/* Purpose / mission / vision: three plain columns */
.pmv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 5vw;
  margin-top: clamp(64px, 8vw, 110px);
}
.pmv-item h2 {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--charcoal);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}
.pmv-item p { margin-top: 28px; font-size: 18px; font-weight: 300; line-height: 1.45; }

/* What we believe */
.beliefs { background: var(--orange); padding: clamp(80px, 8vw, 110px) 0; }
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 5vw;
  margin-top: 56px;
}
.belief h3 {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
/* arrow sits in line with the title's first line */
.belief-arrow {
  flex: none;
  width: 0.45em;
  height: 1em;
  margin-top: 0.05em;
  color: var(--charcoal);
}
.belief p { margin-top: 8px; padding-left: 27px; /* lines up with the title text */ font-weight: 300; }

/* Why Archie */
.why-archie { background: var(--cream); padding: clamp(90px, 9vw, 130px) 0; }
.why-archie-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(760px + var(--gutter) * 2);
  text-align: center;
}
.why-archie-inner .intro-icon { margin-bottom: 22px; }
.why-archie-inner p { margin-top: 26px; font-size: 19px; font-weight: 300; line-height: 1.45; }

/* Who's behind us + stats */
.foundations {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(90px, 9vw, 120px) 0 clamp(100px, 10vw, 130px);
}
.foundations .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0 6vw;
}
.foundations-copy p { font-size: 18px; font-weight: 300; line-height: 1.45; }
.foundations-copy p + p { margin-top: 18px; }
.foundations-copy { padding-top: 26px; }

.stats {
  grid-column: 1 / -1;
  margin-top: clamp(64px, 7vw, 100px);
  border-top: 1px solid rgba(238, 222, 193, 0.2);
}
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
  border-bottom: 1px solid rgba(238, 222, 193, 0.2);
}
.stat-num {
  font-size: clamp(88px, 17vw, 280px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label {
  max-width: 11ch;
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: right;
}
.stat-pink .stat-num { color: var(--pink-light); }
.stat-green .stat-num { color: var(--green-light); }
.stat-blue .stat-num { color: var(--cyan-light); }
.stat.will-reveal .stat-num,
.stat.will-reveal .stat-label {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.stat.will-reveal .stat-label { transition-delay: 150ms; }
.stat.is-visible .stat-num,
.stat.is-visible .stat-label { opacity: 1; transform: none; }

.partners {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 56px;
}
.partners-label { font-style: italic; font-weight: 300; }
.partners-list { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.partner img { width: auto; height: clamp(40px, 4vw, 56px); }
.partner-sevet img { height: clamp(30px, 3vw, 42px); } /* bold wordmark: smaller so it balances the other logos */

/* Board */
.board { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0 clamp(100px, 10vw, 130px); }
.board-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 6vw;
  align-items: end;
}
.board-head p { font-size: 19px; font-weight: 300; line-height: 1.45; }
/* Board: an expanding list, one member open at a time */
.board-list { margin-top: 56px; border-top: 2px solid var(--charcoal); }
.board-member { border-bottom: 1px solid rgba(52, 37, 40, 0.25); }
.board-member summary {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  align-items: center;
  gap: 16px 6vw;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.board-member summary::-webkit-details-marker { display: none; }
.board-member summary:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 4px; border-radius: 8px; }
.board-name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.05em; }
.board-role { font-style: italic; font-weight: 300; }
.board-arrow {
  width: 14px;
  height: 31px;
  margin-right: 9px; /* room for the arrow when it turns downward */
  color: var(--orange);
  transition: transform 240ms var(--ease);
}
.board-member:not([open]) summary:hover .board-arrow { transform: translateX(4px); }
.board-member[open] .board-arrow { transform: rotate(90deg); }
.board-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 16px 6vw;
  align-items: start;
  padding: 4px 0 32px;
}
.board-detail img {
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
}
.board-detail p { max-width: 52ch; font-size: 18px; font-weight: 300; line-height: 1.45; }

@media (max-width: 960px) {
  .about-intro-inner, .foundations .container, .board-head { grid-template-columns: 1fr; }
  .about-intro-copy { margin-top: 12px; }
  .pmv { grid-template-columns: 1fr; }
  .beliefs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .beliefs-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-label { max-width: none; text-align: left; }
  .board-member summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .board-role { grid-row: 2; }
  .board-arrow { grid-row: 1 / 3; grid-column: 2; }
  .board-detail { grid-template-columns: 1fr; }
}

/* =====================================================================
   Shared page pieces (used by the Shared ownership page and later pages)
   ===================================================================== */
.page-intro {
  position: relative;
  background: var(--cream);
  padding: clamp(150px, 16vw, 220px) 0 clamp(70px, 7vw, 100px);
}
.page-intro-short { min-height: 80vh; }
/* Intro with a full-screen photo (the photo has its cream fade built in) */
.page-intro-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px 0 clamp(32px, 4vw, 48px);
}
.page-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.page-intro-photo > .container { position: relative; z-index: 2; }
.page-intro-photo .page-intro-inner { align-items: center; }
.page-intro-photo .page-intro-copy { padding-top: clamp(40px, 6vw, 110px); }

/* Quick links as a row of dark pills */
.so-jump-dark { gap: 10px; margin-top: clamp(48px, 7vw, 96px); }
.so-jump-dark a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 12px;
  border: 2px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  white-space: nowrap;
}
.so-jump-dark a:hover { background: var(--charcoal); color: var(--cream); }
@media (max-width: 1280px) {
  .so-jump-dark a { flex: 1 1 calc(33.333% - 10px); }
}
.page-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 6vw;
  align-items: end;
}
.page-title {
  margin-top: 4px;
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.page-lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -0.035em; }
.page-intro-copy > p:not(.page-lead) { margin-top: 16px; font-weight: 300; }
.page-intro-copy .btn-row { margin-top: 28px; }

.arrow-list li { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; font-size: 18px; font-weight: 300; line-height: 1.4; }
.list-arrow { flex: none; width: 12px; height: 26px; margin-top: -1px; color: var(--orange); }
.pmv-item h3 {
  padding-bottom: 18px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}
.pmv-item h3 + p, .pmv-item h2 + ul, .pmv-item h3 + ul { margin-top: 24px; }

/* =====================================================================
   Shared ownership page
   ===================================================================== */
.so-page section { position: relative; scroll-margin-top: 110px; }
.so-page section p { font-size: 18px; font-weight: 300; line-height: 1.45; }
.so-page section p + p { margin-top: 16px; }
.so-page .so-big { margin-top: 24px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.3; letter-spacing: -0.035em; }
.so-page .so-small { font-size: 15px; }
.so-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px 6vw;
  align-items: start;
}
.so-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 5vw; }
.so-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 5vw; margin-top: 56px; }

/* quick links under the intro */
.so-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 64px; }
.so-jump a {
  padding: 9px 18px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.so-jump a:hover { background: var(--charcoal); color: var(--cream); }

/* What is it + share slider */
.so-what { background: var(--charcoal); color: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.share-demo { padding-top: 12px; }
.share-bar {
  height: 72px;
  overflow: hidden;
  border: 2px solid var(--cream);
  border-radius: 999px;
}
.share-own {
  display: block;
  width: var(--own);
  height: 100%;
  background: var(--orange);
  transition: width 300ms var(--ease);
}
.share-labels { display: flex; justify-content: space-between; gap: 24px; margin-top: 22px; }
.share-labels p:last-child { text-align: right; }
.share-labels strong {
  display: block;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.share-own-num { color: var(--orange-light); }
.share-labels span { font-size: 15px; opacity: 0.75; }
.share-slider { display: grid; gap: 10px; margin-top: 32px; font-style: italic; font-weight: 300; }
.share-slider input { width: 100%; accent-color: var(--orange); cursor: pointer; }

/* Worked cost example under the slider */
.share-costs { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(238, 222, 193, 0.25); }
.so-page .share-costs-title { font-size: 20px; font-weight: 400; }
.share-costs dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0 0; }
.share-costs dl div { padding: 14px 0; border-bottom: 1px solid rgba(238, 222, 193, 0.2); }
.share-costs dt { font-size: 14px; font-style: italic; font-weight: 300; opacity: 0.8; }
.share-costs dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.share-costs .share-monthly { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.share-total dd { color: var(--orange-light); }
.so-page .share-note { margin-top: 20px; font-size: 13px; opacity: 0.7; }
@media (max-width: 640px) {
  .share-costs dl, .share-costs .share-monthly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Can I apply */
.so-apply { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.arrow-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5vw; margin-top: 16px; }
.so-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 56px;
  padding: 32px 40px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-card);
}
.so-note p { max-width: 62ch; }
.so-note-apply { border-color: var(--pink); background: rgba(231, 130, 166, 0.12); }
.so-note-apply + .so-note { margin-top: 16px; }
.so-note .btn { flex: none; }

/* Defects */
.so-defects { background: var(--pink); padding: clamp(90px, 9vw, 120px) 0; }
.so-callout-top { margin: 0 0 32px; }
.so-callout { margin-top: 32px; padding: 24px 28px; border-radius: 24px; background: var(--pink-light); }
.so-callout h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.so-page .so-callout p { margin-top: 6px; }
.so-contact-card {
  margin-top: 36px;
  padding: 32px 36px;
  border-radius: var(--radius-card);
  background: var(--charcoal);
  color: var(--cream);
}
.so-contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.so-contact-head img { flex: none; width: clamp(96px, 9vw, 130px); height: auto; margin: -10px -8px 0 0; }
.so-contact-card h3 { margin-bottom: 8px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.05em; }
.so-page .so-contact-card p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 12px; }
.so-contact-card span { width: 60px; font-style: italic; font-weight: 300; }
.so-contact-card a { overflow-wrap: anywhere; font-size: 20px; font-weight: 500; text-decoration: none; }
.so-contact-card a:hover { color: var(--orange-light); }

/* Promises + making it yours */
.so-promises { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.so-yours {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 6vw;
  margin-top: clamp(80px, 8vw, 110px);
}
.so-page .so-yours .so-big { margin-top: 0; }

/* Rent */
.so-rent { background: var(--charcoal); color: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.so-rent .so-two { margin-top: 56px; }

/* ASB */
.so-asb { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0 clamp(60px, 6vw, 80px); }
.so-page .so-asb .so-big { margin-top: 0; }
.so-routes { margin: 32px 0; border-top: 1px solid rgba(52, 37, 40, 0.25); }
.so-routes div, .so-details div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(52, 37, 40, 0.25);
}
.so-routes dt { font-weight: 600; }
.so-routes dd, .so-details dd { margin: 0; font-weight: 300; }

/* Staircasing + selling tiles */
.so-next { background: var(--cream); padding: 0 0 clamp(90px, 9vw, 120px); }
.so-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.so-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 420px;
  padding: 44px;
  border-radius: var(--radius-card);
}
.so-tile h2 { margin-top: 6px; font-size: clamp(40px, 4.2vw, 62px); font-weight: 600; line-height: 0.95; letter-spacing: -0.06em; }
.so-page .so-tile p:not(.eyebrow) { flex: 1; margin-top: 20px; max-width: 44ch; }
.so-tile .btn { margin-top: 32px; }
.so-tile-orange { background: var(--orange); }
.so-tile-dark { background: var(--charcoal); color: var(--cream); }
.so-tile-pink { background: var(--pink); }
.so-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.so-tiles-3 .so-tile { padding: 40px 36px; }
.so-tiles-3 .so-tile h2 { font-size: clamp(36px, 3.4vw, 50px); }
.so-next { padding-top: clamp(90px, 9vw, 120px); }

/* Stay in touch */
.so-touch { background: var(--orange-light); padding: clamp(90px, 9vw, 120px) 0; }
.so-touch .pmv-item .btn { margin-top: 24px; }
.signup-form { display: grid; gap: 18px; justify-items: start; margin-top: 20px; }
.signup-form .field { width: 100%; }
.so-details { margin-top: 12px; }
.so-details div { grid-template-columns: 90px minmax(0, 1fr); }
.so-details dt { font-style: italic; font-weight: 300; }
.so-details dd { font-weight: 500; }
.so-page .so-legal { margin-top: 64px; font-size: 13px; }

@media (max-width: 960px) {
  .page-intro-inner, .so-split, .so-two, .so-three, .so-tiles, .so-yours { grid-template-columns: 1fr; }
  .arrow-list-2 { grid-template-columns: 1fr; }
  .so-note { flex-direction: column; align-items: flex-start; }
  .so-jump-dark a { flex: 1 1 calc(50% - 10px); }
  .page-intro-photo .page-intro-copy { padding-top: 0; }
  .page-intro-bg { object-position: 35% 100%; }
}

@media (max-width: 640px) {
  .so-note, .so-tile, .so-contact-card { padding: 28px; }
  .so-tile { min-height: 0; }
  .share-bar { height: 56px; }
}

/* Shared ownership: 5-step timeline */
.so-steps { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0 0; }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 3vw;
  margin-top: 56px;
  counter-reset: none;
}
.tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--charcoal);
}
.tl-num { font-size: clamp(48px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.tl-arrow { width: 16px; height: 36px; color: var(--orange); }
.tl-step h3 { margin-top: 20px; font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.so-page .tl-step p { margin-top: 8px; font-size: 16px; }

/* Shared ownership: "Making it yours" reveal (copy appears to the right) */
.so-drop {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 6vw;
  align-items: start;
  margin-top: clamp(64px, 7vw, 96px);
  padding-top: 28px;
  border-top: 2px solid var(--charcoal);
}
.so-drop-title { font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.so-drop-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}
.so-drop-toggle:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 6px; border-radius: 8px; }
.so-drop-toggle[aria-expanded="false"]:hover .board-arrow { transform: translateX(4px); }
.so-drop-toggle[aria-expanded="true"] .board-arrow { transform: rotate(180deg); }
.so-page .so-drop-body .so-big { margin-top: 0; }
.so-drop-body:not([hidden]) { animation: so-drop-in 300ms var(--ease); }
@keyframes so-drop-in { from { opacity: 0; transform: translateX(-16px); } }

/* ASB page */
.so-asb-copy .so-big { margin-top: 0; }
.so-asb-copy .so-routes { margin: 28px 0 0; }

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .so-tiles-3 { grid-template-columns: 1fr; }
  .so-drop { grid-template-columns: 1fr; }
  .so-drop-toggle[aria-expanded="true"] .board-arrow { transform: rotate(90deg); }
  .so-tiles-3 .so-tile { min-height: 0; }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .so-drop { grid-template-columns: 1fr; }
}

/* =====================================================================
   Tenants page
   ===================================================================== */
.pmv-item h2 + p { margin-top: 24px; }
.so-page .ten-btn { margin-top: 32px; }

/* Meet Pinnacle */
.ten-pinnacle { background: var(--charcoal); color: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.ten-pinnacle .so-split { align-items: center; }
.ten-pinnacle-logo img { width: min(320px, 70%); height: auto; }

/* Paying your rent */
.ten-rent { background: var(--green); padding: clamp(90px, 9vw, 120px) 0; }
.pay-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.pay-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--green-light);
}
.pay-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.045em; }
.so-page .pay-card p { margin-top: 10px; font-size: 15px; }
.pay-card a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.pay-card a:hover { text-decoration: underline; }
.pay-card-best { background: var(--charcoal); color: var(--cream); }
.pay-card-best a { color: var(--green-light); }
.pay-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
}

/* Repairs */
.ten-repairs { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.ten-repairs .so-contact-card { margin-top: 0; }
.ten-line {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(238, 222, 193, 0.2);
}
.ten-line span { width: auto; font-style: italic; font-weight: 300; }
.ten-line a { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; }
.ten-line a:hover { color: var(--orange-light); }
.so-page .ten-small { margin-top: 18px; font-size: 15px; opacity: 0.8; }
.ten-gas { background: var(--orange); }
.ten-gas a { text-decoration: none; }

/* Find a home */
/* keep the couple in view on narrow screens */
@media (max-width: 960px) { .so-intro-bg { object-position: 68% 100%; } }
/* keep the woman on the sofa in view on narrow screens */
@media (max-width: 960px) { .ten-intro-bg { object-position: 58% 100%; } }
.ten-find { background: var(--cream); padding: clamp(56px, 6vw, 88px) 0 clamp(90px, 9vw, 120px); }
.ten-promises { background: var(--orange); }
.ten-promises .list-arrow { color: var(--charcoal); }
.ten-find .so-big { max-width: 40ch; }
.timeline-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 5vw; }

.ten-note-title { margin-bottom: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.045em; }

@media (max-width: 1100px) {
  .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-card-best { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
  .timeline-3 { grid-template-columns: 1fr; }
  .ten-pinnacle-logo img { width: 160px; }
}

/* =====================================================================
   Homes page (schemes)
   ===================================================================== */
.homes-intro .page-intro-inner { align-items: end; }
.homes-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 72px);
}
.homes-filter, .homes-view { display: flex; flex-wrap: wrap; gap: 10px; }
.homes-view[hidden] { display: none; }
.homes-filter-btn, .homes-view-btn {
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.homes-filter-btn:hover, .homes-filter-btn[aria-pressed="true"],
.homes-view-btn:hover, .homes-view-btn[aria-pressed="true"] { background: var(--charcoal); color: var(--cream); }
.homes-view-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--charcoal); }
.homes-filter-btn:focus-visible, .homes-view-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.homes-list { background: var(--cream); padding: clamp(24px, 3vw, 40px) 0 clamp(70px, 7vw, 100px); }
.so-page .homes-count { font-style: italic; }
.homes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.homes-grid[hidden] { display: none; }
.home-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #f6ecd8; }
.home-media { position: relative; flex: none; aspect-ratio: 16 / 10; background: #e3cfa8; }
.home-media img { width: 100%; height: 100%; object-fit: cover; }
.home-tag, .home-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.home-media .home-tag, .home-status { position: absolute; top: 10px; }
.home-media .home-tag { left: 10px; }
.home-status { right: 10px; background: var(--charcoal); color: var(--cream); }
.tag-pink { background: var(--pink); }
.tag-green { background: var(--green); }
.home-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.home-body h3 { font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.so-page .home-location { margin-top: 2px; font-size: 13px; font-style: italic; }
.home-beds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.home-beds li { padding: 2px 8px; border: 1px solid rgba(52, 37, 40, 0.3); border-radius: 999px; font-size: 11px; }
.so-page .home-price { margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.home-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.home-price + .home-foot { margin-top: 14px; border-top: 1px solid rgba(52, 37, 40, 0.15); }
.so-page .home-note { font-size: 12px; line-height: 1.3; }
.btn-xs { flex: none; min-height: 34px; padding: 0 14px; font-size: 12px; }
.homes-empty { margin-top: 20px; }
.homes-empty[hidden] { display: none; }

/* Map view: static UK map with pins, list alongside */
/* In map view the whole section turns charcoal and the list floats beside the map */
.homes-list { transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.homes-list.is-map { background: var(--charcoal); color: var(--cream); }
.homes-map {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px 5vw;
  align-items: center;
  margin-top: 16px;
}
.homes-map[hidden] { display: none; }
.homes-list.is-map .homes-empty { border-color: var(--cream); }
.map-stage { display: flex; flex-direction: column; align-items: center; }
.map-canvas { position: relative; width: min(100%, 560px); aspect-ratio: 595 / 907; }
.map-canvas > img { width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  z-index: 1;
  width: 30px;
  height: 31px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -90%);
  cursor: pointer;
  transition: transform 200ms var(--ease);
}
.map-pin svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.map-pin svg path { fill: var(--pin, var(--orange)); stroke: var(--cream); stroke-width: 10; stroke-linejoin: round; }
.map-pin svg circle { fill: var(--charcoal); }
.map-pin.tag-pink, .key-dot.tag-pink { --pin: var(--pink); background: none; }
.map-pin.tag-green, .key-dot.tag-green { --pin: var(--green); background: none; }
.map-pin.tag-mixed { --pin: var(--orange); }
.map-pin:hover, .map-pin[aria-expanded="true"] { z-index: 3; transform: translate(-50%, -90%) scale(1.25); }
.map-pin:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.map-pin-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}
.map-card {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 14px;
  width: 240px;
  max-height: 100%;
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: map-card-in 220ms var(--ease);
}
.map-card[hidden] { display: none; }
@keyframes map-card-in { from { opacity: 0; transform: translateY(6px); } }
.map-card-item { display: grid; gap: 3px; justify-items: start; }
.map-card-item + .map-card-item { padding-top: 14px; border-top: 1px solid rgba(52, 37, 40, 0.15); }
.map-card-item h3 { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.so-page .map-card-item .home-price { margin: 4px 0 8px; font-size: 14px; }
.map-status { position: static; }
.map-card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.map-card-close:hover { background: rgba(52, 37, 40, 0.1); }
.so-page .map-key { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; }
.key-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--pin) !important; }
.map-key .key-dot + * , .map-key .key-dot { flex: none; }
.map-key .key-dot:not(:first-child) { margin-left: 12px; }

.map-list { display: grid; align-content: start; gap: 8px; }
.map-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(238, 222, 193, 0.18);
  border-radius: 18px;
  background: rgba(238, 222, 193, 0.06);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--ease);
}
.map-list button:hover, .map-list button.is-active { border-color: var(--cream); background: rgba(238, 222, 193, 0.12); }
.map-list button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.map-list strong { font-size: 17px; font-weight: 600; letter-spacing: -0.04em; }
.map-list .key-dot { grid-row: 1 / 3; }
.map-list-loc { grid-column: 2; font-size: 13px; font-style: italic; font-weight: 300; }

@media (max-width: 900px) {
  .homes-map { grid-template-columns: 1fr; }
}
/* phones: dock the scheme card across the bottom of the map */
@media (max-width: 640px) {
  .map-card { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: auto; max-height: 70%; }
}

/* Help links: small outlined boxes, two rows of three */
.homes-help { padding: clamp(48px, 5vw, 72px) 0 clamp(80px, 8vw, 110px); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 16px 56px 16px 24px;
  border: 2px solid var(--charcoal);
  border-radius: 22px;
  color: var(--charcoal);
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.help-tile .eyebrow { font-size: 13px; }
.help-tile h2 { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.help-tile:hover { background: var(--charcoal); color: var(--cream); }
.help-tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.help-arrow { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); transition: transform 160ms var(--ease); }
.help-arrow svg { display: block; width: 12px; height: 26px; color: var(--orange); }
.help-tile:hover .help-arrow { transform: translate(4px, -50%); }

@media (max-width: 1100px) { .homes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .homes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .homes-grid { grid-template-columns: 1fr; }
  .homes-bar { flex-direction: column; align-items: stretch; }
  .homes-filter-btn, .homes-view-btn { flex: 1 1 auto; padding: 0 16px; }
  .help-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Owners library
   ===================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lib-intro { padding-bottom: clamp(40px, 5vw, 64px); }
.lib-intro .lib-jump { position: relative; z-index: 2; }
/* phones: photo as a band across the top, cropped to her face and the keys,
   fading to solid cream just above the search */
@media (max-width: 640px) {
  .lib-intro.page-intro-photo { --band: 62svh; min-height: 0; padding-top: calc(var(--band) - 150px); }
  .lib-intro .own-intro-bg { bottom: auto; height: var(--band); object-position: 34% 50%; }
  .lib-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: var(--band);
    background: linear-gradient(180deg, rgba(238, 222, 193, 0) 45%, rgba(238, 222, 193, 0.8) 80%, var(--cream) 100%);
  }
}
.lib-intro .page-intro-inner { align-items: end; }
.lib-search { display: block; margin-top: 24px; }
.lib-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: #f6ecd8;
  font-size: 17px;
  outline: none;
}
.lib-search input:focus { border-color: var(--orange); }

.lib { padding-bottom: clamp(80px, 8vw, 110px); }
.lib-section { padding-top: clamp(36px, 4vw, 56px); scroll-margin-top: 110px; }
.lib-section[hidden] { display: none; }
.lib-heading {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--charcoal);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.lib-grid li[hidden] { display: none; }
.lib-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 96px;
  padding: 16px 56px 16px 22px;
  border: 2px solid var(--charcoal);
  border-radius: 20px;
  color: var(--charcoal);
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.lib-tile h3 { font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; }
.so-page .lib-tile p { margin-top: 4px; font-size: 14px; line-height: 1.35; }
a.lib-tile:hover { background: var(--charcoal); color: var(--cream); }
a.lib-tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
a.lib-tile:hover .help-arrow { transform: translate(4px, -50%); }
.lib-tile.is-soon { border-style: dashed; border-color: rgba(52, 37, 40, 0.4); }
.lib-soon {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 37, 40, 0.08);
  font-size: 11px;
  font-weight: 600;
}
.lib-tile.is-soon h3 { padding-right: 64px; }
.lib-more { margin-top: 16px; background: none; }
.lib-more[hidden] { display: none; }
.lib-none { margin-top: 40px; }
.lib-none[hidden] { display: none; }

@media (max-width: 960px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lib-grid { grid-template-columns: 1fr; }
}

/* Owners: single-column intro, search under the title, section buttons in 2 rows of 5 */
.lib-intro-inner { display: grid; justify-items: start; gap: 0; }
.lib-intro-inner .page-lead { margin-top: 18px; max-width: 34ch; }
.lib-intro-inner .lib-search { width: min(100%, 640px); margin-top: 24px; }
.lib-jump { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.so-jump-dark.lib-jump a { flex: none; min-height: 48px; padding: 0 10px; }
@media (max-width: 900px) { .lib-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Downloadable document tiles */
.so-page .lib-intro-line { margin-top: 12px; font-size: 15px; font-style: italic; }
.doc-tag {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 1px 7px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
/* Document tiles: Open (new tab) and Download buttons */
.lib-doc { justify-content: flex-start; padding-right: 22px; }
.doc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.doc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.doc-btn:hover { background: var(--charcoal); color: var(--cream); }
.doc-btn-dark { background: var(--charcoal); color: var(--cream); }
.doc-btn-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--charcoal); }
.doc-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* =====================================================================
   Contact page
   ===================================================================== */
/* nav pill needs an edge when the page starts on charcoal */
body.top-dark .nav-pill, body.top-dark .menu-toggle { box-shadow: 0 0 0 1px rgba(238, 222, 193, 0.18), 0 6px 24px rgba(52, 37, 40, 0.18); }

body.top-dark main { background: var(--charcoal); color: var(--cream); }
.contact-dark {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(150px, 15vw, 210px) 0 clamp(64px, 6vw, 90px);
}
.contact-dark .section-title { font-size: clamp(52px, 6vw, 96px); line-height: 0.95; }
.contact-stack { display: grid; gap: clamp(40px, 5vw, 64px); }
.contact-stack .contact-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 6vw; align-items: end; }
.contact-stack .contact-copy .eyebrow, .contact-stack .contact-copy .section-title { grid-column: 1; }
.contact-stack .contact-copy p:not(.eyebrow) { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.contact-stack .contact-copy .btn { grid-column: 2; margin: 0; justify-self: start; }
/* form spread across the page: no box, three columns */
.contact-dark .contact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 5vw;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.contact-dark .field { border-bottom-color: rgba(238, 222, 193, 0.6); }
.contact-dark .field:focus-within { border-bottom-color: var(--orange); }
.contact-dark .field input::placeholder { color: #bdae90; }
.contact-dark .field-select select:invalid { color: #bdae90; }
.contact-dark .field-select select option { color: var(--charcoal); }
.contact-dark .field-select::after { border-color: var(--cream); }
.contact-dark .form-submit { align-items: end; }

.ct-list {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0 0 clamp(90px, 9vw, 120px);
}
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ct-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 26px 24px;
  border: 2px solid rgba(238, 222, 193, 0.35);
  border-radius: 24px;
}
.ct-card h3 { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.so-page .ct-desc { font-size: 15px; opacity: 0.85; }
.so-page .ct-line { display: grid; gap: 0; margin-top: 4px; font-size: 15px; }
.ct-line span { font-size: 13px; font-style: italic; font-weight: 300; opacity: 0.8; }
.ct-line a { overflow-wrap: anywhere; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.ct-line a[href^="mailto"] { font-size: 16px; }
.ct-line a:hover { color: var(--orange-light); }
.ct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.ct-link svg { width: 9px; height: 20px; color: var(--orange); transition: transform 160ms var(--ease); }
.ct-link:hover svg { transform: translateX(4px); }

@media (max-width: 960px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .contact-dark .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-stack .contact-copy { grid-template-columns: 1fr; }
  .contact-stack .contact-copy p:not(.eyebrow), .contact-stack .contact-copy .btn { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; }
  .contact-dark .contact-form { grid-template-columns: 1fr; gap: 26px; }
}

/* =====================================================================
   Application form
   ===================================================================== */
.app-intro { padding-bottom: clamp(48px, 5vw, 72px); }
.app-intro .page-intro-inner { align-items: start; }
.app-intro .page-intro-copy p:not(.page-lead) { max-width: 62ch; }
.app { background: var(--cream); padding-bottom: clamp(90px, 9vw, 120px); }
.app-form { display: grid; gap: clamp(48px, 5vw, 64px); }
.app-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.app-heading {
  width: 100%;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--charcoal);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 5vw; margin-top: 28px; }
.app-grid .field-wide { grid-column: 1 / -1; }
.app-grid .field input { font-size: 19px; }
.app-grid .field input[type="date"] { min-height: 34px; }
.app-submit { display: grid; justify-items: start; gap: 22px; max-width: 820px; }
.so-page .app-consent { font-size: 14px; line-height: 1.5; }
.app-check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; cursor: pointer; }
.app-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--charcoal); cursor: pointer; }
.app-form .form-status { font-size: 15px; }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; gap: 24px; } }

/* =====================================================================
   STAIRs page
   ===================================================================== */
.link-soon { text-decoration: underline dotted; text-underline-offset: 3px; } /* "here" links waiting for their document */
.stairs-page :is(p, li) a:not(.btn) { color: inherit; text-underline-offset: 3px; } /* text links only, so the jump pills keep their hover colours */
.stairs-page .arrow-list li { font-size: 17px; }
.stairs-page .so-what .arrow-list { margin-top: 8px; }
.stairs-rights, .stairs-partners { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.stairs-tiles { margin-top: 48px; }
.stairs-tiles .so-tile { min-height: 300px; }
.stairs-tiles .so-tile h3 { margin-top: 6px; font-size: clamp(40px, 4.2vw, 62px); font-weight: 600; line-height: 0.95; letter-spacing: -0.06em; }
.stairs-escalation .btn-row { margin-top: 32px; }
.stairs-photo { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; margin-top: 24px; border-radius: var(--radius-card); object-fit: cover; object-position: 50% 38%; }
.stairs-photo-soon { display: grid; place-items: center; border: 2px dashed rgba(52, 37, 40, 0.4); font-size: 18px; font-style: italic; font-weight: 300; }
@media (max-width: 640px) { .stairs-photo { aspect-ratio: 3 / 2; } }
.stairs-btn-light { border-color: var(--cream); color: var(--cream); }
.stairs-btn-light:hover { background: var(--cream); color: var(--charcoal); }
.stairs-partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.stairs-partner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px; border-radius: var(--radius-card); background: var(--charcoal); color: var(--cream); }
/* both partner logos are cream, so the cards are charcoal */
/* logos sit in the same 88px band so the text lines up */
.stairs-partner img { width: auto; height: 88px; }
.stairs-partner .stairs-logo-sevet { height: 44px; margin: 22px 0; }
.stairs-partner p { flex: 1; }
.stairs-sub { margin-top: 72px; font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.stairs-sub + p { margin-top: 20px; max-width: 70ch; }
.stairs-blocks, .stairs-registers { margin-top: 40px; }
.stairs-page .pmv-item h4 { padding-bottom: 14px; border-bottom: 2px solid currentColor; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.stairs-published { background: var(--cream); padding: 0 0 clamp(90px, 9vw, 120px); }
.stairs-published .so-drop { margin-top: 0; padding-bottom: 28px; }
.stairs-published .so-drop:first-of-type { margin-top: 40px; }
.stairs-published .so-drop:last-child { border-bottom: 2px solid var(--charcoal); }
.stairs-published .board-arrow { flex: none; }
.stairs-published .so-drop-title { font-size: clamp(24px, 2.4vw, 34px); }
.stairs-published .so-drop-body .so-big { margin-top: 0; }
.stairs-published .so-drop-body .arrow-list + p, .stairs-published .so-drop-body .so-two + p { margin-top: 24px; }
.stairs-published .btn-row { margin-top: 24px; }
@media (max-width: 960px) {
  .stairs-partner-grid, .stairs-page .so-tiles { grid-template-columns: 1fr; }
}

/* =====================================================================
   Investors page
   ===================================================================== */
.inv-reg, .inv-docs { background: var(--cream); padding: clamp(90px, 9vw, 120px) 0; }
.inv-reg .btn-row { margin-top: 32px; }
.btn-soon { opacity: 0.45; cursor: default; } /* button waiting for its link */
.inv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 5vw; margin-top: 48px; }
.inv-stats .stat-num { font-size: clamp(80px, 9vw, 150px); }
.inv-stats .stat-label { font-size: clamp(18px, 1.8vw, 26px); }
.stat-orange .stat-num { color: var(--orange-light); }
.inv-stats .inv-label-wide { max-width: none; } /* "Shared Ownership" on one line, "homes" below */
@media (max-width: 760px) { .inv-label-wide br { display: none; } } /* one line on phones, like the others */
.inv-page .inv-asat { margin-top: 24px; font-size: 15px; opacity: 0.7; }
.inv-docs .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
.inv-page .inv-note { margin-top: 24px; font-style: italic; }
.inv-contact { background: var(--cream); padding: 0 0 clamp(90px, 9vw, 120px); }
.inv-contact-tile { min-height: 0; }
@media (max-width: 760px) {
  .inv-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .inv-docs .lib-grid { grid-template-columns: 1fr; }
}

/* Regulation: board (cream) follows Registration (cream), and Homes England
   (charcoal) leads into Track Record (charcoal), so thin lines mark the joins */
.reg-board { border-top: 2px solid rgba(52, 37, 40, 0.12); }
.reg-he + .inv-record { border-top: 1px solid rgba(238, 222, 193, 0.15); }
/* Regulation: Homes England partnership */
.reg-he .so-split { align-items: center; }
.reg-he-logo { max-width: 320px; } /* cream cut-out logo straight on the charcoal */
.reg-he-logo img { width: 100%; height: auto; }
.reg-he-stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 32px; }
.reg-he-stats li { display: grid; gap: 4px; }
.reg-he-stats strong { font-size: clamp(44px, 5vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -0.06em; color: var(--orange-light); }
.reg-he-stats span { font-size: 16px; }
@media (max-width: 960px) { .reg-he-logo { max-width: 200px; } }
/* About now ends on the dark foundations section, so mark where the footer starts */
main > .foundations:last-child { border-bottom: 1px solid rgba(238, 222, 193, 0.15); }
