/* Hollis & Pine (sample 3D showcase). Warm dark, brass light, and the room is the page. */
:root {
  --night: #15130f;
  --night-2: #1d1a15;
  --night-3: #27231c;
  --line: rgba(255, 255, 255, 0.12);
  --white: #f4f0e8;
  --mute: #a89f90;
  --lantern: #d9b26a;
  --lantern-2: #e6c587;
  --display: "Fraunces", Georgia, serif;
  --f: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --pad: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 720px) { :root { --pad: 40px; } }
@media (min-width: 1200px) { :root { --pad: max(56px, 5vw); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--white); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
h1 em, h2 em { font-style: italic; color: var(--lantern); font-weight: 300; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; }

.fn-bar__plan { margin-left: auto; font-weight: 600; white-space: nowrap; }
.fn-bar__plan span { font-weight: 400; opacity: 0.7; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 99px; font: 600 1rem/1 var(--f); text-decoration: none; cursor: pointer; transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn--lantern { background: var(--lantern); color: var(--night); box-shadow: 0 10px 40px -10px rgba(255, 197, 110, 0.7); }
.btn--lantern:hover { background: var(--lantern-2); transform: translateY(-2px); }
.btn--line { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.btn--line:hover { background: rgba(255, 255, 255, 0.1); }

/* loader */
.loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; gap: 18px; background: var(--night); transition: opacity 0.8s var(--ease), visibility 0.8s; }
.loader__mark { font: 300 italic clamp(2.4rem, 6vw, 4rem)/1 var(--display); color: var(--white); }
.loader__bar { display: block; width: 180px; height: 2px; margin: 0 auto; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--lantern); animation: load 1.1s ease-in-out infinite; }
html.is-ready .loader, html.no-webgl .loader { opacity: 0; visibility: hidden; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* header */
.top { position: fixed; top: 48px; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 16px var(--pad); }
.top { transition: background 0.4s, box-shadow 0.4s; }
html.mode-solid .top { background: rgba(21, 19, 15, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.5rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--white); }
.logo svg { width: 26px; height: 26px; fill: none; stroke: var(--lantern); stroke-width: 2; }
.logo rect { fill: var(--lantern); stroke: none; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: rgba(243, 245, 248, 0.8); }
.nav a:hover { color: var(--lantern); }
.top__cta { margin-left: auto; padding: 11px 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.top__cta:hover { background: var(--lantern); color: var(--night); }
@media (min-width: 900px) { .nav { display: flex; } .top__cta { margin-left: 0; } }

/* the 3D stage stays put behind the first half of the page */
.stage { position: fixed; inset: 0; z-index: 0; }
.stage canvas { display: block; width: 100%; height: 100%; }
.scrim { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.6s; background:
  linear-gradient(180deg, rgba(21, 19, 15, 0.55) 0%, rgba(21, 19, 15, 0) 22%),
  linear-gradient(0deg, rgba(21, 19, 15, 0.9) 0%, rgba(21, 19, 15, 0.55) 34%, rgba(21, 19, 15, 0) 60%); }
@media (min-width: 900px) {
  .scrim { background:
    linear-gradient(180deg, rgba(21, 19, 15, 0.5) 0%, rgba(21, 19, 15, 0) 20%),
    linear-gradient(90deg, rgba(21, 19, 15, 0.82) 0%, rgba(21, 19, 15, 0.45) 34%, rgba(21, 19, 15, 0) 58%); }
}
html.mode-make .scrim { opacity: 0.35; }
.stage__fallback { display: none; position: absolute; inset: 0; place-items: center; color: var(--mute); }
.stage__fallback svg { width: min(60vw, 360px); }
html.no-webgl .stage__fallback { display: grid; }
html.no-webgl canvas { display: none; }

/* chapter progress, only while the build story is on screen */
.progress { position: fixed; z-index: 15; left: var(--pad); right: var(--pad); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: ch; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
html.mode-story .progress { opacity: 1; pointer-events: auto; }
.progress li { counter-increment: ch; }
.progress a { display: block; padding-top: 10px; border-top: 2px solid rgba(255, 255, 255, 0.22); font-size: 0; text-decoration: none; transition: border-color 0.4s, opacity 0.4s; }
.progress li.is-on a { border-color: var(--lantern); }
@media (min-width: 900px) {
  .progress { left: auto; width: min(640px, 50vw); gap: 12px; }
  .progress a { font-size: 0.8rem; font-weight: 500; opacity: 0.55; }
  .progress a::before { content: "0" counter(ch) "  "; white-space: pre; color: var(--lantern); }
  .progress li.is-on a { opacity: 1; }
}

main { position: relative; z-index: 10; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding: 140px var(--pad) 40px; }
.hero__kicker { font-weight: 600; font-size: 0.92rem; color: var(--lantern); }
.hero h1 { margin-top: 16px; font-size: clamp(3rem, 8.6vw, 7.8rem); line-height: 0.95; }
.hero__lede { margin-top: 22px; max-width: 34rem; color: #ccd4de; font-size: 1.1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); max-width: 760px; }
.hero__facts li { display: grid; gap: 2px; padding-right: 12px; }
.hero__facts b { font: 400 clamp(1.4rem, 3vw, 2.1rem)/1 var(--display); }
.hero__facts span { font-size: 0.85rem; color: var(--mute); }
.hero__cue { position: absolute; right: var(--pad); bottom: 44px; writing-mode: vertical-rl; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--mute); }
.hero__cue::after { content: ""; display: block; width: 1px; height: 56px; margin: 12px auto 0; background: linear-gradient(var(--lantern), transparent); }
@media (max-width: 899px) { .hero__cue { display: none; } }

/* rewind */
.rewind { min-height: 90vh; display: grid; align-content: center; padding: 0 var(--pad); }
.rewind__line { font: 300 clamp(2rem, 5vw, 4.2rem)/1.08 var(--display); letter-spacing: -0.02em; max-width: 16ch; }
.rewind__line em { color: var(--lantern); }

/* build story */
.chapter { min-height: 130vh; display: flex; align-items: center; padding: 0 var(--pad); }
.chapter__copy { max-width: 440px; }
.chapter__num { font: 300 italic 1.4rem/1 var(--display); color: var(--lantern); }
.chapter h2 { margin-top: 10px; font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
.chapter__copy > p:not(.chapter__num) { margin-top: 16px; font-size: 1.08rem; color: #d3dae3; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.chips li { padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.85rem; font-weight: 500; }
@media (max-width: 899px) { .chapter { align-items: flex-end; padding-bottom: 18vh; } .rewind { align-content: end; padding-bottom: 20vh; } }

/* configurator */
.make { min-height: 200vh; padding: 0 var(--pad); display: flex; justify-content: flex-end; align-items: flex-start; cursor: grab; touch-action: pan-y; }
.make.is-dragging { cursor: grabbing; }
.make__panel { position: sticky; top: 120px; width: min(400px, 100%); margin: 30vh 0 20vh; padding: 28px 24px; border-radius: 22px; background: rgba(21, 19, 15, 0.78); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); cursor: default; }
.make__kicker { font-weight: 600; font-size: 0.9rem; color: var(--lantern); }
.make h2 { margin-top: 10px; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.make__hint { margin-top: 10px; color: var(--mute); font-size: 0.95rem; }
.opt { margin-top: 22px; }
.opt__label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.92rem; }
.opt__label span { font-weight: 400; color: var(--mute); }
.opt__row { display: flex; gap: 10px; margin-top: 10px; }
.opt__row button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.opt__row button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--lantern); transform: scale(1.06); }
.opt__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.opt__seg button { min-height: 40px; border: 0; border-radius: 99px; background: transparent; font-size: 0.88rem; font-weight: 600; color: var(--mute); cursor: pointer; }
.opt__seg button[aria-pressed="true"] { background: var(--white); color: var(--night); }
.make__spec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font: 300 italic 1.15rem/1.35 var(--display); }
.make__btn { width: 100%; margin-top: 18px; }
@media (max-width: 899px) {
  /* phones: a compact bottom sheet, so the house stays in view above it */
  .make { min-height: 180vh; align-items: flex-end; }
  .make__panel { top: auto; bottom: 10px; margin: 70vh 0 10px; padding: 14px 14px 16px; border-radius: 18px; }
  .make__kicker, .make h2, .make__hint, .make__spec { display: none; }
  .opt { margin-top: 0; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; padding: 6px 0; }
  .opt__label { font-size: 0.85rem; }
  .opt__label span { display: none; }
  .opt__row { margin-top: 0; gap: 8px; }
  .opt__row button { width: 34px; height: 34px; }
  .opt__seg { margin-top: 0; }
  .opt__seg button { min-height: 34px; font-size: 0.78rem; }
  .make__btn { margin-top: 10px; min-height: 46px; }
}
@media (max-width: 899px) { .hero__kicker { display: none; } .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); } .hero__lede { font-size: 1rem; } .hero { padding-bottom: 28px; } }

/* homes */
.homes { padding: 120px var(--pad) 100px; background: var(--night); }
.homes__head { display: grid; gap: 16px; max-width: 760px; }
.homes h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.homes__head p { color: var(--mute); font-size: 1.08rem; max-width: 34rem; }
.homes__grid { margin-top: 56px; display: grid; gap: 20px; }
.plan { padding: 26px 24px; border-radius: 20px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 197, 110, 0.5); }
.plan svg { display: block; width: 100%; height: auto; margin-bottom: 22px; padding: 14px; border-radius: 12px; background: var(--night-3); }
.plan svg rect, .plan svg path { fill: none; stroke: #6d7a8d; stroke-width: 2; }
.plan svg rect { stroke: var(--lantern); stroke-width: 3; }
.plan svg text { fill: var(--mute); font: 500 11px var(--f); }
.plan svg text.up { fill: var(--lantern); }
.plan h3 { font-size: 2.2rem; }
.plan > p { margin-top: 10px; color: var(--mute); }
.plan dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
.plan dt { font-size: 0.8rem; color: var(--mute); }
.plan dd { margin: 2px 0 0; font: 400 1.3rem/1.1 var(--display); }
.plan__price { margin-top: 16px; font-weight: 600; }
.plan__price span { font-weight: 400; color: var(--mute); }
@media (min-width: 960px) { .homes__grid { grid-template-columns: repeat(3, 1fr); } }

/* promise */
.promise { padding: 100px var(--pad); background: var(--night-2); display: grid; gap: 64px; }
.promise__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.promise__list li { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.promise__list b { font: 400 1.9rem/1.1 var(--display); }
.promise__list span { color: var(--mute); max-width: 26rem; }
.quote { margin: 0; max-width: 980px; }
.quote blockquote { margin: 0; font: 300 clamp(1.8rem, 4vw, 3.4rem)/1.15 var(--display); letter-spacing: -0.02em; }
.quote figcaption { margin-top: 18px; color: var(--mute); }
@media (min-width: 960px) { .promise__list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* visit */
.visit { padding: 110px var(--pad); background: var(--night); display: grid; gap: 40px; }
.visit h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.visit__copy p { margin-top: 18px; max-width: 30rem; color: var(--mute); font-size: 1.08rem; }
.visit__design { padding: 14px 16px; border-radius: 14px; background: rgba(255, 197, 110, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 197, 110, 0.35); color: var(--white) !important; }
.form { display: grid; gap: 14px; align-self: start; padding: 26px 22px; border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input, .form select { width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--white); font: 400 1rem/1.4 var(--f); }
.form select option { color: var(--night); }
.form input::placeholder { color: #6d7a8d; }
.form input:focus, .form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lantern); }
.form .btn { width: 100%; margin-top: 6px; }
.form-result { padding: 12px 14px; border-radius: 12px; background: rgba(255, 197, 110, 0.14); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 32px; } .form .wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .visit { grid-template-columns: 1fr 1fr; gap: 64px; } }

.foot { padding: 32px var(--pad); background: var(--night); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mute); }
.fn-foot { position: relative; z-index: 10; }

/* motion */
html.fn-anim .hero__copy > * { animation: rise 1s var(--ease) both; }
html.fn-anim .hero__copy > :nth-child(2) { animation-delay: 0.1s; }
html.fn-anim .hero__copy > :nth-child(3) { animation-delay: 0.2s; }
html.fn-anim .hero__copy > :nth-child(4) { animation-delay: 0.3s; }
html.fn-anim .hero__facts { animation: rise 1s 0.45s var(--ease) both; }
html.fn-anim:not(.is-ready) .hero__copy > *, html.fn-anim:not(.is-ready) .hero__facts { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* interior studio additions */
.loader__pct { text-align: center; font-size: 0.85rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.loader__bar i { width: var(--p, 8%); animation: none; transition: width 0.3s; }
.logo { font-style: italic; }
.stage__fallback { margin: 0; }
.opt__seg--2 { grid-template-columns: 1fr 1fr; }
.pieces { padding: 120px var(--pad) 100px; background: var(--night); }
.pieces__head { display: grid; gap: 14px; max-width: 760px; }
.pieces h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.pieces__head p { color: var(--mute); font-size: 1.08rem; }
.pieces__grid { margin-top: 48px; display: grid; gap: 18px; }
.piece { padding: 0 0 22px; border-radius: 20px; background: linear-gradient(180deg, var(--night-3), var(--night-2)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.piece__model { height: 280px; color: var(--lantern); }
.piece h3 { margin: 8px 22px 0; font-size: 1.7rem; }
.piece p { margin: 6px 22px 0; color: var(--mute); }
@media (min-width: 700px) { .pieces__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pieces__grid { grid-template-columns: repeat(4, 1fr); } }

/* dropdown menus on the dark theme: light text on a dark list */
.form select { color-scheme: dark; }
.form select option { background: var(--night-2); color: var(--white); }
