/* =====================================================================
   POURHAUS — residential epoxy floors
   ===================================================================== */
:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --ink: #f3efe8;
  --ink-2: #b8b3aa;
  --muted: #7f7b74;
  --amber: #e6a53a;
  --amber-2: #ffcf7a;
  --line: rgba(243, 239, 232, .12);
  --light-bg: #eee9df;
  --light-ink: #121212;
  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 72px;
  --bar: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .8s var(--ease);
}
body.no-cursor, body.no-cursor a, body.no-cursor button { cursor: none; }

/* grain */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 9000; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-1%, -1%) } 100% { transform: translate(3%, 1%) } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: #111; }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.eyebrow { margin: 0 0 1.2rem; }
.display {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "wdth" 108; letter-spacing: -.035em; line-height: .96; margin: 0;
  font-size: clamp(2.8rem, 7vw, 7.2rem);
}
.display em { font-style: normal; font-weight: inherit; color: inherit; }
.display--md { font-size: clamp(2.2rem, 5vw, 5rem); }
.display--sm { font-size: clamp(2rem, 4vw, 3.8rem); }
.display--xs { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 46ch; margin: 1.4rem 0 0; }
.spec { display: block; margin-top: .8rem; color: var(--muted); }

/* Light sections carry their own background so their text never sits on the
   dark body colour while the scroll-driven body crossfade is mid-way. */
[data-theme="light"] { color: var(--light-ink); background: var(--light-bg); }
[data-theme="light"] .mono { color: #6b665d; }
[data-theme="light"] .display em { color: #b8741a; }
[data-theme="light"] .lede { color: #3d3a35; }
[data-theme="light"] .btn { background: var(--light-ink); color: var(--light-bg); }

/* scroll reveals (attributes added by JS so no-JS shows everything) */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.reduced [data-reveal] { opacity: 1; transform: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.5rem; border-radius: 6px; background: var(--ink); color: #111;
  font-weight: 600; font-size: .95rem; transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--amber); color: #111; }
.btn--small { padding: .65rem 1.1rem; font-size: .85rem; }
.btn--wide { width: 100%; }
.link-arrow { font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.link-arrow:hover { text-decoration-color: currentColor; }
[data-theme="light"] .link-arrow { text-decoration-color: rgba(0,0,0,.3); }

/* =====================================================================
   NAV
   ===================================================================== */
.demo-disclaimer {
  position: fixed; inset: 0 0 auto 0; z-index: 9500; min-height: var(--bar);
  padding: 8px clamp(1rem, 4vw, 3rem); text-align: center;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .02em; color: rgba(255,255,255,.78); background: #06070a;
}
.demo-disclaimer a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.nav {
  position: fixed; inset: var(--bar) 0 auto 0; height: var(--nav-h); z-index: 9000;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  color: #fff; background: rgba(11, 11, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; font-size: 1.1rem; }
.nav__mark { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { position: relative; font-size: .88rem; font-weight: 500; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 1.4rem; }
.nav__phone { font-size: .78rem; letter-spacing: .08em; opacity: .85; }
.nav__phone:hover { opacity: 1; }
.nav .btn { background: #fff; color: #000; }
.nav .btn::before { background: #fff; }
@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .demo-disclaimer { font-size: 10.5px; padding: 6px 12px; }
  :root { --bar: 52px; --nav-h: 60px; }
  /* Small screens: a solid nav instead of the difference blend, so headings
     scrolling underneath are covered rather than tangled with the logo. */
  .nav .btn { background: #fff; color: #000; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; }
.hero__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.55) 100%),
              linear-gradient(to top, rgba(0,0,0,.75), transparent 45%);
}
.hero__stage {
  position: absolute; left: clamp(1rem, 5vw, 4rem); right: clamp(1rem, 5vw, 4rem); bottom: 13vh;
  opacity: 0; will-change: opacity, transform; pointer-events: none;
}
.hero__stage.is-live { pointer-events: auto; }
.hero__stage .display { text-shadow: 0 10px 40px rgba(0,0,0,.4); max-width: 12ch; }
.hero__stage--opening { bottom: 19%; opacity: 1; }
.hero__stage--opening .display { max-width: 850px; font-size: clamp(44px, 5.1vw, 74px); line-height: 1.04; letter-spacing: -.045em; font-variation-settings: "wdth" 100; text-shadow: 0 2px 22px #0005; }
.hero__stage--opening .eyebrow { font-size: 15px; margin-bottom: 22px; }
.hero__stage--last .display { max-width: 14ch; }
.hero__cta { display: flex; gap: 1.6rem; align-items: center; margin-top: 2rem; }
.hero__scrollcue { position: absolute; left: clamp(1rem, 5vw, 4rem); bottom: 2rem; display: flex; align-items: center; gap: .8rem; color: var(--ink-2); }
.hero__scrollcue i { width: 1px; height: 46px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; display: block; }
.hero__scrollcue i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateY(-100%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%) } 60% { transform: translateY(0) } 100% { transform: translateY(100%) } }
@media (max-width: 700px) {
  .hero__stage { bottom: 16vh; }
  .hero__stage--opening { bottom: 24%; }
  .hero__stage--opening .display { font-size: clamp(32px, 8.5vw, 42px); }
}

/* =====================================================================
   MARQUEE
   ===================================================================== */
.anatomy { position: relative; }
.anatomy__pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; gap: 0 3rem;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1rem, 5vw, 4rem) 2rem;
}
.anatomy__head { grid-column: 1 / -1; }
.anatomy__stage { position: relative; min-height: 0; }
.anatomy__canvas { position: relative; width: 100%; height: 100%; display: block; }
.anatomy__list { list-style: none; margin: 0; padding: 0 0 0 1.8rem; align-self: center; position: relative; }
.anatomy__list li { padding: .9rem 0; opacity: .32; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateX(0); border-bottom: 1px solid rgba(0,0,0,.08); }
.anatomy__list li.is-active { opacity: 1; transform: translateX(8px); }
.anatomy__list h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin: .3rem 0 .3rem; line-height: 1.1; }
.anatomy__list p { margin: 0; font-size: .95rem; max-width: 42ch; color: #3d3a35; }
@media (max-width: 900px) {
  .anatomy__pin { grid-template-columns: 1fr; grid-template-rows: auto 42vh 1fr; gap: 1rem; padding-top: calc(var(--nav-h) + .5rem); }
  .anatomy__list { padding: 0; }
  .anatomy__list li { padding: .5rem 0; }
  .anatomy__list li:not(.is-active) { display: none; }
  .anatomy__list h3 { font-size: 1.4rem; }
  }

/* =====================================================================
   STUDIO
   ===================================================================== */
.studio { padding: clamp(6rem, 12vw, 10rem) 0; }
.studio__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.studio__controls { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
.control__head { display: flex; justify-content: space-between; margin-bottom: .7rem; }
.control__val { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line); outline-offset: 2px;
  transition: transform .35s var(--ease), outline-color .3s; position: relative;
}
.swatch.is-on { outline-color: var(--amber); }
.blends { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.blend { aspect-ratio: 1; border-radius: 6px; overflow: hidden; position: relative; outline: 1px solid var(--line); outline-offset: 2px; transition: transform .35s var(--ease), outline-color .3s; background-size: 300%; background-position: center; }
.blend::after { content: attr(data-name); position: absolute; left: 0; right: 0; bottom: 0; padding: .35rem; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .01em; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.blend:hover { transform: translateY(-3px); }
.blend.is-on { outline-color: var(--amber); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--amber) 0 var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%)); }
.range:focus-visible { box-shadow: 0 0 0 3px rgba(230,165,58,.35); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); cursor: grab; transition: transform .15s; }
.range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); cursor: grab; }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--amber) 0 var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%)); }
.range__scale { display: flex; justify-content: space-between; margin-top: .55rem; font-size: .72rem; color: var(--muted); }
.form__range .range { margin-top: .4rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.seg button { padding: .55rem 1.1rem; border-radius: 4px; font-size: .85rem; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s; }
.seg button.is-on { background: var(--ink); color: #111; }
.studio__readout { margin-top: 2rem; color: var(--amber); }
.studio__actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.studio__viewer { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #1d1d21, #0b0b0c 75%); border: 1px solid var(--line); }
#studioCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.studio__fallback { position: absolute; inset: 15%; width: 70%; height: 70%; border-radius: 22px; display: none; }
.studio__viewer.is-fallback .studio__fallback { display: block; }
.studio__viewer.is-fallback #studioCanvas { display: none; }
.studio__hint { position: absolute; left: 1.2rem; bottom: 1.1rem; color: var(--ink-2); transition: opacity .5s; }
.studio__hint.is-hidden { opacity: 0; }
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr; } .studio__viewer { order: -1; } }

/* =====================================================================
   FINISHES — horizontal
   ===================================================================== */
.finishes__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(var(--bar) + var(--nav-h) + 1.5rem); }
.finishes__head { width: min(1240px, 92vw); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.finishes__counter { color: var(--ink-2); font-size: .85rem; }
.finishes__track { display: flex; gap: 1.4rem; padding: 0 4vw 2rem; align-items: stretch; height: 100%; will-change: transform; }
.card { flex: 0 0 auto; width: min(560px, 78vw); display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.card__media { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: #1a1a1c; }
.card__media img { width: 120%; height: 100%; object-fit: cover; will-change: transform; transform: translateX(-8%); display: block; }
.card__body { padding: 1.2rem 1.4rem 1.4rem; }
.card__body h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-size: 1.5rem; margin: .3rem 0 .4rem; line-height: 1.1; }
.card__body p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card--end { justify-content: center; align-items: flex-start; gap: 1.4rem; padding: 2.2rem; width: min(440px, 78vw); background: transparent; border-style: dashed; }
.display--xs { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }

.compare { padding: clamp(6rem, 12vw, 10rem) 0; }
.compare__frame { position: relative; margin-top: 3rem; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; user-select: none; background: #ccc; touch-action: pan-y; }
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.compare__before img { width: calc(100% / var(--w, .5)); max-width: none; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); cursor: ew-resize; outline: 0; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.compare__handle span::before { content: "◀ ▶"; font-size: .7rem; letter-spacing: .2em; color: #111; }
.compare__handle:focus-visible span { outline: 3px solid var(--amber); }
.compare__tag { position: absolute; top: 1rem; padding: .45rem .7rem; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px); }
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline { padding: clamp(6rem, 12vw, 10rem) 0; }
.timeline__wrap { position: relative; margin-top: 3rem; padding-left: 3rem; }
.timeline__line { position: absolute; left: 12px; top: 0; height: 100%; width: 4px; }
.timeline__line path { stroke: #b8741a; stroke-width: 4; fill: none; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.timeline__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.2rem; }
.step { position: relative; max-width: 52ch; }
.step::before { content: ""; position: absolute; left: calc(-3rem + 6px); top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--light-bg); border: 3px solid #b8741a; }
.step h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.3rem, 2vw, 1.8rem); margin: .3rem 0 .4rem; line-height: 1.05; }
.step p { margin: 0; color: #3d3a35; }

/* =====================================================================
   NUMBERS / VOICES
   ===================================================================== */
.promises { padding: clamp(4rem, 8vw, 6rem) 0; border-block: 1px solid var(--line); }
.promises__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 3rem; }
.promises p { margin: 0; font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); max-width: 32rem; }
.promises strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .promises__grid { grid-template-columns: 1fr; } }

.voices { padding: clamp(5rem, 10vw, 8rem) 0; }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.voice { margin: 0; padding: 1.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; }
.voice p { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.25; }
@media (max-width: 800px) { .voices__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   QUOTE
   ===================================================================== */
.quote { padding: clamp(6rem, 12vw, 10rem) 0; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.estimate { margin-top: 2.4rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: .4rem; background: rgba(255,255,255,.02); }
.estimate b { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1; color: var(--amber-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.form label { display: grid; gap: .5rem; }
.form label > .mono { display: flex; justify-content: space-between; }
.form label em { font-style: normal; color: var(--ink); }
.form label small { text-transform: none; letter-spacing: 0; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
  font: inherit; padding: .7rem 0; outline: 0; border-radius: 0; transition: border-color .3s;
}
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { color: #111; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--amber); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:read-only { color: var(--amber-2); }
.form__full { grid-column: 1 / -1; }
.form__range { grid-column: 1 / -1; }
.form .btn { grid-column: 1 / -1; margin-top: .6rem; }
.form__ok { grid-column: 1 / -1; color: var(--amber); }
.form.is-sent > :not(.form__ok) { opacity: .25; pointer-events: none; }
@media (max-width: 900px) { .quote__grid { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.footer__grid p { margin: .6rem 0 0; color: var(--ink-2); font-size: .95rem; }
.footer__grid a:hover { color: var(--amber-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero__scrollcue i::after, .preloader__drop span { animation: none; }
}

/* form controls: squarer, quieter */
.form input, .form select, .form textarea { border-radius: 6px; }

/* the size slider must beat the generic form-field rule above */
.form input.range { height: 6px; padding: 0; border: 0; border-radius: 3px; background: linear-gradient(90deg, var(--amber) 0 var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%)); }
.form input.range:focus { border: 0; box-shadow: 0 0 0 3px rgba(230,165,58,.35); }
