/* Colorado Custom Home Builder
   Brand: black #000, white #FFF, ladder red #B5232F.
   Display: Georgia Regular, sentence case. Body: Avenir Next (Arial fallback). */

:root {
  --black: #000;
  --white: #fff;
  --red: #B5232F;
  --ink: #000;
  --grey-950: #0a0a0a;
  --grey-900: #111;
  --grey-850: #161616;
  --grey-800: #1d1d1d;
  --grey-600: #5f5f5f;
  --grey-400: #9c9c9c;
  --grey-300: #c9c9c9;
  --grey-200: #e2e2e2;
  --grey-100: #f3f3f3;
  --line-dark: rgba(255, 255, 255, .16);
  --line-light: rgba(0, 0, 0, .12);

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, Arial, sans-serif;

  --header-height: 90px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 82rem;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-height); }
@media (prefers-reduced-motion: no-preference) { html:not(.reduce-motion) { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.stages :focus-visible, .terrain :focus-visible, .contact :focus-visible,
.run :focus-visible, .masthead :focus-visible, .space :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--black); padding: .75rem 1rem;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Labels */
.eyebrow, .kicker, .panel__kicker, .gauge__label, .panel__specs dt {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
}
.kicker {
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 1rem;
}
.kicker--light { color: var(--grey-300); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .74rem; letter-spacing: .34em; color: var(--grey-400);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--solid:hover { background: transparent; color: var(--white); }
.btn--line { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* Photo placeholders: replace with approved photography */
.ph {
  background-color: var(--grey-850);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px);
}
.ph__note {
  position: absolute; right: 1rem; bottom: 1rem; max-width: 22rem;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .45); text-align: right;
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-height);
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.masthead__nav {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.masthead__list { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.masthead__list--left { justify-content: flex-end; padding-right: clamp(2rem, 4vw, 4rem); }
.masthead__list--right { justify-content: flex-start; padding-left: clamp(2rem, 4vw, 4rem); }
.masthead__list a {
  position: relative; display: inline-block; padding: .6rem 0;
  font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.masthead__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.masthead__list a:hover::after, .masthead__list a:focus-visible::after { transform: scaleX(1); }
.masthead__logo { display: block; height: var(--header-height); }
.masthead__logo img { height: 100%; width: auto; }

/* ---------- Run: hero + handover over one photograph ---------- */
.run { position: relative; background: var(--black); color: var(--white); }
.run__track { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.run__photo {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--black);
}
.run__frame {
  position: absolute; inset: 0; overflow: hidden;
  transform-origin: 56% 50%;
  background: var(--grey-900);
}
.run__rig { position: absolute; inset: 0; }
.run__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.04);
}
.run__img .ph__note { bottom: 7rem; right: 5rem; }
.run__vignette {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(0, 0, 0, .90) 0%, rgba(0, 0, 0, .72) 34%, rgba(0, 0, 0, .30) 62%, rgba(0, 0, 0, .10) 100%);
}
.run__shade { position: absolute; inset: 0; background: var(--black); opacity: 0; }

.motion .run__rig { animation: sway 9s ease-in-out infinite; transform-origin: 56% 60%; }
@keyframes sway {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.003) rotate(.12deg); }
}

.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-height) + 3rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  max-width: var(--max); margin: 0 auto;
}
.hero__copy { max-width: 100%; }
.hero__lede, .hero__actions { max-width: 38rem; }
.hero__eyebrow {
  font-weight: 500; font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--grey-300); margin-bottom: 1.4rem;
}
.hero__eyebrow span::before {
  content: ""; display: inline-block; width: 2.25rem; height: 1px; background: var(--red);
  vertical-align: middle; margin-right: .9rem; position: relative; top: -2px;
}
.hero__title {
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.4rem);
  line-height: 1.02; max-width: 14.5em; letter-spacing: -.012em;
}
.hero__lede {
  margin-top: 1.6rem; max-width: 36rem;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: #dedede;
}
.hero__actions { margin-top: 2.2rem; }
.hero__actions .enter { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__hint {
  position: absolute; right: var(--gutter); bottom: clamp(4rem, 10vh, 7rem);
  display: flex; align-items: center; gap: .8rem;
  writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--grey-300);
}
.hero__hint::after { content: ""; width: 1px; height: 3.5rem; background: linear-gradient(var(--white), transparent); }

/* The largest element never waits on JavaScript */
.enter { display: block; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .enter { animation: enter 1.1s var(--ease) both; }
  html:not(.reduce-motion) .enter--0 { animation-delay: .1s; }
  html:not(.reduce-motion) .enter--1 { animation-delay: .25s; }
  html:not(.reduce-motion) .enter--2 { animation-delay: .4s; }
  html:not(.reduce-motion) .enter--3 { animation-delay: .55s; }
}
@keyframes enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.handover {
  position: relative; z-index: 1;
  padding: 32vh var(--gutter) 26vh;
  /* Static scrim for no-JS and reduced motion; removed when the scroll shade runs */
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .74) 20%, rgba(0, 0, 0, .92) 100%);
}
.motion .handover { background: none; }
.handover__inner { max-width: 64rem; margin: 0 auto; }
.handover .kicker { text-align: center; font-size: .9rem; letter-spacing: .22em; }
.handover__title {
  text-align: center;
  font-size: clamp(2.6rem, 1.2rem + 4vw, 5.4rem); line-height: 1.04;
  /* Wider than the text column so it can sit on two lines */
  width: min(calc(100vw - 2 * var(--gutter)), 84rem);
  position: relative; left: 50%; transform: translateX(-50%);
}
@media (min-width: 861px) {
  .handover__title .line { display: block; white-space: nowrap; }
}
.handover__lede {
  margin: 2rem auto 0; max-width: 48rem; text-align: center; text-wrap: balance;
  font-size: clamp(1.2rem, 1rem + .75vw, 1.6rem); line-height: 1.5; color: #ececec;
}
.tenets { margin-top: clamp(3rem, 7vh, 4.5rem); border-top: 1px solid var(--line-dark); }
.tenets__row {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line-dark);
}
.tenets dt {
  font-weight: 500; font-size: .92rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey-300); padding-top: .45rem;
}
.tenets dt::before {
  content: ""; display: inline-block; width: .9rem; height: 1px; background: var(--red);
  vertical-align: middle; margin-right: .7rem; position: relative; top: -2px;
}
.tenets dd { color: #f0f0f0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.5; }

/* ---------- Stages ---------- */
.stages {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  padding: clamp(6rem, 14vh, 10rem) var(--gutter);
}
.stages__terrain {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 58%; opacity: .7; pointer-events: none;
}
.stages__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.stages__head { text-align: center; margin-bottom: clamp(3.5rem, 8vh, 6rem); }
.stages__title {
  margin-top: 1.6rem;
  font-size: clamp(2.6rem, 1rem + 6.4vw, 7.4rem); line-height: .96; letter-spacing: -.02em;
}
.stages__title .w { display: inline-block; }
.stages__intro { margin: 1.4rem auto 0; max-width: 36rem; color: #d9d9d9; }

.stages__list { border-top: 1px solid var(--line-dark); }
.stage {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.6rem, 3.5vh, 3rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.stage__index {
  font-family: var(--sans); font-weight: 500; font-size: 1.1rem;
  letter-spacing: .08em; color: var(--white); font-variant-numeric: tabular-nums;
  min-width: 2.2rem;
}
.stage__index::after {
  content: ""; display: block; width: 1.4rem; height: 2px; background: var(--red); margin-top: .5rem;
}
.stage__word {
  font-size: clamp(2.4rem, 6.3vw, 6.4rem); line-height: .9; letter-spacing: -.03em;
  white-space: nowrap;
}
.stage__drift { position: relative; display: inline-block; }
.stage__fill {
  position: absolute; inset: 0; color: var(--white);
  clip-path: inset(0 100% 0 0);
  -webkit-text-stroke: 0; pointer-events: none;
}
.motion .stage__text { color: transparent; -webkit-text-stroke: 1px rgba(200, 200, 200, .4); }
.stage__copy {
  justify-self: end; max-width: 42ch; text-align: right;
  font-size: .95rem; color: var(--grey-400);
}

/* ---------- Terrain panels ---------- */
.terrain { background: var(--black); color: var(--white); }
.terrain__head {
  text-align: center; max-width: 52rem; margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(4rem, 10vh, 6rem);
}
.eyebrow--center { justify-content: center; }
.terrain__title { margin-top: 1.4rem; font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.6rem); line-height: 1.04; }
.terrain__intro { margin: 1.3rem auto 0; max-width: 38rem; color: #d9d9d9; }

.panel {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--grey-950);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.panel__frame { position: absolute; inset: 0; pointer-events: none; }
.panel__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 28% 50%; transform: scale(1.04);
}
.panel__photo .ph__note { right: auto; left: 3.5rem; bottom: 3.5rem; text-align: left; }
.panel__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .6) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, .75) 100%),
    linear-gradient(to right, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .42) 24%, rgba(0, 0, 0, .80) 43%, rgba(0, 0, 0, .88) 68%, rgba(0, 0, 0, .84) 100%);
}
.panel__grid {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) var(--gutter) 2.5rem;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: clamp(1.5rem, 4vw, 5rem); align-items: center;
}
.panel__num { display: flex; flex-direction: column; align-items: flex-start; }
.panel__digits {
  font-family: var(--serif);
  font-size: clamp(9rem, 20vw, 21rem); line-height: .78; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(181, 35, 47, .92);
  text-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.panel__unit {
  margin-top: 1.4rem;
  font-weight: 500; font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--white);
}
.panel__kicker { font-size: .72rem; letter-spacing: .24em; color: var(--grey-300); display: flex; align-items: center; gap: .8rem; }
.panel__kicker::before { content: ""; width: 1.6rem; height: 1px; background: var(--red); }
.panel__title {
  margin-top: 1rem; max-width: 20ch;
  font-size: clamp(1.7rem, 1rem + 2vw, 2.9rem); line-height: 1.06; color: var(--white);
}
.panel__text { margin-top: 1.2rem; max-width: 52ch; color: #d9d9d9; }
.panel__specs {
  display: flex; flex-wrap: wrap; gap: 1rem 2.4rem;
  margin-top: 1.6rem; padding: 1rem 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.panel__specs dt { font-size: .66rem; letter-spacing: .22em; color: var(--grey-400); }
.panel__specs dd { margin-top: .3rem; font-weight: 500; font-size: 1rem; color: var(--white); }
.panel__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.panel__chips li {
  padding: .35rem .6rem; border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 500; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #e6e6e6;
}
.panel__link {
  display: inline-flex; gap: .5rem; margin-top: 1.5rem;
  font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .45em; text-decoration-thickness: 1px;
}
.panel__link:hover { text-decoration-color: var(--white); }

.gauge { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .9rem; row-gap: 1rem; align-items: start; }
.gauge__label {
  grid-row: 1; grid-column: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .64rem; letter-spacing: .26em; color: var(--grey-400);
}
.gauge__ladder {
  grid-row: 1; grid-column: 2;
  position: relative; width: 22px; height: clamp(200px, 40vh, 380px);
}
.gauge__base, .gauge__fill {
  position: absolute; inset: 0;
  background:
    linear-gradient(currentColor, currentColor) left top / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right top / 3px 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(10% - 3px), currentColor calc(10% - 3px), currentColor 10%);
}
.gauge__base { color: rgba(255, 255, 255, .2); }
.gauge__fill { color: var(--red); clip-path: inset(0 0 calc((1 - var(--fill, 0)) * 100%) 0); }
.gauge__value {
  grid-row: 2; grid-column: 1 / -1; justify-self: end;
  font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white);
}

/* ---------- Section heads (light) ---------- */
.section-head { text-align: center; max-width: 48rem; margin: 0 auto clamp(3rem, 7vh, 4.5rem); padding: 0 var(--gutter); }
.section-head__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: 1.06; }
.section-head__lede { margin: 1.2rem auto 0; max-width: 36rem; color: var(--grey-600); }
.section-head__rule { display: block; width: 4.5rem; height: 4px; border-radius: 2px; background: var(--red); margin: 1.8rem auto 0; }
.section-head--dark .section-head__lede { color: #d4d4d4; }

/* ---------- Spaces: horizontal accordion ---------- */
.spaces { padding: clamp(5rem, 12vh, 8rem) 0; background: var(--white); }
.spaces__rail {
  display: flex; gap: .5rem;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: clamp(30rem, 72vh, 42rem);
}
.space {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  background: var(--grey-900); color: var(--white);
  transition: flex-grow .75s var(--ease);
}
.space.is-active { flex-grow: 7; }
.space__media { position: absolute; inset: 0; transition: transform 1.2s var(--ease); transform: scale(1.06); }
.space.is-active .space__media { transform: scale(1); }
.space__media .ph__note { top: 1.25rem; bottom: auto; opacity: 0; transition: opacity .3s ease; }
.space.is-active .space__media .ph__note { opacity: 1; }
.space::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .15) 100%);
}
.space__heading { position: static; }
.space__toggle {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; background: none; border: 0; color: var(--white); cursor: pointer; text-align: left;
}
.space__num {
  font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}
.space__num::after { content: ""; display: block; width: 1.2rem; height: 2px; margin: .5rem auto 0; background: var(--red); }
.space__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--serif); font-size: 1.5rem; white-space: nowrap;
}
.space.is-active .space__toggle {
  inset: auto auto 0 0; right: 0;
  flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 1.2rem;
  padding: 0 clamp(1.5rem, 3vw, 2.5rem) 0; bottom: calc(var(--body-h, 9rem) + 1.2rem);
  cursor: default;
}
.space.is-active .space__num::after { margin: .5rem 0 0; }
.space.is-active .space__label {
  writing-mode: horizontal-tb; transform: none;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1;
}
.space__body {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: min(38rem, calc(100vw - 2 * var(--gutter)));
  padding: 0 clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  color: #e4e4e4;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s ease, transform .5s var(--ease), visibility 0s linear .4s;
}
.space.is-active .space__body {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease .3s, transform .6s var(--ease) .3s, visibility 0s;
}
.space__link {
  display: inline-flex; gap: .5rem; margin-top: 1rem;
  font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .45em;
}

/* ---------- Prepare: stacking cards ---------- */
.prepare { position: relative; background: var(--black); color: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
/* Photo stays pinned behind the stacking cards; sticky works on iOS where background-attachment: fixed does not */
.prepare__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prepare__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.prepare__pin::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .7) 100%);
}
.prepare > .section-head, .prepare > .stack { position: relative; z-index: 1; }
.prepare .section-head__title { color: var(--white); }
.stack { max-width: 52rem; margin: 0 auto; }
.stack::after { content: ""; display: block; height: 4vh; }
.stack__card {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  background: var(--white); border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .08), 0 22px 48px -30px rgba(0, 0, 0, .55);
}
.stack__card + .stack__card, .stack__chev + .stack__card { margin-top: 1.1rem; }
.js .stack__card { position: sticky; top: calc(var(--header-height) + 1.4rem + (var(--i, 0) * 14px)); }
.stack__badge {
  display: grid; place-items: center;
  width: clamp(52px, 6vw, 66px); aspect-ratio: 1; border-radius: 8px;
  background: var(--black); color: var(--white);
  font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-variant-numeric: tabular-nums;
}
.stack__body h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); line-height: 1.15; }
.stack__body p { margin-top: .6rem; color: #2a2a2a; max-width: 60ch; }
.stack__chev {
  position: relative; z-index: 1;
  display: grid; place-items: center; height: 3.2rem; margin-top: 1.1rem;
  color: var(--red); opacity: 0; transition: opacity .6s ease;
}
.stack__chev.is-visible { opacity: 1; }
.stack__chev svg { width: 26px; height: 26px; animation: bob 1.9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-22%); } 50% { transform: translateY(22%); } }

/* ---------- Contact ---------- */
.contact { background: var(--black); color: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.form { max-width: 52rem; margin: 0 auto; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--wide { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-300); }
.field__opt { text-transform: none; letter-spacing: .02em; color: var(--grey-400); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .8rem 1rem;
  font: inherit; color: var(--white); background: var(--grey-900);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 0;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input::placeholder { color: #8f8f8f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 1px var(--white); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.btn--light:hover { color: var(--white); }
.form__status { color: var(--grey-300); min-height: 1.5em; }

/* ---------- Footer ---------- */
.footer { background: var(--white); text-align: center; padding: clamp(4rem, 10vh, 6rem) var(--gutter) 2.5rem; }
.footer__logo { display: inline-block; padding: 1.5rem; }
.footer__logo img { width: 400px; height: auto; }
.footer__line { margin: 1.2rem auto 0; max-width: 32rem; color: var(--grey-600); }
.footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-top: 2.2rem; }
.footer__nav a { font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: .6rem 0; display: inline-block; }
.footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .45em; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: var(--max); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line-light);
  font-size: .82rem; color: var(--grey-600);
}
.motion-toggle {
  background: none; border: 1px solid var(--line-light); padding: .55rem .9rem; min-height: 2.75rem;
  font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}
.motion-toggle[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* ---------- Mobile dock and sheet ---------- */
.dock { display: none; }
.sheet {
  width: 100%; max-width: none; margin: auto 0 0; padding: .75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border: 0; background: var(--black); color: var(--white);
}
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet[open] { animation: sheet-up .35s var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grip { width: 2.5rem; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin: 0 auto 1rem; }
.sheet__list a {
  display: flex; align-items: center; min-height: 3.5rem; border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif); font-size: 1.5rem; text-decoration: none;
}
.sheet__close {
  width: 100%; min-height: 3.25rem; margin-top: 1rem; background: var(--white); color: var(--black); border: 0;
  font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .masthead__list { display: none; }
  .masthead__nav { grid-template-columns: 1fr; justify-items: center; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 2fr; gap: 1px;
    background: rgba(255, 255, 255, .14);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  }
  .dock__btn {
    display: flex; align-items: center; justify-content: center; min-height: 3.6rem;
    background: var(--black); color: var(--white); border: 0; text-decoration: none; cursor: pointer;
    font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .dock__btn--primary { background: var(--white); color: var(--black); }
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 860px) {
  .hero__hint { display: none; }
  .run__img .ph__note { top: calc(var(--header-height) + 1rem); bottom: auto; right: 1rem; }
  .panel__specs { display: grid; grid-template-columns: 1fr; gap: .8rem; }
  .panel__specs > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: baseline; gap: 1rem; }
  .panel__specs dd { margin-top: 0; }
  .tenets__row { grid-template-columns: 1fr; gap: .6rem; }

  .stage { grid-template-columns: 1fr; gap: .7rem; }
  .stage__word { white-space: normal; }
  .stage__copy { justify-self: start; text-align: left; }

  .panel { position: relative; min-height: auto; }
  .panel__photo { object-position: 30% 50%; }
  .panel__scrim { background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .84) 32%, rgba(0, 0, 0, .92) 100%); }
  .panel__grid { grid-template-columns: 1fr; padding-top: 4.5rem; padding-bottom: 4.5rem; gap: 2rem; }
  .panel__digits { font-size: clamp(6.5rem, 30vw, 10rem); }
  .gauge { display: none; }

  .spaces__rail { flex-direction: column; height: auto; }
  .space { flex: none; height: 4.75rem; transition: height .6s var(--ease); }
  .space.is-active { height: 30rem; }
  .space__toggle { flex-direction: row; justify-content: flex-start; align-items: center; gap: 1rem; padding: 0 1.25rem; }
  .space__num::after { display: none; }
  .space__label { writing-mode: horizontal-tb; transform: none; font-size: 1.35rem; }
  .space.is-active .space__toggle { padding: 0 1.25rem; }
  .space__media .ph__note { display: none; }
  .space.is-active .space__media .ph__note { display: block; }

  .form__grid { grid-template-columns: 1fr; }
  .footer__logo img { width: 360px; }
  .footer__base { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .footer__logo { padding: 1rem 0; }
  .footer__logo img { width: 100%; max-width: 360px; }
  .hero__actions .btn { width: 100%; }
}

/* Reduced motion: everything readable and still */
@media (prefers-reduced-motion: reduce) {
  .stack__card { position: relative !important; top: auto !important; }
  .stack__chev { opacity: 1; }
  .stack__chev svg { animation: none; }
  .space, .space__media, .space__body { transition: none !important; }
}
.reduce-motion .stack__card { position: relative !important; top: auto !important; }
.reduce-motion .stack__chev { opacity: 1; }
.reduce-motion .stack__chev svg { animation: none; }
.reduce-motion .space, .reduce-motion .space__media, .reduce-motion .space__body { transition: none !important; }

/* ---------- Background media (atmosphere only, empty alt) ---------- */
.run__frame { background-size: cover; background-position: center; }
.media-fill > img, .media-fill > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media-fill > video { opacity: 0; transition: opacity 1.2s ease; }
.media-fill > video.is-playing { opacity: 1; }
.panel__photo > img, .panel__photo > video { object-position: 28% 50%; }
.space__media > img { object-position: 50% 50%; }
@media (max-width: 860px) {
  .panel__photo > img, .panel__photo > video { object-position: 30% 50%; }
}

/* Stages sit inside the run, over the pinned hero video */
.run .stages { position: relative; z-index: 1; background: rgba(0, 0, 0, .86); }
.motion .run .stages { background: transparent; }
.run .stages__terrain { opacity: .35; }

/* Headings set on two deliberate lines: wider than their text column on desktop */
.two-line {
  width: min(calc(100vw - 2 * var(--gutter)), 84rem);
  position: relative; left: 50%; transform: translateX(-50%);
}
@media (min-width: 861px) {
  .two-line .line { display: block; white-space: nowrap; }
}

.prepare .stack__card { color: var(--ink); }

/* =====================================================================
   Inner pages
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-link { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; text-decoration-thickness: 1px; }
.inline-link:hover { text-decoration-color: currentColor; }
.masthead__list a[aria-current="page"]::after { transform: scaleX(1); }
.sheet__list a[aria-current="page"] { color: var(--grey-400); }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.crumbs li { font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-300); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--red); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* Inner hero: same pinned-photo run, a little shorter */
.hero--inner { min-height: 92vh; min-height: 92svh; }
.hero--inner .hero__title { font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.9rem); max-width: 16em; }
.hero--short { min-height: 78vh; min-height: 78svh; }

/* Section spacing shared by light sections */
.chapters, .types, .rows-section, .faq, .guide { padding: clamp(5rem, 12vh, 8rem) var(--gutter); background: var(--white); }
.types, .faq { background: var(--grey-100); }

/* Chapters: sticky index on the left, long-form copy on the right */
.chapters__list { max-width: 72rem; margin: 0 auto; border-top: 1px solid var(--line-light); }
.chapter {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vh, 4rem) 0; border-bottom: 1px solid var(--line-light);
}
.chapter__aside { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
.chapter__num {
  display: block; font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 5vw, 8rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.chapter__title { margin-top: 1rem; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; }

/* Long-form text */
.prose { color: #1d1d1d; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.12; margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; list-style: disc; }
.prose li + li { margin-top: .5rem; }
.prose a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }
.prose a:hover { text-decoration-color: currentColor; }
.prose p { max-width: 68ch; }

/* Callouts */
.callout {
  position: relative; padding: 1.4rem 1.6rem 1.4rem 1.9rem; background: var(--grey-100);
  border-left: 3px solid var(--red);
}
.callout__label { font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.callout > * + * { margin-top: .6rem; }
.callout ul { padding-left: 1.1rem; list-style: disc; }
.callout--wide { max-width: 72rem; margin: clamp(2.5rem, 6vh, 4rem) auto 0; }

/* Comparison tables: scroll-safe, stacked on phones */
.compare { max-width: 100%; overflow-x: auto; margin-top: 1.6rem; }
.compare--wide { max-width: 72rem; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--white); }
.compare caption { caption-side: top; text-align: left; padding-bottom: .8rem; font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-600); }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.compare thead th { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; border-bottom: 2px solid var(--black); }
.compare tbody th { font-weight: 500; width: 26%; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: .9rem 0; border-bottom: 1px solid var(--line-light); }
  .compare tbody th { padding: 0 0 .4rem; border: 0; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
  .compare td { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .8rem; padding: .35rem 0; border: 0; }
  .compare td::before { content: attr(data-label); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-600); padding-top: .2rem; }
}

/* Numbered rows (light and dark) */
.rows { max-width: 72rem; margin: 0 auto; border-top: 1px solid var(--line-light); }
.rows__item {
  display: grid; grid-template-columns: 3.5rem minmax(0, 14rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline; padding: 1.8rem 0; border-bottom: 1px solid var(--line-light);
}
.rows__num { font-weight: 500; font-size: 1rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.rows__num::after { content: ""; display: block; width: 1.4rem; height: 2px; background: var(--red); margin-top: .45rem; }
.rows__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12; }
.rows__item p { color: #2a2a2a; max-width: 62ch; }
.rows--dark { border-top-color: var(--line-dark); }
.rows--dark .rows__item { border-bottom-color: var(--line-dark); }
.rows--dark .rows__item p { color: #d9d9d9; }

/* Questions band (dark) */
.questions { background: var(--black); color: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }

/* Planning guide copy */
.guide__inner { max-width: 52rem; margin: 0 auto; }
.guide--bring { background: var(--grey-100); }
.checklist { list-style: none !important; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  /* A single ladder rung: two rails and a step, in brand red */
  content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px;
  border-left: 2px solid var(--red); border-right: 2px solid var(--red);
  background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat;
}
.checklist--dark li { color: #e2e2e2; }

/* Light variant of the stacking cards */
.prepare--light { background: var(--grey-100); color: var(--ink); }
.prepare--light .section-head__title { color: var(--ink); }

/* FAQ */
.faq__list { max-width: 56rem; margin: 0 auto; border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.25; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 1.6rem; color: #2a2a2a; max-width: 68ch; }

/* Closing call to action band */
.next { background: var(--black); color: var(--white); padding: clamp(4.5rem, 10vh, 7rem) var(--gutter); }
.next__inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.next__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.08; }
.next__copy p:last-child { margin-top: 1.2rem; color: #d9d9d9; max-width: 48ch; }
.next__actions { display: flex; flex-direction: column; gap: .9rem; }
.next__actions .btn { width: 100%; }

/* Contact page */
.contact--page { padding-top: clamp(4rem, 10vh, 6rem); }
.contact__grid {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}
.contact__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.contact__lede { margin: .8rem 0 2rem; color: #d4d4d4; }
.contact--page .form { max-width: none; }
.contact--page .form__foot { justify-content: flex-start; }
.contact__notes { display: grid; gap: 1.5rem; }
.contact__note { padding: 1.5rem 0 0; border-top: 1px solid var(--line-dark); }
.contact__note h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.contact__note p { color: #d4d4d4; }
.contact__note a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }
.contact__note .checklist li + li { margin-top: .5rem; }

/* Plain pages (legal, sitemap) */
.page-head {
  background: var(--black); color: var(--white); text-align: center;
  padding: calc(var(--header-height) + clamp(3rem, 8vh, 5rem)) var(--gutter) clamp(3rem, 8vh, 5rem);
}
.page-head .crumbs ol { justify-content: center; }
.page-head__title { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1.05; }
.page-head__meta { margin-top: 1rem; color: var(--grey-300); font-size: .9rem; }
.prose--page { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) var(--gutter) clamp(4rem, 10vh, 6rem); }
.sitemap-list { list-style: none !important; padding-left: 0 !important; }
.sitemap-list li { padding: .8rem 0; border-bottom: 1px solid var(--line-light); margin: 0 !important; }

/* Footer legal links */
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer__legal a { font-size: .8rem; color: var(--grey-600); text-decoration: none; }
.footer__legal a:hover, .footer__legal a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; }

@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; gap: 1.2rem; }
  .chapter__aside { position: static; display: flex; align-items: baseline; gap: 1rem; }
  .chapter__num { font-size: 3.4rem; }
  .chapter__title { margin-top: 0; }
  .rows__item { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .rows__item p { grid-column: 2; }
  .next__inner, .contact__grid { grid-template-columns: 1fr; }
  .hero--inner { min-height: 88svh; }
}

/* Two-line headings only break out of their column on desktop; on phones they wrap normally */
@media (max-width: 860px) {
  .two-line, .handover__title { width: auto; left: auto; transform: none; }
}
@media (max-width: 380px) {
  .handover__title { font-size: 2.15rem; }
}
@media (max-width: 700px) {
  .compare tbody th { width: 100%; }
  .compare caption { display: block; width: 100%; }
}

/* =====================================================================
   Service areas: mega menu, corridor ladder, area page pieces
   ===================================================================== */
.masthead { overflow: visible; }
.mega-trigger::before {
  /* small chevron after the label */
  content: ""; position: absolute; right: -1rem; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.mega-trigger[aria-expanded="true"]::before { transform: translateY(-30%) rotate(-135deg); }
.has-mega { margin-right: 1rem; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--black); color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.mega[hidden] { display: none; }
.js .mega.is-open { animation: mega-in .28s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega__inner {
  max-width: var(--max); margin: 0 auto; padding: 2.4rem var(--gutter) 2.6rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 2.5rem;
}
.mega__heading {
  font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-400);
  padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line-dark);
}
.mega__col ul { display: grid; gap: .2rem; }
.mega__col a { display: block; padding: .55rem 0; text-decoration: none; }
.mega__name { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; }
.mega__desc { display: block; margin-top: .2rem; font-size: .82rem; color: var(--grey-400); }
.mega__col a:hover .mega__name, .mega__col a:focus-visible .mega__name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }
.mega__card { padding: 1.2rem !important; border: 1px solid var(--line-dark); margin-top: .4rem; }
.mega__card:hover { border-color: var(--red); }
.mega__all { margin-top: 1rem; font-weight: 500; font-size: .76rem !important; letter-spacing: .16em; text-transform: uppercase; }

/* Mobile menu: areas group */
.sheet { max-height: 88vh; overflow-y: auto; }
.sheet__areas { border-bottom: 1px solid var(--line-dark); }
.sheet__areas summary { display: flex; align-items: center; min-height: 3.5rem; font-family: var(--serif); font-size: 1.5rem; cursor: pointer; }
.sheet__areas ul { padding: 0 0 1rem 1rem; }
.sheet__areas a { display: flex; align-items: center; min-height: 2.9rem; font-size: 1.05rem; text-decoration: none; color: #dcdcdc; }

/* Footer: service areas */
.footer__areas { max-width: 60rem; margin: 2.4rem auto 0; }
.footer__areas-title { font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-600); }
.footer__areas ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.4rem; margin-top: .8rem; }
.footer__areas a { font-size: .86rem; color: #2a2a2a; text-decoration: none; display: inline-block; padding: .35rem 0; }
.footer__areas a:hover, .footer__areas a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; }

/* Corridor ladder: the Front Range drawn as the brand's ladder, north at the top */
.corridor { background: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.corridor__ladder { position: relative; max-width: 44rem; margin: 0 auto; }
.corridor__ladder::before, .corridor__ladder::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--red);
}
.corridor__ladder::before { left: 0; }
.corridor__ladder::after { right: 0; }
.corridor__rung { position: relative; border-top: 3px solid var(--red); }
.corridor__rung:last-child { border-bottom: 3px solid var(--red); }
.corridor__rung a, .corridor__dir { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: 1.15rem 1.8rem; text-decoration: none; }
.corridor__dir { display: block; text-align: center; font-weight: 500; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--grey-600); padding: .7rem; }
.corridor__name { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.2; }
.corridor__meta { font-size: .84rem; color: var(--grey-600); text-align: right; }
.corridor__rung a { transition: background-color .25s ease; }
.corridor__rung a:hover, .corridor__rung a:focus-visible { background: var(--grey-100); }
.corridor__rung a:hover .corridor__name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }

/* Area pages: where we build */
.places { background: var(--black); color: var(--white); padding: clamp(4rem, 10vh, 6rem) var(--gutter); }
.places__inner { max-width: 52rem; margin: 0 auto; text-align: center; }
.places__title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.1; }
.places__inner > p { margin: 1rem auto 0; max-width: 40rem; color: #d4d4d4; }
.places__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.8rem; }
.places__list li {
  padding: .5rem .9rem; border: 1px solid rgba(255, 255, 255, .3);
  font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
}

/* Nearby areas inside the closing band */
.next__nearby { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: 1.6rem; }
.next__nearby p { font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-400); }
.next__nearby ul { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.next__nearby a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; }

@media (max-width: 1100px) {
  .mega { display: none !important; }
}
@media (max-width: 700px) {
  .corridor__rung a { grid-template-columns: 1fr; gap: .25rem; padding: 1rem 1.2rem; }
  .corridor__meta { text-align: left; }
}
/* Section headings get a wider measure so long titles settle on two lines */
.section-head { max-width: 60rem; }
.section-head__lede { max-width: 38rem; }
.compare caption.visually-hidden, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
/* Guard against any stray horizontal overflow on narrow phones (propagates to the viewport; sticky still works) */
html { overflow-x: clip; }

/* =====================================================================
   Resource guides: lot checklist, cost drivers, timeline, glossary, hub
   ===================================================================== */
/* Lot checklist */
.lotcheck-section { background: var(--black); color: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.lotcheck { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lotcheck__item { border: 0; margin: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.lotcheck__item:first-child { border-top: 1px solid var(--line-dark); }
.lotcheck__item legend { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; padding: 0; float: left; width: 100%; }
.lotcheck__opts { clear: both; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .8rem; }
.lotcheck__opts label { position: relative; cursor: pointer; }
.lotcheck__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lotcheck__opts label { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid rgba(255, 255, 255, .3); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.lotcheck__opts label:has(input:checked) { background: var(--white); color: var(--black); border-color: var(--white); }
.lotcheck__opts label:has(input:focus-visible) { outline: 2px solid var(--white); outline-offset: 3px; }
.lotcheck__result { position: sticky; top: calc(var(--header-height) + 1.5rem); padding: 1.6rem; border: 1px solid var(--line-dark); }
.lotcheck__score { font-family: var(--serif); font-size: 1.6rem; }
.lotcheck__count { color: var(--white); }
.lotcheck__empty { margin-top: .8rem; color: var(--grey-300); }
.lotcheck__next { margin-top: 1rem; padding-left: 1.2rem; list-style: decimal; color: #e2e2e2; }
.lotcheck__next li + li { margin-top: .7rem; }
.lotcheck__next li::marker { color: var(--red); }

/* Cost drivers */
.drivers-section { background: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.drivers { max-width: 72rem; margin: 0 auto; }
.drivers__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.drivers__tabs button { min-height: 2.9rem; padding: 0 1.2rem; background: none; border: 1px solid var(--line-light); cursor: pointer; font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.drivers__tabs button[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.drivers__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.driver { background: var(--white); padding: 1.6rem; transition: opacity .3s ease, background-color .3s ease; }
.driver__title { font-size: 1.35rem; line-height: 1.2; }
.driver p { margin-top: .6rem; color: #2a2a2a; }
.driver .driver__lots { font-size: .8rem; color: var(--grey-600); }
.driver.is-dim { opacity: .35; }
.driver.is-hot { background: var(--grey-100); box-shadow: inset 3px 0 0 var(--red); }

/* Selections timeline: a vertical ladder */
.timeline-section { background: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.timeline { max-width: 52rem; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.6rem; top: 0; bottom: 0; width: 3px; background: var(--red); }
.timeline__stage { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.6rem; padding-bottom: 2.4rem; }
.timeline__marker { position: relative; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; background: var(--black); color: var(--white); font-family: var(--serif); font-size: 1.2rem; border-radius: 6px; }
.timeline__body h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; padding-top: .45rem; }
.timeline__body .checklist { margin-top: 1rem; list-style: none; padding: 0; }
.timeline__body .checklist li + li { margin-top: .45rem; }
.timeline__why { margin-top: .9rem; color: var(--grey-600); font-size: .95rem; }

/* Glossary */
.glossary-section { background: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.glossary { max-width: 56rem; margin: 0 auto; }
.glossary__search input { width: 100%; min-height: 3.4rem; padding: .8rem 1.1rem; font: inherit; border: 1px solid var(--line-light); border-radius: 0; background: var(--grey-100); }
.glossary__search input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.glossary__count { margin-top: .8rem; font-size: .85rem; color: var(--grey-600); }
.glossary__list { margin-top: 1.4rem; border-top: 1px solid var(--line-light); }
.glossary__entry { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-light); }
.glossary__entry[hidden] { display: none; }
.glossary__entry dt { font-family: var(--serif); font-size: 1.2rem; }
.glossary__entry dd { color: #2a2a2a; }

/* Resources hub */
.resources { background: var(--white); padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.resource-group { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 2.2rem 0; border-top: 1px solid var(--line-light); }
.resource-group:last-child { border-bottom: 1px solid var(--line-light); }
.resource-group__title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.resource-group__list li + li { border-top: 1px solid var(--line-light); }
.resource-group__list a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.2rem 0; text-decoration: none; }
.resource__name { font-family: var(--serif); font-size: 1.3rem; }
.resource__desc { color: var(--grey-600); }
.resource__arrow { color: var(--red); transition: transform .25s var(--ease); }
.resource-group__list a:hover .resource__name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }
.resource-group__list a:hover .resource__arrow { transform: translateX(4px); }

@media (max-width: 960px) {
  .drivers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lotcheck { grid-template-columns: 1fr; }
  .lotcheck__result { position: static; }
  .glossary__entry { grid-template-columns: 1fr; gap: .4rem; }
  .resource-group { grid-template-columns: 1fr; }
  .resource-group__list a { grid-template-columns: minmax(0, 1fr) auto; }
  .resource__desc { grid-column: 1; }
}
@media (max-width: 600px) {
  .drivers__list { grid-template-columns: 1fr; }
}

/* Stages headline: one line on desktop, sized to the viewport so it always fits */
@media (min-width: 861px) {
  .stages__title { font-size: clamp(2.6rem, 4.9vw, 5.6rem); white-space: nowrap; }
}
.footer__areas-title a { color: inherit; text-decoration: none; }
.footer__areas-title a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; }
.form__turnstile { margin-top: 1.6rem; display: flex; justify-content: center; min-height: 65px; }

/* ---------- Articles (blog) ---------- */
.article { padding-top: clamp(3.5rem, 9vh, 6rem); }
.article .guide__inner { max-width: 46rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 2.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-light);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-600); }
.article__meta span:first-child { color: var(--red); }
.article__body { font-size: clamp(1.03rem, 1rem + .2vw, 1.12rem); line-height: 1.65; }
.article__body h2 { font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.1rem); margin-top: 2.8rem; }
.article__body blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--red); font-family: var(--serif); font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: .95rem; }
.prose caption { text-align: left; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-600); padding-bottom: .7rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line-light); }
.prose thead th { border-bottom: 2px solid var(--black); font-weight: 600; }
.prose tbody th { font-weight: 600; }
.article__byline { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); font-size: .9rem; color: var(--grey-600); max-width: 68ch; }
@media (max-width: 640px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.article-cards { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.6rem; }
.article-card a { display: flex; flex-direction: column; gap: .55rem; height: 100%; text-decoration: none; color: inherit; }
.article-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-200); margin-bottom: .5rem; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card a:hover .article-card__img img { transform: scale(1.04); }
.article-card__meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.article-card__title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.22; }
.article-card a:hover .article-card__title { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .22em; }
.article-card__desc { color: var(--grey-600); font-size: .95rem; }
.article-card--page a { padding: 1.4rem; border: 1px solid var(--line-light); background: var(--white); justify-content: flex-end; min-height: 9rem; }
.article-cards--index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.4rem; }
.article-cards__empty { grid-column: 1 / -1; color: var(--grey-600); }
.blog-index .guide__inner, .article-next .guide__inner { max-width: var(--max); }
.article-next__cta { margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.article-next__cta p { margin: 0; max-width: 40rem; font-family: var(--serif); font-size: 1.25rem; }
@media (max-width: 960px) { .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .article-cards, .article-cards--index { grid-template-columns: 1fr; } }
.article-next .btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.article-next .btn--solid:hover { background: transparent; color: var(--black); }
