/* Atelier Split-Stage — Quality Construction Solutions Inc. (North County San Diego) */
@view-transition {
  navigation: auto;
}

:root {
  /* Sunlit Coastal Travertine & Alabaster Ground */
  --bg-travertine: oklch(0.968 0.011 82);
  --bg-limestone: oklch(0.938 0.015 78);
  --bg-alabaster: oklch(0.988 0.005 85);

  /* Deep Pacific Eucalyptus-Slate Ink & Dark Architectural Stage */
  --ink-slate: oklch(0.23 0.028 205);
  --ink-eucalyptus: oklch(0.35 0.030 198);
  --ink-muted: oklch(0.48 0.020 198);
  --surface-deep: oklch(0.21 0.028 205);
  --surface-deep-2: oklch(0.26 0.030 202);
  --surface-deep-3: oklch(0.31 0.028 200);
  --surface-deep-text: oklch(0.955 0.010 82);
  --surface-deep-muted: oklch(0.77 0.016 196);

  /* Unlacquered Brushed Brass Accent */
  --brass: oklch(0.67 0.115 78);
  --brass-soft: oklch(0.84 0.065 80);
  --brass-deep: oklch(0.47 0.102 74);
  --brass-glow: oklch(0.75 0.110 78 / 0.22);

  /* Architectural Hairlines & Elevation */
  --rule: oklch(0.84 0.016 80);
  --rule-dark: oklch(0.34 0.026 202);
  --shadow-soft: 0 18px 48px oklch(0.21 0.028 205 / 0.08);
  --shadow-deep: 0 24px 64px oklch(0.14 0.025 205 / 0.26);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Geometry & Rhythm */
  --container-max: 1360px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --header-h: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background-color: var(--bg-travertine);
  color: var(--ink-slate);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-slate);
  background-color: var(--bg-travertine);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  min-width: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.65rem, 5.2vw, 4.85rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2.05rem, 3.6vw, 3.45rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  line-height: 1.18;
}

p {
  margin: 0;
  max-width: 64ch;
}

.lead-copy {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-eucalyptus);
  font-weight: 300;
}

.meta-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 400;
}

/* ============================================================
   PERSISTENT ARCHITECTURAL HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: oklch(0.968 0.011 82 / 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--surface-deep);
  color: var(--brass-soft);
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink-slate);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-eucalyptus);
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink-slate);
  border-bottom-color: var(--brass-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-slate);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background-color: var(--bg-alabaster);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.header-phone:hover {
  border-color: var(--brass-deep);
  background-color: var(--bg-limestone);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background-color: var(--bg-alabaster);
  color: var(--ink-slate);
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 85;
  background-color: var(--bg-travertine);
  padding: 28px 20px 110px;
  overflow-y: auto;
  border-top: 1px solid var(--rule);
}

.mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 14px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-slate);
}

.mobile-drawer a[aria-current="page"] {
  color: var(--brass-deep);
}

.mobile-drawer-meta {
  margin-top: 20px;
  padding: 16px;
  background-color: var(--bg-limestone);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--ink-eucalyptus);
  display: grid;
  gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--surface-deep);
  color: var(--surface-deep-text);
  border-color: var(--surface-deep);
}

.btn-primary:hover {
  background-color: var(--surface-deep-2);
  border-color: var(--brass);
}

.btn-brass {
  background-color: var(--brass);
  color: var(--ink-slate);
  border-color: var(--brass);
}

.btn-brass:hover {
  background-color: var(--brass-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink-slate);
  border-color: var(--ink-slate);
}

.btn-outline:hover {
  background-color: var(--bg-limestone);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--surface-deep-text);
  border-color: oklch(0.75 0.02 82 / 0.45);
}

.btn-outline-light:hover {
  border-color: var(--brass);
  background-color: oklch(0.30 0.028 205 / 0.6);
}

.btn-compact {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* ============================================================
   ARCHETYPE #1: ATELIER SPLIT-STAGE (HOME HERO + EDITORIAL)
   ============================================================ */
.atelier-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  grid-template-areas:
    "hero stage"
    "story stage";
  align-items: start;
  border-bottom: 1px solid var(--rule);
  max-width: 1680px;
  margin-inline: auto;
}

.atelier-hero-col {
  grid-area: hero;
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4vw, 58px) clamp(24px, 3vw, 40px);
}

.atelier-story-col {
  grid-area: story;
  padding: 0 clamp(20px, 4vw, 58px) clamp(44px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 60px);
}

.hero-value-trio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 6px;
}

.provenance-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.9rem;
  color: var(--brass-deep);
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.proof-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proof-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ink-slate);
}

.proof-desc {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Sticky 50vw Architectural Specimen Stage */
.atelier-stage-col {
  grid-area: stage;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  min-height: 540px;
  max-height: 920px;
  padding: 20px clamp(18px, 2.5vw, 34px) 20px 0;
  display: flex;
  flex-direction: column;
}

.specimen-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-deep);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
}

.specimen-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.specimen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 0.65s ease;
}

.specimen-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.specimen-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.18 0.025 205 / 0.82) 0%,
    oklch(0.18 0.025 205 / 0.16) 42%,
    transparent 75%
  );
  pointer-events: none;
}

.specimen-hud {
  position: absolute;
  inset-inline: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--surface-deep-text);
}

.specimen-caption-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.specimen-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}

.specimen-detail {
  font-size: 0.88rem;
  color: var(--surface-deep-muted);
  margin-top: 2px;
}

.specimen-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specimen-tab {
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid oklch(0.88 0.02 82 / 0.35);
  background-color: oklch(0.18 0.025 205 / 0.62);
  color: var(--surface-deep-text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.specimen-tab:hover {
  border-color: var(--brass-soft);
}

.specimen-tab.is-active {
  background-color: var(--brass);
  border-color: var(--brass);
  color: var(--ink-slate);
}

/* Asymmetric Service Ledger inside Left Story Column */
.scope-ledger {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.ledger-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: start;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ledger-item:hover {
  background-color: oklch(0.945 0.014 80 / 0.65);
}

.ledger-idx {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brass-deep);
  line-height: 1.25;
}

.ledger-body h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.ledger-body p {
  font-size: 0.94rem;
  color: var(--ink-eucalyptus);
}

.ledger-link {
  align-self: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brass-deep);
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background-color: var(--bg-alabaster);
  white-space: nowrap;
}

.ledger-link:hover {
  border-color: var(--brass-deep);
}

.owner-note-box {
  padding: 24px;
  background-color: var(--bg-limestone);
  border-left: 3px solid var(--brass-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: grid;
  gap: 10px;
}

.owner-note-box blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.3;
  color: var(--ink-slate);
}

.owner-note-meta {
  font-size: 0.88rem;
  color: var(--ink-eucalyptus);
}

/* ============================================================
   SIGNATURE SHOWPIECE: 5-STAGE STUDS-TO-SANCTUARY GSAP PEEL
   ============================================================ */
.peel-track {
  background-color: var(--surface-deep);
}

.peel-section {
  background-color: var(--surface-deep);
  color: var(--surface-deep-text);
  position: relative;
}

.peel-stage-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(32px, 4.5vh, 56px);
}

.peel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 24px;
}

.peel-header h2 {
  color: var(--surface-deep-text);
  max-width: 18ch;
}

.peel-header p {
  color: var(--surface-deep-muted);
  max-width: 46ch;
  font-size: 0.96rem;
}

.peel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.peel-canvas-card {
  position: relative;
  border-radius: var(--radius-md);
  background-color: oklch(0.17 0.025 205);
  border: 1px solid var(--rule-dark);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 16 / 10;
}

.peel-svg {
  width: 100%;
  height: 100%;
}

/* Hotspot Pins over the Architectural Elevation */
.peel-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot-btn {
  position: absolute;
  pointer-events: auto;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brass-soft);
  background-color: oklch(0.21 0.028 205 / 0.88);
  color: var(--brass-soft);
  font-size: 0.78rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hotspot-btn:hover,
.hotspot-btn.is-active {
  transform: scale(1.14);
  background-color: var(--brass);
  color: var(--ink-slate);
}

.peel-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: oklch(0.32 0.025 205);
}

.peel-progress-fill {
  height: 100%;
  width: 20%;
  background-color: var(--brass);
  transform-origin: left center;
}

/* Right Spec & Scrubber Deck */
.peel-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-readout {
  padding: 22px;
  border-radius: var(--radius-md);
  background-color: var(--surface-deep-2);
  border: 1px solid var(--rule-dark);
  display: grid;
  gap: 10px;
}

.stage-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--brass-soft);
}

.stage-readout h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  color: var(--surface-deep-text);
}

.stage-readout p {
  font-size: 0.94rem;
  color: var(--surface-deep-muted);
}

.stage-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-dark);
}

.stage-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-spec-label {
  font-size: 0.78rem;
  color: var(--surface-deep-muted);
}

.stage-spec-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--surface-deep-text);
}

.peel-stage-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.stage-pill {
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-dark);
  background-color: var(--surface-deep-2);
  color: var(--surface-deep-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stage-pill:hover {
  border-color: var(--brass);
  color: var(--surface-deep-text);
}

.stage-pill.is-active {
  background-color: var(--brass);
  border-color: var(--brass);
  color: var(--ink-slate);
}

.scrubber-wrap {
  display: grid;
  gap: 6px;
}

.scrubber-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--surface-deep-muted);
}

.peel-range {
  width: 100%;
  accent-color: var(--brass);
  cursor: pointer;
}

/* ============================================================
   BEFORE / AFTER REMODEL INSPECTION LOUPE
   ============================================================ */
.section-band {
  padding-block: clamp(56px, 7vw, 104px);
}

.section-band-alt {
  background-color: var(--bg-limestone);
  border-block: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px 44px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.loupe-shell {
  display: grid;
  gap: 18px;
}

.loupe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loupe-toggle-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.loupe-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background-color: var(--bg-alabaster);
  color: var(--ink-eucalyptus);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.loupe-chip.is-active,
.loupe-chip:hover {
  border-color: var(--ink-slate);
  background-color: var(--surface-deep);
  color: var(--surface-deep-text);
}

.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 640px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  background-color: var(--surface-deep);
  box-shadow: var(--shadow-soft);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--bg-alabaster);
  box-shadow: 0 0 0 1px oklch(0.2 0.02 205 / 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-alabaster);
  color: var(--ink-slate);
  border: 2px solid var(--brass-deep);
  box-shadow: 0 8px 24px oklch(0.15 0.02 205 / 0.32);
  display: grid;
  place-items: center;
  cursor: ew-resize;
  z-index: 6;
}

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  background-color: oklch(0.20 0.028 205 / 0.8);
  color: var(--surface-deep-text);
  backdrop-filter: blur(6px);
  z-index: 5;
  pointer-events: none;
}

.compare-tag-before { left: 16px; }
.compare-tag-after { right: 16px; }

/* Architectural 2x Magnifying Loupe */
.magnifier-lens {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2.5px solid var(--brass);
  box-shadow: 0 12px 32px oklch(0.14 0.025 205 / 0.45);
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  transition: opacity 0.16s ease;
}

.magnifier-lens.is-visible {
  opacity: 1;
}

.loupe-specs-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px;
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.loupe-spec-col strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-slate);
}

.loupe-spec-col span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ============================================================
   30-SECOND SCOPE & BUDGET PLANNER
   ============================================================ */
.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.planner-controls {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.planner-step {
  display: grid;
  gap: 10px;
}

.planner-step-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-slate);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background-color: var(--bg-travertine);
  color: var(--ink-eucalyptus);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.choice-pill:hover {
  border-color: var(--brass-deep);
  color: var(--ink-slate);
}

.choice-pill.is-selected {
  background-color: var(--surface-deep);
  border-color: var(--surface-deep);
  color: var(--surface-deep-text);
  font-weight: 500;
}

.planner-select {
  width: 100%;
  max-width: 340px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background-color: var(--bg-travertine);
  color: var(--ink-slate);
  font-size: 0.95rem;
}

.planner-summary {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-md);
  background-color: var(--surface-deep);
  color: var(--surface-deep-text);
  border: 1px solid var(--rule-dark);
  display: grid;
  gap: 18px;
}

.summary-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  color: var(--brass-soft);
}

.summary-rows {
  display: grid;
  gap: 10px;
  padding-block: 14px;
  border-block: 1px solid var(--rule-dark);
  font-size: 0.92rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.summary-row span:first-child {
  color: var(--surface-deep-muted);
}

.summary-row strong {
  font-weight: 500;
  text-align: right;
}

/* ============================================================
   REVIEWS & NORTH COUNTY COVERAGE
   ============================================================ */
.reviews-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.review-feed {
  display: grid;
  gap: 18px;
}

.review-entry {
  padding: 24px 26px;
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
}

.review-quote {
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.34;
  color: var(--ink-slate);
}

.review-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.city-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.city-chip {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background-color: var(--bg-alabaster);
  font-size: 0.86rem;
  color: var(--ink-eucalyptus);
}

/* ============================================================
   SUBPAGE ARCHITECTURAL SPLIT HEADERS & INTERACTIVE MODULES
   ============================================================ */
.subpage-hero {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(36px, 5vw, 68px);
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.subpage-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  background-color: var(--bg-limestone);
}

.subpage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-col-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 0.94rem;
}

.spec-table th {
  background-color: var(--bg-limestone);
  font-weight: 500;
  color: var(--ink-slate);
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

/* Interactive Material Specifier (Kitchens Page) */
.material-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 3vw, 36px);
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.swatch-board {
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--rule);
  transition: background-color 0.3s ease;
}

.swatch-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.swatch-tile {
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius-sm);
  border: 1px solid oklch(0.2 0.02 205 / 0.18);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Scope Filter Tabs (Bathrooms, Additions & Decks Page) */
.scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.scope-panel {
  display: none;
}

.scope-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

/* Portfolio Showcase Grid */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-entry {
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
}

.project-entry-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-entry-body {
  padding: 22px;
  display: grid;
  gap: 8px;
}

/* Preview Mode Consultation Form */
.preview-form-card {
  padding: clamp(22px, 3vw, 34px);
  background-color: var(--bg-alabaster);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid;
  gap: 18px;
}

.preview-notice-bar {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-limestone);
  border-left: 3px solid var(--brass-deep);
  font-size: 0.88rem;
  color: var(--ink-eucalyptus);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-slate);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background-color: var(--bg-travertine);
  font-size: 0.95rem;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-deep);
  color: var(--surface-deep-text);
  font-size: 0.92rem;
}

.form-feedback.is-visible {
  display: block;
}

/* Coverage Checker */
.zip-checker-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.zip-input {
  flex: 1;
  min-width: 210px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background-color: var(--bg-alabaster);
}

.zip-result {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-eucalyptus);
  min-height: 1.4em;
}

/* ============================================================
   FOOTER & ANTI-THEFT PREVIEW LOCK
   ============================================================ */
.site-footer {
  background-color: var(--surface-deep);
  color: var(--surface-deep-text);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 42px;
  border-top: 1px solid var(--rule-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.85fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-dark);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--brass-soft);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--surface-deep-muted);
}

.footer-links a:hover {
  color: var(--surface-deep-text);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.84rem;
  color: var(--surface-deep-muted);
}

/* Mobile Thumb-Zone Sticky Bar (390px conversion machine) */
.mobile-action-bar {
  display: none;
}

/* Mandatory Anti-Theft Fixed Preview Pill Badge */
.zenith-preview-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  pointer-events: none;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background-color: oklch(0.18 0.028 205 / 0.92);
  color: var(--brass-soft);
  border: 1px solid var(--brass);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px oklch(0.12 0.02 205 / 0.35);
  max-width: calc(100vw - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (TABLET & 390px MOBILE)
   ============================================================ */
@media (max-width: 1080px) {
  .primary-nav,
  .header-actions .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .atelier-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "stage"
      "story";
  }

  .atelier-stage-col {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0 clamp(18px, 4vw, 48px) 32px;
  }

  .specimen-frame {
    aspect-ratio: 4 / 3;
    min-height: 290px;
  }

  .peel-grid,
  .section-head,
  .planner-grid,
  .reviews-split,
  .subpage-hero-grid,
  .two-col-editorial,
  .material-studio,
  .scope-panel.is-active,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-summary {
    position: static;
  }

  .loupe-specs-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 66px;
  }

  body {
    padding-bottom: 112px;
  }

  .brand-name {
    font-size: 1.06rem;
  }

  .brand-sub {
    font-size: 0.72rem;
    max-width: 210px;
  }

  .header-actions .btn-compact {
    display: none;
  }

  /* Keep 3-Second Value Trio FIRST on 390px mobile, Carlsbad kitchen specimen immediately beneath */
  .atelier-hero-col {
    padding: 18px 18px 20px;
  }

  .atelier-stage-col {
    padding: 0 18px 28px;
  }

  .atelier-story-col {
    padding: 0 18px 34px;
    gap: 28px;
  }

  .hero-value-trio {
    gap: 14px;
  }

  h1 {
    font-size: 2.38rem;
  }

  .hero-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .hero-cta-row .btn {
    padding: 12px 10px;
    font-size: 0.88rem;
  }

  .hero-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 14px;
  }

  .proof-val {
    font-size: 1.25rem;
  }

  .proof-desc {
    font-size: 0.76rem;
  }

  .ledger-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .ledger-link {
    grid-column: 2;
    justify-self: start;
  }

  .peel-stage-pills {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .stage-pill {
    font-size: 0.72rem;
    padding: 8px 4px;
  }

  .project-list,
  .form-grid,
  .loupe-specs-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sticky thumb-zone Call + Quote bar on 390px mobile */
  .mobile-action-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background-color: oklch(0.988 0.005 85 / 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -10px 28px oklch(0.2 0.02 205 / 0.1);
  }

  .mobile-action-bar .btn {
    padding: 12px 10px;
    font-size: 0.88rem;
  }

  /* Position anti-theft badge cleanly ABOVE sticky mobile bar */
  .zenith-preview-badge {
    bottom: 72px;
    right: 10px;
    font-size: 0.61rem;
    padding: 5px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
