/* =========================================================
   Cinematic Remodel Sites: restrained, editorial, dark luxury
   No web fonts, no libraries. Works offline from file://
   ========================================================= */

:root {
  --ink: #0f0e0c;
  --stone: #1a1816;
  --bone: #ece6dc;
  --bone-2: #a8a196;
  --brass: #b89a6a;
  --brass-hi: #cdb07f;
  --rule: rgba(236, 230, 220, 0.12);
  --err: #e0a08a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1320px;
  --section: clamp(96px, 14vw, 200px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 48px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; font-variant-numeric: oldstyle-nums; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

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

.fill { color: var(--brass-hi); font-weight: 600; font-family: var(--sans); letter-spacing: 0.02em; }

/* ---------- labels ---------- */
.eyebrow, .section-num, .label, .concept-tag, .state {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.label { color: var(--bone-2); margin-bottom: 28px; font-family: var(--sans); }

.concept-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.14em;
  color: rgba(236, 230, 220, 0.82);
}
.concept-tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgba(15, 14, 12, 0.72), rgba(15, 14, 12, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.site-header.is-solid {
  background: rgba(15, 14, 12, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}
.wordmark { font-family: var(--serif); font-size: 19px; text-decoration: none; letter-spacing: 0.01em; color: var(--bone); }
.wordmark em { font-style: italic; color: var(--brass-hi); }
.header-cta {
  font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 12px 16px; border: 1px solid rgba(184, 154, 106, 0.6);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 16px;
  font: 500 15px/1.35 var(--sans); letter-spacing: 0.01em;
  color: var(--bone); text-decoration: none;
  padding: 18px 26px; border: 1px solid var(--brass);
  background: transparent; cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.cta::after { content: "→"; font-family: var(--serif); font-size: 18px; color: var(--brass-hi); transition: color 180ms var(--ease-out); }
.cta:active { background: rgba(184, 154, 106, 0.18); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover, .header-cta:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
  .cta:hover::after { color: var(--ink); }
}
.cta-band { padding-block: clamp(56px, 8vw, 96px); display: flex; justify-content: flex-start; border-top: 1px solid var(--rule); }
.cta-band .cta { max-width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-layer {
  position: absolute; inset: 0;
  transform: translate3d(0, 0, 0) scale(1.06); transform-origin: 50% 30%;
  will-change: transform;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* Portal: the finished room shows through a soft circle that follows the
   pointer (desktop) or opens with scroll and touch (phones). JS drives
   --px/--py/--pr; nothing moves without input. */
.hero-finished {
  --px: 60%; --py: 45%; --pr: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--px) var(--py), #000 calc(var(--pr) - 22px), transparent var(--pr));
          mask-image: radial-gradient(circle at var(--px) var(--py), #000 calc(var(--pr) - 22px), transparent var(--pr));
}
.portal-ring {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%;
  border: 1px solid rgba(205, 176, 127, 0.75);
  box-shadow: 0 0 0 1px rgba(15, 14, 12, 0.25), inset 0 0 40px rgba(15, 14, 12, 0.35);
  pointer-events: none; opacity: 0; will-change: transform, opacity;
}
.portal-hint {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 40px); z-index: 1;
  font: 500 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone);
  padding: 7px 11px; background: rgba(15, 14, 12, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 200ms var(--ease-out);
}
.portal-hint .hint-touch { display: none; }
@media (pointer: coarse) { .portal-hint .hint-fine { display: none; } .portal-hint .hint-touch { display: inline; } }
.hero.is-explored .portal-hint { opacity: 0; }

/* Liquid-glass portal (WebGL). Hidden until its textures are ready; the CSS
   mask portal above stays as the fallback. */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero.has-gl .hero-gl { display: block; }
.hero.has-gl .portal-ring { display: none; }
.hero { touch-action: pan-y; }
@media (hover: hover) and (pointer: fine) { .hero { cursor: crosshair; } .hero a, .hero dl { cursor: auto; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 14, 12, 0.95) 0%, rgba(15, 14, 12, 0.6) 30%, rgba(15, 14, 12, 0) 62%),
    linear-gradient(to right, rgba(15, 14, 12, 0.62), rgba(15, 14, 12, 0.18) 48%, rgba(15, 14, 12, 0) 64%);
}
.hero-media .concept-tag { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 8px); z-index: 1; }
.hero-copy { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: 1.02; max-width: 15ch; margin-top: 20px; }
.hero h1 span { display: block; color: var(--bone-2); font-style: italic; }
.lede { max-width: 56ch; margin-top: 28px; font-size: clamp(17px, 1.4vw, 19px); color: rgba(236, 230, 220, 0.88); }

.offer { margin: 40px 0 0; display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--rule); }
.offer > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.offer dt { font: 500 12px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.offer dd { margin: 0; color: var(--bone); }
.offer .why { display: block; color: var(--bone-2); margin-top: 4px; }
@media (min-width: 768px) { .offer > div { grid-template-columns: 200px 1fr; gap: 24px; } }

/* ---------- section heads ---------- */
.section-head { padding-top: var(--section); padding-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.05; margin-top: 18px; max-width: 18ch; }
.section-sub { margin-top: 24px; max-width: 60ch; color: var(--bone-2); }

/* ---------- WORK: sticky scroll scenes ---------- */
.scene { position: relative; height: 320vh; }
.scene + .scene { margin-top: 0; }
.scene-stick {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding-top: var(--header-h); padding-bottom: 24px;
  overflow: hidden;
}
.scene-text { display: grid; gap: 8px; }
.scene-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; }
.scene-text p:not(.section-num) { color: var(--bone-2); max-width: 52ch; font-size: 15px; }

.scrub {
  position: relative; margin: 0 auto; width: 100%;
  max-width: var(--max);
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--header-h) - 180px);
  background: var(--stone);
  overflow: hidden;
}
@supports not (aspect-ratio: 16 / 9) { .scrub { height: 56.25vw; } }
.scrub > img, .scrub-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-after { clip-path: inset(0 0 0 100%); }
.scrub-video { opacity: 0; }
.scrub.is-video .scrub-video { opacity: 1; }
.scrub.is-video .scrub-edge { display: none; }
.scrub-edge {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: var(--brass-hi); box-shadow: 0 0 0 0.5px rgba(15, 14, 12, 0.4);
  transform: translate3d(0, 0, 0); will-change: transform;
}

.state {
  position: absolute; top: 16px; padding: 6px 10px;
  background: rgba(15, 14, 12, 0.58); color: var(--bone);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.state-before { left: 16px; }
.state-after { right: 16px; opacity: 0; }
.scrub-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(236, 230, 220, 0.14); }
.scrub-progress i { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.scrub .concept-tag { position: absolute; left: 16px; bottom: 14px; padding: 5px 9px; background: rgba(15, 14, 12, 0.58); }

@media (min-width: 1024px) {
  .scene-stick { justify-content: center; }
  .scene-text { grid-template-columns: 200px 1fr 1fr; align-items: end; column-gap: 24px; }
  .scene-text .section-num { grid-row: 1; }
  .scene-text h3 { grid-column: 2; }
  .scene-text p:not(.section-num) { grid-column: 3; }
  .scrub { width: calc(100% - var(--gutter) * 2); }
}
@media (max-width: 767px) {
  .scene { height: 260vh; }
  .scrub { max-height: none; }
  .state { top: 10px; font-size: 10px; }
  .state-before { left: 10px; } .state-after { right: 10px; }
  .scrub .concept-tag { left: 10px; bottom: 10px; font-size: 9.5px; }
}

/* ---------- ad samples ---------- */
.ads { padding-top: var(--section); }
.ads-head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: 48px; }
.ads-head h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; }
.ads-head p:not(.section-num) { color: var(--bone-2); }
.ads-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 32px); align-items: start; }
.ad { margin: 0; }
.ad:nth-child(2) { margin-top: clamp(24px, 6vw, 96px); }
.ad video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--stone); }
.ad figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; font-size: 14px; }
.ad-name { font-family: var(--serif); font-size: 17px; }
.concept-tag.inline { font-size: 9.5px; }
@media (max-width: 767px) {
  .ads-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; }
  .ad { scroll-snap-align: start; }
  .ad:nth-child(2) { margin-top: 0; }
}

/* ---------- light sections ---------- */
.light { background: var(--bone); color: var(--ink); }
.light .section-num, .light .label { color: #6d665c; }
.light .fill { color: #7a5f33; }
.light :focus-visible { outline-color: #7a5f33; }
.light .cta { color: var(--ink); border-color: #7a5f33; }
.light .cta::after { color: #7a5f33; }

/* ---------- PROCESS ---------- */
.process { padding-bottom: var(--section); }
.process-grid { display: grid; gap: 64px; }
@media (min-width: 900px) { .process-grid { grid-template-columns: 5fr 7fr; gap: 96px; } }
.asks, .steps { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.asks li {
  counter-increment: n; display: grid; grid-template-columns: 48px 1fr; row-gap: 4px;
  padding: 20px 0; border-top: 1px solid rgba(15, 14, 12, 0.14);
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25;
}
.asks li::before { content: counter(n, decimal-leading-zero); font: 500 12px/2.4 var(--sans); letter-spacing: 0.12em; color: #7a5f33; grid-row: span 2; }
.asks small { grid-column: 2; font: 400 15px/1.5 var(--sans); color: #5d574e; }
.steps li { counter-increment: n; position: relative; padding: 0 0 32px 40px; }
.steps li::before {
  content: counter(n); position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border: 1px solid #7a5f33; border-radius: 50%;
  font: 500 11px/22px var(--sans); text-align: center; color: #7a5f33;
}
.steps li::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 1px; background: rgba(15, 14, 12, 0.16); }
.steps li:last-child::after { display: none; }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; display: block; margin-bottom: 4px; }
.steps p { color: #4a453e; max-width: 52ch; }

/* ---------- BENEFITS ---------- */
.benefits { padding-bottom: var(--section); }
.benefits-grid { display: grid; gap: 64px; }
@media (min-width: 1000px) { .benefits-grid { grid-template-columns: 8fr 4fr; gap: 96px; } }
.gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 700px) { .gets { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.gets li { padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.gets h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.gets p { color: var(--bone-2); }
.excluded { align-self: start; background: var(--stone); padding: 32px; border-left: 2px solid var(--brass); }
.excluded .label { margin-bottom: 16px; color: var(--brass); }
.excluded ul { list-style: none; margin: 0; padding: 0; }
.excluded li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--bone-2); font-size: 15px; }
.excluded li:first-child { border-top: 0; padding-top: 0; }
.excluded b { color: var(--bone); font-weight: 500; display: block; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--section); }
.faq-wrap { display: grid; gap: 0 96px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: 4fr 8fr; } .faq-wrap .section-head { padding-bottom: 0; } .faq-list { padding-top: var(--section); } }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1px; background: var(--brass);
  transition: transform 200ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > div { padding: 0 0 28px; display: grid; gap: 14px; color: var(--bone-2); max-width: 64ch; }

/* ---------- FORM ---------- */
.consult { padding-block: var(--section); }
.consult-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .consult-grid { grid-template-columns: 5fr 7fr; gap: 96px; } }
.consult-intro h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.05; margin-top: 18px; outline: none; }
.consult-intro p:not(.section-num) { margin-top: 20px; color: #4a453e; max-width: 46ch; }
.consult-intro .contact { font-size: 15px; }

.form { display: grid; gap: 22px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; column-gap: 24px; } .form fieldset, .form .field:nth-of-type(5), .form .field:last-of-type, .form .submit, .form .form-note { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font: 500 13px/1.3 var(--sans); letter-spacing: 0.04em; color: var(--ink); padding: 0; }
.field label small, .field legend small { color: #6d665c; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"] {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink);
  padding: 14px 14px; background: #f6f2ea; border: 1px solid rgba(15, 14, 12, 0.22); border-radius: 0;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #9a9286; }
.field input:focus { border-color: #7a5f33; background: #fffdf8; outline: none; box-shadow: 0 0 0 1px #7a5f33; }
.field input[aria-invalid="true"] { border-color: #a4472a; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 16px; border: 1px solid rgba(15, 14, 12, 0.22); background: #f6f2ea;
  font: 400 15px/1 var(--sans); letter-spacing: 0;
}
.checks input { width: 16px; height: 16px; accent-color: #7a5f33; margin: 0; }
.checks label:has(input:checked) { border-color: #7a5f33; background: #fffdf8; }
.err { min-height: 0; font-size: 14px; color: #a4472a; }
.err:empty { display: none; }
.submit { justify-self: start; margin-top: 8px; color: var(--ink); }
.form-note { font-size: 14px; color: #4a453e; }
.form-note:empty { display: none; }

.confirm { align-self: start; padding: 40px; background: #f6f2ea; border-left: 2px solid #7a5f33; }
.confirm h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 14px 0 18px; outline: none; }
.confirm p:not(.section-num) { color: #4a453e; max-width: 52ch; }
.confirm strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { padding-block: 64px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 3fr 6fr 3fr; gap: 48px; align-items: start; } }
.disclosure, .site-footer .contact { color: var(--bone-2); font-size: 14px; max-width: 64ch; }

/* ---------- reduced motion: no scrub, no parallax ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-layer { transform: none; }
  .hero-base, .portal-ring, .portal-hint { display: none; }
  .hero-finished { -webkit-mask-image: none; mask-image: none; }
  .scene { height: auto; }
  .scene-stick { position: relative; height: auto; padding-block: 48px; }
  .scrub { aspect-ratio: auto; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: none; }
  .scrub > img { position: relative; aspect-ratio: 16 / 9; height: auto; clip-path: none; }
  .scrub-video, .scrub-edge, .scrub-progress { display: none; }
  .state-after { opacity: 1; right: auto; left: calc(50% + 12px); }
  .scrub .concept-tag { position: static; grid-column: 1 / -1; background: none; padding: 8px 0 0; }
}

/* ---------- small screens: header + stacked hero ---------- */
.wordmark, .header-cta { white-space: nowrap; }
@media (max-width: 767px) {
  .site-header .wordmark { font-size: 16px; }
  .header-cta { padding: 10px 12px; font-size: 11px; letter-spacing: 0.12em; }
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; height: 62svh; min-height: 360px; overflow: hidden; }
  .hero-media::after { background: linear-gradient(to top, var(--ink) 0%, rgba(15, 14, 12, 0) 45%), linear-gradient(to bottom, rgba(15, 14, 12, 0.55), rgba(15, 14, 12, 0) 30%); }
  .hero-media .concept-tag { top: auto; bottom: 14px; right: auto; left: var(--gutter); font-size: 9.5px; }
  .portal-hint { top: calc(var(--header-h) + 6px); left: var(--gutter); right: auto; font-size: 10px; }
  .hero-copy { padding-top: 8px; }
  .hero h1 { margin-top: 14px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .scrub { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 190px); }
  .scene[data-scene="kitchen"] .scrub > img { object-position: 62% 50%; }
  .scene[data-scene="bath"] .scrub > img { object-position: 40% 50%; }
  .scene[data-scene="detail"] .scrub > img { object-position: 55% 50%; }
}
