/* Bella Terra — Material Studio
   tokens → base → layout → slabs → components → interaction → utilities → responsive */

/* 1. TOKENS */
@font-face {
  font-family: Epilogue;
  src: url("../fonts/epilogue-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Epilogue;
  src: url("../fonts/epilogue-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Epilogue;
  src: url("../fonts/epilogue-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Epilogue;
  src: url("../fonts/epilogue-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url("../fonts/karla-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url("../fonts/karla-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url("../fonts/karla-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --travertine: #f1ebe1;
  --travertine-2: #e4dacb;
  --espresso: #2b211b;
  --espresso-2: #1f1813;
  --muted: #6a5d52;
  --olive: #4e5a2c;
  --cotto: #a9512e;
  --sand: #d9b98c;
  --line: rgba(43, 33, 27, 0.14);
  --line-strong: rgba(43, 33, 27, 0.28);
  --line-dark: rgba(241, 235, 225, 0.16);
  --scrim: rgba(31, 24, 19, 0.82);
  --white: #fff;
  --font-display: Epilogue, sans-serif;
  --font-body: Karla, sans-serif;
  --fs-display: clamp(2.875rem, 7.1vw, 7rem);
  --fs-h1: clamp(2.375rem, 5vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.65vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1.15vw, 1.125rem);
  --fs-small: clamp(0.875rem, 1vw, 0.9375rem);
  --fs-label: 0.8125rem;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s7: 1.75rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --gutter: 1.25rem;
  --content-max: 82.5rem;
  --slab-radius: 1.25rem;
  --control-radius: 0.75rem;
  --chip-radius: 0.5rem;
  --bevel: 0.375rem;
  --header-h: 5.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ui: 200ms;
  --image: 400ms;
}

/* 2. BASE AND TYPOGRAPHY */
* {
  box-sizing: border-box;
}
html {
  background: var(--travertine);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s4));
}
body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--travertine);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
[role="button"] {
  cursor: pointer;
}
[hidden],
template {
  display: none !important;
}
::selection {
  background: var(--sand);
  color: var(--espresso-2);
}
:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.mobile-sheet :focus-visible,
.cta-bar :focus-visible {
  outline-color: var(--sand);
}
a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
fieldset {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1rem;
  line-height: 1.3;
}
p,
li {
  text-wrap: pretty;
}
p + p {
  margin-top: var(--s4);
}
label,
legend,
.label,
.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}
.tabular,
[data-phone-number],
.gallery-counter,
[data-lightbox-counter],
output {
  font-variant-numeric: tabular-nums;
}

/* 3. LAYOUT */
.container {
  width: min(100% - (var(--gutter) * 2), var(--content-max));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 10rem);
}
.light {
  background: var(--travertine);
  color: var(--espresso);
}
.alternate {
  background: var(--travertine-2);
  color: var(--espresso);
}
.dark {
  background: var(--espresso);
  color: var(--travertine);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s8);
}
.two-col {
  display: grid;
  gap: clamp(var(--s8), 6vw, var(--s20));
  align-items: start;
}
.section-heading {
  display: grid;
  gap: var(--s4);
  max-width: 47rem;
  margin-bottom: clamp(var(--s8), 6vw, var(--s16));
}
.section-heading > p {
  max-width: 39rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--olive);
}
.dark .eyebrow,
.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--sand);
}
.lead {
  max-width: 40ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.dark .muted {
  color: var(--travertine-2);
}
.content-prose {
  max-width: 64ch;
}
.content-prose > * + * {
  margin-top: var(--s5);
}
.content-prose ul,
.content-prose ol {
  padding-left: 1.25em;
}
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--slab-radius);
  background: var(--travertine-2);
}
.photo > img,
.photo picture,
.photo picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. SLABS AND SURFACES */
.slab {
  position: relative;
  overflow: hidden;
  border-radius: var(--slab-radius);
  background: var(--travertine);
  color: var(--espresso);
}
.slab::after {
  position: absolute;
  z-index: 0;
  inset: var(--bevel);
  border: 1px solid var(--line);
  border-radius: calc(var(--slab-radius) - var(--bevel));
  content: "";
  pointer-events: none;
}
.slab > * {
  position: relative;
  z-index: 1;
}
.dark .slab,
.alternate .slab {
  background: var(--travertine);
  color: var(--espresso);
}
.surface-dark {
  background: var(--espresso);
  color: var(--travertine);
}
.surface-dark.slab::after {
  border-color: var(--line-dark);
}
.surface-olive {
  background: var(--olive);
  color: var(--travertine);
}
.surface-olive.slab::after {
  border-color: rgba(241, 235, 225, 0.28);
}

/* 5. COMPONENTS — header, nav, buttons */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--s3);
  left: var(--s4);
  padding: var(--s3) var(--s4);
  transform: translateY(-160%);
  border-radius: var(--control-radius);
  background: var(--sand);
  color: var(--espresso-2);
  font-weight: 700;
  transition: transform var(--ui) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  color: var(--espresso);
  transition:
    background-color var(--ui) var(--ease),
    color var(--ui) var(--ease),
    border-color var(--ui) var(--ease);
}
.photo-page .site-header {
  color: var(--travertine);
}
.site-header.is-compact,
.plain-page .site-header {
  border-bottom: 1px solid var(--line);
  background: var(--travertine);
  color: var(--espresso);
}
.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  transition: min-height var(--ui) var(--ease);
}
.site-header.is-compact .header-inner {
  min-height: 4rem;
}
.brand {
  display: inline-grid;
  grid-template-columns: 0.875rem auto;
  column-gap: 0.5rem;
  align-items: center;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}
.tile-mark {
  position: relative;
  grid-row: 1 / span 2;
  width: 0.875rem;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--cotto);
}
.tile-mark::after {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(241, 235, 225, 0.72);
  border-radius: 1px;
  content: "";
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.brand-sub {
  margin-top: 0.13rem;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--s4), 2vw, var(--s7));
  margin-left: auto;
  font-size: var(--fs-small);
  font-weight: 700;
}
.desktop-nav > a,
.nav-dropdown > summary {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.desktop-nav > a.active {
  text-decoration: underline 2px var(--cotto);
  text-underline-offset: 0.4rem;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown > summary {
  gap: var(--s2);
  list-style: none;
}
.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}
.nav-dropdown > summary::after {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-0.13rem);
  content: "";
}
.nav-dropdown[open] > summary::after {
  transform: rotate(225deg) translate(-0.08rem, -0.08rem);
}
.nav-dropdown > ul {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  width: max-content;
  min-width: 14rem;
  max-height: min(28rem, calc(100vh - 6rem));
  margin: 0;
  padding: var(--s3);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--travertine);
  color: var(--espresso);
  list-style: none;
}
.nav-dropdown li + li {
  border-top: 1px solid var(--line);
}
.nav-dropdown li a {
  display: block;
  padding: var(--s3) var(--s4);
  text-decoration: none;
}
.nav-dropdown li a:hover {
  background: var(--travertine-2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.header-phone {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.button,
button.button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  min-height: 3.375rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--espresso);
  color: var(--travertine);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--ui) var(--ease),
    color var(--ui) var(--ease),
    border-color var(--ui) var(--ease);
}
.button::after,
.text-link::after {
  display: inline-block;
  content: "→";
  transition: transform var(--ui) var(--ease);
}
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--olive);
  color: var(--travertine);
  text-decoration: none;
}
.button:hover::after,
.text-link:hover::after {
  transform: translateX(3px);
}
.button.secondary,
.button--light {
  border-color: var(--line);
  background: transparent;
  color: var(--espresso);
}
.button.secondary:hover,
.button--light:hover {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--travertine);
}
.dark .button:not(.secondary),
.hero .button:not(.secondary),
.cta-band .button:not(.secondary) {
  background: var(--travertine);
  color: var(--espresso);
}
.dark .button:not(.secondary):hover,
.hero .button:not(.secondary):hover,
.cta-band .button:not(.secondary):hover {
  background: var(--sand);
  color: var(--espresso-2);
}
.button--sand {
  background: var(--sand) !important;
  color: var(--espresso) !important;
}
.button--sand:hover {
  background: var(--travertine) !important;
}
.button[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.text-link:hover {
  color: var(--olive);
}
.dark .text-link:hover {
  color: var(--sand);
}
.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--control-radius);
  background: transparent;
  color: inherit;
}
.icon-button:hover {
  background: var(--travertine-2);
  color: var(--espresso);
}
.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

/* Mobile navigation */
[data-menu-toggle] {
  display: none;
}
.mobile-sheet {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(var(--s4), env(safe-area-inset-top)) var(--gutter)
    max(var(--s4), env(safe-area-inset-bottom));
  border: 0;
  background: var(--espresso);
  color: var(--travertine);
}
.mobile-sheet::backdrop {
  background: rgba(31, 24, 19, 0.48);
}
.mobile-sheet[open] {
  display: flex;
  flex-direction: column;
}
.mobile-sheet > .icon-button {
  align-self: flex-end;
}
.mobile-nav {
  display: grid;
  gap: var(--s2);
  margin-top: auto;
  margin-bottom: var(--s8);
}
.mobile-nav > a,
.mobile-nav summary {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  color: var(--travertine);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
}
.mobile-nav details {
  border-top: 1px solid var(--line-dark);
}
.mobile-nav summary {
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav details ul {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: var(--s3) 0 var(--s4);
  list-style: none;
}
.mobile-nav details a {
  color: var(--travertine-2);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-menu-bottom {
  display: grid;
  gap: var(--s3);
  margin-top: auto;
}
.mobile-menu-bottom .header-phone {
  font-size: 1.05rem;
}

/* Hero: hero-copy and planner-starter are direct grid children of hero-inner */
.hero {
  position: relative;
  min-height: 40rem;
  height: clamp(40rem, 92svh, 61.25rem);
  overflow: clip;
  isolation: isolate;
  background: var(--espresso-2);
  color: var(--travertine);
}
.hero.page-hero {
  min-height: 30rem;
  height: clamp(30rem, 60svh, 45rem);
}
.hero.project-hero {
  min-height: 34rem;
  height: clamp(34rem, 70svh, 52rem);
}
.hero-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-settle 1.2s var(--ease) both;
}
.hero-scrim,
.cta-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--scrim) 0%,
    rgba(31, 24, 19, 0.68) 32%,
    rgba(31, 24, 19, 0) 70%
  );
  pointer-events: none;
}
.hero-inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  align-items: end;
  padding-top: calc(var(--header-h) + var(--s12));
  padding-bottom: clamp(var(--s8), 6vw, var(--s20));
}
.hero-copy {
  grid-column: 1 / span 7;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: var(--s5);
  max-width: 47rem;
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.055em;
}
.hero h1 em {
  color: var(--sand);
  font-style: normal;
}
.hero-copy .lead {
  max-width: 37ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}
.hero-actions .header-phone {
  min-height: 3.375rem;
}
.planner-starter {
  grid-column: 9 / -1;
  align-self: end;
  width: 100%;
  padding: clamp(var(--s5), 2.4vw, var(--s8));
  color: var(--espresso);
}
.planner-starter h2,
.planner-starter h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
}
.planner-starter > p {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: var(--fs-small);
}
.starter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}
.starter-chips a,
.starter-chips button {
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--chip-radius);
  background: transparent;
  color: var(--espresso);
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
}
.starter-chips a:hover,
.starter-chips button:hover {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--travertine);
}
.hero-caption {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: var(--s4);
  max-width: min(25rem, 42vw);
  color: var(--travertine-2);
  font-size: 0.73rem;
  line-height: 1.35;
}
.intro-statement {
  max-width: 22ch;
  font-weight: 500;
}
.facts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: clamp(var(--s10), 8vw, var(--s20));
  border-top: 1px solid var(--line);
}
.fact {
  padding-top: var(--s5);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
}
.fact::before {
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-bottom: var(--s3);
  background: var(--cotto);
  content: "";
}

/* Forms */
.form-shell,
.lead-form {
  display: grid;
  gap: var(--s5);
}
.form-field {
  display: grid;
  gap: var(--s2);
}
.form-field > label {
  color: var(--espresso);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--white);
  color: var(--espresso);
  font-size: 1rem;
  line-height: 1.35;
}
.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--olive);
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--cotto);
}
.field-hint,
.field-error,
.form-status,
.form-consent {
  font-size: var(--fs-small);
  line-height: 1.45;
}
.field-hint,
.form-consent {
  color: var(--muted);
}
.field-error,
.form-status[data-state="error"] {
  color: #813918;
  font-weight: 700;
}
.form-status[data-state="success"] {
  color: var(--olive);
  font-weight: 700;
}
.form-consent a {
  color: var(--espresso);
}
[data-form-success] {
  padding: var(--s8);
}

/* Footer and sticky CTA */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(var(--s16), 10vw, 9rem);
  background: var(--espresso-2);
  color: var(--travertine);
}
.footer-texture {
  position: absolute;
  z-index: 0;
  top: -0.18em;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  color: rgba(241, 235, 225, 0.12);
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.footer-columns,
.footer-bottom {
  position: relative;
  z-index: 1;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: var(--s8);
  padding-bottom: var(--s12);
}
.footer-columns h2,
.footer-columns h3 {
  margin-bottom: var(--s4);
  color: var(--sand);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-columns ul {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-columns a {
  color: var(--travertine-2);
  text-decoration: none;
}
.footer-columns a:hover {
  color: var(--sand);
}
.footer-contact {
  display: grid;
  gap: var(--s3);
}
.footer-bottom {
  padding-block: var(--s5);
  border-top: 1px solid var(--line-dark);
  color: var(--travertine-2);
  font-size: var(--fs-small);
}
.cta-bar {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 3.75rem;
  transform: translateY(110%);
  background: var(--espresso);
  color: var(--travertine);
  transition: transform var(--ui) var(--ease);
}
.cta-bar.is-visible {
  transform: translateY(0);
}
.cta-bar-inner {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.cta-bar-copy {
  font-size: var(--fs-small);
  font-weight: 700;
}
.cta-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.cta-bar .button {
  min-height: 2.625rem;
  padding-inline: 1rem;
  font-size: 0.9rem;
}
.cta-band {
  position: relative;
  min-height: clamp(31rem, 60vw, 42rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--espresso-2);
  color: var(--travertine);
}
.cta-band > img,
.cta-band > picture {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cta-band > img,
.cta-band > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band-inner {
  width: min(100% - (var(--gutter) * 2), var(--content-max));
  margin-inline: auto;
  padding-block: var(--s16);
}
.cta-band-content {
  display: grid;
  justify-items: start;
  gap: var(--s5);
  max-width: 42rem;
}
.cta-band h2 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

/* Native dialogs: only modal and lightbox cast a shadow */
dialog {
  color: var(--espresso);
}
dialog::backdrop {
  background: rgba(31, 24, 19, 0.68);
}
.modal-panel,
.lightbox-panel {
  width: min(calc(100vw - (var(--gutter) * 2)), 40rem);
  max-height: min(90dvh, 54rem);
  margin: auto;
  padding: clamp(var(--s6), 4vw, var(--s10));
  overflow: auto;
  border: 0;
  box-shadow: 0 1.25rem 3.5rem rgba(31, 24, 19, 0.36);
}
.modal-panel > .icon-button,
.lightbox-panel > .icon-button,
[data-close-modal],
[data-close-lightbox] {
  position: absolute;
  z-index: 3;
  top: var(--s4);
  right: var(--s4);
  color: var(--espresso);
}
.modal-panel > h2 {
  padding-right: 3rem;
  margin-bottom: var(--s5);
}

/* 6. INTERACTIVE COMPONENTS — planner */
.planner {
  display: grid;
  gap: var(--s6);
}
.planner-intro {
  display: grid;
  gap: var(--s2);
}
.planner-progress {
  color: var(--olive);
  font-size: var(--fs-small);
  font-weight: 700;
}
.planner-wizard {
  display: grid;
  gap: var(--s6);
}
.planner fieldset,
.playground-controls fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}
.planner legend,
.playground-controls legend {
  margin-bottom: var(--s4);
  color: var(--espresso);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
.choice-card {
  position: relative;
  display: grid;
  min-height: 6rem;
  align-content: center;
  gap: var(--s1);
  padding: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--white);
  color: var(--espresso);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition:
    border-color var(--ui) var(--ease),
    background-color var(--ui) var(--ease),
    color var(--ui) var(--ease);
}
.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.choice-card small {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 400;
}
.choice-card:has(input:checked) {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--travertine);
}
.choice-card:has(input:checked) small {
  color: var(--travertine-2);
}
.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.planner-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}
.planner-controls [data-planner-skip] {
  margin-left: auto;
}
[data-planner-summary] {
  padding: var(--s4);
  border-left: 3px solid var(--olive);
  background: var(--travertine-2);
  color: var(--espresso);
  font-size: var(--fs-small);
}

/* ARIA tabs: static panels stay in the document and readable before .js enhancement */
.tabs-layout {
  display: grid;
  gap: clamp(var(--s6), 5vw, var(--s12));
}
.tab-list {
  display: grid;
  align-content: start;
  gap: 0;
}
.tab-heading {
  width: 100%;
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: var(--s3);
  align-content: center;
  padding: var(--s4) 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--travertine);
  text-align: left;
}
.tab-heading:hover,
.tab-heading[aria-selected="true"],
.tab-heading[aria-expanded="true"] {
  color: var(--sand);
}
.tab-heading strong {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tab-heading small {
  display: block;
  margin-top: 0.18rem;
  color: var(--travertine-2);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.35;
}
.tab-panels {
  display: grid;
  min-width: 0;
  gap: var(--s6);
}
.tab-panel {
  display: grid;
  grid-template-columns: minmax(13rem, 0.95fr) minmax(16rem, 1.05fr);
  gap: var(--s6);
  align-items: stretch;
  padding: var(--s4);
  border-radius: var(--slab-radius);
  background: var(--travertine);
  color: var(--espresso);
}
.js .tab-panel {
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}
.js .tab-panel.is-entering {
  opacity: 0;
  transform: translateY(0.5rem);
}
.panel-photo {
  min-height: 19rem;
  overflow: hidden;
  border-radius: calc(var(--slab-radius) - var(--s2));
}
.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-content {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s4);
  padding: var(--s4) var(--s3);
}
.included-list {
  display: grid;
  width: 100%;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.included-list li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: var(--s2);
  font-size: var(--fs-small);
}
.included-list li::before {
  color: var(--cotto);
  content: "—";
}

/* Pattern playground — authored SVG preview remains exactly 16:10 */
.playground-layout {
  display: grid;
  gap: clamp(var(--s6), 5vw, var(--s12));
}
.playground-preview {
  display: grid;
  align-content: start;
  gap: var(--s4);
  padding: var(--s4);
}
.pattern-svg {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--slab-radius) - var(--s2));
  background: var(--travertine-2);
}
[data-pattern-caption] {
  min-height: 3.2em;
  padding: 0 var(--s2) var(--s2);
  color: var(--muted);
  font-size: var(--fs-small);
}
.playground-controls {
  display: grid;
  align-content: start;
  gap: var(--s6);
  padding: clamp(var(--s5), 3vw, var(--s8));
}
.control-group {
  display: grid;
  gap: var(--s3);
}
.control-row {
  display: flex;
  gap: var(--s2);
}
.control-row > label {
  flex: 1 0 auto;
}
.swatch {
  position: relative;
  display: grid;
  min-width: 5.2rem;
  min-height: 4.8rem;
  align-content: end;
  gap: var(--s2);
  padding: var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: var(--chip-radius);
  background: var(--white);
  color: var(--espresso);
  cursor: pointer;
}
.swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.swatch > span:first-of-type {
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(43, 33, 27, 0.35);
  border-radius: 50%;
  background: var(--swatch, var(--travertine-2));
}
.swatch > span:last-of-type {
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}
.swatch:has(input:checked) {
  border-color: var(--olive);
}
.swatch:has(input:focus-visible) {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.joint-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s3);
  align-items: center;
}
.joint-control label {
  grid-column: 1 / -1;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--olive);
}
output {
  color: var(--olive);
  font-size: var(--fs-small);
  font-weight: 700;
}

/* Hotspot image and static supporting notes */
.hotspot-layout {
  display: grid;
  gap: clamp(var(--s6), 5vw, var(--s12));
  align-items: start;
}
.hotspot-image {
  position: relative;
}
.hotspot-image .photo {
  aspect-ratio: 4 / 3;
}
.hotspot-image .photo img {
  position: absolute;
  inset: 0;
}
.hotspot {
  position: absolute;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid var(--travertine);
  border-radius: 50%;
  background: var(--cotto);
  color: var(--travertine);
  font-size: 0;
}
.hotspot::before {
  position: absolute;
  inset: -0.4rem;
  border-radius: inherit;
  content: "";
}
.hotspot::after {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  content: attr(data-hotspot);
}
.hotspot[aria-expanded="true"] {
  background: var(--olive);
}
.hotspot-popover {
  position: absolute;
  z-index: 3;
  width: min(18rem, calc(100% - var(--s4)));
  padding: var(--s5);
}
.hotspot-popover h3 {
  margin-bottom: var(--s2);
  font-size: 1.1rem;
}
.hotspot-popover p {
  font-size: var(--fs-small);
}
.hotspot-notes {
  display: grid;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style-position: inside;
}
.hotspot-note {
  padding: var(--s5);
  border-top: 1px solid var(--line);
}
.hotspot-note h3 {
  display: inline;
  font-size: 1.05rem;
}
.hotspot-note p {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: var(--fs-small);
}

/* Process stepper */
.stepper {
  --step-progress: 0%;
  display: grid;
  gap: var(--s6);
}
.stepper-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s2);
}
.stepper-line {
  position: absolute;
  z-index: 0;
  top: 1.35rem;
  right: 2.3rem;
  left: 2.3rem;
  height: 1px;
  background: var(--line-dark);
}
.stepper-line::after {
  display: block;
  width: var(--step-progress);
  height: 100%;
  background: var(--sand);
  content: "";
  transition: width 220ms var(--ease);
}
[data-step] {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--s3);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--travertine-2);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
[data-step]::before {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--espresso);
  color: var(--sand);
  content: attr(data-step-number);
  font-variant-numeric: tabular-nums;
}
[data-step]:hover,
[data-step][aria-current="step"],
[data-step][aria-expanded="true"] {
  color: var(--sand);
}
[data-step][aria-current="step"]::before,
[data-step][aria-expanded="true"]::before {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--espresso);
}
.step-panels {
  display: grid;
  gap: var(--s4);
}
.step-panel {
  padding: clamp(var(--s6), 4vw, var(--s10));
}
.step-panel > p {
  max-width: 65ch;
  margin-top: var(--s3);
  color: var(--muted);
}
.step-responsibilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.step-responsibilities h4 {
  margin-bottom: var(--s2);
  color: var(--olive);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stepper-controls {
  display: flex;
  gap: var(--s3);
}

/* Project filters and deliberate mixed rhythm grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s8);
}
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
[data-filter] {
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--chip-radius);
  background: transparent;
  color: var(--espresso);
  font-size: var(--fs-small);
  font-weight: 700;
}
[data-filter]:hover,
[data-filter][aria-pressed="true"] {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--travertine);
}
[data-gallery-count] {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--s4);
}
.project-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--slab-radius);
  background: var(--travertine-2);
  color: var(--espresso);
  text-decoration: none;
  transition:
    opacity var(--ui) var(--ease),
    transform var(--ui) var(--ease);
}
.project-card:nth-child(8n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}
.project-card.is-filtered-out {
  display: none;
}
.project-card.is-filtering {
  opacity: 0;
  transform: scale(0.98);
}
.project-card .photo {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.project-card:nth-child(8n + 1) .photo {
  height: 100%;
  aspect-ratio: auto;
}
.project-card .photo img {
  transition: transform var(--image) var(--ease);
}
.project-card:hover .photo img {
  transform: scale(1.035);
}
.project-card-copy {
  display: grid;
  gap: var(--s1);
  padding: var(--s4);
}
.project-card-copy h3 {
  font-size: 1.1rem;
}
.project-card-copy p {
  color: var(--muted);
  font-size: var(--fs-small);
}

/* Lightbox and project gallery */
#project-lightbox {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: var(--gutter);
  border: 0;
  background: transparent;
}
.lightbox-panel {
  width: min(100%, 72rem);
  max-height: calc(100dvh - (var(--gutter) * 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
  gap: var(--s5);
  padding: var(--s4);
}
.lightbox-media {
  min-height: min(65dvh, 42rem);
  overflow: hidden;
  border-radius: calc(var(--slab-radius) - var(--s2));
  background: var(--espresso-2);
}
.lightbox-media img,
[data-lightbox-image] {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox-info {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: var(--s3);
  padding: var(--s8) var(--s3) var(--s3);
}
.lightbox-info p {
  color: var(--muted);
  font-size: var(--fs-small);
}
.lightbox-counter {
  color: var(--olive) !important;
  font-weight: 700;
}
.lightbox-controls {
  display: flex;
  gap: var(--s2);
}
.project-gallery {
  display: grid;
  gap: var(--s3);
}
.gallery-main {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--slab-radius);
  background: var(--espresso-2);
}
.gallery-main img {
  width: 100%;
  max-height: min(72svh, 48rem);
  object-fit: contain;
}
.gallery-thumbs {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding-bottom: var(--s2);
  scroll-snap-type: x mandatory;
}
[data-gallery-thumb] {
  width: 5.5rem;
  height: 4.25rem;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--chip-radius);
  background: var(--espresso-2);
  scroll-snap-align: start;
}
[data-gallery-thumb][aria-current="true"] {
  border-color: var(--olive);
}
[data-gallery-thumb] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.gallery-counter {
  font-size: var(--fs-small);
  font-weight: 700;
}

/* Areas map and pricing factors */
.area-layout {
  display: grid;
  gap: clamp(var(--s6), 5vw, var(--s12));
  align-items: center;
}
.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.area-list a {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
  color: var(--espresso);
  font-weight: 700;
  text-decoration: none;
}
.area-list a:hover,
.area-list a:focus-visible {
  background: var(--travertine-2);
  color: var(--olive);
}
.map-frame {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  border-radius: var(--slab-radius);
  background: var(--travertine-2);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
}
.area-info {
  position: absolute;
  z-index: 2;
  bottom: var(--s4);
  left: var(--s4);
  width: min(20rem, calc(100% - var(--s8)));
  padding: var(--s5);
}
.area-info h3 {
  margin-bottom: var(--s2);
  font-size: 1.15rem;
}
.area-info p {
  margin-bottom: var(--s3);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.materials-layout {
  display: grid;
  gap: var(--s8);
}
.pricing-layout {
  display: grid;
  gap: clamp(var(--s6), 5vw, var(--s12));
  align-items: start;
}
.pricing-options {
  display: grid;
  gap: var(--s3);
}
.pricing-options > label {
  display: grid;
  min-height: 4.8rem;
  grid-template-columns: 1.25rem 1fr;
  column-gap: var(--s3);
  align-items: start;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--travertine);
  color: var(--espresso);
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
}
.pricing-options input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--olive);
}
.pricing-options label:has(input:checked) {
  border-color: var(--olive);
  background: var(--travertine-2);
}
.pricing-options strong {
  display: block;
  font-size: 1rem;
}
.pricing-options small {
  display: block;
  margin-top: var(--s1);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.4;
}
.pricing-summary {
  padding: var(--s8);
}
.pricing-summary p {
  margin-top: var(--s3);
  color: var(--muted);
}

/* FAQ: native details intentionally disclose instantly; no height motion */
.faq-layout {
  display: grid;
  gap: clamp(var(--s8), 8vw, var(--s20));
  align-items: start;
}
.faq-aside {
  display: grid;
  gap: var(--s6);
}
.faq-aside .photo {
  aspect-ratio: 4 / 5;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: grid;
  min-height: 4.5rem;
  grid-template-columns: 1fr 2rem;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--chip-radius);
  color: var(--olive);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  content: "+";
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details > :not(summary) {
  max-width: 64ch;
  margin: 0 2.7rem var(--s5) 0;
  color: var(--muted);
}

/* Optional before / after only when real matching photos are authored */
.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--slab-radius);
  aspect-ratio: 16 / 9;
  background: var(--espresso-2);
}
.before-after > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after .before-image {
  width: var(--split, 50%);
  overflow: hidden;
}
.before-after .before-image img {
  width: calc(100% / (var(--split, 50%) / 100%));
  max-width: none;
}
.before-after input[type="range"] {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.before-after::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--travertine);
  content: "";
  pointer-events: none;
}

/* 7. UTILITIES */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.align-start {
  align-items: start;
}
.align-end {
  align-items: end;
}
.text-center {
  text-align: center;
}
.stack {
  display: grid;
  gap: var(--s4);
}
.stack-sm {
  display: grid;
  gap: var(--s2);
}
.no-wrap {
  white-space: nowrap;
}
.is-hidden {
  display: none !important;
}
.has-sticky-cta {
  padding-bottom: 4.5rem;
}

@keyframes hero-settle {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

/* 8. MEDIA QUERIES */
@media (min-width: 48rem) {
  :root {
    --gutter: 2.25rem;
  }
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tabs-layout {
    grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
  }
  .playground-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  }
  .hotspot-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  }
  .area-layout {
    grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
  }
  .pricing-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  }
  .faq-layout {
    grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
  }
  .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--s6));
  }
  .project-gallery {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }
  .gallery-thumbs {
    flex-direction: column;
    max-height: min(72svh, 48rem);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
  }
  [data-gallery-thumb] {
    width: 6.5rem;
    height: 5rem;
  }
  .gallery-actions {
    grid-column: 1 / -1;
  }
}
@media (min-width: 64rem) {
  :root {
    --gutter: 4rem;
  }
  .hotspot-popover {
    transform: translate(1rem, -50%);
  }
  .hotspot-popover.is-flipped {
    transform: translate(calc(-100% - 1rem), -50%);
  }
  .map-frame {
    min-height: 32rem;
  }
  .map-frame iframe {
    min-height: 32rem;
  }
}
@media (max-width: 63.99rem) {
  .desktop-nav,
  .header-actions > .header-phone {
    display: none;
  }
  [data-menu-toggle] {
    display: inline-grid;
  }
  .header-actions .button {
    display: none;
  }
  .hero-copy {
    grid-column: 1 / span 8;
  }
  .planner-starter {
    grid-column: 9 / -1;
  }
}
@media (max-width: 47.99rem) {
  :root {
    --gutter: 1.25rem;
    --header-h: 4.5rem;
  }
  .section {
    padding-block: clamp(4.5rem, 14vw, 6rem);
  }
  .grid-12 {
    grid-template-columns: 1fr;
  }
  .section-heading {
    margin-bottom: var(--s8);
  }
  .hero:not(.page-hero):not(.project-hero) {
    height: auto;
    min-height: 0;
  }
  .hero.page-hero {
    min-height: 33rem;
    height: auto;
  }
  .hero.project-hero {
    min-height: 35rem;
    height: auto;
  }
  .hero-scrim,
  .cta-scrim {
    background: linear-gradient(
      180deg,
      rgba(31, 24, 19, 0.82) 0%,
      rgba(31, 24, 19, 0.78) 58%,
      rgba(31, 24, 19, 0.64) 100%
    );
  }
  .hero-inner {
    height: auto;
    min-height: inherit;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: calc(var(--header-h) + var(--s10));
    padding-bottom: var(--s8);
  }
  .hero-copy {
    grid-column: 1;
    gap: var(--s4);
  }
  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
    letter-spacing: -0.055em;
  }
  .hero-actions {
    width: 100%;
    gap: var(--s3);
  }
  .hero-actions .button {
    flex: 1 1 12rem;
  }
  .hero-actions .header-phone {
    flex: 0 1 auto;
    font-size: 0.95rem;
  }
  .planner-starter {
    grid-column: 1;
    align-self: auto;
    margin-top: var(--s8);
    padding: var(--s5);
  }
  .hero-caption {
    right: var(--gutter);
    bottom: var(--s2);
    max-width: 75vw;
  }
  .page-hero .planner-starter,
  .project-hero .planner-starter {
    margin-top: var(--s6);
  }
  .facts-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fact {
    padding-block: var(--s4);
    border-bottom: 1px solid var(--line);
  }
  .fact::before {
    display: none;
  }
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s8) var(--s5);
  }
  .footer-columns > :first-child {
    grid-column: 1 / -1;
  }
  .cta-bar-copy {
    display: none;
  }
  .cta-bar-inner {
    justify-content: flex-end;
  }
  .cta-bar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cta-bar-actions .header-phone {
    min-height: 2.625rem;
  }
  .cta-band {
    min-height: 32rem;
  }
  .cta-band-inner {
    padding-block: var(--s12);
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .planner-controls [data-planner-skip] {
    margin-left: 0;
  }
  .tabs-layout {
    gap: var(--s4);
  }
  .tab-list {
    gap: var(--s2);
  }
  .tab-heading {
    min-height: 4.5rem;
    padding: var(--s3) 0;
    border-bottom-color: var(--line-dark);
  }
  .tab-panels {
    gap: var(--s3);
  }
  .tab-panel {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--s3);
  }
  .panel-photo {
    min-height: 13rem;
  }
  .panel-content {
    padding: var(--s5) var(--s3);
  }
  .playground-preview {
    order: -1;
  }
  .playground-controls {
    padding: var(--s5);
  }
  .control-row {
    width: calc(100% + var(--s5));
    margin-right: calc(var(--s5) * -1);
    overflow-x: auto;
    padding-right: var(--s5);
    scroll-snap-type: x mandatory;
  }
  .control-row > label {
    scroll-snap-align: start;
  }
  .swatch {
    flex-basis: 5.2rem;
  }
  .hotspot::after {
    display: grid;
    place-items: center;
  }
  .hotspot-notes {
    margin-top: var(--s2);
  }
  .hotspot-note:target {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
  }
  .stepper-head {
    grid-template-columns: 1fr;
  }
  .stepper-line {
    display: none;
  }
  [data-step] {
    grid-template-columns: 2.7rem 1fr;
    justify-items: start;
    align-items: center;
    gap: var(--s3);
    min-height: 3.5rem;
    text-align: left;
  }
  [data-step]::before {
    grid-row: 1;
  }
  .step-panels {
    gap: var(--s3);
  }
  .step-responsibilities {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .filter-list {
    flex-wrap: nowrap;
    width: calc(100% + var(--gutter));
    overflow-x: auto;
    padding-right: var(--gutter);
    scroll-snap-type: x mandatory;
  }
  [data-filter] {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s3);
  }
  .project-card:nth-child(8n + 1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .project-card:nth-child(8n + 1) .photo {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .project-card-copy {
    padding: var(--s3);
  }
  .project-card-copy h3 {
    font-size: 1rem;
  }
  .lightbox-panel {
    grid-template-columns: 1fr;
    gap: var(--s3);
    padding: var(--s3);
  }
  .lightbox-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .lightbox-info {
    padding: var(--s4) var(--s3) var(--s3);
  }
  .area-layout {
    display: flex;
    flex-direction: column;
  }
  .map-frame {
    order: -1;
    width: 100%;
    min-height: 21rem;
  }
  .map-frame iframe {
    min-height: 21rem;
  }
  .area-list {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .area-info {
    bottom: var(--s3);
    left: var(--s3);
    width: calc(100% - var(--s6));
  }
  .pricing-summary {
    padding: var(--s6);
  }
  .faq-aside .photo {
    display: none;
  }
  .faq-list details > :not(summary) {
    margin-right: 0;
  }
  .before-after {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 29.99rem) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions .header-phone {
    min-height: 2.6rem;
  }
  .cta-bar-actions .header-phone {
    font-size: 0.82rem;
  }
  .cta-bar .button {
    padding-inline: 0.75rem;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-columns > :first-child {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg {
    animation: none;
  }
}

/* Contract root hooks and remaining shared page templates */
[data-tabs],
[data-stepper],
[data-playground],
[data-hotspots],
[data-gallery-filter],
[data-area-info],
[data-pricing] {
  min-width: 0;
}
.swatch:has(input:checked) {
  border-width: 2px;
}
.reviews-widget {
  min-height: 7rem;
  padding: var(--s6);
  border-radius: var(--control-radius);
  background: var(--travertine);
  color: var(--espresso);
}
.reviews-widget > * {
  max-width: 100%;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--travertine-2);
  font-size: var(--fs-small);
  font-weight: 700;
}
.breadcrumb a {
  color: var(--travertine);
  text-decoration: none;
}
.project-specs {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--travertine);
  color: var(--espresso);
  font-size: var(--fs-small);
}
.project-specs strong {
  color: var(--olive);
}
.contact-layout {
  display: grid;
  gap: clamp(var(--s6), 6vw, var(--s12));
  align-items: start;
}
.contact-details {
  display: grid;
  gap: var(--s5);
}
.contact-details dl {
  display: grid;
  gap: var(--s1);
  margin: 0;
}
.contact-details dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-details dd {
  margin: 0;
}
.privacy-layout {
  display: grid;
  gap: clamp(var(--s8), 8vw, var(--s16));
  align-items: start;
}
.privacy-toc {
  display: grid;
  gap: var(--s2);
  padding: var(--s5);
  border-top: 1px solid var(--line);
}
.privacy-toc a {
  color: var(--espresso);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}
.privacy-toc a:hover {
  color: var(--olive);
}
.service-includes {
  display: grid;
  gap: var(--s3);
  padding: var(--s8);
}
@media (min-width: 48rem) {
  .contact-layout {
    grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
  }
  .privacy-layout {
    grid-template-columns: minmax(13rem, 0.42fr) minmax(0, 1fr);
  }
  .privacy-toc {
    position: sticky;
    top: calc(var(--header-h) + var(--s6));
  }
}

/* Final template bindings: semantic markup remains identical with and without JS. */
html { scroll-behavior: auto; }
h3 { font-weight: 600; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; }
.button:has(.icon)::after, .text-link:has(.icon)::after { content: none; }
.brand-name, .brand-sub { display: block; }
.phone-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero .phone-link { min-height: 54px; }
.nav-dropdown > summary > .icon { display: none; }
.desktop-nav .nav-dropdown > div { position: absolute; right: 0; top: 100%; width: 300px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--travertine); color: var(--espresso); max-height: 65vh; overflow: auto; }
.nav-dropdown > div > a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; text-decoration: none; }
.nav-dropdown > div > a:hover { background: var(--travertine-2); }
#mobile-menu { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--espresso); color: var(--travertine); }
#mobile-menu[open] .mobile-sheet { display: flex; flex-direction: column; overflow-y: auto; gap: 28px; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-sheet nav { display: grid; gap: 4px; }
.mobile-sheet nav > a, .mobile-sheet nav summary { display: flex; align-items: center; min-height: 52px; font-family: Epilogue, sans-serif; font-size: 28px; font-weight: 700; text-decoration: none; }
.mobile-sheet .nav-dropdown { border-top: 1px solid var(--line-dark); }
.mobile-sheet .nav-dropdown > div > a { font-size: 16px; min-height: 44px; color: var(--travertine); }
.hero.page-hero { height: auto; min-height: max(520px,60svh); }
.page-hero h1 { font-size: var(--fs-h1); }
.project-hero .hero-copy { grid-column: 1 / span 8; }
.spec-slab { grid-column: 10 / -1; padding: 28px; min-width: 0; }
.spec-slab dl { display: grid; gap: 4px; margin: 16px 0 0; }
.spec-slab dt { color: var(--olive); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.spec-slab dd { margin: 0 0 12px; font-size: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.hero-caption { background: var(--espresso-2); padding: 8px 12px; border-radius: 8px; font-size: 11px; max-width: 30vw; }
.intro-statement { max-width: none; display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.true-facts { display: grid; align-content: start; }
.true-facts p { border-top: 1px solid var(--line); padding: 20px 0; font-size: 17px; font-weight: 700; }
.prose { max-width: 64ch; }
.prose p + p { margin-top: 24px; }
.prose section + section { margin-top: 56px; }
.prose h2 { margin-bottom: 24px; font-size: clamp(26px,3vw,40px); }
.panel-copy { display: grid; align-content: center; justify-items: start; gap: 20px; padding: 16px; }
.tab-heading { grid-template-columns: minmax(0,1fr) 20px; }
.tab-heading > .icon { align-self: center; }
.tab-heading strong { display: block; }
[data-tabs-kind=materials] .tab-heading { display: flex; justify-content: space-between; color: var(--espresso); border-color: var(--line); font-size: 18px; font-weight: 600; }
[data-tabs-kind=materials] .tab-heading[aria-selected=true], [data-tabs-kind=materials] .tab-heading[aria-expanded=true] { color: var(--olive); }
[data-tabs-kind=materials] .tab-panel { grid-template-columns: 1fr; padding: 32px; gap: 20px; }
.control-row { flex-wrap: wrap; }
.control-option { position: relative; display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; text-transform: none; letter-spacing: 0; cursor: pointer; background: var(--travertine); }
.control-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.control-option:has(input:checked) { border: 2px solid var(--olive); padding: 9px 11px; background: var(--travertine-2); }
.control-option:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 3px; }
.control-option .swatch { display: block; min-width: 20px; min-height: 20px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--swatch); }
.range-label, .range-endpoints { display: flex; justify-content: space-between; }
.range-endpoints { font-size: 12px; margin-top: -16px; }
.playground-controls { gap: 24px; }
.hotspot-image > img { display: block; width: 100%; height: auto; }
.hotspot span { display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.hotspot::after { display: none; }
.hotspot-popover { transform: none; }
[data-stepper] { display: grid; gap: 24px; }
[data-step]::before { content: none; }
.step-number { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--sand); background: var(--espresso); }
[data-step][aria-current=step] .step-number, [data-step][aria-expanded=true] .step-number { background: var(--sand); color: var(--espresso); }
.stepper-accordion { display: grid; gap: 12px; }
.project-card { display: flex; flex-direction: column; }
.project-card-photo { flex: 1; min-height: 200px; overflow: hidden; }
.project-card-photo > img { width: 100%; height: 100%; min-height: 200px; aspect-ratio: 4 / 3; border-radius: 0; object-fit: cover; transition: transform .4s ease; }
.project-card:nth-child(8n+1) .project-card-photo > img { aspect-ratio: 1; }
.project-card:hover .project-card-photo > img { transform: scale(1.025); }
.project-card-copy { position: relative; padding-right: 40px; }
.project-card-copy > .icon { position: absolute; right: 16px; bottom: 16px; }
.project-card-copy .small { color: var(--muted); }
[data-gallery-count] { margin: 20px 0; }
#quote-modal { padding: 0; border: 0; border-radius: 20px; background: transparent; max-width: calc(100vw - 24px); max-height: 94dvh; }
.modal-panel { padding-top: 64px; }
.planner-actions, .form-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.choice-card { letter-spacing: 0; text-transform: none; font-size: 16px; grid-template-columns: 1fr 20px; }
.choice-card > .icon { opacity: 0; }
.choice-card:has(input:checked) > .icon { opacity: 1; }
button.text-link { padding: 8px 0; border: 0; background: transparent; color: var(--olive); min-height: 44px; text-align: left; }
.form-consent { max-width: 38ch; }
.form-status.is-error { color: #813918; }
.form-hint, .small { font-size: 14px; line-height: 1.5; }
.lead-form { grid-template-columns: 1fr 1fr; }
.lead-form .full { grid-column: 1 / -1; }
#project-lightbox { display: none; }
#project-lightbox[open] { display: grid; place-items: center; }
[data-lightbox-image] { max-height: 72dvh; min-height: 280px; }
.lightbox-info h2 { font-size: 24px; }
.lightbox-controls { flex-wrap: wrap; align-items: center; }
[data-lightbox-prev] .icon, [data-gallery-prev] .icon { transform: rotate(90deg); }
[data-lightbox-next] .icon, [data-gallery-next] .icon { transform: rotate(-90deg); }
.project-gallery { grid-template-columns: minmax(0,1fr) 110px; }
.gallery-main-button { display: grid; place-items: center; grid-row: 1; grid-column: 1; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--espresso-2); }
img.gallery-main { width: 100%; height: min(72svh,760px); object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; grid-column: 1; grid-row: 2; }
.gallery-thumbnails { display: flex; flex-direction: column; gap: 12px; grid-column: 2; grid-row: 1; max-height: 72svh; overflow-y: auto; }
[data-gallery-thumb] { width: 100%; }
.gallery-main-button, [data-lightbox-image] { touch-action: pan-y; }
.area-map-wrap { position: relative; min-width: 0; }
.area-list .icon { margin-left: auto; }
.principle-slabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.principle-slabs > article, .contact-layout > .slab, .plain-contact-form, .quote-layout > .slab { padding: 36px; }
.principle-slabs article { display: grid; gap: 20px; }
.two-col > .slab:has(.included-list) { padding: 32px; }
.contact-layout { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.privacy-header { padding-top: 150px; }
.privacy-header h1 { margin-bottom: 24px; }
.privacy-layout { margin-top: 64px; }
.privacy-toc ol { display: grid; gap: 8px; padding-left: 24px; }
.privacy-toc a { display: block; min-height: 44px; }
.footer-columns > div { display: grid; align-content: start; gap: 10px; min-width: 0; }
.footer-columns a { display: block; min-height: 36px; overflow-wrap: anywhere; }
.copyright { padding: 24px 0 80px; font-size: 13px; }
.cta-bar > .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.cta-bar > .container > div { display: flex; align-items: center; gap: 24px; }
.cta-bar { transition: none; }
.cta-band > .container { padding-block: 80px; display: grid; gap: 24px; }
.hero-bg { animation: hero-settle 1.2s var(--ease) both; }
.project-navigation { display: flex; justify-content: space-between; gap: 32px; }
.project-navigation a { display: grid; max-width: 45%; gap: 8px; }
.project-navigation small { color: var(--muted); }
@media (max-width: 1199px) { .desktop-nav { gap: 14px; } .header-actions > .phone-link { display: none; } .header-actions > .button { padding: 0 18px; } }
@media (max-width: 1023px) { .hero-copy { grid-column: 1 / span 7; } .planner-starter { grid-column: 8 / -1; } .project-hero .hero-copy { grid-column: 1 / span 8; } .spec-slab { grid-column: 9 / -1; } .intro-statement { gap: 36px; } }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } .panel-photo { min-height: 230px; max-height: 280px; } .playground-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .hero-copy, .planner-starter, .project-hero .hero-copy, .spec-slab { grid-column: 1; }
  .hero h1 { font-size: clamp(46px,12.7vw,64px); }
  .page-hero h1 { font-size: clamp(38px,10.5vw,56px); }
  .hero-actions .button { flex: 0 0 auto; }
  .hero-actions .phone-link { min-height: 44px; }
  .hero-caption { display: none; }
  .intro-statement { grid-template-columns: 1fr; }
  .intro-statement .lead { max-width: 42ch; }
  .control-row { flex-wrap: nowrap; }
  .control-row > label { flex: 0 0 auto; }
  .control-option { max-width: 150px; }
  .project-card:nth-child(8n+1) .project-card-photo > img { aspect-ratio: 16 / 10; }
  .project-card-photo > img { min-height: 160px; }
  .lead-form { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-thumbnails { grid-column: 1; grid-row: 3; flex-direction: row; overflow-x: auto; }
  [data-gallery-thumb] { width: 85px; }
  .lightbox-panel { width: 100%; }
  [data-lightbox-image] { min-height: 0; max-height: 50dvh; height: auto; }
  .hotspot-popover { transform: none; }
  .area-layout { flex-direction: column-reverse; }
  .area-map-wrap { width: 100%; }
  .principle-slabs, .contact-layout { grid-template-columns: 1fr; }
  .principle-slabs > article, .contact-layout > .slab, .plain-contact-form, .quote-layout > .slab { padding: 24px; }
  .cta-bar > .container > span { display: none; }
  .cta-bar > .container > div { width: 100%; justify-content: space-between; gap: 12px; }
  .cta-band > .container { padding-block: 64px; }
  .spec-slab { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

/* Motion/brand details required by the final brief. */
.site-header, .header-inner, .button, .choice-card, .stepper-line::after { transition: none; }
.hero:not(.page-hero) h1 { line-height: .95; letter-spacing: -.03em; }
.page-hero h1 { font-weight: 700; letter-spacing: -.02em; }
h1, h2 { letter-spacing: -.02em; }
.intro-section h2 { font-weight: 500; }
.brand-sub { font-size: 13px; letter-spacing: .06em; }
.hero .planner-starter .eyebrow { color: var(--olive); }
.cta-bar .button { background: var(--sand); color: var(--espresso); }
.choice-card, .swatch { background: var(--travertine); }
.footer-columns a { min-height: 44px; }

.photo-page .site-header:not(.is-compact) { background: rgba(31,24,19,.64); }
.intro-statement { display: block; }
.intro-statement .lead { max-width: 55ch; }
.true-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 48px; }
.true-facts p + p { margin-top: 0; }
@media (max-width: 767px) { .true-facts { grid-template-columns: 1fr; gap: 0; } }

.slab .eyebrow { color: var(--olive); }
.footer-texture::before { content: attr(data-texture); }
@media (min-width:768px) { .playground-preview { margin-top: -64px; } }

/* A conservative text zone handles the lightest possible pixels of every real photo. */
@media (min-width:768px) { .hero-scrim, .cta-scrim { background: linear-gradient(90deg, var(--scrim) 0%, rgba(31,24,19,.72) 62%, rgba(31,24,19,0) 100%); } }
.photo-page .site-header:not(.is-compact) { background: rgba(31,24,19,.66); }
.photo-page .site-header:not(.is-compact) .button { background: var(--travertine); color: var(--espresso); }
.cta-bar .button { min-height: 54px; }
.cta-band .container > p { max-width: 45ch; }

/* Hero lead form */
.hero-form .form-shell { margin-top: var(--s4); }
.hero-form .lead-form { gap: var(--s3); }
.hero-form .form-field { gap: 0.3rem; }
.hero-form .form-field > label { font-size: var(--fs-small); font-weight: 700; }
.hero-form .form-field input,
.hero-form .form-field textarea { min-height: 2.75rem; padding: 0.55rem 0.75rem; }
.hero-form .form-field textarea { min-height: 4.25rem; }
.hero-form .form-bottom { gap: var(--s3); }
.hero-form .form-bottom .button { width: 100%; justify-content: center; }
.hero-form .form-consent { max-width: none; font-size: 0.78rem; }
.hero-form .field-error:empty { display: none; }
@media (min-width: 48rem) { .hero .planner-starter.hero-form { grid-column: 8 / -1; } }
.hero .hero-form .button:not(.secondary) { background: var(--espresso); color: var(--travertine); }
.hero .hero-form .button:not(.secondary):hover { background: var(--olive); color: var(--travertine); }
.hero .hero-form .form-field > label { color: var(--espresso); }
.hero:has(.hero-form) { display: grid; height: auto; min-height: clamp(40rem, 92svh, 61.25rem); }
.hero.page-hero:has(.hero-form) { min-height: clamp(30rem, 60svh, 45rem); }
.hero:has(.hero-form) .hero-inner { height: auto; }

/* Footer wordmark as background */
.site-footer { padding-bottom: 4.5rem; }
.footer-texture { top: 50%; bottom: auto; transform: translate(-50%, -50%); font-size: clamp(5rem, 18vw, 20rem); color: rgba(241, 235, 225, 0.07); }
.site-footer > .container { position: relative; z-index: 1; }
.hero h1, .hero:not(.page-hero) h1 { line-height: 1.04; }
.is-mobile-accordion .tab-heading > .icon { transform: rotate(90deg); transition: transform var(--ui) var(--ease); }
.is-mobile-accordion .tab-heading[aria-expanded="true"] > .icon { transform: rotate(-90deg); }
@media (max-width: 47.99rem) {
  .control-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: auto; margin-right: 0; padding-right: 0; overflow: visible; scroll-snap-type: none; }
  .control-row > label { flex: none; }
  .control-option { max-width: none; }
}
@media (max-width: 47.99rem) {
  .footer-texture { top: auto; bottom: calc(4.5rem - 0.1em); transform: translateX(-50%); font-size: 21vw; }
  .site-footer > .container { padding-bottom: 20vw; }
}
