/* Hybrid Spec Homes — site stylesheet.
   Layout concept: an architect's drawing set at night. Charcoal sheets, brushed-gold
   drafting lines, dimension callouts and a title block, with footage behind the sheets. */

:root {
  color-scheme: dark;

  --ink: #0d0f14;
  --ink-raised: #14171c;
  --ink-high: #1c2027;
  --bone: #f8f8f6;
  --bone-soft: #c9bca7;
  --steel: #8d929b;
  --platinum: #d5d8dd;
  --gold: #d4af37;
  --gold-hi: #f1dfa0;
  --gold-deep: #96761f;
  --hairline: rgba(212, 175, 55, 0.26);
  --hairline-soft: rgba(248, 248, 246, 0.12);

  --metal-gold: linear-gradient(100deg, #a8852a 0%, #f1dfa0 34%, #d4af37 58%, #96761f 100%);
  --metal-platinum: linear-gradient(100deg, #9da2ab 0%, #f4f5f7 38%, #c3c7ce 60%, #8b9099 100%);

  --font-display: "Montserrat", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --font-label: "Montserrat", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.15rem, 4vw, 4rem);
  --measure: 62ch;
  --sheet: 82rem;
  --section: clamp(4.5rem, 10vw, 9rem);
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
}

/* Film grain over everything, so footage and flat sheets share one surface. */
.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- Type ---------- */

.display,
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  text-wrap: balance;
}

.display {
  font-size: clamp(1.75rem, 4.7vw, 4.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

h2,
.h2 {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

h3,
.h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.28;
}

em.gold,
.gold {
  font-style: normal;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
  max-width: none;
}

.label--steel {
  color: var(--steel);
}

p {
  margin: 0;
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  line-height: 1.6;
  color: var(--bone);
}

.soft {
  color: var(--bone-soft);
}

.fine {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--steel);
}

.foot .fine {
  max-width: 96ch;
}

.fine a {
  color: var(--bone-soft);
}

/* ---------- Layout ---------- */

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

.section {
  padding-block: var(--section);
}

.section--raised {
  background: var(--ink-raised);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.stack--wide {
  gap: clamp(2rem, 4vw, 3.5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split > * {
  min-width: 0;
}

/* Dimension line: a drafting callout that measures the thing under it. */
.dim {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
}

.dim::before,
.dim::after {
  content: "";
  flex: 1;
  height: 0.65rem;
  border-block-end: 1px solid var(--hairline);
  transform: translateY(-0.32rem);
}

.dim::before {
  border-inline-start: 1px solid var(--gold);
}

.dim::after {
  border-inline-end: 1px solid var(--gold);
}

.dim--left::before {
  flex: 0 0 2.5rem;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--hairline);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--metal-gold);
  color: #17120a;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -14px rgba(212, 175, 55, 0.75);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--gold);
  box-shadow: none;
}

.btn--ghost::after {
  background: linear-gradient(105deg, transparent 35%, rgba(212, 175, 55, 0.22) 50%, transparent 65%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}

.arrow-link::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.arrow-link:hover::after {
  width: 3.6rem;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block-start: env(safe-area-inset-top, 0px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-block-end: 1px solid transparent;
}

.nav[data-solid="true"] {
  background: rgba(13, 15, 20, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-block-end-color: var(--hairline-soft);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand__name b {
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.16em;
  background: var(--metal-platinum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__name span {
  font-size: 0.56rem;
  letter-spacing: 0.44em;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  position: relative;
  padding-block: 0.5rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-soft);
  transition: color 0.3s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--bone);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__links .nav__cta {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--hairline);
  color: var(--gold);
}

.nav__links .nav__cta::after {
  display: none;
}

.nav__links .nav__cta:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.nav__toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 1.25rem;
  height: 1px;
  margin: 0.32rem auto;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav[data-open="true"] .nav__toggle span:first-child {
  transform: translateY(0.33rem) rotate(45deg);
}

.nav[data-open="true"] .nav__toggle span:last-child {
  transform: translateY(-0.33rem) rotate(-45deg);
}

@media (max-width: 72rem) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--gutter) 3rem;
    background: rgba(13, 15, 20, 0.97);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav[data-open="true"] {
    background: rgba(13, 15, 20, 0.97);
  }

  .nav[data-open="true"] .nav__links {
    visibility: visible;
    opacity: 1;
  }

  .nav__links li {
    width: 100%;
    border-block-end: 1px solid var(--hairline-soft);
  }

  .nav__links a {
    display: block;
    padding-block: 1.25rem;
    font-size: 0.78rem;
  }

  .nav__links .nav__cta {
    margin-block-start: 1.5rem;
    text-align: center;
  }

  .nav__links li:last-child {
    border: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(94svh, 60rem);
  padding-block: calc(var(--nav-h) + 4rem) clamp(2.5rem, 6vw, 5rem);
  isolation: isolate;
  overflow: hidden;
}

.hero--page {
  min-height: min(74svh, 46rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 15, 20, 0.72) 0%, rgba(13, 15, 20, 0.18) 34%, rgba(13, 15, 20, 0.62) 68%, var(--ink) 100%),
    linear-gradient(90deg, rgba(13, 15, 20, 0.7) 0%, rgba(13, 15, 20, 0) 62%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}

.hero__inner .lede {
  max-width: 46ch;
}

.hero__foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block-start: clamp(1.5rem, 4vw, 3.5rem);
  border-block-start: 1px solid var(--hairline);
}

.hero__foot > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem 0 0;
  min-width: 0;
}

.hero__foot strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.6vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.credit {
  position: absolute;
  inset: auto var(--gutter) 0.7rem auto;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(248, 248, 246, 0.5);
}

@media (max-width: 40rem) {
  .display {
    line-height: 1.16;
    letter-spacing: 0.05em;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(13, 15, 20, 0.78) 0%, rgba(13, 15, 20, 0.5) 40%, rgba(13, 15, 20, 0.78) 72%, var(--ink) 100%);
  }

  .hero__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__foot > div {
    padding-block: 0.85rem;
    border-block-end: 1px solid var(--hairline-soft);
  }

  .credit {
    position: static;
    margin-block-start: 1.25rem;
  }
}

/* ---------- Contributions ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--hairline);
}

.trio > article {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  min-width: 0;
  border-inline-end: 1px solid var(--hairline-soft);
  transition: background 0.5s var(--ease);
}

.trio > article:last-child {
  border-inline-end: 0;
}

.trio > article:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.09), transparent 70%);
}

.trio h3 em {
  font-style: normal;
  color: var(--gold);
}

@media (max-width: 52rem) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }

  .trio > article {
    border-inline-end: 0;
    border-block-end: 1px solid var(--hairline-soft);
  }

  .trio > article:last-child {
    border-block-end: 0;
  }
}

/* ---------- Scroll story ---------- */

.story {
  position: relative;
  background: var(--ink-raised);
}

.story__track {
  height: 330vh;
}

.story__pin {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  height: 100vh;
  height: 100svh;
  padding-block: calc(var(--nav-h) + 1rem) 2rem;
}

.story__stage {
  position: relative;
  justify-self: center;
  height: min(74svh, 46rem);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border: 1px solid var(--hairline);
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.story__stage canvas,
.story__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__stage::before,
.story__stage::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--gold);
}

.story__stage::before {
  inset: -0.45rem auto auto -0.45rem;
  border-width: 1px 0 0 1px;
}

.story__stage::after {
  inset: auto -0.45rem -0.45rem auto;
  border-width: 0 1px 1px 0;
}

.story__chapters {
  position: relative;
  min-height: 21rem;
}

.story__chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.story__chapter[data-active="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.story__meter {
  display: flex;
  gap: 0.5rem;
  margin-block-start: 0.6rem;
}

.story__meter i {
  flex: 1;
  height: 2px;
  background: var(--hairline-soft);
  overflow: hidden;
}

.story__meter i::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--metal-gold);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}

/* Static version: narrow screens, reduced motion and no-script all get three stacked plates. */
.story[data-mode="static"] .story__track {
  height: auto;
}

.story[data-mode="static"] .story__pin {
  position: static;
  display: block;
  height: auto;
  padding-block: var(--section);
}

.story[data-mode="static"] .story__stage,
.story[data-mode="static"] .story__meter {
  display: none;
}

.story[data-mode="static"] .story__chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 0;
}

.story[data-mode="static"] .story__chapter {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  justify-content: flex-start;
}

.story__plate {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.story[data-mode="static"] .story__plate {
  display: block;
}

@media (max-width: 52rem) {
  .story[data-mode="static"] .story__chapters {
    grid-template-columns: minmax(0, 1fr);
  }

  .story__pin {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 1.25rem;
  }

  .story__stage {
    height: min(46svh, 26rem);
  }

  .story__chapters {
    min-height: 15.5rem;
  }

  .story__chapter {
    justify-content: flex-start;
    gap: 0.8rem;
  }
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border-block: 1px solid var(--hairline);
}

.compare {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: 1.15rem 1.25rem;
  vertical-align: top;
  border-block-end: 1px solid var(--hairline-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-block-end: 0;
}

.compare thead th {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--steel);
}

.compare tbody th {
  width: 24%;
  font-weight: 500;
  color: var(--bone-soft);
}

.compare td {
  color: var(--bone-soft);
}

.compare .is-hybrid {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
  color: var(--bone);
  border-inline: 1px solid var(--hairline);
}

.compare thead .is-hybrid {
  color: var(--gold-hi);
}

/* ---------- Audience plates ---------- */

.plates {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.plate {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 19rem;
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  border: 1px solid var(--hairline-soft);
  transition: border-color 0.5s var(--ease);
}

.plate:first-child {
  grid-row: span 2;
  min-height: 32rem;
}

.plate video,
.plate img.plate__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 15, 20, 0.1) 20%, rgba(13, 15, 20, 0.92) 100%);
}

.plate:hover {
  border-color: var(--gold);
}

.plate:hover video,
.plate:hover img.plate__img {
  transform: scale(1.07);
}

.plate__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 34rem;
}

@media (max-width: 52rem) {
  .plates {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .plate,
  .plate:first-child {
    grid-row: auto;
    min-height: 21rem;
  }
}

/* ---------- Figures (sourced) ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--gold);
  min-width: 0;
}

.figure__num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.4vw, 7rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 46rem) {
  .figures,
  .split,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-block-start: 1px solid var(--hairline);
}

.steps > li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-block-end: 1px solid var(--hairline-soft);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-label);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1.15;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps > li > * {
  min-width: 0;
}

.steps .who {
  margin-block-start: 0.7rem;
}

@media (max-width: 52rem) {
  .steps > li {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .steps > li > :last-child {
    grid-column: 2;
  }
}

/* ---------- Lists and cards ---------- */

.ticks {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-inline-start: 1.9rem;
  color: var(--bone-soft);
  max-width: var(--measure);
}

.ticks li::before {
  content: "";
  position: absolute;
  inset: 0.72em auto auto 0;
  width: 1.05rem;
  height: 1px;
  background: var(--gold);
}

.ticks li strong {
  color: var(--bone);
  font-weight: 600;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--hairline);
}

.ledger > div {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  min-width: 0;
}

.ledger > div + div {
  border-inline-start: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}

.grid-3 > * {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  background: var(--ink);
  min-width: 0;
}

.section--raised .grid-3 > * {
  background: var(--ink-raised);
}

@media (min-width: 52.01rem) {
  .grid-3.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .ledger,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger > div + div {
    border-inline-start: 0;
    border-block-start: 1px solid var(--hairline);
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-block-start: 1px solid var(--hairline);
}

.faq details {
  border-block-end: 1px solid var(--hairline-soft);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > p {
  padding-block-end: 1.5rem;
  color: var(--bone-soft);
}

/* ---------- Calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--hairline);
  background: var(--ink);
}

.calc__inputs,
.calc__out {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  min-width: 0;
}

.calc__out {
  border-inline-start: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), transparent 60%);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.86rem;
  color: var(--bone-soft);
}

.field__box {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline-soft);
  background: var(--ink-raised);
  transition: border-color 0.3s var(--ease);
}

.field__box:focus-within {
  border-color: var(--gold);
}

.field__box span {
  padding-inline: 0.85rem 0;
  color: var(--steel);
}

.field__box span:last-child {
  padding-inline: 0 0.85rem;
}

.field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.field input:focus {
  outline: none;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.readout > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--hairline);
  min-width: 0;
}

.readout output {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-hi);
}

.bar {
  display: flex;
  height: 2.6rem;
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
}

.bar > i {
  flex: 0 0 auto;
  width: var(--w, 0%);
  min-width: 0;
  transition: width 0.6s var(--ease);
}

.bar .b-lot {
  background: var(--platinum);
}

.bar .b-build {
  background: #5c626c;
}

.bar .b-other {
  background: #343943;
}

.bar .b-margin {
  background: var(--metal-gold);
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--bone-soft);
  font-variant-numeric: tabular-nums;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legend li::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--swatch);
}

.versus {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

.versus th,
.versus td {
  padding: 0.7rem 0;
  border-block-end: 1px solid var(--hairline-soft);
  text-align: right;
}

.versus th:first-child,
.versus td:first-child {
  text-align: left;
  color: var(--bone-soft);
  font-weight: 400;
}

.versus thead th {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.versus .is-hybrid {
  color: var(--gold-hi);
}

@media (max-width: 58rem) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc__out {
    border-inline-start: 0;
    border-block-start: 1px solid var(--hairline);
  }
}

@media (max-width: 30rem) {
  .field-row,
  .readout,
  .legend {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- CTA band ---------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem);
}

.band video,
.band .band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 15, 20, 0.94) 0%, rgba(13, 15, 20, 0.72) 48%, rgba(13, 15, 20, 0.35) 100%);
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 56rem;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.contact > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.4rem;
  background: rgba(13, 15, 20, 0.86);
  min-width: 0;
}

.contact a,
.contact .value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: break-word;
  user-select: all;
}

.copy {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 40rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer title block ---------- */

.foot {
  padding-block: clamp(3rem, 6vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-block-start: 1px solid var(--hairline);
}

.titleblock {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr));
  border: 1px solid var(--hairline);
}

.titleblock > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  min-width: 0;
  border-inline-end: 1px solid var(--hairline);
}

.titleblock > div:last-child {
  border-inline-end: 0;
}

.titleblock .value {
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--bone);
}

.titleblock a {
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.2em;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__links a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-soft);
}

.foot__links a:hover {
  color: var(--gold);
}

@media (max-width: 58rem) {
  .titleblock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .titleblock > div {
    border-block-end: 1px solid var(--hairline);
  }

  .titleblock > div:first-child {
    grid-column: 1 / -1;
  }

  .titleblock > div:nth-child(odd) {
    border-inline-end: 0;
  }

  .titleblock > div:nth-last-child(-n + 2) {
    border-block-end: 0;
  }
}

/* ---------- Brief (partner page) ---------- */

.brief-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--hairline);
}

.brief-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem 1.1rem 0;
  min-width: 0;
}

.roles {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}

.roles th,
.roles td {
  padding: 1rem 1.1rem 1rem 0;
  vertical-align: top;
  border-block-end: 1px solid var(--hairline-soft);
  color: var(--bone-soft);
  line-height: 1.5;
}

.roles thead th {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.roles tbody th {
  font-weight: 600;
  color: var(--bone);
  width: 18%;
}

.note {
  padding: 1.25rem 1.4rem;
  border-inline-start: 2px solid var(--gold);
  background: rgba(212, 175, 55, 0.07);
  color: var(--bone-soft);
  max-width: 54rem;
}

.note strong {
  color: var(--bone);
}

@media (max-width: 46rem) {
  .brief-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    @keyframes rise {
      from {
        opacity: 0.25;
        transform: translateY(2.2rem);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }
  }

  .hero__inner > * {
    animation: settle 1.1s var(--ease) both;
  }

  .hero__inner > :nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero__inner > :nth-child(3) {
    animation-delay: 0.24s;
  }

  .hero__inner > :nth-child(4) {
    animation-delay: 0.36s;
  }

  .hero__inner > :nth-child(5) {
    animation-delay: 0.48s;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(1.4rem);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Brand pack alignment (2026-10-12) ---------- */
/* The header and footer use the approved artwork from the locked pack. Never retype, recolor or filter it. */

.brand img {
  width: auto;
  height: 2.5rem;
  object-fit: contain;
}

h3,
.h3 {
  font-weight: 600;
}

.foot__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.foot__brand img {
  width: min(12.5rem, 52vw);
  height: auto;
  object-fit: contain;
}

.foot__brand p {
  max-width: 28rem;
  text-align: right;
}

/* Four audiences: the builder plate runs full width, the other three sit under it. */
.plates--four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
}

.plates--four .plate {
  min-height: 21rem;
}

.plates--four .plate:first-child {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: 25rem;
}

/* Terms sheet on the proposal page: a three-column table of term, proposal, reason. */
.roles--terms tbody th {
  width: 22%;
}

.roles--terms td:last-child {
  color: var(--steel);
  font-size: 0.9rem;
}

/* The zero row: what the builder spends before a buyer signs. */
.zero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--hairline);
}

.zero > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.5rem 1.6rem 0;
  min-width: 0;
}

.zero > div + div {
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid var(--hairline-soft);
}

.zero strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bone);
}

.zero span:last-child {
  color: var(--bone-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 52rem) {
  .plates--four {
    grid-template-columns: minmax(0, 1fr);
  }

  .plates--four .plate,
  .plates--four .plate:first-child {
    min-height: 19rem;
  }

  .zero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zero > div:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .zero > div:nth-child(n + 3) {
    border-block-start: 1px solid var(--hairline-soft);
  }

  .foot__brand p {
    text-align: left;
  }
}

@media (max-width: 40rem) {
  .brand img {
    height: 1.85rem;
  }
}

/* ---------- Revision 2 (2026-10-12) ---------- */

/* Header lockup: the pack's H emblem beside its wordmark, in the order the approved horizontal logo uses.
   Two unaltered artwork files side by side. Never retype, recolor or filter either one. */
.brand {
  gap: 0.7rem;
}

.brand img.brand__emblem {
  height: 2.9rem;
  width: auto;
}

.brand img.brand__word {
  height: 2.3rem;
  width: auto;
}

/* The AI-footage credit stays on every film, quietly. The full statement is in the footer. */
.credit {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(248, 248, 246, 0.3);
}

.credit--inline {
  position: static;
  margin-block-start: 0.4rem;
  color: rgba(248, 248, 246, 0.26);
}

/* Footer */
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.foot__brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.25rem;
}

.foot__brand p {
  text-align: left;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}

.foot__cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--bone-soft);
}

.foot__cols a {
  color: var(--bone);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot__cols a:hover {
  color: var(--gold);
}

.foot__legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding-block-start: clamp(1.5rem, 3vw, 2.5rem);
  border-block-start: 1px solid var(--hairline-soft);
}

.foot__legal p {
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--steel);
}

.foot__legal strong {
  color: var(--bone-soft);
  font-weight: 600;
}

.foot__legal a,
.foot__base a {
  color: var(--bone-soft);
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.2em;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--hairline-soft);
  font-size: 0.78rem;
  color: var(--steel);
}

.foot__base p {
  max-width: none;
}

.foot__base ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__base a {
  text-decoration: none;
}

.foot__base a:hover,
.foot__legal a:hover {
  color: var(--gold);
}

/* Long-form pages: legal and financing. */
.prose {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 46rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-block-start: 1.5rem;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.prose h3 {
  margin-block-start: 0.6rem;
}

.prose p,
.prose li {
  color: var(--bone-soft);
}

.prose ul {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose a {
  color: var(--bone);
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.2em;
}

@media (max-width: 58rem) {
  .foot__top,
  .foot__legal {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .brand img.brand__emblem {
    height: 2.3rem;
  }

  .brand img.brand__word {
    height: 1.8rem;
  }

  .foot__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Print: the proposal as a plain black-on-white document. */
@media print {
  @page {
    margin: 16mm;
  }

  :root {
    color-scheme: light;
    --ink: #fff;
    --ink-raised: #fff;
    --ink-high: #fff;
    --bone: #111;
    --bone-soft: #333;
    --steel: #555;
    --gold: #7a5f12;
    --hairline: #bbb;
    --hairline-soft: #ddd;
    --section: 1.4rem;
  }

  body,
  .page {
    background: #fff;
    color: #111;
    font-size: 10.5pt;
  }

  .page::after,
  .nav,
  .skip,
  video,
  .hero__media,
  .band,
  .btn-row,
  .credit,
  .foot__top,
  .foot__base ul,
  .story {
    display: none !important;
  }

  .hero,
  .hero--page {
    min-height: 0;
    padding-block: 0 1rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .display {
    font-size: 22pt;
    font-weight: 500;
  }

  em.gold,
  .gold {
    background: none;
    color: #7a5f12;
    -webkit-text-fill-color: #7a5f12;
  }

  .rise,
  .hero__inner > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .section,
  .section--raised {
    background: #fff;
    padding-block: 0.9rem;
  }

  .table-wrap {
    overflow: visible;
  }

  .roles {
    min-width: 0;
    font-size: 9.5pt;
  }

  .roles tr,
  .zero > div,
  .grid-3 > div,
  .steps li {
    break-inside: avoid;
  }

  h2 {
    font-size: 15pt;
    break-after: avoid;
  }

  a {
    text-decoration: none;
  }
}

/* Pages without a film behind the heading (legal, not found). */
.hero--plain {
  min-height: 0;
  padding-block-end: 0;
}

/* Social channels under the footer logo (revision 3). */
.foot__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.foot__social a {
  color: var(--bone-soft);
  text-decoration: none;
}

.foot__social a:hover {
  color: var(--gold);
}

@media print {
  .foot__social {
    display: none;
  }
}
