/* ==========================================================================
   SPUR HOMES — Page sections
   ========================================================================== */

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  /* Tuned so the card — headline through CTAs — clears the fold on a 900px
     laptop viewport. Loosen these and the buttons drop below it. */
  padding-top: calc(var(--nav-h) + var(--space-6));
  padding-bottom: var(--space-7);
  overflow: hidden;
  isolation: isolate;
}

/* Layer 1 — photography / video, moves slowest */
.hero__bg {
  position: absolute;
  inset: -8% -4%;
  z-index: -3;
  will-change: transform;
}
/* Shared focal point for the still and the video, so they crop identically.
   Tuned for the mirrored footage: pulls the window/balcony side back into
   frame instead of cropping down onto the sofa. */
.hero__bg {
  --hero-focus: 40% 50%;
}
.hero__bg picture,
.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  object-fit: cover;
  object-position: var(--hero-focus);
}

/* Video sits directly over the still it was cut from, so fading it in shows
   no content jump. Stays at opacity 0 until JS confirms it can actually play. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus);
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms var(--ease-out);
}
.hero__video.is-playing { opacity: 1; }

/* Never show a paused first frame or native controls if playback is refused. */
.hero__video::-webkit-media-controls { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* Layer 2 — warm scrim so the glass card always has contrast */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(250, 248, 243, 0.96) 0%, rgba(250, 248, 243, 0.80) 34%,
      rgba(250, 248, 243, 0.24) 58%, rgba(250, 248, 243, 0.06) 100%),
    linear-gradient(180deg, rgba(250, 248, 243, 0.7) 0%, transparent 26%, rgba(243, 244, 238, 0.55) 100%);
}
@media (max-width: 991px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(250, 248, 243, 0.94) 0%, rgba(250, 248, 243, 0.82) 46%,
        rgba(250, 248, 243, 0.5) 72%, rgba(243, 244, 238, 0.72) 100%);
  }
}

/* Layer 3 — the brand arch, drifts independently */
.hero__arch {
  position: absolute;
  right: -6%;
  top: -10%;
  z-index: -1;
  width: min(58vw, 720px);
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.16), rgba(255, 253, 249, 0));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  will-change: transform;
  pointer-events: none;
}
@media (max-width: 991px) { .hero__arch { display: none; } }

/* Fine paper grain — kills gradient banding, adds print warmth */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  max-width: 760px;
}

.hero__card {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius-2xl);
}

.hero__title {
  margin: 0 0 var(--space-4);
  /* Hero-specific scale rather than --text-5xl: it has to fit the card and
     the fold at the same time. */
  font-size: clamp(2.75rem, 5.2vw + 0.5rem, 5rem);
  font-weight: 500;
  line-height: 0.98;
}
.hero__title .accent-script { display: block; }

.hero__sub {
  max-width: 46ch;
  margin: 0 0 var(--space-5);
  font-size: var(--text-lg);
  color: var(--ink-700);
}
.hero__sub strong { color: var(--olive-700); white-space: nowrap; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.hero__trust-item svg { width: 18px; height: 18px; color: var(--olive-600); flex: none; }

/* Floating glass chips that respond to pointer movement */
.hero__chip {
  position: absolute;
  z-index: 1;
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  will-change: transform;
}
@media (min-width: 1200px) { .hero__chip { display: block; } }
.hero__chip--a { right: 7%; top: 24%; }
.hero__chip--b { right: 18%; bottom: 20%; }
.hero__chip .stat__value { font-size: var(--text-2xl); }
.hero__chip .stat__label { font-size: var(--text-xs); }

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-600);
}
.hero__cue-rail {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--olive-400), transparent);
  overflow: hidden;
}
.hero__cue-rail::after {
  content: "";
  display: block;
  width: 100%;
  height: 14px;
  background: var(--olive-700);
  animation: cue-fall 1.9s var(--ease-in-out) infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(-16px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}
@media (max-width: 767px) { .hero__cue { display: none; } }

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.page-hero .lede { font-size: var(--text-lg); }
.page-hero__wash {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: 0;
  background:
    radial-gradient(760px 420px at 78% 20%, rgba(210, 212, 198, 0.72), transparent 66%),
    radial-gradient(560px 360px at 12% 0%, rgba(234, 223, 199, 0.6), transparent 64%);
  pointer-events: none;
}

/* ==========================================================================
   2. Problem / contractor-vs-architect
   ========================================================================== */
.myth-list { display: grid; gap: var(--space-4); }

.myth {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.myth:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.myth__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--danger-100);
  color: var(--danger-700);
  flex: none;
}
.myth__mark svg { width: 18px; height: 18px; }
.myth__quote {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ink-900);
}
.myth__truth { margin: 0; font-size: var(--text-base); color: var(--color-fg-muted); }
.myth__truth b { color: var(--olive-700); }

/* Cost-of-rework ledger */
.ledger {
  display: grid;
  gap: 0;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}
.ledger__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px dashed var(--color-border-strong);
}
.ledger__row:last-of-type { border-bottom: 0; }
.ledger__label { font-size: var(--text-base); color: var(--ink-700); }
.ledger__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--danger-700);
  font-variant-numeric: tabular-nums;
}
.ledger__total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 2px solid var(--olive-600);
}
.ledger__total .ledger__label { font-weight: 700; color: var(--ink-900); }
.ledger__total .ledger__value { font-size: var(--text-2xl); color: var(--olive-700); }
.ledger__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
}

/* ==========================================================================
   3. Why 2BHK — interactive blueprint
   ========================================================================== */
.blueprint {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 992px) {
  .blueprint { grid-template-columns: 1fr 1.05fr; gap: var(--space-9); }
}

.blueprint__stage {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}
.blueprint__plan { position: relative; }
.blueprint__plan img { border-radius: var(--radius-md); mix-blend-mode: multiply; }

/* Hotspots pinned over the plan */
.hotspot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  /* 44px so the dot meets the minimum touch target on the plan image. */
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--olive-600);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(92, 95, 67, 0.42), var(--shadow-md);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base) var(--ease-out);
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--olive-500);
  opacity: 0.55;
  animation: hotspot-pulse 2.6s var(--ease-out) infinite;
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
.hotspot:hover,
.hotspot[aria-expanded="true"] { transform: translate(-50%, -50%) scale(1.18); background: var(--olive-800); }
.hotspot[aria-expanded="true"]::after { animation: none; opacity: 0; }

.blueprint__notes { display: grid; gap: var(--space-3); }
.blueprint__note {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.blueprint__note:hover { transform: translateY(-2px); }
.blueprint__note.is-active {
  border-color: var(--olive-500);
  background: var(--olive-50);
  box-shadow: var(--shadow-md);
}
.blueprint__note h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
}
.blueprint__note-num {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--olive-600);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}
.blueprint__note p { margin: 0; font-size: var(--text-base); color: var(--color-fg-muted); }

/* ==========================================================================
   4. Founder
   ========================================================================== */
.founder {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 992px) { .founder { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); } }

.founder__portrait {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}
.founder__portrait-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--olive-600);
  box-shadow: var(--shadow-xl);
}
.founder__portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.founder__portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid var(--olive-300);
  opacity: 0.7;
}
.founder__seal {
  position: absolute;
  right: -4%;
  bottom: 4%;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 116px; height: 116px;
  padding: var(--space-3);
  border-radius: 50%;
  text-align: center;
  line-height: 1.15;
}
.founder__seal b {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--olive-700);
}
.founder__seal span {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.timeline { display: grid; gap: 0; margin-top: var(--space-6); }
.timeline__item {
  position: relative;
  display: grid;
  gap: var(--space-1);
  padding: 0 0 var(--space-6) var(--space-7);
  border-left: 1px solid var(--color-border-strong);
}
.timeline__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--olive-600);
  box-shadow: 0 0 0 4px var(--color-bg);
}
.timeline__year {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-700);
}
.timeline__title { margin: 0; font-family: var(--font-sans); font-size: var(--text-md); font-weight: 700; letter-spacing: 0; }
.timeline__body { margin: 0; font-size: var(--text-base); color: var(--color-fg-muted); }

.signature {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.signature__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--olive-700);
  line-height: 1;
}
.signature__role {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

/* ==========================================================================
   5. Pricing
   ========================================================================== */
.price-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius-xl);
}
.price-card--featured {
  z-index: 1;
  box-shadow: var(--shadow-xl), inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1.5px var(--olive-400);
}
@media (min-width: 900px) {
  .price-card--featured { transform: scale(1.045); }
  .price-card--featured.glass--lift:hover { transform: scale(1.045) translateY(-6px); }
}
.price-card__flag {
  position: absolute;
  top: calc(var(--space-4) * -1 - 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.price-card__name { margin: 0; font-family: var(--font-sans); font-size: var(--text-md); font-weight: 700; letter-spacing: 0.02em; }
.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--olive-700);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-card__amount small {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-fg-muted);
}
.price-card__desc { margin: 0; font-size: var(--text-base); color: var(--color-fg-muted); }
.price-card__list { list-style: none; margin: var(--space-2) 0 auto; padding: 0; display: grid; gap: var(--space-3); }
.price-card__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-700);
}
.price-card__list svg { width: 20px; height: 20px; color: var(--olive-600); margin-top: 3px; }
.price-card .btn { margin-top: var(--space-5); }

.price-note {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--ink-700);
}

/* Budget-range rail */
.budget-rail {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}
.budget-rail__track {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--olive-200), var(--olive-400), var(--olive-700));
}
.budget-rail__ticks {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.budget-rail__ticks span { flex: 1; text-align: center; }
.budget-rail__ticks span:first-child { text-align: left; }
.budget-rail__ticks span:last-child { text-align: right; }

/* ==========================================================================
   6. Comparison table
   ========================================================================== */
.compare {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}
.compare th, .compare td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.compare thead th {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
  white-space: nowrap;
}
.compare thead th:first-child { width: 30%; }
.compare thead th.is-us { color: var(--olive-800); background: rgba(233, 234, 226, 0.95); }
.compare tbody th {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-900);
}
.compare td { font-size: var(--text-base); color: var(--color-fg-muted); }
.compare td.is-us { background: rgba(233, 234, 226, 0.5); color: var(--ink-800); font-weight: 500; }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .mark {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-right: var(--space-2);
  vertical-align: -4px;
  border-radius: 50%;
  flex: none;
}
.compare .mark--yes { background: var(--success-100); color: var(--success-700); }
.compare .mark--no { background: var(--danger-100); color: var(--danger-700); }
.compare .mark svg { width: 12px; height: 12px; }

/* ==========================================================================
   7. Process
   ========================================================================== */
.process { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); } }

.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.process__step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
  color: var(--olive-300);
}
.process__step h3 { margin: 0; font-family: var(--font-sans); font-size: var(--text-md); font-weight: 700; letter-spacing: 0; }
.process__step p { margin: 0; font-size: var(--text-sm); color: var(--color-fg-muted); }
.process__step-icon { color: var(--olive-600); }
.process__step-icon svg { width: 28px; height: 28px; }

/* Connecting rail on wide screens */
.process__rail {
  display: none;
  position: relative;
  height: 1px;
  margin: 0 6% var(--space-5);
  background: var(--color-border-strong);
}
@media (min-width: 1100px) { .process__rail { display: block; } }
.process__rail::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rail-progress, 0%);
  background: var(--olive-600);
  transition: width var(--dur-slow) linear;
}

/* ==========================================================================
   8. Projects
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filter-chip {
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.filter-chip:hover { background: var(--olive-50); border-color: var(--olive-400); }
.filter-chip[aria-pressed="true"] {
  background: var(--olive-600);
  border-color: var(--olive-600);
  color: #fff;
}

.masonry { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .masonry { grid-template-columns: repeat(3, 1fr); } }

.project {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-300);
  cursor: pointer;
  text-align: left;
}
.project--tall { grid-row: span 2; }
.project__media { position: relative; height: 100%; }
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.project:hover .project__media img { transform: scale(1.06); }
.project__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(31, 33, 23, 0.82));
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.project:hover .project__overlay,
.project:focus-visible .project__overlay { transform: translateY(0); opacity: 1; }
.project__title { margin: 0 0 4px; font-family: var(--font-sans); font-size: var(--text-md); font-weight: 700; color: #fff; letter-spacing: 0; }
.project__meta { margin: 0; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.82); }
.project__tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
}
.project.is-hidden { display: none; }

/* Before / after slider */
.ba {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--sand-300);
  touch-action: pan-y;
  user-select: none;
}
.ba__layer { position: relative; display: block; }
.ba__layer img { width: 100%; display: block; }
.ba__after {
  position: absolute;
  inset: 0;
  width: var(--pos, 50%);
  overflow: hidden;
}
.ba__after img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(31, 33, 23, 0.35);
}
.ba__grip {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  color: var(--olive-700);
  cursor: ew-resize;
}
.ba__grip svg { width: 22px; height: 22px; pointer-events: none; }
.ba__label {
  position: absolute;
  z-index: 3;
  top: var(--space-4);
  padding: 6px var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(31, 33, 23, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ba__label--before { left: var(--space-4); }
.ba__label--after { right: var(--space-4); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(20, 21, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__figure {
  max-width: min(1100px, 100%);
  max-height: 86dvh;
  margin: 0;
  transform: scale(0.95);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
  max-height: 76dvh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
.lightbox__figure figcaption {
  margin-top: var(--space-4);
  color: var(--cream-100);
  font-size: var(--text-base);
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: var(--space-5); right: var(--space-5); }
.lightbox__nav--prev { left: var(--space-4); top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: var(--space-4); top: 50%; margin-top: -26px; }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }

/* ==========================================================================
   9. Testimonials
   ========================================================================== */
/* ==========================================================================
   Testimonials — wide, low tiles
   Landscape tiles rather than tall columns: the quote runs across a long
   measure at body size, and the attribution sits on a single inline footer
   row. That trades height for width and keeps every tile the same depth.
   ========================================================================== */
.testimonials { position: relative; }

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  min-height: 196px;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
}

.testimonial__quote {
  margin: 0;
  font-family: var(--font-display);
  /* Body-scale, not display-scale — the tile is wide, so the measure does the
     work instead of the type size. */
  font-size: clamp(1.0625rem, 0.35vw + 0.98rem, 1.1875rem);
  line-height: 1.52;
  color: var(--ink-900);
  text-wrap: pretty;
}
.testimonial__quote::before { content: "\201C"; color: var(--olive-300); }
.testimonial__quote::after { content: "\201D"; color: var(--olive-300); }

.testimonial__foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--olive-600);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
.testimonial__who { display: grid; min-width: 0; }
.testimonial__name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink-900);
  line-height: 1.25;
}
.testimonial__meta {
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  line-height: 1.3;
}
/* Rating moves into the footer row — one less stacked row per tile. */
.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding-left: var(--space-3);
  color: var(--gold-600);
}
.testimonial__stars svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 640px) {
  /* Narrow measure: drop to 16px and trim the padding, or a 240-character
     review runs to eleven lines. Keeps ~35 chars per line. */
  .testimonial {
    min-height: 0;
    padding: var(--space-5);
    /* Don't stretch to the tallest slide — that pushes a short quote's footer
       to the bottom of the card and opens a gap in the middle. Each tile
       takes its own height; the carousel keeps the row height. */
    height: auto;
    align-self: flex-start;
  }
  .testimonial__quote { font-size: 1rem; line-height: 1.5; }
  .testimonial__foot { margin-top: var(--space-2); }
}

@media (max-width: 520px) {
  .testimonial__foot { flex-wrap: wrap; row-gap: var(--space-2); }
  /* flex-basis 0 (not auto) so the block stops demanding its full text width
     and stays beside the avatar, wrapping the meta line internally instead. */
  .testimonial__who { flex: 1 1 0; min-width: 0; }
  /* Rating gets a row of its own rather than squeezing the name. */
  .testimonial__stars {
    flex-basis: 100%;
    margin-left: calc(42px + var(--space-3));
    padding-left: 0;
  }
}

/* Swiper 3-D coverflow needs breathing room, so the track is allowed to spill
   past the container. That spill must be clipped at the section, or the whole
   page gains horizontal scroll — `overflow-x: hidden` on <body> cannot stop it
   while <html> is `visible`, because the viewport scrolls from the root.
   `clip` rather than `hidden` so no new scroll container is created. */
.testimonials { overflow-x: clip; }
@supports not (overflow-x: clip) {
  .testimonials { overflow-x: hidden; }
}
.testimonials .swiper {
  padding-block: var(--space-5) var(--space-8);
  overflow: visible;
  /* Swiper's stylesheet is loaded in the footer, so it lands AFTER this file
     and its own `.swiper-pagination-bullet` rules would win on load order.
     Driving its custom properties is the supported way to retheme it —
     otherwise the bullets render in Swiper's default blue. */
  --swiper-theme-color: var(--olive-700);
  --swiper-pagination-color: var(--olive-700);
  --swiper-pagination-bullet-inactive-color: var(--olive-500);
  --swiper-pagination-bullet-inactive-opacity: 0.35;
  --swiper-pagination-bullet-size: 9px;
  --swiper-pagination-bullet-horizontal-gap: 5px;
}
.testimonials .swiper-slide { height: auto; display: flex; }
.testimonials .swiper-slide > * { width: 100%; }

/* Scoped so it also outranks Swiper's single-class selectors. */
.testimonials .swiper-pagination-bullet { position: relative; }
/* Transparent hit area — the visible dot stays small, the target does not.
   The 48px arrow buttons below remain the primary control. */
.testimonials .swiper-pagination-bullet::after {
  content: "";
  position: absolute;
  inset: -14px -8px;
}
.testimonials .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 5px;
  opacity: 1;
}

.carousel-nav { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.carousel-nav button {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--olive-700);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.carousel-nav button:hover { background: var(--olive-50); border-color: var(--olive-400); }
.carousel-nav svg { width: 18px; height: 18px; }

/* ==========================================================================
   10. Big CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(31, 33, 23, 0.88) 0%, rgba(46, 48, 33, 0.72) 55%, rgba(46, 48, 33, 0.5) 100%);
}
.cta-band__inner { max-width: 760px; color: var(--cream-100); }
.cta-band h2 { color: var(--cream-50); font-size: var(--text-3xl); }
.cta-band p { color: var(--olive-200); font-size: var(--text-lg); max-width: 54ch; }
.cta-band .eyebrow { color: var(--gold-500); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.cta-band .btn--outline {
  --btn-fg: var(--cream-50);
  --btn-border: rgba(255, 255, 255, 0.4);
}
.cta-band .btn--outline:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   11. Welcome Kit
   ========================================================================== */
.kit-hero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 992px) { .kit-hero { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); } }

/* Floating stack of guide pages */
.kit-stack {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin-inline: auto;
  perspective: 1400px;
}
.kit-stack__page {
  position: absolute;
  width: 62%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--cream-50);
  will-change: transform;
}
.kit-stack__page img { width: 100%; display: block; }
.kit-stack__page--1 { left: 2%;  top: 14%; z-index: 1; transform: rotate(-8deg); }
.kit-stack__page--2 { left: 19%; top: 6%;  z-index: 2; transform: rotate(-2deg); }
.kit-stack__page--3 { left: 36%; top: 0;   z-index: 3; transform: rotate(5deg); }
.kit-stack__glow {
  position: absolute;
  inset: 14% 6% 4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 164, 106, 0.42), transparent 72%);
  filter: blur(28px);
}
.kit-stack__seal {
  position: absolute;
  right: 2%;
  bottom: 6%;
  z-index: 4;
}

.kit-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 600px) { .kit-benefits { grid-template-columns: 1fr 1fr; } }
.kit-benefits li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-700);
}
.kit-benefits svg { width: 22px; height: 22px; color: var(--olive-600); margin-top: 2px; }

.kit-form-card { padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: var(--radius-xl); }

/* Page-by-page preview strip */
.kit-pages {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.kit-page {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-50);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kit-page:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-xl); }
.kit-page img { width: 100%; display: block; }
.kit-page figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
}

/* ==========================================================================
   12. Contact
   ========================================================================== */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-9); } }

.contact-card { padding: var(--space-7) var(--space-6); border-radius: var(--radius-xl); }
.contact-list { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.contact-list__item { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start; }
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--olive-100);
  color: var(--olive-700);
}
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list dt { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-fg-muted); margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: var(--text-md); color: var(--ink-900); }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { color: var(--olive-700); text-decoration: underline; }

/* ==========================================================================
   13. Misc content blocks
   ========================================================================== */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 992px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .split--reverse > *:first-child { order: 2; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-700);
}
.checklist svg { width: 24px; height: 24px; color: var(--olive-600); margin-top: 1px; }

.quote-band {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-2xl);
  text-align: center;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.34;
  color: var(--cream-50);
  max-width: 24ch;
  margin-inline: auto;
}
.quote-band cite {
  display: block;
  margin-top: var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--olive-300);
}

.stat-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

/* Styles gallery (from the guide's Step 2) */
.style-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-300);
}
.style-card__media { aspect-ratio: 16 / 10; }
.style-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.style-card:hover .style-card__media img { transform: scale(1.05); }
.style-card__body {
  position: relative;
  padding: var(--space-5);
  background: var(--color-surface);
}
.style-card__body h3 { margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: var(--text-md); font-weight: 700; letter-spacing: 0; }
.style-card__body p { margin: 0; font-size: var(--text-base); color: var(--color-fg-muted); }
