/* Raincoast Garage — residential site */

:root {
  /* Brand */
  --ink: #0B2A3B;          /* deep navy / primary text on light */
  --ink-2: #1A3A4D;        /* slightly lifted navy */
  --ink-3: #5A7383;        /* secondary text */
  --teal: #1F6F8B;         /* primary accent */
  --header-h: 73px;
  --teal-deep: #185973;
  --moss: #3FA796;         /* secondary accent — green */
  --moss-deep: #2E8C7C;

  --paper: #FBFAF6;        /* page bg, cream */
  --paper-2: #F2EFE7;      /* section bg, slightly warmer */
  --line: #DAD3C2;         /* dividers on cream */
  --line-2: #2A4A5C;       /* dividers on dark */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Type system */
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}
.eyebrow.on-dark { color: var(--moss); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  background: transparent;
}
.btn-primary {
  background: var(--btn-primary-bg, var(--ink));
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-accent {
  background: var(--moss);
  color: var(--ink);
}
.btn-accent:hover { background: var(--moss-deep); color: var(--white); }
.btn-ghost,
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover,
.btn.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-ghost.on-dark:hover { border-color: var(--moss); color: var(--moss); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Top bar / nav */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.topbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 246, 0.96);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-left: 0;
}
.foot .brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-left: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--moss);
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
  margin-left: 8px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
}
.nav-actions {
  display: flex; gap: 16px; align-items: center;
  flex-shrink: 0;
}
.nav-phone {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-phone .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 0 rgba(63, 167, 150, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 167, 150, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(63, 167, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 167, 150, 0); }
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
}
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
}
@media (max-width: 940px) {
  .dv2-trigger { display: none; }
}
@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-phone { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 16px var(--gut) 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 18px;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* Page sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }
section.dark {
  background: var(--ink);
  color: var(--paper);
}
section.dark .eyebrow { color: var(--moss); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.cream { background: var(--paper-2); }

/* Hero video background */
.hero-video { position: relative; isolation: isolate; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,42,59,0.62) 0%, rgba(11,42,59,0.55) 55%, rgba(11,42,59,0.82) 86%, #0B2A3B 100%);
}
[data-theme="light"] .hero-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11,42,59,0) 0%, #0B2A3B 38%, #0B2A3B 58%, var(--paper) 100%);
}
.hero-video .hero-lede,
.hero-video .hero-trust,
.hero-video .hero-trust strong,
.hero-video h1 { color: #FFFFFF; }
.hero.hero-video h1 .accent { color: #7FD3E8; }
.hero-video .hero-trust .dot-sep { background: rgba(255,255,255,0.5); }
.hero-video .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.35); }
.hero-video .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

/* Hero */
.hero {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-eyebrow .pill {
  background: var(--moss);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 { max-width: 22ch; }
.hero h1 .accent {
  font-style: italic;
  color: var(--teal);}
.hero-lede {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 30em;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13px;
}
.hero-trust strong { color: var(--ink); font-weight: 600; }
.hero-trust .dot-sep { width: 4px; height: 4px; background: var(--ink-3); border-radius: 50%; opacity: 0.5; }
.hero-floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px -20px rgba(11, 42, 59, 0.35);
  animation: float 6s ease-in-out infinite;
}
.hero-floating-card.fc-1 {
  top: 24px;
  left: -28px;
}
.hero-floating-card.fc-2 {
  bottom: 28px;
  right: -16px;
  animation-delay: -3s;
}
.hero-floating-card .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--teal);
  display: grid; place-items: center;
}
.hero-floating-card .lbl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-floating-card .val { font-weight: 600; font-size: 14px; }
@media (max-width: 900px) {
  .hero-floating-card.fc-1 { left: 8px; top: 12px; }
  .hero-floating-card.fc-2 { right: 8px; bottom: 12px; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Section heading block */
.shead {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: end;
}
@media (max-width: 800px) {
  .shead { grid-template-columns: 1fr; }
}
.shead .eyebrow { margin-bottom: 14px; }
.shead p { color: var(--ink-2); font-size: 17px; max-width: 36em; }
section.dark .shead p { color: rgba(251,250,246,0.72); }

.pillars-section { padding-top: clamp(16px, 2vw, 32px); }

/* Horizontal pillar bars (home page) */
.pillar-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-bar {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: 168px;
  padding: 30px 34px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.22, 0.9, 0.3, 1),
              box-shadow 240ms ease,
              border-color 240ms ease;
}
.pillar-bar-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 26%, rgba(0,0,0,0.85) 52%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 26%, rgba(0,0,0,0.85) 52%, #000 72%);
}
.pillar-bar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 0.9, 0.3, 1);
}
.pillar-bar-photo img[src*="pillar-service"] { transform: scaleX(-1); }
.pillar-bar-photo img[src*="pillar-doors"] { object-position: center 72%; }
.pillar-bar-photo img[src*="pillar-tuneup"] { object-position: 68% center; }
.pillar-bar-copy {
  position: relative;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.pillar-bar h3 { letter-spacing: -0.015em; }
.pillar-bar p { color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.pillar-bar .arrow {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
}
.pillar-bar .arrow svg { transition: transform 180ms ease; }
.pillar-bar:hover {
  transform: translateY(-8px) scale(1.017);
  border-color: var(--teal);
  box-shadow: 0 34px 60px -28px rgba(11, 42, 59, 0.45),
              0 8px 20px -12px rgba(11, 42, 59, 0.3);
  z-index: 3;
}
.pillar-bar:hover .arrow { color: var(--moss-deep); }
.pillar-bar:hover .arrow svg { transform: translateX(4px); }
.pillar-bar:hover .pillar-bar-photo img { transform: scale(1.05); }
.pillar-bar:hover .pillar-bar-photo img[src*="pillar-service"] { transform: scaleX(-1) scale(1.05); }
@media (max-width: 760px) {
  .pillar-bar { min-height: 0; padding: 24px; }
  .pillar-bar-copy { max-width: 100%; }
  .pillar-bar-photo { width: 100%; opacity: 0.22; }
}

.pillar-bar {
  background: #0F3550;
  border-color: #0F3550;
}
.pillar-bar h3 { color: #FFFFFF; }
.pillar-bar p { color: rgba(255, 255, 255, 0.85); }
.pillar-bar .arrow { color: #7FD3E8; }
.pillar-bar:hover { border-color: #7FD3E8; }
.pillar-bar:hover .arrow { color: #FFFFFF; }
[data-theme="dark"] .pillar-bar { border-color: rgba(255, 255, 255, 0.16); }

/* Where we are (HQ) */
.hq-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 820px) { .hq-grid { grid-template-columns: 1fr; } }
.hq-map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  background: var(--paper-2);
}
.hq-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}
.hq-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hq-lbl {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.hq-addr {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 6px;
}
.hq-rows {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hq-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.hq-rows .row strong { color: var(--ink); font-weight: 600; }
.hq-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pillar cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 180ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.pillar:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -40px rgba(11, 42, 59, 0.4);
}
.pillar-illust {
  height: 180px;
  border-radius: var(--radius);
  background: var(--paper-2);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.pillar h3 { letter-spacing: -0.015em; }
.pillar p { color: var(--ink-2); font-size: 15px; }
.pillar .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
}
.pillar:hover .arrow { color: var(--moss-deep); }
.pillar:hover .arrow svg { transform: translateX(4px); }
.pillar .arrow svg { transition: transform 180ms ease; }

/* ROI / split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; } }
.split-photo { padding: 0; min-height: 340px; }
.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  display: block;
}
.split-art {
  border-radius: var(--radius-lg);
  overflow: hidden;  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #d3dde2 0%, #adc6d0 100%);
  box-shadow: 0 24px 60px -32px rgba(11, 42, 59, 0.4);
}
.split-content .stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
section.dark .split-content .stat-strip { border-top-color: var(--line-2); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
section.dark .stat .num { color: var(--moss); }
.stat .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.3;
}
section.dark .stat .lbl { color: rgba(251,250,246,0.6); }

/* Door gallery */
.doorgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .doorgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .doorgrid { grid-template-columns: 1fr; } }
/* Door detail overlay */
.dd-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 42, 59, 0.55);
  backdrop-filter: blur(22px) saturate(0.9) brightness(0.85);
  -webkit-backdrop-filter: blur(22px) saturate(0.9) brightness(0.85);
  display: grid;
  place-items: start center;
  padding: 116px 88px 40px;
  animation: ddFade 200ms ease;
}
@keyframes ddFade { from { opacity: 0; } to { opacity: 1; } }
.dd-inner {
  position: relative;
  width: min(1100px, 100%);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #FFFFFF;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 211, 232, 0.55) transparent;
}
.dd-inner::-webkit-scrollbar { width: 6px; }
.dd-inner::-webkit-scrollbar-track { background: transparent; }
.dd-inner::-webkit-scrollbar-thumb {
  background: rgba(127, 211, 232, 0.55);
  border-radius: 999px;
}
.dd-inner::-webkit-scrollbar-thumb:hover { background: rgba(127, 211, 232, 0.85); }
.dd-inner::-webkit-scrollbar-button { display: none; height: 0; }
.dd-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}
.dd-sep { color: rgba(255,255,255,0.4); }
.dd-current { color: #FFFFFF; }
.dd-close {
  position: fixed;
  top: 92px;
  right: 28px;
  z-index: 2;
  background: rgba(11, 42, 59, 0.6);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.dd-close:hover { color: #FFFFFF; background: rgba(11, 42, 59, 0.85); }
.dd-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}
.dd-shot {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.dd-shot img, .dd-shot svg { width: 100%; height: auto; display: block; }
.dd-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  color: #7FD3E8;
  letter-spacing: -0.01em;
}
.dd-meta { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.dd-desc { font-size: 16px; color: rgba(255,255,255,0.88); margin-top: 18px; max-width: 46ch; }
.dd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dd-tags .tag { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #FFFFFF; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.dd-actions .dd-quote { margin-top: 0; }
.dd-quote-together { color: #FFFFFF; border-color: rgba(255,255,255,0.4); }
.dd-quote-together:hover { border-color: #7FD3E8; color: #7FD3E8; }
.dd-quote { margin-top: 28px; }
.area-bar-link { cursor: pointer; }

.area-detail { padding: 56px 0 96px; }
.area-detail-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.area-detail-copy h1 { margin: 6px 0 20px; }
.area-detail-copy p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.area-detail-copy .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .area-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hq-grid-compact {
  margin-top: 48px;
  max-width: 760px;
  font-size: 14px;
}
.hq-grid-compact { align-items: stretch; }
.hq-grid-compact .hq-map { width: 100%; height: 100%; align-self: stretch; aspect-ratio: auto; }
.hq-grid-compact .hq-addr { font-size: 17px; }
.hq-grid-compact .hq-rows { font-size: 13px; }

.area-bar.area-bar-solo {
  width: 280px;
  flex: none;
  margin-right: 0;
  aspect-ratio: 719 / 1657;
}
.area-bar.area-bar-solo .area-bar-bg,
.area-bar.area-bar-solo:hover .area-bar-bg { transform: none; }
.area-bar.area-bar-solo .area-bar-tint,
.area-bar.area-bar-solo:hover .area-bar-tint { opacity: 0; }

.credit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 70ch;
}
.credit-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dd-crumb-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dd-crumb-link:hover { color: #FFFFFF; }
.dd-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(11, 42, 59, 0.6);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 3px;
  transition: background 160ms ease, color 160ms ease;
}
.dd-nav:hover { background: rgba(11, 42, 59, 0.9); color: #FFFFFF; }
.dd-back {
  font-size: 20px;
  padding: 0;
  background: rgba(127, 211, 232, 0.18);
  border-color: rgba(127, 211, 232, 0.5);
  color: #7FD3E8;
}
.dd-back:hover { background: rgba(127, 211, 232, 0.32); color: #FFFFFF; }
.dd-prev { left: 16px; }
.dd-next { right: 16px; }
@media (max-width: 900px) {
  .dd-overlay { padding-left: 62px; padding-right: 62px; }
  .dd-nav { width: 38px; height: 38px; font-size: 24px; }
  .dd-prev { left: 8px; }
  .dd-next { right: 8px; }
}
.dd-recs {
  margin-top: 30vh;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.dd-recs-head {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 18px;
}
.dd-recs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 620px;
}
.dd-rec {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.dd-rec:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.34); transform: translateY(-2px); }
.dd-rec-shot { display: block; height: 74px; width: 100%; }
.dd-rec-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dd-rec-name { font-size: 13px; color: #FFFFFF; text-align: center; line-height: 1.3; }
@media (max-width: 620px) { .dd-recs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .dd-body { grid-template-columns: 1fr; gap: 28px; }
}

main { padding-top: var(--header-h); }
.hero.hero-video { margin-top: calc(var(--header-h) * -1); padding-top: calc(clamp(40px, 5vw, 72px) + var(--header-h)); }
.doorcard {
  background: var(--white);
  padding: 0;
  border: 5px solid transparent;
  border-radius: var(--radius-lg);
  background-image: linear-gradient(180deg, #0B2A3B 0%, #FFFFFF 40%), linear-gradient(180deg, #04141D 0%, #0B2A3B 18%, #FFFFFF 48%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 180ms ease;
}
.doorcard:hover { transform: translateY(-2px); }
.doorcard .pic {
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #d3dde2 0%, #adc6d0 100%);
  position: relative;
  overflow: hidden;
}
.doorcard .pic.pic-product {
  background: linear-gradient(180deg, #0B2A3B 0%, #FFFFFF 100%);
  display: grid;
  place-items: center;
  padding: 22px;
}
.pic-product-shot {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  display: block;
}
.pic-product-logo {
  position: absolute;
  top: 12px;
  left: 14px;
  height: 20px;
  width: auto;
  opacity: 0.9;
}
.doorcard .product-name { text-align: center; }
.doorcard .product-meta { text-align: center; }
.doorcard .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doorcard .name { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; }
.doorcard .meta { font-size: 13px; color: var(--ink-3); }
.doorcard .desc { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.doorcard .tags { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tag-rainbow {
  position: relative;
  border-color: transparent;
  background: transparent;
  isolation: isolate;
}
.tag-rainbow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.7;
  background: linear-gradient(90deg, #E8564B, #E8A44B, #E5D24B, #4FB477, #4B90E8, #7B5BD6);
}
.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tag.featured { background: var(--moss); color: var(--ink); }

/* Filter bar */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 140ms ease;
}
.filter:hover { border-color: var(--ink); }
.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Footer */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.foot a { color: rgba(251,250,246,0.78); }
.foot a:hover { color: var(--moss); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
}
.foot-brand .brand { color: white; }
.foot-brand p { color: rgba(251,250,246,0.65); margin-top: 16px; max-width: 30ch; font-size: 14px; }
.foot h5 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--moss);
  margin: 0 0 14px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(251,250,246,0.55);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.field label .req { color: var(--teal); }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .help { font-size: 12px; color: var(--ink-3); }

/* Quote / booking shells */
.flow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px -40px rgba(11, 42, 59, 0.3);
}
.flow-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow-progress {
  display: flex;
  gap: 8px;
}
.flow-progress .step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background 240ms ease;
}
.flow-progress .step.done { background: var(--moss); }
.flow-progress .step.current { background: var(--teal); }
.flow-step-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.flow-step-label .step-of { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.flow-step-label h3 { font-size: 24px; }
.flow-body { padding: 32px; }
.flow-foot {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Tile choices (radio cards) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 600px) { .tile-grid { grid-template-columns: 1fr; } }
.tile-emoji {
  font-size: 24px;
  line-height: 1;
  display: block;
  transform: translate(-2px, -1px);
}
.tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  cursor: pointer;
  transition: all 140ms ease;
  text-align: left;
}
.tile:hover { border-color: var(--ink); }
.tile.selected {
  border-color: var(--teal);
  background: #F0F6F8;
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.12);
}
.tile .tile-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--teal);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tile.selected .tile-ico { background: var(--teal); color: white; }
.tile .tile-name { font-weight: 600; font-size: 15px; }
.tile .tile-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.page-hero-quote { padding: 18px 0 clamp(20px, 2.5vw, 28px); }
.page-hero-quote .crumbs { margin-bottom: 8px; }
.section-quote { padding-top: clamp(24px, 3vw, 36px); }

/* Upscaled wizard (1.5x) */
.flow-lg .flow-head { padding: 30px 40px; }
.flow-lg .flow-body { padding: 40px; }
.flow-lg .flow-foot { padding: 25px 40px; }
.flow-lg .flow-progress { gap: 12px; }
.flow-lg .flow-progress .step { height: 5px; border-radius: 999px; }
.flow-lg .flow-step-label .step-of { font-size: 13px; }
.flow-lg .flow-step-label h3 { font-size: 30px; }
.flow-lg .flow-body > div > p { font-size: 16px !important; margin-bottom: 22px !important; }
.flow-lg .tile { border-radius: 16px; padding: 20px; gap: 17px; }
.flow-lg .tile-ico { width: 48px; height: 48px; border-radius: 13px; }
.flow-lg .tile-emoji { font-size: 23px; }
.flow-lg .tile-name { font-size: 21px; }
.flow-lg .tile-sub { font-size: 15px; margin-top: 3px; }
.flow-lg .form-grid { gap: 23px; }
.flow-lg .field label { font-size: 15px; }
.flow-lg .field input, .flow-lg .field select, .flow-lg .field textarea { padding: 16px 19px; font-size: 16px; border-radius: 13px; }
.flow-lg .field textarea { min-height: 125px; }
.flow-lg .field .help { font-size: 14px; }
.flow-lg .flow-foot .btn { font-size: 16px; padding: 14px 22px; }
.flow-lg .style-list { max-height: 620px; gap: 18px; }
.flow-lg .style-row { grid-template-columns: 172px 1fr auto; gap: 30px; padding: 22px 26px; border-radius: 20px; }
.flow-lg .style-row-plain { grid-template-columns: 1fr; }
.flow-lg .style-variants-label { padding: 0 26px 12px; font-size: 13px; }
.flow-lg .variant-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; padding: 0 26px 24px; }
.flow-lg .variant-name { font-size: 14px; }
.flow-lg .style-thumb { width: 172px; height: 135px; border-radius: 16px; }
.flow-lg .style-name { font-size: 31px; }
.flow-lg .style-tag { font-size: 15px; padding: 6px 14px; }
.flow-lg .style-tags { gap: 10px; margin-top: 12px; }
.flow-lg .review-row { font-size: 16px; }

.card-price {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--teal);
  margin-top: 2px;
}
.dd-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
  font-size: 14px;
  color: var(--ink-3);
}
.dd-price strong { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 500; }
.dd-price em { font-style: normal; color: var(--line-2); }
.style-price { font-family: var(--font-display); font-size: 16px; color: var(--teal); margin-top: 4px; }
[data-theme="dark"] .flow:not(.dv2-modal) .style-price { color: #7FD3E8; }

.size-grid {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 150px);
  gap: 12px;
  align-items: end;
}
@media (max-width: 640px) { .size-grid { grid-template-columns: 1fr 1fr; } }
.size-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.size-label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.size-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size-inputs input, .size-group input, .size-group select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}
.size-group input::-webkit-outer-spin-button,
.size-group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-group input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.size-inputs input:focus, .size-group input:focus, .size-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
}
.flow-lg .size-group input, .flow-lg .size-group select { padding: 10px 14px; font-size: 15px; border-radius: 11px; }
.flow-lg .size-label { font-size: 13px; }
[data-theme="dark"] .flow:not(.dv2-modal) .size-group input,
[data-theme="dark"] .flow:not(.dv2-modal) .size-group select {
  background: #0F3550;
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) .size-group input::placeholder { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .flow:not(.dv2-modal) .size-label { color: rgba(255,255,255,0.85); }

/* Quote style picker */
.style-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.style-list > * { flex: 0 0 auto; }
.style-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.style-card:hover { border-color: var(--teal); }
.style-card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,111,139,0.14); }
.style-chev {
  display: grid; place-items: center;
  color: var(--ink-3);
  transform: rotate(-90deg);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.style-chev.open { transform: rotate(90deg); }
.style-variants {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1);
}
.style-variants.open { grid-template-rows: 1fr; }
.style-variants > .style-variants-inner { overflow: hidden; min-height: 0; }
.style-variants-inner > * { opacity: 0; transition: opacity .25s ease .08s; }
.style-variants.open .style-variants-inner > * { opacity: 1; }
.style-variants-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 0 17px 10px;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  padding: 0 17px 18px;
}
.variant {
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease;
}
.variant:hover .variant-img { border-color: var(--teal); }
.variant.selected .variant-img { border-color: var(--teal); border-width: 3px; box-shadow: 0 0 0 3px rgba(31,111,139,0.3); }
.variant-img {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 3 / 2;
}
.variant-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.variant-name { font-size: 12px; color: var(--ink-2); margin-top: 5px; text-align: center; }

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 17px 18px;
}
.color-chip-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .color-grid { grid-template-columns: 1fr; } }
.color-chip {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.color-chip:hover { border-color: var(--teal); }
.color-chip.selected { border-color: var(--teal); border-width: 2px; padding: 5px 11px 5px 6px; box-shadow: 0 0 0 3px rgba(31,111,139,0.18); }
.color-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}
.color-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.color-name { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.color-tier {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-left: 2px;
}
.dd-colors { margin: 18px 0 4px; }
.dd-colors-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.dd-color-grid { padding: 0; }
.dd-color-note { padding: 10px 0 0; margin: 0; }
[data-theme="dark"] .dd-overlay .color-chip:not(.selected) { background: #0F3550; border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .dd-overlay .color-chip.selected { background: #17456A; border-color: #7FD3E8; box-shadow: 0 0 0 3px rgba(127,211,232,0.4); }
[data-theme="dark"] .dd-overlay .color-chip:hover { border-color: #7FD3E8; }
[data-theme="dark"] .dd-overlay .color-name { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .dd-overlay .dd-colors-label { color: rgba(255,255,255,0.72); }
[data-theme="dark"] .dd-overlay .dd-color-note { color: rgba(255,255,255,0.78); }
[data-theme="dark"] .dd-overlay .color-dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.color-mark { color: var(--teal); padding-left: 2px; font-weight: 600; }
[data-theme="dark"] .flow:not(.dv2-modal) .color-mark,
[data-theme="dark"] .dd-overlay .color-mark { color: #7FD3E8; }
.color-notes { padding: 0 17px 18px; display: flex; flex-direction: column; gap: 4px; }
.color-notes .color-note { padding: 0; margin: 0; }
.flow-lg .color-notes { padding: 0 26px 22px; }
.dd-overlay .color-note { padding: 10px 0 0; margin: 0; }
.flow-lg .color-notes .color-note,
.dd-overlay .color-notes .color-note { padding: 0; margin: 0; }
.color-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  padding: 0 17px 18px;
  margin: -8px 0 0;
  max-width: 62ch;
}
.flow-lg .color-note { font-size: 13px; padding: 0 26px 22px; }
[data-theme="dark"] .flow:not(.dv2-modal) .color-tier,
[data-theme="dark"] .flow:not(.dv2-modal) .color-note { color: rgba(255,255,255,0.7); }
.flow-lg .color-grid { padding: 0 26px 24px; gap: 10px; }
.flow-lg .color-dot { width: 22px; height: 22px; }
.flow-lg .color-name { font-size: 14px; }
[data-theme="dark"] .flow:not(.dv2-modal) .color-chip { background: #0F3550; border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .flow:not(.dv2-modal) .color-chip:hover { border-color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .color-chip.selected { border-color: #7FD3E8; box-shadow: 0 0 0 3px rgba(127,211,232,0.4); }
[data-theme="dark"] .flow:not(.dv2-modal) .color-name { color: rgba(255,255,255,0.88); }
[data-theme="dark"] .flow:not(.dv2-modal) .color-dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }

.style-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.style-row-plain { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; }
.style-thumb {
  width: 92px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
.style-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-name { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.style-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.style-tag {
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
}
.style-check {
  width: 24px; height: 24px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: transparent;
}
.style-row.selected .style-check { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }

/* Calendar */
.cal-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .cal-shell { grid-template-columns: 1fr; } }
.cal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 18px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cal-head .month { font-family: var(--font-display); font-size: 20px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  display: grid; place-items: center;
}
.cal-nav button:hover { border-color: var(--ink); }
.cal-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-size: 11px;
  text-align: center;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  transition: all 120ms ease;
}
.cal-day:hover:not(:disabled) { background: var(--paper-2); }
.cal-day.muted { color: transparent; pointer-events: none; }
.cal-day:disabled { color: var(--line); cursor: not-allowed; }
.cal-day.today { border-color: var(--line); }
.cal-day.has-slot { color: var(--teal); font-weight: 600; }
.cal-day.selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.slot {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.slot:hover { border-color: var(--ink); }
.slot.selected { background: var(--ink); color: white; border-color: var(--ink); }
.slot:disabled { opacity: 0.4; cursor: not-allowed; }

/* Banners / callouts */
.callout {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/rain-glass.png") center/cover no-repeat;
}
.callout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(11,42,59,0.90) 0%, rgba(11,42,59,0.74) 55%, rgba(11,42,59,0.52) 100%);
}
@media (max-width: 800px) { .callout { grid-template-columns: 1fr; } }
.callout h2 { color: var(--white); }
.callout p { color: rgba(251,250,246,0.78); font-size: 17px; margin-top: 16px; max-width: 32em; }
.callout-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.callout-form { display: flex; flex-direction: column; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field > span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251,250,246,0.72);
}
.cf-field input,
.cf-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  resize: vertical;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(251,250,246,0.42); }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--moss);
  background: rgba(255,255,255,0.13);
}
.cf-photo-drop {
  font: inherit;
  font-size: 14px;
  color: rgba(251,250,246,0.82);
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.32);
  border-radius: 10px;
  padding: 12px 13px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cf-photo-drop:hover { border-color: var(--moss); background: rgba(255,255,255,0.13); }
.cf-photo-has {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 8px 10px;
}
.cf-photo-has img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cf-photo-name {
  font-size: 13px;
  color: rgba(251,250,246,0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.cf-photo-x {
  background: none;
  border: none;
  color: rgba(251,250,246,0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cf-photo-x:hover { color: var(--white); }
.cf-submit { margin-top: 4px; justify-content: center; }
.callout-side {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 24px;
}
.callout-side .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--moss); font-weight: 600; }
.callout-side .big { font-family: var(--font-display); font-size: 32px; margin-top: 8px; line-height: 1; }
.callout-side .row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 14px;
  color: rgba(251,250,246,0.85);
}
.callout-side .row:last-child { border-bottom: none; }
.callout-side .row strong { font-weight: 600; color: white; }

/* Brand ribbon */
.ribbon {
  background: var(--paper-2);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ribbon-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink-3);
}
.ribbon-marks {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.78;
}

/* Partner logo marquee */
.ribbon {
  background: none;
  border-top: none;
  border-bottom: none;
  padding: 48px 0;
  overflow: visible;
}
.ribbon-marquee-inner {
  position: relative;
}
.ribbon-marquee-inner .ribbon-label {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee-logo {
  flex-shrink: 0;
  height: 185px;
  min-width: 277px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-logo img {
  max-height: 111px;
  max-width: 277px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 70s; }
}

/* Service area chips */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 800px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }
.area-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 140ms ease;
}
.area-chip:hover { border-color: var(--teal); transform: translateY(-1px); }
.area-chip .city { font-weight: 600; font-size: 15px; }
.area-chip .eta { font-size: 12px; color: var(--ink-3); }

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review .stars { display: inline-flex; gap: 2px; color: var(--moss); }
.review p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.review .who { font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.review .who strong { color: var(--ink); display: block; font-size: 14px; }

/* Misc */
.tag-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: none;
}

/* Page transition */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: pageEnter 320ms ease; }

/* Page hero (sub-pages) */
.page-hero {
  padding: clamp(64px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; max-width: 50ch; color: var(--ink-2); font-size: 18px; }
.page-hero-areas {
  position: relative;
  isolation: isolate;
  background: none;
  border-bottom: none;
}
.page-hero-areas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, rgba(11,42,59,0.36), rgba(11,42,59,0.275)), url("/assets/areas-header-rain.jpg");
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
}
.page-hero-areas .crumbs { color: rgba(255,255,255,0.75); }.page-hero-areas h1 { color: #FFFFFF; }
.page-hero-areas .lede { color: rgba(255,255,255,0.88); }
.page-hero-about {
  position: relative;
  background-image: linear-gradient(180deg, rgba(11,42,59,0.5), rgba(11,42,59,0.4)), url("/assets/about-header-poolleaves.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.page-hero-about .crumbs { color: rgba(255,255,255,0.8); }
.page-hero-about h1 { color: #FFFFFF; }
.page-hero-about .lede { color: rgba(255,255,255,0.92); }
.page-hero-doors,
.page-hero-services { --hero-fade: var(--paper); }
.page-hero-doors::after,
.page-hero-services::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  min-height: 90px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--hero-fade) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-doors .wrap,
.page-hero-services .wrap { position: relative; z-index: 1; }
.page-hero-services {
  position: relative;
  background-image: linear-gradient(180deg, rgba(11,42,59,0.47), rgba(11,42,59,0.37)), url("/assets/services-tech.jpg");
  background-size: cover;
  background-position: center 35%;
  border-bottom: none;
}
.page-hero-services .crumbs { color: rgba(255,255,255,0.75); }
.page-hero-services h1 { color: #FFFFFF; }
.page-hero-services .lede { color: rgba(255,255,255,0.88); }
.page-hero-services .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.35); }
.page-hero-services .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

.page-hero-doors {
  position: relative;
  background-image: linear-gradient(180deg, rgba(11,42,59,0.55), rgba(11,42,59,0.43)), url("/assets/doors-header-house.jpg");
  background-size: cover;
  background-position: center 80%;
  border-bottom: none;
}
.page-hero-doors .crumbs { color: rgba(255,255,255,0.75); }
.page-hero-doors h1 { color: #FFFFFF; }
.page-hero-doors .lede { color: rgba(255,255,255,0.88); }

/* People grid */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person .pic {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #d3dde2 0%, #adc6d0 100%);
  border-radius: var(--radius);
  overflow: hidden;
}
.person .name { font-family: var(--font-display); font-size: 20px; }
.person .role { font-size: 13px; color: var(--ink-3); }
.person .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .bio { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 2px 0 0; text-wrap: pretty; }

/* Service step list */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step .n {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--moss);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.step p { font-size: 14px; color: var(--ink-2); }
.shead-solo { grid-template-columns: 1fr; margin-bottom: 28px; }
section.dark:has(.steps-compact) { padding-top: 56px; padding-bottom: 56px; }
.steps-compact { gap: 24px 28px; }
.steps-compact .step { gap: 6px; }
.steps-compact .step h4 { font-size: 18px; line-height: 1.25; }
section.dark .steps-compact .step p { font-size: 14px; line-height: 1.5; }
section.dark .step p { color: rgba(251, 250, 246, 0.82); font-size: 15px; line-height: 1.6; }

/* Door Visualizer */
.dv2-trigger { max-width: 340px; }
.dv2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 59, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 200;
}
.dv2-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: none;
}
.dv2-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--paper-2);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
}
.dv2-close:hover { background: var(--line); }
.dv2-body { padding-top: 24px; }
.dv2-hint { color: var(--ink-3); font-size: 13.5px; margin-bottom: 14px; }
.dv2-stage {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  line-height: 0;
  user-select: none;
  box-shadow: 0 18px 40px -26px rgba(11, 42, 59, 0.4);
}
.dv2-stage img { width: 100%; height: auto; display: block; }
.dv2-overlay-quad { position: absolute; inset: 0; }
.dv2-handle {
  position: absolute;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 3px solid var(--teal);
  background: rgba(255,255,255,0.94);
  cursor: grab;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.dv2-handle:active { cursor: grabbing; }
.dv2-dropzone {
  aspect-ratio: 3/2;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.dv2-dropzone.drag, .dv2-dropzone:hover { border-color: var(--teal); }
.dv2-dropzone-h { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.dv2-dropzone-s { font-size: 13px; color: var(--ink-3); }
.dv2-design { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
@media (max-width: 700px) { .dv2-design { grid-template-columns: 1fr; } }
.dv2-field-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 11px;
}
.dv2-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.dv2-swatch {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.dv2-swatch.is-active { border: 2.5px solid var(--teal); box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.18); }
.dv2-color-name { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dv2-reveal-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 42, 59, 0.82);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.dv2-disclaimer { margin-top: 16px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.5; }
@media (max-width: 640px) {
  .dv2-trigger span, .dv2-trigger { font-size: 13px; padding: 10px 14px; }
}

/* Service area bars (Lockheed-style) */
.area-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow: hidden;
  justify-content: center;
}
.area-bar {
  position: relative;
  flex: 0 0 auto;
  width: calc(25% + 1px);
  aspect-ratio: 719 / 1657;
  cursor: pointer;
  overflow: hidden;
  margin-right: -1px;
  container-type: inline-size;
}
.area-bar-text {
  position: absolute;
  top: 9.3cqw;
  left: 18.6cqw;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 18.33cqw;
  line-height: 1.006;
  color: #FFFFFF;
  white-space: nowrap;
  filter: drop-shadow(-0.8cqw 1.1cqw 0.9cqw rgba(0, 0, 0, 0.45));
}
.area-bar-line { display: block; }
.area-bar-line-gap {
  margin-top: 4.3cqw;
  font-size: 0.58em;
  letter-spacing: 0.02em;
}
.area-bar-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1);
  transition: transform 4500ms ease;
}
.area-bar-tint {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 59, 0);
  transition: background 420ms ease;
  z-index: 1;
}
.area-bar:hover .area-bar-tint { background: rgba(11, 42, 59, 0.45); }
.area-bar:hover .area-bar-bg { transform: scale(1.08); }
.area-bar-bg[style*="maple-ridge"] {
  background-size: cover;
  background-position: center 70%;
}
/* This photo has a blown-out sky across its upper half; the label needs its own
   backing scrim rather than a crop, so the ridge stays in frame. Full bar width
   so it has no vertical seam, and fades out at top and bottom. */
.area-bar[data-area="maple-ridge"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 32, 45, 0) 0%,
    rgba(9, 32, 45, 0.66) 9%,
    rgba(9, 32, 45, 0.62) 62%,
    rgba(9, 32, 45, 0.26) 86%,
    rgba(9, 32, 45, 0) 100%
  );
}
.area-bar-arrow {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
  pointer-events: none;
}
@media (max-width: 800px) {
  .area-bar { width: calc(50% + 1px); }
}
@media (max-width: 480px) {
  .area-bar { width: 100%; margin-right: 0; }
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: rgba(251, 250, 246, 0.7);
}
.theme-toggle-track {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.22);
  position: relative;
  transition: background 200ms ease;
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 200ms ease;
}
.theme-toggle.is-dark .theme-toggle-track { background: #2F7D5B; }
.theme-toggle.is-dark .theme-toggle-thumb { transform: translateX(18px); }

[data-theme="dark"] .pillar.fixcard {
  --ink: #FFFFFF;
  --ink-2: rgba(255,255,255,0.85);
  --ink-3: rgba(255,255,255,0.7);
  --paper-2: rgba(127,211,232,0.14);
  --teal: #7FD3E8;
  --line: rgba(255,255,255,0.16);
  --line-2: rgba(255,255,255,0.28);
  background: #0F3550;
  border-color: rgba(255,255,255,0.16);
  color: #FFFFFF;
}
[data-theme="dark"] .pillar.fixcard h3 { color: #FFFFFF; }
[data-theme="dark"] .pillar.fixcard p { color: rgba(255,255,255,0.85); }

[data-theme="dark"] .flow:not(.dv2-modal) {
  --btn-primary-bg: #2F7D5B;
  --ink: #FFFFFF;
  --ink-2: rgba(255,255,255,0.85);
  --ink-3: rgba(255,255,255,0.7);
  --paper: #0B2A3B;
  --paper-2: #0F3550;
  --line: rgba(255,255,255,0.16);
  --line-2: rgba(255,255,255,0.28);
  --teal: #7FD3E8;
  background: #0B2A3B;
  border-color: rgba(255,255,255,0.16);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) .flow-head,
[data-theme="dark"] .flow:not(.dv2-modal) .flow-foot { background: transparent; border-color: rgba(255,255,255,0.16); }
[data-theme="dark"] .flow:not(.dv2-modal) .tile {
  --ink: #FFFFFF;
  --ink-2: rgba(255,255,255,0.85);
  --ink-3: rgba(255,255,255,0.72);
  --paper-2: rgba(127,211,232,0.14);
  --teal: #7FD3E8;
  --line: rgba(255,255,255,0.18);
  background: #0F3550;
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) .tile .tile-ico { background: rgba(127,211,232,0.14); color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .tile .tile-name { color: #FFFFFF; }
[data-theme="dark"] .flow:not(.dv2-modal) .tile .tile-sub { color: rgba(255,255,255,0.72); }
[data-theme="dark"] .flow:not(.dv2-modal) .tile:hover { border-color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .tile.selected {
  border-color: #7FD3E8;
  background: #17456A;
  box-shadow: 0 0 0 3px rgba(127,211,232,0.22);
}
[data-theme="dark"] .flow:not(.dv2-modal) .tile.selected .tile-ico { background: #7FD3E8; color: #0B2A3B; }
[data-theme="dark"] .flow:not(.dv2-modal) input,
[data-theme="dark"] .flow:not(.dv2-modal) textarea,
[data-theme="dark"] .flow:not(.dv2-modal) select {
  background: #0F3550;
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) input::placeholder,
[data-theme="dark"] .flow:not(.dv2-modal) textarea::placeholder { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .flow:not(.dv2-modal) .flow-progress .step.current { background: var(--moss); }

[data-theme="dark"] .flow:not(.dv2-modal) .style-card,
[data-theme="dark"] .flow:not(.dv2-modal) .style-row-plain {
  background: #0F3550;
  border-color: rgba(255,255,255,0.18);
}
[data-theme="dark"] .flow:not(.dv2-modal) .style-card:hover,
[data-theme="dark"] .flow:not(.dv2-modal) .style-row-plain:hover { border-color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .style-card.selected,
[data-theme="dark"] .flow:not(.dv2-modal) .style-row-plain.selected {
  border-color: #7FD3E8;
  background: #17456A;
  box-shadow: 0 0 0 3px rgba(127,211,232,0.22);
}
[data-theme="dark"] .flow:not(.dv2-modal) .style-chev { color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .style-variants-label { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .flow:not(.dv2-modal) .variant-name { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .flow:not(.dv2-modal) .variant-img { border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .flow:not(.dv2-modal) .variant:hover .variant-img { border-color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .variant.selected .variant-img { border-color: #7FD3E8; border-width: 3px; box-shadow: 0 0 0 3px rgba(127,211,232,0.4); }
[data-theme="dark"] .flow:not(.dv2-modal) .style-name { color: #FFFFFF; }
[data-theme="dark"] .flow:not(.dv2-modal) .style-tag { background: rgba(127,211,232,0.14); color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .style-check { border-color: rgba(255,255,255,0.3); }
[data-theme="dark"] .flow:not(.dv2-modal) .style-row.selected .style-check { background: #7FD3E8; border-color: #7FD3E8; color: #0B2A3B; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal {
  background: #0F3550;
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) .cal-head .month { color: #FFFFFF; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-dow { color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-nav button {
  background: #17456A;
  border-color: rgba(255,255,255,0.22);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) .cal-nav button:hover { border-color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day { color: #FFFFFF; background: transparent; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day:disabled { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day.muted { color: transparent; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day.today { border-color: rgba(255,255,255,0.3); }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day.has-slot { color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .cal-day.selected {
  background: #7FD3E8;
  border-color: #7FD3E8;
  color: #0B2A3B;
}
[data-theme="dark"] .flow:not(.dv2-modal) .slot {
  background: #0F3550;
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
}
[data-theme="dark"] .flow:not(.dv2-modal) .slot:hover:not(:disabled) { border-color: #7FD3E8; }
[data-theme="dark"] .flow:not(.dv2-modal) .slot.selected { background: #7FD3E8; border-color: #7FD3E8; color: #0B2A3B; }

[data-theme="dark"] .filter:not(.active) {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #FFFFFF;
}
[data-theme="dark"] .filter:not(.active):hover { border-color: #FFFFFF; background: rgba(255,255,255,0.08); }

[data-theme="dark"] .tester-steps li {
  background: transparent;
  border-color: #7FD3E8;
  color: #FFFFFF;
}
[data-theme="dark"] .tester-steps strong { color: #FFFFFF; }
[data-theme="dark"] .tester-steps span:not(.tester-num) { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .tester-num { background: transparent; border: 1px solid #7FD3E8; color: #7FD3E8; }

/* ===================== Dark theme ===================== */
[data-theme="dark"] {
  --btn-primary-bg: #2F7D5B;
  --paper: #0B2A3B;
  --paper-2: #0F3550;
  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.28);
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.85);
  --ink-3: rgba(255, 255, 255, 0.7);
  --teal: #7FD3E8;
}
/* surfaces deliberately kept light: re-pin the light tokens so all their
   descendants (chips, borders, muted copy) resolve correctly again */
[data-theme="dark"] .doorcard,
[data-theme="dark"] .pillar,
[data-theme="dark"] .flow,
[data-theme="dark"] .tile,
[data-theme="dark"] .tester-steps li,
[data-theme="dark"] .hero-eyebrow,
[data-theme="dark"] .hero-floating-card,
[data-theme="dark"] .area-chip,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .hq-card,
[data-theme="dark"] .filter,
[data-theme="dark"] .dv2-modal {
  --btn-primary-bg: #0B2A3B;
  --ink: #0B2A3B;
  --ink-2: #1A3A4D;
  --ink-3: #5A7383;
  --paper: #FBFAF6;
  --paper-2: #F2EFE7;
  --line: #DAD3C2;
  --line-2: #C9C0AC;
  --teal: #1F6F8B;
}
[data-theme="dark"] body { color: #FFFFFF; }

/* surfaces that were "dark ink" become the accent green */
[data-theme="dark"] section.dark,
[data-theme="dark"] .callout {
  background: #2F7D5B;
}
[data-theme="dark"] .foot {
  background: #0A1F2B;
}
[data-theme="dark"] .filter.active,
[data-theme="dark"] .cal-day.selected,
[data-theme="dark"] .slot.selected {
  background: #2F7D5B;
  border-color: #2F7D5B;
}
[data-theme="dark"] .callout-side { background: rgba(255, 255, 255, 0.08); }

/* text on those now-green/black surfaces */
[data-theme="dark"] section.dark,
[data-theme="dark"] .foot,
[data-theme="dark"] .callout {
  color: #FFFFFF;
}

/* header bar */
[data-theme="dark"] .topbar { background: rgba(11, 42, 59, 0.85); }
[data-theme="dark"] .topbar.scrolled { background: rgba(11, 42, 59, 0.96); }
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .nav-phone {
  color: #FFFFFF;
}
[data-theme="dark"] .topbar .brand-logo-img { filter: none; }

/* page-level copy that isn't inside a white card */
[data-theme="dark"] .stat .num,
[data-theme="dark"] .stat .lbl,
[data-theme="dark"] .ribbon-label,
[data-theme="dark"] .page-hero .eyebrow.on-dark,
[data-theme="dark"] .page-hero .lede,
[data-theme="dark"] .page-hero .crumbs,
[data-theme="dark"] .hero-lede,
[data-theme="dark"] .hero-trust,
[data-theme="dark"] .hero-trust strong,
[data-theme="dark"] .shead p,
[data-theme="dark"] .person .role,
[data-theme="dark"] .person .bio,
[data-theme="dark"] .step p,
[data-theme="dark"] .review p,
[data-theme="dark"] .review .who,
[data-theme="dark"] .review .who strong {
  color: #FFFFFF;
}
[data-theme="dark"] .eyebrow,
[data-theme="dark"] section.dark .step p,
[data-theme="dark"] section.dark .shead p,
[data-theme="dark"] section.dark .eyebrow,
[data-theme="dark"] section.dark .step .n,
[data-theme="dark"] .step .n {
  color: #FFFFFF;
}
[data-theme="dark"] .callout-side { background: rgba(0, 0, 0, 0.22); }
[data-theme="dark"] .callout p { color: #FFFFFF; }
[data-theme="dark"] .callout-side .lbl { color: rgba(255, 255, 255, 0.85); }
[data-theme="dark"] .btn-accent { color: #0B2A3B; }
[data-theme="dark"] .split-copy {
  color: #FFFFFF;
}
[data-theme="dark"] .hero-trust .dot-sep { background: rgba(255,255,255,0.5); }

/* white "bubbles" keep their light background and original dark text —
   reset default (inherited) text color at the container level so children
   without their own color rule don't pick up the page's white text */
[data-theme="dark"] .flow,
[data-theme="dark"] .pillar,
[data-theme="dark"] .doorcard,
[data-theme="dark"] .hero-floating-card,
[data-theme="dark"] .area-chip,
[data-theme="dark"] .tile,
[data-theme="dark"] .tester-steps li,
[data-theme="dark"] .hero-eyebrow,
[data-theme="dark"] .dv2-modal {
  color: var(--ink);
}
[data-theme="dark"] .dv2-modal { background: var(--white); }
[data-theme="dark"] .dv2-overlay { background: rgba(11, 42, 59, 0.55); }
[data-theme="dark"] .dv2-close { background: #F2EFE7; color: var(--ink); }
[data-theme="dark"] .dv2-close:hover { background: #DAD3C2; }
[data-theme="dark"] .dv2-stage,
[data-theme="dark"] .dv2-dropzone {
  background: #F2EFE7;
}

[data-theme="dark"] .flow-head { border-bottom-color: #DAD3C2; }
[data-theme="dark"] .flow-foot { background: #F2EFE7; border-top-color: #DAD3C2; }
[data-theme="dark"] .dv2-dropzone { border-color: #DAD3C2; }
[data-theme="dark"] .dv2-trigger { color: var(--ink); }

[data-theme="dark"] .ribbon {
  border-top: 1px solid #7FD3E8;
  border-bottom: 1px solid #7FD3E8;
}

.split-copy { color: var(--ink-2); }
.pillar-photo { padding: 0; overflow: hidden; }
.pillar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}
.pillar-photo img[src*="pillar-doors"] { object-position: center 72%; }
.pillar-photo img[src*="pillar-tuneup"] { object-position: 68% center; }

/* Door Tester band */
.tester-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
@media (max-width: 860px) {
  .tester-band { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
}
.tester-section { padding-bottom: 0; }
.tester-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tester-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.tester-steps li div { display: flex; flex-direction: column; gap: 3px; }
.tester-steps strong { font-size: 15px; color: var(--ink); }
.tester-steps span:not(.tester-num) { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.tester-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* Confirmation card */
.confirm {
  text-align: center;
  padding: 40px 24px;
}
.confirm .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--ink);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.confirm h3 { font-size: 28px; margin-bottom: 10px; }
.confirm p { color: var(--ink-2); max-width: 40ch; margin: 0 auto; }
.confirm-meta {
  margin-top: 28px;
  background: var(--paper-2);
  border-radius: 12px;
  padding: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 280px;
}
.confirm-meta .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}
.confirm-meta .row .k { color: var(--ink-3); }
.confirm-meta .row .v { font-weight: 600; }

/* Card style variant: "clear" — no white fill, gradient fades to transparent, outline drawn by a masked pseudo-element */
html[data-cards="clear"] .doorcard {
  position: relative;
  border-width: 0;
  padding: 2.5px;
  background: linear-gradient(180deg, rgba(11,42,59,0.9) 0%, rgba(11,42,59,0) 55%);
}
html[data-cards="clear"] .doorcard .pic { border-radius: calc(var(--radius-lg) - 2.5px) calc(var(--radius-lg) - 2.5px) 0 0; }
html[data-cards="clear"] .doorcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 2.5px;
  background: linear-gradient(180deg, #04141D 0%, #0B2A3B 18%, rgba(11,42,59,0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
html[data-cards="clear"] .doorcard .pic.pic-product { background: linear-gradient(180deg, #0B2A3B 0%, rgba(11,42,59,0) 100%); }
html[data-cards="clear"] .doorcard .tag { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
html[data-cards="clear"] .doorcard .tag.featured { background: var(--moss); box-shadow: none; }
html[data-cards="clear"][data-theme="dark"] .doorcard {
  --ink: #FFFFFF;
  --ink-2: rgba(255,255,255,0.88);
  --ink-3: rgba(255,255,255,0.7);
  --line: rgba(255,255,255,0.22);
  --line-2: rgba(255,255,255,0.4);
  --paper-2: transparent;
  color: #FFFFFF;
}
html[data-cards="clear"][data-theme="dark"] .doorcard::before {
  background: linear-gradient(180deg, #7FD3E8 0%, rgba(127,211,232,0.55) 45%, rgba(255,255,255,0.12) 100%);
}
html[data-cards="clear"][data-theme="dark"] .doorcard { background: linear-gradient(180deg, rgba(4,20,29,0.7) 0%, rgba(4,20,29,0) 55%); }
html[data-cards="clear"][data-theme="dark"] .doorcard .tag.featured { color: #0B2A3B; }

/* Configurator: split panel above the wizard */
.cfg-layout { display: flex; flex-direction: column; gap: 28px; padding-bottom: 90px; }
.cfg-layout > .flow:not(.cfg-aside) { width: 100%; max-width: 950px; margin: 0 auto; }
.cfg-aside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 24px; align-items: start; }
.cfg-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfg-empty { min-height: 260px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 16px; font-family: var(--font-display); font-size: 22px; color: var(--ink-3); }
.cfg-preview { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.cfg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.cfg-render { position: absolute; inset: 0; background: #FFFFFF center / cover; }
.cfg-render img { width: 100%; height: 100%; object-fit: fill; display: block; mix-blend-mode: multiply; }
.cfg-caption { display: flex; flex-direction: column; gap: 2px; }
.cfg-caption strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--ink); }
.cfg-caption span { font-size: 13px; color: var(--ink-3); }
.cfg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.cfg-price-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-temp { font-size: 10px; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; background: #F3E3B8; color: #5A4210; }
.cfg-price-num { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cfg-price-range { font-size: 13px; color: var(--ink-3); }
.cfg-lines { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cfg-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cfg-fine { font-size: 12px; color: var(--ink-3); margin: 0; }
.cfg-share { align-self: flex-start; }
.cfg-doorgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; padding: 3px; }
.cfg-tile { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: transparent; cursor: pointer; font: inherit; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.cfg-tile:hover { border-color: var(--teal); }
.cfg-tile.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,111,139,0.25); }
.cfg-tile-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); display: block; }
.cfg-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfg-tile-name { font-family: var(--font-display); font-size: 16px; color: var(--ink); padding: 0 2px 2px; }
@media (max-width: 640px) {
  .cfg-aside { grid-template-columns: minmax(0, 1fr); }
  .cfg-doorgrid { max-height: 380px; }
  .cfg-lines, .cfg-fine { display: none; }
  .cfg-preview { height: 220px; width: auto; max-width: 100%; margin: 0 auto; }
  .cfg-empty { min-height: 120px; }
}
@media (max-width: 520px) { .cfg-doorgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-theme="dark"] .cfg-aside { --ink: #FFFFFF; --ink-2: rgba(255,255,255,0.86); --ink-3: rgba(255,255,255,0.68); --line: rgba(255,255,255,0.18); }
[data-theme="dark"] .cfg-preview, [data-theme="dark"] .cfg-tile-img { background: #0F3550; }
[data-theme="dark"] .cfg-tile:hover, [data-theme="dark"] .cfg-tile.selected { border-color: #7FD3E8; }
[data-theme="dark"] .cfg-tile.selected { box-shadow: 0 0 0 3px rgba(127,211,232,0.4); }
.cfg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,42,59,0.12); }
.cfg-bar-inner { max-width: 1320px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.cfg-bar-nums { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cfg-bar .cfg-price-num { font-size: 32px; margin: 0; }
[data-theme="dark"] .cfg-bar { background: #0B2A3B; border-top-color: rgba(255,255,255,0.18); box-shadow: 0 -8px 24px rgba(0,0,0,0.35); --ink: #FFFFFF; --ink-3: rgba(255,255,255,0.7); }



.color-chip-static, .color-chip-static:hover { cursor: default; border-color: var(--line); }
[data-theme="dark"] .dd-overlay .color-chip-static:hover { border-color: rgba(255,255,255,0.2); }
.cfg-aside-solo { grid-template-columns: minmax(0, 1fr); max-width: 950px; width: 100%; margin: 0 auto; }
.cfg-aside-solo .cfg-info { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 10px 24px; align-items: start; }
.cfg-aside-solo .cfg-info > .cfg-preview { grid-row: 1 / span 7; }
.cfg-aside-solo .cfg-empty { grid-column: 1 / -1; }
@media (max-width: 640px) { .cfg-aside-solo .cfg-info { grid-template-columns: minmax(0, 1fr); } .cfg-aside-solo .cfg-info > .cfg-preview { grid-row: auto; } }

.cfg-bar-inner { justify-content: space-between; }
.cfg-bar-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfg-bar .btn { font-size: 16px; padding: 14px 26px; }

.flow-lg .style-pick .style-variants-label,
.flow-lg .style-pick .variant-grid,
.flow-lg .style-pick .color-grid,
.flow-lg .style-pick .color-notes { padding-left: 0; padding-right: 0; }
.style-pick .style-variants-label { margin-top: 8px; }

/* Overlay colour swatches: large rectangles so the texture is visible */
.dd-overlay .dd-color-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.dd-overlay .dd-color-grid .color-chip { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 10px; border-radius: 14px; }
.dd-overlay .dd-color-grid .color-chip-wide { grid-column: auto; }
.dd-overlay .dd-color-grid .color-dot { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 9px; }
.dd-overlay .dd-color-grid .color-name { white-space: normal; text-wrap: pretty; font-size: 13px; line-height: 1.3; padding: 0 4px; }

/* Wizard colour swatches: same large rectangles as the overlay */
.style-pick .color-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.style-pick .color-chip { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 10px; border-radius: 14px; }
.style-pick .color-chip.selected { padding: 5px 5px 9px; }
.style-pick .color-chip-wide { grid-column: auto; }
.style-pick .color-dot { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 9px; }
.style-pick .color-name { white-space: normal; text-wrap: pretty; font-size: 13px; line-height: 1.3; padding: 0 4px; }

/* Model grid ↔ design/colour panel swap */
.cfg-opts { max-height: 560px; overflow-y: auto; scrollbar-width: thin; padding: 3px; min-width: 0; }
.cfg-opts-head { position: sticky; top: -3px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 12px; background: var(--white); }
.cfg-opts-head strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.cfg-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s ease; }
.cfg-back:hover { border-color: var(--teal); }
.cfg-opts-hint { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.cfg-opts .style-variants-label, .cfg-opts .variant-grid, .cfg-opts .color-grid, .cfg-opts .color-notes { padding-left: 0; padding-right: 0; }
[data-theme="dark"] .cfg-opts-head { background: #0B2A3B; }
[data-theme="dark"] .cfg-back { border-color: rgba(255,255,255,0.3); color: #FFFFFF; }
[data-theme="dark"] .cfg-back:hover { border-color: #7FD3E8; }

.cfg-head { grid-column: 1 / -1; }
.cfg-head .flow-head { padding: 0 0 18px; margin: 0; border-bottom: 1px solid var(--line); background: transparent; }
.cfg-aside-solo .cfg-head { grid-column: 1; }
.cfg-bar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cfg-bar .cfg-bar-back { font-size: 15px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
[data-theme="dark"] .cfg-bar .cfg-bar-back { color: #FFFFFF; border-color: rgba(255,255,255,0.4); }

/* Let the model grid and design/colour panel grow with the box — no inner scroll */
.cfg-opts, .cfg-doorgrid { max-height: none; overflow: visible; }
.cfg-opts-head { position: static; }
@media (max-width: 640px) { .cfg-doorgrid { max-height: none; } }

/* Configurator motion */
@keyframes cfgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cfgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfgTile { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.cfg-info { animation: cfgIn .35s cubic-bezier(.2,.7,.2,1) both; }
.cfg-opts { animation: cfgIn .35s cubic-bezier(.2,.7,.2,1) both; }
.cfg-opts .variant, .cfg-opts .color-chip { animation: cfgTile .35s cubic-bezier(.2,.7,.2,1) both; }
.cfg-opts .variant:nth-child(2), .cfg-opts .color-chip:nth-child(2) { animation-delay: .03s; }
.cfg-opts .variant:nth-child(3), .cfg-opts .color-chip:nth-child(3) { animation-delay: .06s; }
.cfg-opts .variant:nth-child(4), .cfg-opts .color-chip:nth-child(4) { animation-delay: .09s; }
.cfg-opts .variant:nth-child(5), .cfg-opts .color-chip:nth-child(5) { animation-delay: .12s; }
.cfg-opts .variant:nth-child(n+6), .cfg-opts .color-chip:nth-child(n+6) { animation-delay: .15s; }
.cfg-doorgrid .cfg-tile { animation: cfgTile .35s cubic-bezier(.2,.7,.2,1) both; }
.cfg-doorgrid .cfg-tile:nth-child(2) { animation-delay: .03s; }
.cfg-doorgrid .cfg-tile:nth-child(3) { animation-delay: .06s; }
.cfg-doorgrid .cfg-tile:nth-child(4) { animation-delay: .09s; }
.cfg-doorgrid .cfg-tile:nth-child(5) { animation-delay: .12s; }
.cfg-doorgrid .cfg-tile:nth-child(6) { animation-delay: .15s; }
.cfg-doorgrid .cfg-tile:nth-child(n+7) { animation-delay: .18s; }
.cfg-fade { animation: cfgFade .4s ease both; }
.cfg-step-in { animation: cfgIn .3s cubic-bezier(.2,.7,.2,1) both; }
.cfg-tile, .variant, .color-chip { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cfg-tile:active, .variant:active, .color-chip:active { transform: scale(0.98); }
.cfg-bar .cfg-price-num { transition: color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .cfg-info, .cfg-opts, .cfg-opts .variant, .cfg-opts .color-chip, .cfg-doorgrid .cfg-tile, .cfg-fade, .cfg-step-in { animation: none; }
}

[data-theme="dark"] .cfg-preview { background: #0B2A3B; }

/* House-photo preview: door drawn beneath a cutout photo */
.cfg-scene { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #E9E7E1; }
.cfg-scene-house { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cfg-scene-door { position: absolute; background: #F2F2EE center / cover; box-shadow: inset 0 10px 14px -8px rgba(0,0,0,0.45); }
.cfg-scene-door img { width: 100%; height: 100%; object-fit: fill; display: block; mix-blend-mode: multiply; }
.cfg-aside-solo .cfg-info > .cfg-scene { grid-row: 1 / span 7; }
.cfg-scene-grain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.17; mix-blend-mode: overlay; pointer-events: none; display: block; }
.cfg-scene-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cfg-scene-layer.on { opacity: 1; }

/* Home pillar bars variant: "clear" — no navy fill, photo fades to transparent, door-card gradient outline */
html[data-pillars="clear"] .pillar-bar { background: transparent; border-color: transparent; box-shadow: none; }
html[data-pillars="clear"] .pillar-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 2.5px;
  background: linear-gradient(180deg, #04141D 0%, #0B2A3B 18%, rgba(11,42,59,0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
html[data-pillars="clear"] .pillar-bar h3 { color: var(--ink); }
html[data-pillars="clear"] .pillar-bar p { color: var(--ink-2); }
html[data-pillars="clear"] .pillar-bar .arrow { color: var(--teal); }
html[data-pillars="clear"] .pillar-bar:hover .arrow { color: var(--moss-deep); }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar { border-color: transparent; }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar::before { background: linear-gradient(180deg, #7FD3E8 0%, rgba(127,211,232,0.55) 45%, rgba(255,255,255,0.12) 100%); }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar h3 { color: #FFFFFF; }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar p { color: rgba(255,255,255,0.85); }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar .arrow { color: #7FD3E8; }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar:hover .arrow { color: #FFFFFF; }

/* Per-bar horizontal outline gradients */
html[data-pillars="clear"] .pillar-bar::before { background: linear-gradient(110deg, #0B2A3B 0%, rgba(11,42,59,0.15) 33%, #0B2A3B 66%, rgba(11,42,59,0.15) 100%); }
html[data-pillars="clear"][data-theme="dark"] .pillar-bar::before { background: linear-gradient(110deg, #7FD3E8 0%, rgba(255,255,255,0.1) 33%, #7FD3E8 66%, rgba(255,255,255,0.1) 100%); }
.cfg-scene-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cfg-scene-warp { left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; }

/* Opener step: smaller tiles on the right, large display on the left */
.cfg-opgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cfg-opgrid .cfg-tile { padding: 6px; border-radius: 14px; gap: 6px; }
.cfg-opgrid .cfg-tile-img { background: transparent; }
[data-theme="dark"] .cfg-opgrid .cfg-tile-img { background: transparent; }
.cfg-opgrid .cfg-tile-img img { object-fit: contain; padding: 8px; box-sizing: border-box; }
.cfg-opgrid .cfg-tile-name { font-size: 13px; line-height: 1.25; }
.cfg-tile-img-none { display: grid !important; place-items: center; color: var(--teal); background: var(--paper-2) !important; }
.cfg-op-preview { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: transparent; display: grid; place-items: center; }
.cfg-op-preview img { width: 100%; height: 100%; object-fit: contain; padding: 18px; box-sizing: border-box; display: block; }
.cfg-empty-op { flex-direction: column; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; }
.cfg-empty-op small { font-family: var(--font-body, inherit); font-size: 13px; color: var(--ink-3); }
[data-theme="dark"] .cfg-tile-img-none { background: #0F3550 !important; color: #7FD3E8; }
@media (max-width: 960px) { .cfg-opgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cfg-opgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfg-op-preview.cfg-op-tall { aspect-ratio: 5 / 6; max-height: 460px; }
.cfg-op-preview.cfg-op-tall img { padding: 10px; }

/* opener preview: size the image from the box, not its own aspect */
.cfg-op-preview { position: relative; display: block; }
.cfg-op-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* House-photo step */
.cfg-house { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfg-house-drop { min-height: 340px; border: 2px dashed var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; text-align: center; cursor: pointer; color: var(--ink-2); transition: border-color .15s ease; }
.cfg-house-drop:hover { border-color: var(--teal); }
.cfg-house-drop strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.cfg-house-drop span { font-size: 14px; max-width: 46ch; text-wrap: pretty; }
.cfg-house-skip { color: var(--ink-3); font-size: 13px !important; }
.cfg-house-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.cfg-house-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; user-select: none; touch-action: none; background: #0B2A3B; }
.cfg-house-photo { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; }
.cfg-house-door { position: absolute; z-index: 1; box-shadow: none; }
.cfg-house-handle { position: absolute; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 999px; background: #FFFFFF; border: 3px solid #1F6F8B; box-shadow: 0 2px 8px rgba(0,0,0,0.35); cursor: grab; }
.cfg-house-handle:active { cursor: grabbing; }
.cfg-house-actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-theme="dark"] .cfg-house-drop:hover { border-color: #7FD3E8; }
[data-theme="dark"] .cfg-house-handle { border-color: #7FD3E8; }
.cfg-house-view { width: 100%; }
.cfg-house-view .cfg-house-photo { width: 100%; max-height: none; }
.cfg-aside-solo .cfg-info > .cfg-house-view { grid-row: 1 / span 7; }

/* Opener rating bars */
.op-ratings { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.op-rating { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; }
.op-rating-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.op-rating-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.op-chunk { height: 10px; border-radius: 3px; background: #0B2A3B; }
.op-chunk.on { background: #7FD3E8; }
[data-theme="dark"] .op-chunk { background: #04141D; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
[data-theme="dark"] .op-chunk.on { background: #7FD3E8; box-shadow: none; }
.dd-ratings { margin-top: 20px; max-width: 420px; }
.dd-ratings .op-ratings { border-top: none; padding-top: 0; }
.cfg-body { grid-column: 1 / -1; padding-bottom: 22px; border-bottom: 1px solid var(--line); min-width: 0; }
