:root {
  --walnut: #2F2019;
  --walnut-2: #4A3226;
  --pecan: #8A5433;
  --brass: #B8842C;
  --brass-light: #E0B363;
  --oak: #4C5A36;
  --oak-deep: #37422A;
  --limestone: #E7D6BE;
  --limestone-2: #DCC7AA;
  --paper: #F6ECDD;
  --dusk: #E48F5C;
  --muted: #6B5444;
  --walnut-rgb: 47 32 25;
  --shade-rgb: 33 22 20;
  --paper-rgb: 246 236 221;
  --brass-rgb: 184 132 44;
  --brass-light-rgb: 224 179 99;

  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Source Serif 4', Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--limestone);
  color: var(--walnut);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 14px;
}
.skip-link:focus { top: 12px; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  color: var(--paper);
  background: rgb(var(--walnut-rgb) / 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  font-variation-settings: 'wdth' 85;
}
.brand-mark { width: 28px; height: 28px; color: var(--brass-light); }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--display);
  font-size: 1rem;
}
.site-nav a {
  text-decoration: none;
  opacity: 0.85;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.header-cta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 9px 16px;
  border: 1.5px solid var(--brass-light);
  color: var(--brass-light);
  border-radius: 4px;
}
.header-cta:hover { background: var(--brass-light); color: var(--walnut); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-brass { background: var(--brass); color: var(--walnut); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn-ghost { color: var(--paper); border-color: rgb(var(--paper-rgb) / 0.6); }
.btn-ghost:hover { border-color: var(--paper); background: rgb(var(--paper-rgb) / 0.1); }

/* Walkthrough */

.walk {
  position: relative;
  height: calc(100vh + 1100vh); /* scroll length of the walkthrough video */
  background: var(--walnut);
}

.walk-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--paper);
}

.walk-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--walnut);
}

.walk-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 55%, transparent 55%, rgb(var(--shade-rgb) / 0.45) 100%),
    linear-gradient(to bottom, rgb(var(--shade-rgb) / 0.35), transparent 30%),
    linear-gradient(to top, rgb(var(--shade-rgb) / 0.7), transparent 38%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgb(var(--shade-rgb) / 0.82) 0%, rgb(var(--shade-rgb) / 0.6) 38%, transparent 62%);
}
@media (max-width: 700px) {
  .hero-scrim { background: linear-gradient(to bottom, rgb(var(--shade-rgb) / 0.85) 0%, rgb(var(--shade-rgb) / 0.6) 60%, transparent 85%); }
}

.hero {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + clamp(24px, 6vh, 72px));
  max-width: min(640px, calc(100% - 2 * var(--gutter)));
}
.hero h1 {
  font-size: clamp(3rem, 8.4vw, 7.25rem);
  font-weight: 750;
  font-variation-settings: 'wdth' 75;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(var(--shade-rgb) / 0.35);
}
.hero p {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.1875rem;
  text-shadow: 0 1px 12px rgb(var(--shade-rgb) / 0.6);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 7vh, 72px);
  max-width: min(520px, calc(100% - 2 * var(--gutter)));
  opacity: 0;
  pointer-events: none;
}
.caption::before {
  content: '';
  position: absolute;
  inset: -90px -160px -80px -140px;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--shade-rgb) / 0.72) 40%, transparent);
}
.caption-room {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--brass-light);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid rgb(var(--brass-light-rgb) / 0.6);
  display: inline-block;
}
.caption-service {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-variation-settings: 'wdth' 80;
  text-shadow: 0 2px 24px rgb(var(--shade-rgb) / 0.5);
}
.caption-text {
  margin-top: 12px;
  font-size: 1.125rem;
  text-shadow: 0 1px 10px rgb(var(--shade-rgb) / 0.8);
}

.rooms {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}
.rooms ol {
  list-style: none;
  margin: 0;
  padding: 6px 16px 6px 0;
  background: rgb(var(--shade-rgb) / 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0 6px 6px 0;
  border-left: 1.5px solid rgb(var(--paper-rgb) / 0.3);
}
.rooms button {
  display: block;
  background: none;
  border: 0;
  margin: 0 0 0 -1.5px;
  padding: 7px 0 7px 16px;
  border-left: 1.5px solid transparent;
  color: rgb(var(--paper-rgb) / 0.72);
  font-family: var(--display);
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  text-shadow: 0 1px 8px rgb(var(--shade-rgb) / 0.7);
}
.rooms button:hover { color: var(--paper); }
.rooms button[aria-current="step"] {
  color: var(--paper);
  border-left-color: var(--brass-light);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 0.9375rem;
  padding-bottom: 26px;
  opacity: 0.9;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.5px;
  height: 18px;
  background: currentColor;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(-4px); opacity: 0.3; }
  50% { transform: translateY(2px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}

@media (max-width: 860px) {
  .rooms { display: none; }
  .hero p { font-size: 1.0625rem; }
}

/* Sections */

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-variation-settings: 'wdth' 80;
}

.lede {
  margin-top: 16px;
  max-width: 36em;
  font-size: 1.25rem;
}

.services { padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 100px); }
.services .section-title { margin-bottom: clamp(32px, 5vw, 56px); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
  padding: 36px 0 40px;
  border-top: 1.5px solid var(--walnut);
}
.service h3 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-variation-settings: 'wdth' 85;
  color: var(--pecan);
}
.service-body p { max-width: 36em; }
.service-body ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 1rem;
}
.service-body li {
  break-inside: avoid;
  padding: 6px 0 6px 18px;
  position: relative;
}
.service-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1.5px;
  background: var(--brass);
}
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
  .service-body ul { columns: 1; }
}

.houston {
  background: var(--oak);
  color: var(--paper);
  padding: clamp(72px, 10vw, 128px) 0;
}
.houston-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 64px;
}
.houston-grid h3 {
  font-size: 1.5rem;
  color: var(--brass-light);
  margin-bottom: 10px;
}
.houston-grid p { max-width: 32em; }
@media (max-width: 700px) {
  .houston-grid { grid-template-columns: 1fr; }
}

.area { padding: clamp(72px, 10vw, 128px) 0; }
.area-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.area-text > p { margin-top: 16px; max-width: 30em; }
.hoods {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.9375rem;
}
.hoods li {
  padding: 5px 12px;
  border: 1.5px solid var(--limestone-2);
  background: var(--paper);
  border-radius: 999px;
}
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; }
.map figcaption { font-size: 0.875rem; color: var(--muted); text-align: right; }
.ring { fill: none; stroke: var(--pecan); stroke-width: 1.5; }
.ring-99 { stroke-dasharray: 6 5; opacity: 0.6; }
.ring-bw8 { opacity: 0.8; }
.ring-610 { stroke-width: 2; }
.ring-label {
  font-family: var(--display);
  font-size: 10px;
  fill: var(--muted);
  text-anchor: middle;
}
.downtown { fill: var(--brass); }
.place-main { font-family: var(--display); font-size: 12px; font-weight: 700; fill: var(--walnut); }
.places circle { fill: var(--oak); }
.places text { font-family: var(--display); font-size: 11px; fill: var(--walnut); }
@media (max-width: 800px) {
  .area-inner { grid-template-columns: 1fr; }
  .map { max-width: 480px; }
}

.process {
  background: var(--walnut);
  color: var(--paper);
  padding: clamp(72px, 10vw, 128px) 0;
}
.steps {
  list-style: none;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--walnut);
  background: var(--brass-light);
  border-radius: 50%;
}
.steps li::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 52px;
  right: -16px;
  height: 1.5px;
  background: rgb(var(--brass-light-rgb) / 0.4);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps p { font-size: 1rem; opacity: 0.85; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 32px 64px; }
  .steps li::after { top: 48px; bottom: 6px; left: 20px; right: auto; width: 1.5px; height: auto; }
  .steps li:last-child { padding-bottom: 0; }
}

.contact { padding: clamp(72px, 10vw, 128px) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
}
.contact-text > p { margin-top: 16px; max-width: 30em; }
.contact-details { margin: 32px 0 0; }
.contact-details div { padding: 14px 0; border-top: 1.5px solid var(--limestone-2); }
.contact-details dt { font-family: var(--display); font-size: 0.9375rem; color: var(--muted); }
.contact-details dd { margin: 2px 0 0; }

.contact-form {
  background: var(--paper);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 6px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--walnut);
  background: #fff;
  border: 1.5px solid var(--limestone-2);
  border-radius: 4px;
  padding: 11px 12px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgb(var(--brass-rgb) / 0.25);
}
.field [aria-invalid="true"] { border-color: #A6402A; }
.contact-form .btn { justify-self: start; }
.form-error { color: #A6402A; font-size: 1rem; }
.form-done {
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--oak-deep);
}
@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--walnut);
  color: rgb(var(--paper-rgb) / 0.8);
  padding: 56px 0 32px;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-about p + p { margin-top: 6px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--paper); }
.footer-head { font-family: var(--display); font-weight: 600; color: var(--brass-light); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-credit { margin-top: 40px; font-size: 0.875rem; opacity: 0.65; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Sub pages ---------- */

.subpage main { padding-top: var(--header-h); }

.crumbs { padding-top: 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--display); font-size: 0.9375rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-variation-settings: 'wdth' 78;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}
.page-hero .lede { margin-top: 20px; max-width: 34em; }
.page-hero-inner.has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .page-hero-inner.has-aside { grid-template-columns: 1fr; }
}

.hero-photo { display: block; position: relative; border-radius: 6px; overflow: hidden; text-decoration: none; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo span {
  position: absolute; left: 12px; bottom: 12px;
  background: rgb(var(--walnut-rgb) / 0.82); color: var(--paper);
  font-family: var(--display); font-size: 0.9375rem;
  padding: 6px 12px; border-radius: 4px;
}
.hero-map { margin: 0; max-width: 380px; justify-self: center; }
.hero-map figcaption { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 4px; }
.mini-map { width: 100%; height: auto; display: block; }
.mini-map .dot { fill: var(--oak); opacity: 0.45; }
.mini-map .dot-on { fill: var(--brass); stroke: var(--walnut); stroke-width: 2; }
.mini-map .dot-label { font-family: var(--display); font-weight: 700; font-size: 15px; fill: var(--walnut); }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: 0; }
.section .section-title { margin-bottom: 24px; }
.section-oak { background: var(--oak); color: var(--paper); }
.section-oak h3 { color: var(--brass-light); }
.section-paper { background: var(--paper); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.check-list li { break-inside: avoid; position: relative; padding: 6px 0 6px 26px; }
.check-list li::before {
  content: ''; position: absolute; left: 2px; top: 0.85em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}
.facts .check-list, .split .check-list { columns: 1; }
@media (min-width: 1000px) { .split .check-list { columns: 2; } }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.notes h3 { font-size: 1.375rem; margin-bottom: 8px; }
.notes p { max-width: 34em; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 1.5px solid var(--limestone-2); }
.link-list a { display: block; padding: 12px 0; font-family: var(--display); font-weight: 600; text-decoration: none; }
.link-list a:hover { color: var(--pecan); }
.also { margin-top: 20px; font-size: 1rem; color: var(--muted); }

.faqs details { border-top: 1.5px solid var(--limestone-2); padding: 14px 0; }
.faqs summary { font-family: var(--display); font-weight: 600; font-size: 1.125rem; cursor: pointer; }
.faqs details p { margin-top: 10px; }

.area-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.area-facts h2 { font-size: 1.5rem; margin-bottom: 10px; color: var(--pecan); }
@media (max-width: 900px) { .area-facts { grid-template-columns: 1fr; } }

.service-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
.service-links.two-col { grid-template-columns: 1fr 1fr; }
.service-links li { border-top: 1.5px solid var(--limestone-2); }
.service-links a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; }
.service-links strong { font-family: var(--display); font-size: 1.25rem; }
.service-links span { font-size: 1rem; color: var(--muted); max-width: 44em; }
.service-links a:hover strong { color: var(--pecan); text-decoration: underline; text-underline-offset: 5px; }
.services .service-links { margin-top: 16px; }
.service h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-variation-settings: 'wdth' 85; color: var(--pecan); }
@media (max-width: 760px) { .service-links.two-col { grid-template-columns: 1fr; } }

.service-body ul a { text-decoration: none; border-bottom: 1.5px solid var(--limestone-2); }
.service-body ul a:hover { border-bottom-color: var(--brass); }

/* Project cards */

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { display: block; text-decoration: none; }
.project-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.project-card-body { display: grid; gap: 6px; padding-top: 14px; }
.project-card-meta { font-family: var(--display); font-size: 0.875rem; color: var(--pecan); }
.project-card-title { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; }
.project-card-text { font-size: 1rem; color: var(--muted); }
.project-card:hover .project-card-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

.home-projects { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.text-link { font-family: var(--display); font-weight: 600; color: var(--pecan); }

.sample-note {
  margin: 20px 0 0;
  max-width: 46em;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1.5px dashed var(--pecan);
  border-radius: 4px;
  color: var(--walnut-2);
}
.section .sample-note { margin: 0 0 28px; }

/* Before/after slider */

.ba { margin: 0; }
.ba-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 78vh;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--walnut);
  user-select: none;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: var(--paper);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.ba-handle::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6' fill='none' stroke='%232F2019' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba-range:focus-visible + .ba-handle, .ba-frame:focus-within .ba-handle::after { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.ba-label {
  position: absolute; top: 14px;
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem;
  color: var(--paper); background: rgb(var(--walnut-rgb) / 0.78);
  padding: 5px 12px; border-radius: 4px; pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

.project-hero h1 { max-width: 18ch; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.story h2 { font-size: 1.625rem; margin: 28px 0 10px; }
.story h2:first-child { margin-top: 0; }
.story p { max-width: 36em; }
.facts { background: var(--paper); border-radius: 6px; padding: 24px 26px; }
.facts dl { margin: 0 0 20px; }
.facts dl div { padding: 10px 0; border-bottom: 1.5px solid var(--limestone-2); }
.facts dt { font-family: var(--display); font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.facts h2 { font-size: 1.25rem; margin-bottom: 6px; }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }

.steps-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps-photos figure { margin: 0; }
.steps-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.steps-photos figcaption { margin-top: 8px; font-family: var(--display); font-weight: 600; }

/* CTA band */

.cta-band { background: var(--walnut); color: var(--paper); padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-variation-settings: 'wdth' 82; }
.cta-band p { margin-top: 10px; max-width: 34em; opacity: 0.85; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hoods a { text-decoration: none; color: var(--pecan); font-weight: 600; }
.hoods li:has(a) { border-color: var(--pecan); }
.hoods li:has(a):hover { background: var(--limestone); }

/* =====================================================================
   Motion graphics
   Start states live under .motion (added by site.js unless the visitor
   prefers reduced motion), so nothing is hidden without JavaScript.
   ===================================================================== */

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wipe-up { from { clip-path: inset(100% 0 -20% 0); transform: translateY(18px); } to { clip-path: inset(0 0 -20% 0); transform: none; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

/* Hero: the headline rises in line by line on load */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; }
.motion .hero h1 .line > span { animation: rise 0.95s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.motion .hero h1 .line + .line > span { animation-delay: 0.12s; }
.motion .hero > p { animation: fade-up 0.8s 0.5s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.motion .hero-actions { animation: fade-up 0.8s 0.65s cubic-bezier(0.2, 0.75, 0.15, 1) both; }

/* Room captions: a brass rule draws, then the service title wipes in */
.caption-room { border-bottom: 0; position: relative; }
.caption-room::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: rgb(var(--brass-light-rgb) / 0.7); transform-origin: left;
}
.motion .caption.is-in .caption-room::after { animation: draw-x 0.7s 0.05s cubic-bezier(0.6, 0, 0.2, 1) both; }
.motion .caption.is-in .caption-service { animation: wipe-up 0.75s 0.2s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.motion .caption.is-in .caption-text { animation: fade-up 0.6s 0.4s ease-out both; }

/* Floor plan tracker */
.plan { display: block; width: 200px; height: auto; margin: 4px 0 6px 12px; overflow: visible; }
.plan-wall { fill: none; stroke: rgb(var(--paper-rgb) / 0.6); stroke-width: 2; stroke-linecap: square; }
.plan-slider { fill: none; stroke: var(--brass-light); stroke-width: 2; stroke-dasharray: 4 3; opacity: 0.8; }
.plan-patio { fill: rgb(var(--paper-rgb) / 0.05); stroke: rgb(var(--paper-rgb) / 0.35); stroke-width: 1.2; stroke-dasharray: 3 3; }
.plan-labels text {
  font-family: var(--display); font-size: 10px; fill: rgb(var(--paper-rgb) / 0.55);
  text-anchor: middle; cursor: pointer; transition: fill 0.3s;
}
.plan-labels text:hover { fill: var(--paper); }
.plan-labels text.is-here { fill: var(--brass-light); font-weight: 700; }
.plan-trail { fill: none; stroke: rgb(var(--paper-rgb) / 0.22); stroke-width: 1.4; stroke-dasharray: 2 3; }
.plan-path { fill: none; stroke: var(--brass-light); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-dot { fill: var(--brass-light); stroke: var(--walnut); stroke-width: 1.5; }
.plan-pulse { fill: none; stroke: var(--brass-light); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.motion .plan-pulse { animation: pulse 1.8s ease-out infinite; }
.rooms ol { padding-top: 2px; }
@media (max-height: 760px) and (min-width: 861px) { .rooms ol { display: none; } }
@media (max-width: 860px) {
  .rooms { display: block; top: calc(var(--header-h) + 12px); right: 12px; transform: none; }
  .rooms ol { display: none; }
  .plan { width: 118px; margin: 6px; }
  .plan-labels { display: none; }
}

/* Built for Houston icons */
.hx-icon {
  width: 60px; height: 60px; display: block; margin-bottom: 14px;
  fill: none; stroke: var(--brass-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.hx-icon * { transform-box: view-box; }
.hx-bfe { stroke-dasharray: 3 3; opacity: 0.6; }
.motion .houston-grid > div { opacity: 0; }
.motion .houston-grid.in-view > div { animation: fade-up 0.7s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.motion .houston-grid.in-view > div:nth-child(2) { animation-delay: 0.12s; }
.motion .houston-grid.in-view > div:nth-child(3) { animation-delay: 0.24s; }
.motion .houston-grid.in-view > div:nth-child(4) { animation-delay: 0.36s; }

@keyframes soil { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tilt { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes flow { to { transform: translateX(16px); } }
@keyframes rise-water { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.motion .hx-soil { animation: soil 3s ease-in-out infinite; }
.motion .hx-soil-b { animation-delay: -1s; }
.motion .hx-soil-c { animation-delay: -2s; }
.motion .hx-house { transform-origin: 32px 36px; animation: tilt 3s ease-in-out infinite; }
.motion .hx-rays { transform-origin: 32px 24px; animation: spin 18s linear infinite; }
.hx-wave { stroke-dasharray: 6 4; }
.motion .hx-wave { animation: dash 1.6s linear infinite; }
.motion .hx-wave-2 { animation-duration: 2.3s; }
.motion .hx-spin { transform-origin: 32px 32px; animation: spin 5s linear infinite; }
.motion .hx-water { animation: rise-water 4s ease-in-out infinite; }
.motion .hx-water path { animation: flow 1.8s linear infinite; }
.houston-grid:not(.is-playing) .hx-icon * { animation-play-state: paused !important; }

/* Service area map: rings draw, then the neighborhoods appear */
.ring-bw8 { stroke-dasharray: 742; }
.ring-610 { stroke-dasharray: 352; }
.motion .map:not(.in-view) .ring-bw8 { stroke-dashoffset: 742; }
.motion .map:not(.in-view) .ring-610 { stroke-dashoffset: 352; }
.motion .map:not(.in-view) .ring-99,
.motion .map:not(.in-view) .ring-label,
.motion .map:not(.in-view) .places > * { opacity: 0; }
.motion .map:not(.in-view) .places circle { transform: scale(0); }
.motion .map .ring-bw8, .motion .map .ring-610 { transition: stroke-dashoffset 1.4s cubic-bezier(0.6, 0, 0.2, 1); }
.motion .map .ring-610 { transition-delay: 0.25s; }
.motion .map .ring-99 { transition: opacity 1s 0.5s; }
.motion .map .ring-label { transition: opacity 0.6s 1.2s; }
.map .places circle { transform-box: fill-box; transform-origin: center; }
.motion .map .places > * {
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.45s;
  transition-delay: calc(0.9s + var(--i, 0) * 35ms);
}
.downtown { transform-box: fill-box; transform-origin: center; }
.motion .map.is-playing .downtown { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* Process: steps light up in order and the timeline draws between them */
.motion .steps li::before { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(var(--i, 0) * 220ms); }
.motion .steps li::after { transform-origin: left; transition: transform 0.5s ease-out; transition-delay: calc(var(--i, 0) * 220ms + 150ms); }
.motion .steps li > * { transition: opacity 0.5s, transform 0.5s; transition-delay: calc(var(--i, 0) * 220ms + 80ms); }
.motion .steps:not(.in-view) li::before { transform: scale(0); }
.motion .steps:not(.in-view) li::after { transform: scaleX(0); }
.motion .steps:not(.in-view) li > * { opacity: 0; transform: translateY(10px); }
@media (max-width: 960px) {
  .motion .steps li::after { transform-origin: top; }
  .motion .steps:not(.in-view) li::after { transform: scaleY(0); }
}

/* Project cards: hover wipes to the before photo */
.card-media { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; }
.project-card .card-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; display: block; }
.card-media .card-before { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.card-tag {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--display); font-weight: 600; font-size: 0.8125rem;
  color: var(--paper); background: rgb(var(--walnut-rgb) / 0.8);
  padding: 4px 10px; border-radius: 4px; opacity: 0;
}
@media (hover: hover) {
  .motion .card-media img:first-child { transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.15, 1); }
  .motion .card-media .card-before { transition: clip-path 0.65s cubic-bezier(0.6, 0, 0.2, 1); }
  .motion .card-tag { transition: opacity 0.3s 0.2s; }
  .project-card:hover .card-media img:first-child { transform: scale(1.04); }
  .project-card:hover .card-before, .project-card:focus-visible .card-before { clip-path: inset(0 0 0 0); }
  .project-card:hover .card-tag, .project-card:focus-visible .card-tag { opacity: 1; }
}

/* the backdrop now covers the floor plan and the room list together */
.rooms {
  background: rgb(var(--shade-rgb) / 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 12px 8px 0;
}
.rooms ol { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; margin-left: 12px; }
@media (max-width: 860px) { .rooms { padding: 0; } }

/* =====================================================================
   Brand
   ===================================================================== */

.brand .brand-mark { width: 44px; height: auto; color: var(--paper); }
.brand-roof { fill: var(--brass-light); }
.brand-name { font-variation-settings: 'wdth' 85; }
.brand-name span { font-weight: 400; opacity: 0.85; }

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 46px; height: auto; color: var(--paper); flex: none; }
.footer-tagline { font-family: var(--display); color: var(--brass-light); margin-top: 4px; }
.footer-contacts { margin: 14px 0; display: grid; gap: 12px; }
.footer-contacts dt { font-family: var(--display); font-weight: 600; color: var(--paper); }
.footer-contacts dd { margin: 2px 0 0; }

.contact-details dd a { overflow-wrap: anywhere; }

/* Logo intro: shown while the walkthrough video loads (home page only) */
.intro { display: none; }
.motion .intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #FFFFFF 0%, var(--paper) 45%, var(--limestone) 100%);
  animation: intro-out 0.7s 4s forwards; /* fallback if the script never runs */
}
.intro img {
  width: min(560px, 86vw); height: auto; display: block;
  animation: intro-logo 1.6s cubic-bezier(0.2, 0.75, 0.15, 1) both;
}
.intro.is-done { animation: intro-out 0.7s forwards; }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* =====================================================================
   Stories and About
   ===================================================================== */

.story-result {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--brass);
  background: var(--paper);
  border-radius: 0 6px 6px 0;
}
.story .story-result h2 { margin-top: 0; }

mark.todo {
  background: #F3D9A6;
  color: var(--walnut);
  padding: 0 4px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-body .sample-note { margin: 0 0 28px; }
.about-mark {
  position: sticky; top: calc(var(--header-h) + 32px);
  background: var(--walnut); color: var(--paper);
  border-radius: 8px; padding: 40px 32px; text-align: center;
}
.about-mark .brand-mark { width: 150px; height: auto; color: var(--paper); }
.about-mark p { margin-top: 18px; font-family: var(--display); font-size: 1.25rem; color: var(--brass-light); }
@media (max-width: 860px) {
  .about-body { grid-template-columns: 1fr; gap: 32px; }
  .about-mark { position: static; }
}

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.promise h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-variation-settings: 'wdth' 80; margin-bottom: 10px; }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; gap: 28px; } }

.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.partner { background: var(--paper); border-radius: 8px; padding: 28px; }
.partner-mono {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--walnut); color: var(--brass-light);
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  margin-bottom: 16px;
}
.partner h3 { font-size: 1.625rem; }
.partner-role { font-family: var(--display); color: var(--pecan); margin: 2px 0 12px; }
.partner-reach { margin-top: 16px; font-size: 1rem; }
.partner-reach a { overflow-wrap: anywhere; }
@media (max-width: 700px) { .partners { grid-template-columns: 1fr; } }

.home-about { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); }
.home-about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.home-about-inner p { max-width: 34em; margin-bottom: 14px; }
@media (max-width: 800px) { .home-about-inner { grid-template-columns: 1fr; } }

/* spam trap: hidden from people, filled in by bots */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   Mobile
   ===================================================================== */

.menu-btn, .nav-call { display: none; }

@media (max-width: 860px) {
  .site-header { gap: 12px; }
  .menu-btn {
    display: grid; align-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px;
    background: none; border: 1.5px solid rgb(var(--paper-rgb) / 0.35); border-radius: 4px; cursor: pointer;
    order: 3;
  }
  .menu-btn span { display: block; height: 2px; background: var(--paper); border-radius: 1px; transition: transform 0.25s, opacity 0.2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { padding: 9px 12px; font-size: 0.9375rem; }

  .site-nav {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    margin: 0; padding: 8px var(--gutter) 24px;
    background: var(--walnut);
    font-size: 1.25rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { opacity: 1; padding: 14px 0; border-bottom: 1px solid rgb(var(--paper-rgb) / 0.12); }
  .nav-call { display: block; color: var(--brass-light); font-weight: 600; border-bottom: 0 !important; }
}
@media (max-width: 400px) {
  .header-cta { font-size: 0.875rem; padding: 8px 10px; }
}

@media (max-width: 600px) {
  .hero { top: calc(var(--header-h) + 124px); }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hero p { font-size: 1rem; margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .caption { bottom: 24px; }
  .caption-service { font-size: 2rem; }
  .caption-text { font-size: 1rem; }
  .scroll-cue { display: none; }
  .btn { padding: 13px 18px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; text-align: center; }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .ba-handle::after { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .ba-frame { max-height: none; }
  .map .places text { font-size: 13px; }
  .section-head { margin-bottom: 20px; }
  .crumbs ol { font-size: 0.875rem; }
}
/* keep text inputs at 16px so iOS doesn't zoom in on focus */
.field input, .field select, .field textarea { font-size: max(16px, 1rem); }

/* phones swipe further per gesture, so the walkthrough needs less scroll */
@media (max-width: 600px) {
  .walk { height: calc(100vh + 800vh); }
}

/* =====================================================================
   Color schemes (preview). The default above is "Warm brass".
   ===================================================================== */

/* Steel & safety yellow: Charcoal and brushed steel from the logo, with hard-hat yellow */
:root[data-theme="yellow"] {
  --walnut: #1C1D1F; --walnut-2: #2D2F33; --pecan: #3E4A57;
  --brass: #F2B705; --brass-light: #FFCB2E;
  --oak: #353B42; --oak-deep: #272C31;
  --limestone: #EAE9E6; --limestone-2: #D3D2CE; --paper: #F7F7F5; --muted: #5B5F65;
  --walnut-rgb: 28 29 31; --shade-rgb: 21 21 23; --paper-rgb: 247 247 245;
  --brass-rgb: 242 183 5; --brass-light-rgb: 255 203 46;
}

/* Graphite & hi-vis orange: Graphite and concrete with hi-vis safety orange */
:root[data-theme="orange"] {
  --walnut: #18191B; --walnut-2: #2A2C2F; --pecan: #B8461B;
  --brass: #F26B1D; --brass-light: #FF8E47;
  --oak: #3A3F45; --oak-deep: #2B2F34;
  --limestone: #E9E8E5; --limestone-2: #D2D0CB; --paper: #F7F6F4; --muted: #5C5D60;
  --walnut-rgb: 24 25 27; --shade-rgb: 18 18 20; --paper-rgb: 247 246 244;
  --brass-rgb: 242 107 29; --brass-light-rgb: 255 142 71;
}

/* Concrete & brass: Logo charcoal and steel on concrete gray, with a premium brass accent */
:root[data-theme="brass"] {
  --walnut: #1B1C1F; --walnut-2: #2C2E33; --pecan: #7A5C2E;
  --brass: #C29A5B; --brass-light: #DAB77B;
  --oak: #3A4550; --oak-deep: #2B343D;
  --limestone: #E6E5E2; --limestone-2: #CFCDC8; --paper: #F6F5F2; --muted: #5D6066;
  --walnut-rgb: 27 28 31; --shade-rgb: 20 21 23; --paper-rgb: 246 245 242;
  --brass-rgb: 194 154 91; --brass-light-rgb: 218 183 123;
}

/* Construction signature for the new schemes: a thin hazard-stripe band,
   like site tape, under the header and above the footer */
:root[data-theme] .site-header::after,
:root[data-theme] .site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--brass) 0 12px, var(--walnut) 12px 24px);
}
:root[data-theme] .site-header::after { bottom: -5px; }
:root[data-theme] .site-footer { position: relative; }
:root[data-theme] .site-footer::before { top: 0; }


/* =====================================================================
   Build story: a tower crane builds a house as you scroll
   ===================================================================== */

.build-story { padding-bottom: 0; }
.build-story .section-title { margin-bottom: 0; }
.bs-track { position: relative; }
.bs-sticky {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.motion .bs-track { height: 620vh; }
.motion .bs-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  padding-bottom: 24px;
}

.bs-steps { list-style: none; margin: 0; padding: 0; counter-reset: bs; display: grid; gap: 4px; }
.bs-steps li {
  counter-increment: bs;
  position: relative;
  padding: 10px 0 10px 52px;
  opacity: 1;
}
.bs-steps li::before {
  content: counter(bs);
  position: absolute; left: 0; top: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
  color: var(--walnut); background: var(--brass-light);
}
.bs-steps h3 { font-size: 1.25rem; line-height: 1.3; padding-top: 4px; }
.bs-steps p { font-size: 0.9375rem; opacity: 0.85; margin-top: 6px; }

.motion .bs-steps li { opacity: 0.38; transition: opacity 0.35s; }
.motion .bs-steps li::before { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgb(var(--paper-rgb) / 0.5); transition: background 0.35s, color 0.35s; }
.motion .bs-steps li.is-done::before { background: rgb(var(--brass-light-rgb) / 0.25); color: var(--brass-light); box-shadow: none; }
.motion .bs-steps li.is-active { opacity: 1; }
.motion .bs-steps li.is-active::before { background: var(--brass-light); color: var(--walnut); box-shadow: none; }
.motion .bs-steps p { max-height: 0; margin-top: 0; overflow: hidden; transition: max-height 0.4s ease, margin 0.4s; }
.motion .bs-steps li.is-active p { max-height: 8em; margin-top: 6px; }

.bs-media { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--walnut-2); }
.bs-canvas { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - var(--header-h) - 56px); }
.bs-no-3d .bs-media { display: none; }
.bs-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(var(--shade-rgb) / 0.65), transparent 35%);
}
.bs-label {
  position: absolute; left: 20px; bottom: 26px; z-index: 1;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  color: var(--paper); text-shadow: 0 2px 12px rgb(0 0 0 / 0.5);
  overflow: hidden;
}
.bs-label-text { display: inline-block; }
.motion .bs-label-text.is-new { animation: wipe-up 0.55s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.bs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 1; background: rgb(var(--paper-rgb) / 0.15); }
.bs-progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(-45deg, var(--brass) 0 10px, var(--brass-light) 10px 20px);
}
.bs-static .bs-label, .bs-static .bs-progress { display: none; }

@media (max-width: 860px) {
  .bs-sticky { grid-template-columns: 1fr; gap: 20px; align-content: center; }
  .bs-media { order: -1; }
  /* hide inactive steps without display:none, so the step numbers keep counting */
  .motion .bs-steps li:not(.is-active) { visibility: hidden; height: 0; padding: 0; overflow: hidden; }
  .motion .bs-steps li.is-active { padding-left: 50px; }
  .motion .bs-steps li.is-active p { max-height: none; }
}

@media (max-width: 860px) {
  .bs-canvas { aspect-ratio: 4 / 3; }
}

.bs-note { margin: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 1rem; color: rgb(var(--paper-rgb) / 0.85); }

/* =====================================================================
   Build story, full screen
   ===================================================================== */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.build-story { padding: 0; background: #0F2C4C; }
.motion .bs-track { height: 900vh; }
.motion .bs-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  max-width: none; margin: 0; padding: 0;
  display: block;
  overflow: hidden;
}
.motion .bs-media { position: absolute; inset: 0; border-radius: 0; background: #0F2C4C; }
.motion .bs-canvas { width: 100%; height: 100%; aspect-ratio: auto; max-height: none; }
.motion .bs-media::after { background: linear-gradient(to right, rgb(0 0 0 / 0.55), transparent 45%), linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 30%); }
.motion .bs-label { display: none; }
.motion .bs-progress { height: 8px; z-index: 3; }

/* HUD */
.bs-hud { display: none; }
.motion .bs-hud {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 20px);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display); color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / 0.5);
}
.bs-kicker { font-size: 1rem; opacity: 0.85; }
.bs-count { font-size: 1rem; opacity: 0.85; }
.bs-count b { font-size: 2.25rem; font-weight: 800; color: var(--brass-light); opacity: 1; }

/* the big step text */
.motion .bs-steps {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  width: min(620px, calc(100% - 2 * var(--gutter)));
  display: block;
}
.motion .bs-steps li { position: absolute; left: 0; bottom: 0; width: 100%; padding: 0; opacity: 0; transform: translateY(30px); transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 0.75, 0.15, 1); pointer-events: none; }
.motion .bs-steps li::before { display: none; }
.motion .bs-steps li.is-active { opacity: 1; transform: none; position: relative; }
.motion .bs-steps li.is-done { transform: translateY(-30px); }
.motion .bs-steps h3 {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem); line-height: 0.9; letter-spacing: -0.02em;
  font-variation-settings: 'wdth' 75; color: #fff; text-shadow: 0 4px 40px rgb(0 0 0 / 0.45);
}
.motion .bs-steps p { max-height: none; margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: #fff; opacity: 0.92; max-width: 30em; text-shadow: 0 1px 12px rgb(0 0 0 / 0.7); }
.motion .bs-blueprint .bs-steps h3 { color: #EAF4FF; }

/* the approval stamp slams across the screen */
.bs-stamp { display: none; }
.motion .bs-stamp {
  display: grid; place-items: center; position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
.bs-stamp span {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.5rem, 13vw, 12rem); letter-spacing: 0.04em; line-height: 1;
  color: #D7322B; border: 0.09em solid #D7322B; border-radius: 0.12em; padding: 0.06em 0.28em;
  transform: rotate(-12deg) scale(3); opacity: 0;
  mix-blend-mode: multiply;
}
.motion .bs-stamped .bs-stamp span { animation: stamp-slam 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards, stamp-fade 0.5s 1.6s forwards; }
@keyframes stamp-slam { 0% { transform: rotate(-12deg) scale(3); opacity: 0; } 60% { opacity: 0.95; } 100% { transform: rotate(-12deg) scale(1); opacity: 0.92; } }
@keyframes stamp-fade { to { opacity: 0; transform: rotate(-12deg) scale(1.05); } }

/* ending */
.bs-final { display: none; }
.motion .bs-final {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-40%);
  text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.6s, transform 0.8s cubic-bezier(0.2, 0.75, 0.15, 1);
}
.bs-final-title {
  font-family: var(--display); font-weight: 800; color: #fff;
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.9; letter-spacing: -0.02em; font-variation-settings: 'wdth' 75;
  text-shadow: 0 6px 50px rgb(0 0 0 / 0.5);
}
.motion .bs-done .bs-final { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.motion .bs-done .bs-steps { opacity: 0; transition: opacity 0.4s; }

@media (max-width: 860px) {
  .motion .bs-sticky { display: block; }
  .motion .bs-media { order: 0; }
  .motion .bs-steps li:not(.is-active) { visibility: visible; height: auto; }
  .motion .bs-steps h3 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .motion .bs-hud { top: calc(var(--header-h) + 12px); }
}
