/* ============================================================
   BRANDYWINE BLINDS — "KINETIC" concept
   Dark, cinematic, motion-first. Vanilla CSS, no build step.
   Sections alternate ink (dark) and paper (warm light) bands,
   with a sun-amber accent that stands for daylight itself.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0d0b08;
  --ink-2: #16130d;
  --ink-3: #1e1a12;
  --paper: #f4eee1;
  --paper-2: #eae2cf;
  --sun: #f6b944;
  --sun-deep: #e88f1a;
  --wine: #7c2940;
  --wine-2: #63152c;
  --cream-text: #f2ecdf;
  --muted-on-ink: rgba(242, 236, 223, 0.62);
  --muted-on-paper: rgba(13, 11, 8, 0.64);
  --line-ink: rgba(13, 11, 8, 0.16);
  --line-cream: rgba(242, 236, 223, 0.14);
  --err: #c8473b;

  --font-d: "Clash Display", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-b: "Satoshi", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --header-h: 76px;
  --radius: 20px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream-text);
  background: var(--ink);
  overflow-x: clip; /* rotated ticker bleeds; clip avoids a scrollbar without breaking sticky */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.04; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2.5px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--sun); color: var(--ink);
  padding: 0.65em 1.2em; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-on-paper); margin: 0 0 1.1rem;
}
.eyebrow--dark { color: var(--muted-on-ink); }
.tick { width: 26px; height: 2px; background: var(--sun-deep); display: inline-block; border-radius: 2px; }
.eyebrow--dark .tick { background: var(--sun); }

.section-head { max-width: 820px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem; align-items: end; text-align: left;
}
.section-head--split .section-sub { margin-bottom: 0.4rem; }

.section h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  text-transform: uppercase; letter-spacing: -0.015em; font-weight: 600;
}
.section h2 em { font-style: normal; color: var(--sun-deep); }
.lab h2 em, .process h2 em, .reviews h2 em, .quote h2 em { color: var(--sun); }
.section-sub { font-size: 1.1rem; color: var(--muted-on-paper); max-width: 56ch; }
.section-head:not(.section-head--left):not(.section-head--split) .section-sub { margin-inline: auto; }
.lab .section-sub, .process .section-sub, .reviews .section-sub, .quote .section-sub { color: var(--muted-on-ink); }

.text-link { color: var(--wine); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-b); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95em 1.9em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn > span { display: inline-flex; align-items: center; gap: 0.5em; position: relative; z-index: 1; }
.btn::after { /* light sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
html.motion .btn:hover::after { transition: transform 0.7s var(--ease-out); transform: translateX(120%); }

.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc75d; box-shadow: 0 8px 30px rgba(246, 185, 68, 0.35); }
.btn-ghost { border-color: rgba(242,236,223,0.45); color: var(--cream-text); background: rgba(13,11,8,0.25); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--cream-text); }
.btn-ghost-solid { background: var(--ink-3); color: var(--cream-text); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 8px 26px rgba(13,11,8,0.35); }
.btn-ink-ghost { border-color: rgba(13,11,8,0.55); color: var(--ink); }
.btn-ink-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 1.1em 2.3em; font-size: 1rem; }
.btn-block { width: 100%; }
html.motion .btn:active { transform: scale(0.97); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 11, 8, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-cream);
}
.header-inner {
  max-width: 1400px; margin-inline: auto;
  padding: 0.8rem clamp(1.1rem, 3vw, 2.2rem);
  display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--cream-text); }
.brand-mark { display: grid; place-items: center; color: var(--cream-text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--font-d); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-on-ink); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) {
  color: var(--cream-text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  position: relative; padding-block: 0.3em;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--sun); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.primary-nav a:not(.btn):hover::after, .primary-nav a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-row { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: 0.5rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--cream-text); text-decoration: none; font-weight: 700; font-size: 0.95rem;
}
.header-phone:hover { color: var(--sun); }
.btn-header { padding: 0.75em 1.5em; font-size: 0.85rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 7px;
  width: 46px; height: 46px; padding: 10px;
  background: transparent; border: 1.5px solid var(--line-cream); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--cream-text); border-radius: 2px; transition: transform 0.35s var(--ease-out), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .primary-nav {
    position: fixed; inset: 0; z-index: -1;
    background: rgba(13, 11, 8, 0.97);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  body.nav-open .primary-nav { opacity: 1; visibility: visible; z-index: 99; }
  .primary-nav ul { flex-direction: column; gap: 1.4rem; text-align: center; }
  .primary-nav a:not(.btn) { font-family: var(--font-d); font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 600; text-transform: uppercase; }
  .nav-cta-row { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.2rem; align-items: center; }
  .nav-phone { font-size: 1.2rem !important; font-family: var(--font-b) !important; text-transform: none !important; color: var(--sun) !important; }
  .header-phone span { display: none; }
  .btn-header { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================
   HERO — scroll-scrubbed "lower the shades"
   --p (0..1) is set on .hero-wrap by script.js
   ============================================================ */
.hero-wrap { --p: 0; position: relative; }
html.js.motion .hero-wrap { height: 300vh; }
html:not(.motion) .hero-wrap, html:not(.js) .hero-wrap { --p: 0.22; }

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
html.js.motion .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }

.hero-scene { position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, #2b2417, #0d0b08 70%); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-scene.img-missing .hero-photo { display: none; }

/* Closing slats: each slat is one grid row scaling from a thin louver line
   to fully closed as --p passes its own delay --d */
.hero-slats { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(12, 1fr); }
.slat {
  --open: clamp(0, (var(--p) - var(--d)) * 2.1, 1);
  transform-origin: top center;
  transform: scaleY(calc(0.06 + var(--open) * 0.94));
  background: linear-gradient(180deg, #2a2318 0%, #12100a 55%, #060504 100%);
  border-bottom: 1px solid rgba(246, 185, 68, 0.22);
  will-change: transform;
}

/* Day → dusk grade */
.hero-dusk {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 15, 5, 0.55), rgba(10, 7, 3, 0.92));
  opacity: calc(var(--p) * 0.92);
}
/* A warm lamp blooms bottom-left as the room darkens */
.hero-lamp {
  position: absolute; inset: 0;
  background: radial-gradient(42% 38% at 16% 82%, rgba(255, 170, 60, 0.5), rgba(255, 140, 40, 0.12) 45%, transparent 70%);
  opacity: clamp(0, (var(--p) - 0.5) * 2.2, 1);
  mix-blend-mode: screen;
}
/* Constant left scrim for copy legibility */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(13, 11, 8, 0.88) 0%, rgba(13, 11, 8, 0.55) 42%, rgba(13, 11, 8, 0.08) 75%);
}

.hero-copy {
  position: relative; z-index: 2;
  width: min(100%, 1400px); margin-inline: auto;
  padding: calc(var(--header-h) + 2rem) clamp(1.1rem, 4vw, 2.5rem) 6rem;
  max-width: 1400px;
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(3rem, 9.5vw, 7.6rem);
  line-height: 0.96; text-transform: uppercase; letter-spacing: -0.02em; font-weight: 700;
  margin-bottom: 1.4rem; max-width: 12ch;
}
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; }
.line-outline .w {
  color: transparent;
  -webkit-text-stroke: 2px var(--sun);
  paint-order: stroke;
}
@supports not (-webkit-text-stroke: 2px black) { .line-outline .w { color: var(--sun); } }

/* Load-in: words rise, then lede/CTAs fade up (motion only) */
html.motion .hero-title .line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
html.motion .hero-title .w { transform: translateY(115%); animation: word-rise 0.9s var(--ease-out) forwards; }
html.motion .hero-title .line:nth-child(1) .w:nth-child(1) { animation-delay: 0.1s; }
html.motion .hero-title .line:nth-child(1) .w:nth-child(2) { animation-delay: 0.18s; }
html.motion .hero-title .line:nth-child(2) .w:nth-child(1) { animation-delay: 0.3s; }
html.motion .hero-title .line:nth-child(2) .w:nth-child(2) { animation-delay: 0.38s; }
@keyframes word-rise { to { transform: translateY(0); } }

html.motion .hero-eyebrow,
html.motion .hero-lede,
html.motion .hero-actions,
html.motion .hero-trust { opacity: 0; transform: translateY(22px); animation: fade-up 0.8s var(--ease-out) forwards; }
html.motion .hero-eyebrow { animation-delay: 0.05s; }
html.motion .hero-lede { animation-delay: 0.55s; }
html.motion .hero-actions { animation-delay: 0.7s; }
html.motion .hero-trust { animation-delay: 0.85s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: rgba(242, 236, 223, 0.88); margin-bottom: 1.8rem; }
.hero-lede strong { color: var(--sun); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.7rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding: 0; margin: 0; list-style: none; font-size: 0.92rem; font-weight: 500; color: rgba(242,236,223,0.82); }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45em; }
.stars { color: var(--sun); letter-spacing: 0.12em; }

/* Live daylight readout */
.hero-readout {
  position: absolute; z-index: 2; right: clamp(1.1rem, 4vw, 2.5rem); bottom: clamp(1.4rem, 4vh, 2.6rem);
  display: grid; gap: 0.25rem; justify-items: end; text-align: right;
  font-variant-numeric: tabular-nums;
}
.readout-label { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-on-ink); }
.readout-num { font-family: var(--font-d); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--sun); }
.readout-num sup { font-size: 0.4em; margin-left: 0.05em; }
.readout-word { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-text); }
.readout-bar { width: 130px; height: 3px; background: rgba(242,236,223,0.2); border-radius: 3px; overflow: hidden; }
.readout-fill { display: block; height: 100%; width: 100%; background: var(--sun); border-radius: 3px; transform-origin: left; }
html:not(.js) .hero-readout, html:not(.motion) .hero-readout { display: none; }

/* Scroll cue */
.hero-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(242,236,223,0.75); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity 0.5s;
}
.cue-ring { width: 22px; height: 34px; border: 1.5px solid rgba(242,236,223,0.5); border-radius: 12px; position: relative; }
.cue-ring::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--sun); }
html.motion .cue-ring::after { animation: cue-drop 1.6s ease-in-out infinite; }
@keyframes cue-drop { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } }
.hero-cue.hidden { opacity: 0; }
html:not(.js) .hero-cue, html:not(.motion) .hero-cue { display: none; }

@media (max-width: 720px) {
  html.js.motion .hero-wrap { height: 220vh; }
  .hero-copy { padding-bottom: 8.5rem; }
  .hero-readout { right: 1.1rem; bottom: 4.9rem; }
  .readout-num { font-size: 2.1rem; }
  .readout-bar { width: 90px; }
  .hero-cue { display: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(13,11,8,0.72), rgba(13,11,8,0.55) 60%, rgba(13,11,8,0.75)); }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  position: relative; z-index: 5;
  background: var(--sun); color: var(--ink);
  transform: none;
  margin-block: -0.8rem 0;
  overflow: hidden;
  border-block: 2px solid var(--ink);
}
.ticker-track { display: flex; width: max-content; }
html.motion .ticker-track { animation: ticker-scroll 30s linear infinite; }
html.motion .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-group { display: inline-flex; align-items: center; padding-block: 0.85rem; }
.ticker-group span {
  font-family: var(--font-d); font-weight: 600; font-size: clamp(1rem, 2vw, 1.35rem);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; padding-inline: 1.4rem;
}
.ticker-group i { font-style: normal; font-size: 0.9em; opacity: 0.75; }

/* ============================================================
   SERVICES — editorial index with cursor-follow preview
   ============================================================ */
.services { background: var(--paper); color: var(--ink); }
.services .section-head { text-align: left; margin-inline: 0; max-width: 900px; }
.services .section-head .eyebrow { justify-content: flex-start; }

.service-list { border-top: 1.5px solid var(--line-ink); }
.service-row { border-bottom: 1.5px solid var(--line-ink); }
.service-link {
  display: grid; align-items: center;
  grid-template-columns: 3.2rem 1.15fr 1fr auto;
  gap: clamp(0.8rem, 2.5vw, 2.2rem);
  padding: clamp(1.3rem, 2.6vw, 2rem) clamp(0.4rem, 1.5vw, 1.2rem);
  text-decoration: none; color: inherit; position: relative; isolation: isolate;
}
.service-link::before { /* hover sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.service-num { font-family: var(--font-d); font-weight: 500; font-size: 0.95rem; color: var(--muted-on-paper); transition: color 0.35s; }
.service-name {
  font-family: var(--font-d); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem); line-height: 1;
  transition: transform 0.45s var(--ease-out), color 0.35s;
}
.service-desc { font-size: 0.97rem; color: var(--muted-on-paper); max-width: 44ch; transition: color 0.35s; }
.service-arrow {
  font-size: 1.7rem; line-height: 1; color: var(--ink);
  transition: transform 0.45s var(--ease-out), color 0.35s;
}
.service-thumb { display: none; }

@media (hover: hover) and (pointer: fine) {
  html.motion .service-link:hover::before, html.motion .service-link:focus-visible::before { transform: scaleY(1); }
  html.motion .service-link:hover .service-name, html.motion .service-link:focus-visible .service-name { color: var(--sun); transform: translateX(10px); }
  html.motion .service-link:hover .service-num, html.motion .service-link:hover .service-desc,
  html.motion .service-link:focus-visible .service-num, html.motion .service-link:focus-visible .service-desc { color: rgba(242,236,223,0.75); }
  html.motion .service-link:hover .service-arrow, html.motion .service-link:focus-visible .service-arrow { color: var(--sun); transform: translateX(8px) rotate(-45deg); }
}

/* Floating preview that trails the cursor (positioned by JS) */
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: min(24vw, 340px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(13, 11, 8, 0.45);
  opacity: 0; transform: translate(-50%, -55%) rotate(4deg) scale(0.6);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.hover-preview.active { opacity: 1; transform: translate(-50%, -55%) rotate(-2deg) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 960px) { .hover-preview { display: none; } }

/* Mobile / touch / reduced motion: inline thumbnails instead of hover preview */
@media (max-width: 960px), (hover: none) {
  .service-link { grid-template-columns: 2.2rem 1fr auto; grid-template-areas: "num name arrow" "num thumb thumb" "num desc desc"; }
  .service-num { grid-area: num; align-self: start; padding-top: 0.4rem; }
  .service-name { grid-area: name; }
  .service-arrow { grid-area: arrow; }
  .service-desc { grid-area: desc; }
  .service-thumb { display: block; grid-area: thumb; margin-block: 0.9rem 0.3rem; border-radius: 12px; overflow: hidden; max-width: 420px; background: var(--paper-2); }
  .service-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .service-thumb.img-missing { display: none; }
}

.services-foot { margin-top: 2rem; font-size: 1.05rem; color: var(--muted-on-paper); }

/* ============================================================
   LIGHT LAB — draggable before/after
   ============================================================ */
.lab { background: var(--ink); color: var(--cream-text); }
.lab .section-head--split .eyebrow { justify-content: flex-start; }

.compare { max-width: 1100px; margin-inline: auto; }
.compare-stage {
  --x: 50%;
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--ink-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  touch-action: pan-y; /* let the range handle horizontal drags, keep page scroll vertical */
}
.compare-stage:focus-within { outline: 2.5px solid var(--sun); outline-offset: 4px; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare.img-missing .compare-stage { background: linear-gradient(140deg, #3a2f1c, #14100a); }
.compare.img-missing .compare-img, .compare.img-missing .compare-dark img { display: none; }

.compare-dark { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.compare-dark .compare-img { filter: brightness(0.3) saturate(0.75) sepia(0.18); }
.compare-dark-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 45% at 20% 85%, rgba(255, 165, 60, 0.35), transparent 65%),
    linear-gradient(180deg, rgba(10, 6, 2, 0.35), rgba(8, 5, 2, 0.55));
}

.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; z-index: 3;
}
.compare-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1.25px; width: 2.5px;
  background: var(--sun); box-shadow: 0 0 18px rgba(246, 185, 68, 0.65);
}
.handle-grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.compare-tag {
  position: absolute; top: 1rem; z-index: 2;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.45em 1em; border-radius: 999px;
  background: rgba(13, 11, 8, 0.65); color: var(--cream-text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.compare-tag--left { left: 1rem; }
.compare-tag--right { right: 1rem; color: var(--sun); }

.compare-range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-caption { text-align: center; margin-top: 1.1rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-ink); }

@media (max-width: 760px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .compare-stage { aspect-ratio: 4 / 3; }
  .handle-grip { width: 46px; height: 46px; }
  .compare-tag--left { top: auto; bottom: 1rem; } /* keep the two tags from colliding */
}

/* ============================================================
   WHY US + STATS
   ============================================================ */
.why { background: var(--paper); color: var(--ink); }
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.why-list { display: grid; gap: 1.4rem; margin-top: 1rem; }
.why-list li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.1rem; align-items: start; }
.why-num {
  font-family: var(--font-d); font-weight: 600; font-size: 1.25rem;
  width: 3rem; height: 3rem; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--sun);
}
.why-list li:nth-child(even) .why-num { background: var(--wine); color: var(--paper); }
.why-list h3 { font-size: 1.3rem; margin-bottom: 0.25em; text-transform: none; letter-spacing: 0; }
.why-list p { margin: 0; color: var(--muted-on-paper); font-size: 0.99rem; }

.why-media { position: relative; }
.why-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 30px 70px rgba(13, 11, 8, 0.28);
  background: linear-gradient(150deg, #d8c8a8, #9c8659);
  transform: none;
}
.why-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.why-photo.img-missing img { display: none; }
.why-photo.img-missing { min-height: 420px; }
.why-photo-tag {
  position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  background: rgba(13, 11, 8, 0.78); color: var(--cream-text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0.85rem 1.1rem; border-radius: 14px; font-size: 0.92rem;
}
.why-photo-tag strong { color: var(--sun); font-family: var(--font-d); font-size: 1.15em; text-transform: uppercase; letter-spacing: 0.04em; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px;
  background: var(--line-ink); border: 1.5px solid var(--line-ink); border-radius: var(--radius);
  overflow: hidden; margin: clamp(3rem, 6vw, 5rem) 0 0;
}
.stat { background: var(--paper); padding: clamp(1.3rem, 2.5vw, 2.2rem); display: grid; gap: 0.3rem; align-content: start; }
.stat dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-on-paper); order: 2; }
.stat dd { margin: 0; order: 1; font-family: var(--font-d); font-weight: 600; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1; color: var(--ink); }
.stat-suffix { color: var(--sun-deep); font-size: 0.7em; margin-left: 0.06em; }
.stat-word { text-transform: uppercase; }
.stat:nth-child(even) dd { color: var(--wine); }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-media { order: -1; max-width: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PROCESS — pinned scrollytelling
   ============================================================ */
.process { background: linear-gradient(180deg, var(--paper-2), var(--paper)); color: var(--ink); }
.process-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process-rail-inner { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.process h2 { max-width: 10ch; }

.process-counter { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; font-variant-numeric: tabular-nums; }
.counter-current { font-family: var(--font-d); font-weight: 600; font-size: clamp(3.4rem, 6vw, 5.5rem); line-height: 1; color: var(--sun); min-width: 2ch; }
.counter-track { flex: 1; max-width: 200px; height: 3px; background: var(--line-cream); border-radius: 3px; overflow: hidden; }
.counter-fill { display: block; height: 100%; width: 25%; background: var(--sun); border-radius: 3px; transition: width 0.5s var(--ease-out); }
.counter-total { font-size: 0.95rem; color: var(--muted-on-ink); }

.process-steps { display: grid; gap: clamp(2.5rem, 6vh, 5rem); counter-reset: step; }
.process-step {
  border-top: 1.5px solid var(--line-cream);
  padding-top: 1.6rem; min-height: 38vh;
  transition: opacity 0.5s;
}
html.js.motion .process-step { opacity: 0.32; }
html.js.motion .process-step.active { opacity: 1; }
.step-index {
  font-family: var(--font-d); font-weight: 600; font-size: 1rem;
  color: var(--muted-on-ink); display: inline-block; margin-bottom: 0.8rem;
  transition: color 0.4s;
}
.process-step.active .step-index { color: var(--sun); }
.process-step h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.process-step p { color: var(--muted-on-ink); max-width: 48ch; font-size: 1.02rem; }
.process-step:last-child { min-height: 0; padding-bottom: 1rem; }

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-rail-inner { position: static; }
  .process-counter { display: none; }
  .process-step { min-height: 0; }
  html.js.motion .process-step { opacity: 1; }
}

/* Process section now sits on a light background — restore dark-on-light contrast */
.process h2 em { color: var(--wine); }
.process .section-sub { color: var(--muted-on-paper); }
.counter-current { color: var(--wine); }
.counter-track { background: var(--line-ink); }
.counter-fill { background: var(--wine); }
.counter-total { color: var(--muted-on-paper); }
.process-step { border-top-color: var(--line-ink); }
.step-index { color: var(--muted-on-paper); }
.process-step.active .step-index { color: var(--wine); }
.process-step p { color: var(--muted-on-paper); }

/* Finished-room photo in the process rail — breaks up the flat background */
.process-photo {
  margin-top: 2.2rem; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; position: relative;
  box-shadow: 0 24px 50px rgba(13, 11, 8, 0.16);
  background: linear-gradient(135deg, var(--wine), var(--ink));
}
.process-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.6rem 1.2rem 1.05rem;
  font-family: var(--font-d); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--cream-text);
  background: linear-gradient(0deg, rgba(13, 11, 8, 0.74), rgba(13, 11, 8, 0));
}
@media (max-width: 860px) { .process-photo { aspect-ratio: 16 / 10; margin-top: 1.6rem; } }

/* ============================================================
   SERVICE AREA + MIDDLETOWN SPOTLIGHT
   ============================================================ */
.areas { background: var(--paper); color: var(--ink); }
.areas-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }

.areas-list { border-top: 1.5px solid var(--line-ink); margin-top: 1rem; }
.areas-list li {
  display: grid; gap: 0.15rem;
  padding: 1.1rem 0.2rem; border-bottom: 1.5px solid var(--line-ink);
  transition: padding-left 0.35s var(--ease-out), background-color 0.3s;
}
html.motion .areas-list li:hover { padding-left: 0.9rem; background: rgba(246, 185, 68, 0.12); }
.areas-list strong { font-family: var(--font-d); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; }
.areas-list span { color: var(--muted-on-paper); font-size: 0.95rem; }

.spotlight {
  position: sticky; top: calc(var(--header-h) + 2rem);
  background: var(--wine); color: var(--cream-text);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: 0 30px 70px rgba(99, 21, 44, 0.35);
}
.spotlight-flag {
  display: inline-block; background: var(--sun); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.5em 1.1em; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.spotlight h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; }
.spotlight p { color: rgba(242, 236, 223, 0.88); }
.spotlight strong { color: var(--sun); }
.spotlight-points { margin: 1.2rem 0 1.6rem; display: grid; gap: 0.55rem; }
.spotlight-points li { padding-left: 1.5em; position: relative; font-size: 0.98rem; }
.spotlight-points li::before { content: "→"; position: absolute; left: 0; color: var(--sun); }

@media (max-width: 860px) {
  .areas-grid { grid-template-columns: 1fr; }
  .spotlight { position: static; transform: rotate(0); }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--ink); color: var(--cream-text); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card {
  margin: 0; background: var(--ink-3); border: 1.5px solid var(--line-cream);
  border-radius: var(--radius); padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.45s var(--ease-out), border-color 0.35s;
}
.review-card:nth-child(1) { transform: none; }
.review-card:nth-child(3) { transform: none; }
html.motion .review-card:hover { transform: rotate(0) translateY(-6px); border-color: rgba(246, 185, 68, 0.5); }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { font-size: 1.02rem; line-height: 1.55; color: rgba(242, 236, 223, 0.9); margin: 0; }
.review-card figcaption { display: grid; gap: 0.1rem; border-top: 1px solid var(--line-cream); padding-top: 0.9rem; }
.review-card figcaption strong { font-family: var(--font-d); font-weight: 600; letter-spacing: 0.02em; }
.review-card figcaption span { font-size: 0.85rem; color: var(--muted-on-ink); }
.reviews-note { text-align: center; margin-top: 1.8rem; font-size: 0.85rem; color: var(--muted-on-ink); }

@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .review-card { transform: none !important; }
}

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote {
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(124, 41, 64, 0.5), transparent 60%),
    radial-gradient(50% 60% at 5% 95%, rgba(246, 185, 68, 0.12), transparent 60%),
    var(--ink-2);
  color: var(--cream-text);
}
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.quote-lede { font-size: 1.1rem; color: rgba(242, 236, 223, 0.85); }
.quote-lede a { color: var(--sun); font-weight: 700; }
.quote-points { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.quote-points li { padding-left: 1.6em; position: relative; }
.quote-points li::before { content: "✓"; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
.quote-points strong { color: var(--sun); }

.quote-form {
  background: var(--paper); color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  position: relative;
}
.form-title { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.req { color: var(--wine); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-ink); border-radius: 12px;
  padding: 0.75em 1em;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sun-deep); box-shadow: 0 0 0 3.5px rgba(246, 185, 68, 0.3);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.invalid input { border-color: var(--err); box-shadow: 0 0 0 3px rgba(200, 71, 59, 0.15); }
.field-error { color: var(--err); font-size: 0.85rem; font-weight: 500; margin: 0.35rem 0 0; }
.form-fineprint { font-size: 0.84rem; color: var(--muted-on-paper); text-align: center; margin: 0.9rem 0 0; }

/* Animated success state */
.quote-form.sent > :not(.form-success) { display: none; }
.form-success { text-align: center; padding: 2rem 0.5rem; color: var(--ink); }
.success-icon { display: inline-grid; place-items: center; color: #2e7d4f; margin-bottom: 0.8rem; }
.success-circle { stroke-dasharray: 145; stroke-dashoffset: 145; }
.success-check { stroke-dasharray: 36; stroke-dashoffset: 36; }
html.motion .quote-form.sent .success-circle { animation: draw 0.7s var(--ease-out) forwards; }
html.motion .quote-form.sent .success-check { animation: draw 0.45s var(--ease-out) 0.55s forwards; }
html:not(.motion) .success-circle, html:not(.motion) .success-check { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html.motion .quote-form.sent .form-success { animation: fade-up 0.6s var(--ease-out); }
.form-success h3 { text-transform: uppercase; font-size: 1.5rem; }
.form-success a { color: var(--wine); font-weight: 700; }

@media (max-width: 860px) {
  .quote-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   CTA BAND + FOOTER
   ============================================================ */
.cta-band { background: var(--sun); color: var(--ink); border-block: 2px solid var(--ink); }
.cta-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-band-text { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0; max-width: 22ch; text-transform: uppercase; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.site-footer { background: var(--ink); color: var(--cream-text); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--footer { margin-bottom: 0.9rem; }
.footer-tag { color: var(--muted-on-ink); font-size: 0.95rem; max-width: 30ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--line-cream); border-radius: 12px; color: var(--cream-text);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
html.motion .footer-social a:hover { border-color: var(--sun); color: var(--sun); transform: translateY(-3px); }
.footer-col h3 { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 1rem; font-family: var(--font-b); font-weight: 700; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(242, 236, 223, 0.85); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--sun); }
.footer-contact address { font-style: normal; }
.footer-contact a { color: var(--sun); text-decoration: none; font-weight: 600; }
.footer-hours { font-size: 0.9rem; color: var(--muted-on-ink); }
.footer-hours-note { font-size: 0.8rem; }
.footer-bottom {
  border-top: 1px solid var(--line-cream);
  padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted-on-ink);
}
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   MOBILE CALL BAR
   ============================================================ */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(13, 11, 8, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-cream);
}
.mobile-callbar .btn { padding: 0.85em 1em; font-size: 0.88rem; }
@media (min-width: 861px) { .mobile-callbar { display: none; } }
@media (max-width: 860px) { .site-footer { padding-bottom: 5.2rem; } }

/* ============================================================
   SCROLL REVEALS (JS-gated so no-JS users see everything)
   ============================================================ */
html.js.motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
html.js.motion .reveal.in { opacity: 1; transform: translateY(0); }

/* Kinetic split-word headings (spans injected by JS) */
html.js.motion .split-reveal .wchip { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
html.js.motion .split-reveal .winner { display: inline-block; transform: translateY(115%); transition: transform 0.85s var(--ease-out); transition-delay: var(--wd, 0s); }
html.js.motion .split-reveal.in .winner { transform: translateY(0); }

/* Parallax elements get transforms from JS; keep them composited */
[data-parallax] { will-change: transform; }

/* ---------- Reduced motion hard-stops ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .ticker-track { animation: none !important; }
}
