/* Sightline 3D Walkthroughs
   Concept: a calm, bright site that gets out of the way of the tours. Paper and ink,
   one red: the red "floor line" from the logo marks progress and the ground under things. */

:root {
  --paper: #FFFDFA;
  --paper-2: #F4EFE7;
  --ink: #16181C;
  --ink-2: #3B3D42;
  --stone: #6E6862;
  --line: #E6DFD4;
  --red: #D7253D;
  --red-dark: #B01C31;
  --night: #000;

  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: 62ch; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: rgba(215, 37, 61, .18); color: var(--ink); }
.section--ink ::selection, .section--night ::selection, .site-footer ::selection, .on-dark ::selection { background: rgba(215, 37, 61, .55); color: #fff; }
input, textarea, select { caret-color: var(--red); accent-color: var(--red); }
a:not(.button) { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Type scale */
.t-hero { font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -0.045em; line-height: 0.98; }
.t-1 { font-size: clamp(36px, 5vw, 64px); }
.t-2 { font-size: clamp(28px, 3.4vw, 44px); }
.t-3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--stone); }
.small { font-size: 14px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none;
  font: 500 16px/1 var(--display); border: 1px solid var(--red);
  transition: background-color .2s, border-color .2s, color .2s;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button--ghost { background: transparent; color: inherit; border-color: currentColor; }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .button--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { font-family: var(--display); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.site-header { background: rgba(255, 253, 250, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand__wide--paper, .brand__short, .brand__short--paper { display: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.button) { text-decoration: none; font: 500 15px/1 var(--display); padding: 8px 0; border-bottom: 1.5px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:not(.button):hover { border-bottom-color: var(--red); }
.menu-toggle { display: none; }

/* Header over the dark hero (home page, before scrolling) */
.site-header.is-clear { color: var(--paper); }
.site-header.is-clear .brand__wide--ink { display: none; }
.site-header.is-clear .brand__wide--paper { display: block; }

@media (max-width: 860px) {
  .brand__wide--ink, .brand__wide--paper { display: none !important; }
  .brand__short--ink { display: block; }
  .site-header.is-clear .brand__short--ink { display: none; }
  .site-header.is-clear .brand__short--paper { display: block; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
    border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit;
    font: 500 15px/1 var(--display);
  }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px var(--gutter) 24px;
    box-shadow: 0 1px 0 var(--line), 0 20px 40px rgba(22, 24, 28, .08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 18px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .muted, .section--ink .lede { color: #B9B3AC; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }

/* Home: scroll-locked hero video (wheel/touch scrub the video; the page unlocks at the end) */
.scrollhero { position: relative; height: 100vh; height: 100dvh; min-height: 520px; overflow: hidden; background: var(--night); color: var(--paper); touch-action: none; }
.scrollhero.is-free { touch-action: auto; }
.scrollhero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; transform-origin: center; will-change: transform; pointer-events: none; }
.scrollhero.is-ready .scrollhero__video { opacity: 1; }
.scrollhero:not(.is-ready) .scrollhero__hint { opacity: 0; }
.scrollhero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,0) 28%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.72)); pointer-events: none; }
.scrollhero__title { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 6%; text-align: center; pointer-events: none; }
.scrollhero__title h1 { max-width: 13ch; text-shadow: 0 4px 30px rgba(0,0,0,.45); will-change: transform, filter, opacity; }
.scrollhero__tagline { position: absolute; left: 0; right: 0; bottom: clamp(64px, 12vh, 140px); margin-inline: auto; opacity: 0; visibility: hidden; }
.scrollhero__tagline .lede { color: #EDE7DE; max-width: 34ch; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.scrollhero__hint { position: absolute; left: 50%; bottom: clamp(24px, 6vh, 52px); transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: rgba(240,236,230,.8); font: 500 14px/1 var(--display); transition: opacity .4s; pointer-events: none; }
.scrollhero__hint svg { animation: hero-cue 2.2s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes hero-cue { 0% { transform: translateY(-4px); opacity: 0; } 35% { opacity: 1; } 80%, 100% { transform: translateY(6px); opacity: 0; } }
.scrollhero__skip { position: absolute; right: var(--gutter); bottom: clamp(20px, 5vh, 44px); background: transparent; border: 0; color: rgba(240,236,230,.75); font: 500 14px/1 var(--display); cursor: pointer; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.scrollhero__skip:hover { color: #fff; }
.scrollhero__hint, .scrollhero__skip { transition: opacity .4s cubic-bezier(.16,1,.3,1); }
.scrollhero.is-free .scrollhero__hint, .scrollhero.is-free .scrollhero__skip { opacity: 0 !important; pointer-events: none; }
@media (max-width: 640px) { .scrollhero__tagline { bottom: 88px; } .scrollhero__hint { bottom: 22px; } }
.scrollhero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.scrollhero__progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.scrollhero.is-static .scrollhero__title { display: none; }
.scrollhero.is-static .scrollhero__tagline { opacity: 1; visibility: visible; }
.scrollhero.is-static .scrollhero__hint, .scrollhero.is-static .scrollhero__skip { display: none; }
.scrollhero.is-static .scrollhero__tagline::before { content: "Your space, walkable from anywhere."; display: block; font: 500 clamp(44px, 7.4vw, 104px)/.98 var(--display); letter-spacing: -0.045em; margin-bottom: 24px; max-width: 13ch; }
.scrollhero.no-video {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(215, 37, 61, .18), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 80px),
    #0B0C0E;
}

/* Sector doors */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.door {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: clamp(420px, 52vw, 620px); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  color: var(--paper); text-decoration: none; background: #2A2724;
}
.door__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.door > *:not(.door__media) { position: relative; z-index: 1; }
.door h3 { font-size: clamp(30px, 3.6vw, 48px); }
.door p { color: #EAE4DB; }
.door__go { margin-top: 10px; font: 500 16px/1 var(--display); display: inline-flex; gap: 10px; align-items: center; }
.door__go::before { content: ""; width: 40px; height: 3px; background: var(--red); transform: scaleX(.7); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.door:hover .door__media { transform: scale(1.04); }
.door:hover .door__go::before, .door:focus-visible .door__go::before { transform: scaleX(1); }
.door--realestate { background: #3A342E; }
.door--holiday { background: #2F3A3A; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { min-height: 380px; } }

/* Walk one: click-to-load tour */
.tour { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1B1C1F; color: var(--paper); }
.tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.tour__start {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit;
}
.tour__start span:first-child {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,253,250,.14); border: 1px solid rgba(255,253,250,.5); backdrop-filter: blur(6px);
  transition: transform .25s, background-color .25s;
}
.tour__start span:first-child::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.tour__start:hover span:first-child { transform: scale(1.06); background: rgba(255,253,250,.24); }
.tour__start span:last-child { font: 500 16px/1 var(--display); }
.tour__label { position: absolute; left: 20px; bottom: 18px; right: 20px; font: 500 15px/1.3 var(--display); pointer-events: none; }
.tour iframe { opacity: 0; pointer-events: none; transition: opacity .5s cubic-bezier(.16,1,.3,1); }
.tour.is-live iframe { opacity: 1; pointer-events: auto; }
.tour.is-live .tour__start, .tour.is-live .tour__poster, .tour.is-live .tour__label { display: none; }
.tour.is-waiting .tour__start { cursor: progress; }
.tour__alt { margin-top: 12px; color: var(--stone); }
.tour__alt a { color: inherit; }
.section--ink .tour__alt, .section--night .tour__alt { color: #B9B3AC; }
.tour.is-waiting .tour__start span:first-child::before { border: 2px solid rgba(255,253,250,.35); border-top-color: var(--paper); border-radius: 50%; width: 26px; height: 26px; margin: 0; animation: tour-spin .8s linear infinite; }
@keyframes tour-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .tour { aspect-ratio: 4 / 5; } }

/* Three-up points */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.point { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.section--ink .point { border-top-color: rgba(255,255,255,.18); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* Steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); font: 500 56px/1 var(--display); letter-spacing: -0.04em; color: var(--red); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Two-column feature list */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.benefits div { display: grid; gap: 6px; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

/* Case study cards */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { text-decoration: none; display: grid; gap: 16px; }
.case__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case__img img { transform: scale(1.03); }
.case h3 { font-size: 26px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* Packages table */
.packages { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.packages table { width: 100%; min-width: 620px; border-collapse: collapse; }
.packages th, .packages td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.packages thead th { font: 500 20px/1.2 var(--display); letter-spacing: -0.02em; }
.packages thead th small { display: block; font: 500 13px/1.3 var(--body); color: var(--red); margin-top: 6px; letter-spacing: 0; }
.packages tbody th { font-weight: 400; color: var(--ink-2); }
.packages td { text-align: center; width: 18%; }
.packages .tick::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--red); border-radius: 2px; vertical-align: middle; }
.packages .tick { font-size: 0; }
.packages tr.price-row td { font: 500 18px/1.2 var(--display); }
.packages tr:last-child th, .packages tr:last-child td { border-bottom: 0; }
.pricing-hidden .price-row { display: none; }
.packages-note { margin-top: 14px; }
.packages td, .packages tr.price-row td { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .packages table { min-width: 560px; }
  .packages th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); width: 44%; box-shadow: 1px 0 0 var(--line); }
  .packages th, .packages td { padding: 14px 14px; }
  .packages thead th { font-size: 17px; }
}

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc__form { display: grid; gap: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.calc legend, .calc label.field-label { font: 500 16px/1.3 var(--display); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { transition: background-color .2s, border-color .2s, color .2s; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font: 500 15px/1 var(--display); cursor: pointer; background: var(--paper); }
.chip:hover span { border-color: var(--stone); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.area { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.area__num { position: relative; display: block; }
.area__num span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 15px/1 var(--display); color: var(--stone); pointer-events: none; }
.area input[type="number"] { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 40px 0 14px; font: 500 20px/1 var(--display); background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.area input[type="number"]::-webkit-inner-spin-button, .area input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.area input[type="range"] { width: 100%; accent-color: var(--red); }
.calc__result { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.calc__price { display: grid; font: 500 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc__num, .calc__talk { grid-area: 1 / 1; transition: opacity .38s cubic-bezier(.2,.7,.2,1), transform .38s cubic-bezier(.2,.7,.2,1), filter .38s; }
.calc__from { font-size: .42em; letter-spacing: 0; color: #B9B3AC; margin-right: .2em; }
.calc__talk { opacity: 0; transform: translateY(14px); filter: blur(6px); pointer-events: none; }
.calc__price.is-talk .calc__num { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.calc__price.is-talk .calc__talk { opacity: 1; transform: none; filter: none; color: var(--paper); }
.area__zones { grid-column: 2; display: grid; grid-template-columns: var(--edge, 60%) 1fr; margin-top: -6px; font: 500 12px/1 var(--body); color: var(--stone); }
.area__zone { padding-top: 8px; border-top: 3px solid var(--line); transition: border-color .3s, color .3s; }
.area__zone--est { border-top-color: var(--red); color: var(--ink); }
.area__zone--talk { padding-left: 8px; border-top-style: dashed; }
.area__zones.is-talk .area__zone--est { border-top-color: var(--line); color: var(--stone); }
.area__zones.is-talk .area__zone--talk { border-top-color: var(--ink); color: var(--ink); }
.calc__lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #D8D2C9; font-size: 15px; }
.calc__lines li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 8px; }
.calc__note { font-size: 14px; color: #B9B3AC; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc__result { position: static; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 500 clamp(18px, 1.6vw, 21px)/1.3 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 2px; background: var(--ink); box-shadow: none; transform: translateY(-50%); }
.faq summary::before { content: ""; position: absolute; right: 11px; top: 50%; width: 2px; height: 16px; background: var(--ink); transform: translateY(-50%); transition: transform .2s; }
.faq details[open] summary::before { transform: translateY(-50%) scaleY(0); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* Sector hero (inner pages) */
.pagehero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--paper); background: #1E1C1A; overflow: hidden; }
.pagehero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.1) 40%, rgba(0,0,0,.7)); }
.pagehero .wrap { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 48px) clamp(48px, 8vw, 96px); }
.pagehero p { color: #ECE6DD; }

/* Plain pages (about, contact, terms) */
.plainhero { padding-block: calc(var(--header-h) + clamp(56px, 8vw, 110px)) clamp(40px, 6vw, 72px); }
.prose { max-width: 720px; display: grid; gap: 18px; }
.prose h2 { font-size: 28px; margin-top: 24px; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.signoff { margin-top: 8px; font: 500 20px/1.35 var(--display); letter-spacing: -0.01em; }
.signoff .muted { font: 400 16px/1.5 var(--body); letter-spacing: 0; }

/* Facts strip on case studies */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts dt { font-size: 14px; color: var(--stone); }
.facts dd { margin: 6px 0 0; font: 500 24px/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--stone); font-size: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font: 500 15px/1.2 var(--display); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #CFC6B8; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(215, 37, 61, .18); }
.form input, .form select, .form textarea { transition: border-color .2s, box-shadow .2s; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 400 16px/1.4 var(--body); background: var(--paper); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__status { font-size: 15px; }
.calendly-inline-widget { height: 700px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.calendly-inline-widget iframe { width: 100%; height: 100%; }
@media (max-width: 640px) { .calendly-inline-widget { height: 1000px; } }
@media (max-width: 900px) { .contact-grid, .form .row { grid-template-columns: 1fr; } }

/* Closing call to action */
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 7vw, 96px); position: relative; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__brand { display: grid; gap: 18px; }
.site-footer__brand img { height: 52px; width: auto; }
.site-footer__brand p { color: #B9B3AC; max-width: 34ch; }
.site-footer__links, .site-footer__contact { display: grid; gap: 10px; align-content: start; }
.site-footer a { text-decoration: none; color: #E9E3DA; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.site-footer__contact span { color: #B9B3AC; }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 20px; padding-block: 40px 28px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #8F8982; }
.site-footer__base span { margin-right: auto; }
.floor-line { height: 6px; background: var(--red); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Hidden-on-purpose helpers */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dark section and the dollhouse showcase (inspired by 3D real-estate dashboards) */
.section--night { background: #0E1013; color: var(--paper); }
.section--night .lede { color: #C9C3BA; }
.dollhouse { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background:
  radial-gradient(ellipse at 50% 60%, rgba(215,37,61,.12), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 64px), #15171B; }
.dollhouse__stage { position: absolute; inset: 0; }
.dollhouse__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dollhouse__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s cubic-bezier(.16,1,.3,1); }
.dollhouse.is-live .dollhouse__stage iframe { opacity: 1; }
.dollhouse.is-live .dollhouse__start, .dollhouse.is-live .dollhouse__media { display: none; }
.dollhouse.is-waiting .dollhouse__start { cursor: progress; }
.dollhouse.is-waiting .dollhouse__start span:first-child::before { border: 2px solid rgba(255,253,250,.35); border-top-color: var(--paper); border-radius: 50%; width: 26px; height: 26px; margin: 0; animation: tour-spin .8s linear infinite; }
/* while exploring, the info cards step aside so the model can be dragged */
.dollhouse.is-live .dollhouse__card--plan, .dollhouse.is-live .dollhouse__card--facts { opacity: 0 !important; pointer-events: none; transform: none; transition: opacity .4s; }
.section--night .tour__alt { color: #B9B3AC; }
.dollhouse__card { position: absolute; background: rgba(22, 24, 28, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px 18px; color: var(--paper); }
.dollhouse__card .small { color: #B9B3AC; display: block; margin-bottom: 10px; }
.dollhouse__card--plan { top: 20px; right: 20px; width: min(34%, 320px); }
.dollhouse__card--plan a { display: block; cursor: zoom-in; }
.dollhouse__card--plan img { display: block; width: 100%; height: auto; border-radius: 6px; }
.dollhouse__plan-fallback { display: block; aspect-ratio: 4 / 3; border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; }
.dollhouse__card--facts { left: 20px; bottom: 20px; width: min(34%, 300px); display: grid; gap: 14px; }
.dollhouse__card--facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.dollhouse__card--facts dt { font-size: 12px; color: #B9B3AC; }
.dollhouse__card--facts dd { margin: 4px 0 0; font: 500 18px/1.1 var(--display); }
.dollhouse__card--facts ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; color: #E4DED5; }
.dollhouse__card--facts li::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--red); margin-right: 8px; vertical-align: middle; }
.dollhouse__card--cta { right: 20px; bottom: 20px; text-decoration: none; display: grid; gap: 2px; transition: background-color .2s; }
.dollhouse__card--cta strong { font: 500 20px/1.2 var(--display); }
.dollhouse__card--cta:hover { background: var(--red); border-color: var(--red); }
.dollhouse__card--cta:hover .small { color: #fff; }
.dollhouse.is-armed .dollhouse__card { opacity: 0; filter: blur(8px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1), background-color .2s; }
.dollhouse.is-armed .dollhouse__card--plan { transform: translate(24px, -12px); }
.dollhouse.is-armed .dollhouse__card--facts { transform: translate(-24px, 16px); transition-delay: .18s; }
.dollhouse.is-armed .dollhouse__card--cta { transform: translateY(20px); transition-delay: .36s; }
.dollhouse.is-armed.is-in .dollhouse__card { opacity: 1; filter: none; transform: none; }
.dollhouse.is-armed.is-in .dollhouse__card--cta:hover { transition-delay: 0s; }
@media (max-width: 860px) {
  .dollhouse { aspect-ratio: auto; display: grid; gap: 12px; padding: 12px; min-height: 0; }
  .dollhouse__stage { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
  .dollhouse.is-live .dollhouse__card--plan, .dollhouse.is-live .dollhouse__card--facts { display: none; }
  .dollhouse__card { position: static; width: auto !important; }
}
