/* =========================================
   Bright Decorating — Premium CSS
   Taste Skill settings: VARIANCE:8, MOTION:6, DENSITY:2
   ========================================= */

/* === CUSTOM PROPERTIES === */
:root {
  --bone: #F7F5F0;
  --bone-mid: #EEE9E0;
  --charcoal: #1A1915;
  --charcoal-soft: #2C2A25;
  --charcoal-mid: #4A4840;
  --warm-grey: #8A8478;
  --warm-grey-light: #B5B0A6;
  --accent: #C4A26A;
  --accent-dark: #9E7E44;
  --border: rgba(26, 25, 21, 0.1);
  --border-strong: rgba(26, 25, 21, 0.18);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;

  --nav-h: 72px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container-max: 1360px;
  --section-gap: clamp(80px, 10vw, 140px);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bone);
  color: var(--charcoal);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

em {
  font-style: italic;
  color: var(--charcoal-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 600px;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: background 0.4s var(--easing), border-color 0.4s var(--easing), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(24px, 4vw, 64px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Default: white logo over dark hero video */
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--easing), opacity 0.3s;
}

/* Dark logo once nav scrolls onto light background */
.nav.scrolled .nav-logo-img {
  filter: none;
}

/* Dark links & CTA once nav scrolls onto light background */
.nav.scrolled .nav-links a {
  color: var(--charcoal-mid);
}

.nav.scrolled .nav-links a:hover {
  color: var(--charcoal);
}

.nav.scrolled .nav-links .nav-cta {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.nav.scrolled .nav-links .nav-cta:hover {
  background: var(--charcoal);
  color: var(--bone);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(247, 245, 240, 0.85);
  transition: color 0.3s var(--easing);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(247, 245, 240, 0.8);
  transition: width 0.3s var(--easing), background 0.3s;
}

.nav.scrolled .nav-links a::after {
  background: var(--accent);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(247, 245, 240, 0.7);
  color: rgba(247, 245, 240, 0.9);
  transition: background 0.3s var(--easing), color 0.3s, border-color 0.3s;
}

.nav-links .nav-cta:hover {
  background: rgba(247, 245, 240, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.3s var(--easing), opacity 0.3s, background 0.4s var(--easing);
}

.nav.scrolled .nav-hamburger span {
  background: var(--charcoal);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--charcoal);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--easing);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-logo {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu .mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--bone);
  letter-spacing: -0.02em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.mobile-menu .mobile-link:hover {
  opacity: 1;
  color: var(--accent);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  background: var(--charcoal);
  color: var(--bone);
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background 0.3s var(--easing), color 0.3s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--charcoal);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(247, 245, 240, 0.4);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.15s;
}

.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(247, 245, 240, 0.1);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Vertical gradient — heavier at top (nav) and bottom (text + stats) */
  background:
    linear-gradient(
      to bottom,
      rgba(26, 25, 21, 0.45) 0%,
      rgba(26, 25, 21, 0.18) 28%,
      rgba(26, 25, 21, 0.52) 60%,
      rgba(26, 25, 21, 0.92) 100%
    ),
    /* Horizontal scrim — extra depth on the left where copy sits */
    linear-gradient(
      to right,
      rgba(26, 25, 21, 0.35) 0%,
      transparent 55%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--nav-h) clamp(24px, 5vw, 80px) clamp(60px, 8vw, 120px);
  max-width: 900px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.9);
  margin-bottom: 2rem;
}

.label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  color: var(--bone);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 2rem;
}

.hero-italic {
  font-style: italic;
  color: rgba(247, 245, 240, 0.88);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: rgba(247, 245, 240, 0.92);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(247, 245, 240, 0.4), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(247, 245, 240, 0.12);
}

.hero-stat {
  flex: 1;
  padding: 24px clamp(24px, 4vw, 48px);
  border-right: 1px solid rgba(247, 245, 240, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--bone);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.7);
}

/* === POSITIONING === */
.positioning {
  padding: var(--section-gap) 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}

.positioning-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.positioning-left {
  padding-top: 0.5rem;
}

.positioning-statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.positioning-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
  max-width: 56ch;
}

/* === RESIDENTIAL INTRO === */
.residential-intro {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.residential-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal-mid);
  margin-bottom: 1rem;
}

.residential-intro p:last-child {
  margin-bottom: 0;
}

/* === TRANSFORMATION / VIDEO SCROLL SECTION === */
.transformation {
  position: relative;
  background: var(--charcoal);
  min-height: 300vh;
}

/* Sticky frame — video fills it completely */
.transformation-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Video panel: full viewport */
.transformation-video-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-scroll-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.scroll-video {
  display: none;
}

.scroll-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Gradient scrim — left-to-right so text stays legible */
.transformation-video-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 25, 21, 0.82) 0%,
    rgba(26, 25, 21, 0.45) 42%,
    rgba(26, 25, 21, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Progress bar sits at the very bottom of the viewport */
.video-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(247, 245, 240, 0.1);
  z-index: 20;
}

.video-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
}

/* Text panel: absolute overlay on the left */
.transformation-text-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(560px, 52%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(80px, 9vw, 130px) clamp(32px, 5vw, 80px) clamp(40px, 6vw, 80px);
  z-index: 10;
}

.transformation-sticky {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.transformation-sticky .eyebrow {
  color: rgba(247, 245, 240, 0.45);
}

.transformation-sticky .eyebrow::before {
  background: var(--accent);
}

.transformation-sticky h2 {
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  color: var(--bone);
  margin-bottom: 0;
}

.transformation-sticky h2 em {
  color: rgba(247, 245, 240, 0.55);
}

.transformation-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.transformation-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(247, 245, 240, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
  transition-delay: calc(var(--step-i, 0) * 0.15s);
}

.transformation-step:last-child {
  border-bottom: 1px solid rgba(247, 245, 240, 0.1);
}

.transformation-steps.visible .transformation-step {
  opacity: 1;
  transform: translateY(0);
}

.tstep-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 3px;
}

.tstep-num {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.tstep-line {
  width: 1px;
  flex: 1;
  min-height: 12px;
  background: rgba(247, 245, 240, 0.12);
}

.tstep-content h3 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.tstep-content p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.5);
  max-width: 34ch;
}

.transformation-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.25);
  margin-top: 2rem;
}

.caption-arrow {
  color: var(--accent);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .transformation {
    min-height: 220vh;
  }

  .transformation-text-panel {
    width: 100%;
    padding: clamp(72px, 10vw, 100px) clamp(24px, 5vw, 40px) clamp(32px, 6vw, 56px);
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(26,25,21,0.85) 0%, transparent 60%);
  }

  .transformation-sticky h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    margin-bottom: 1.5rem;
  }

  .transformation-caption {
    display: none;
  }

  /* Compact steps on mobile — hide body text to prevent overflow in sticky viewport */
  .transformation-steps {
    gap: 0;
  }

  .tstep-content p {
    display: none;
  }

  .transformation-step {
    padding: 0.75rem 0;
  }
}

/* === COMMERCIAL === */
.commercial-section {
  padding: var(--section-gap) 0;
  background: var(--bone-mid);
  border-bottom: 1px solid var(--border);
}

.commercial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.commercial-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.commercial-left p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
  max-width: 44ch;
  margin-bottom: 1rem;
}

.commercial-left p:last-of-type {
  margin-bottom: 0;
}

.commercial-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 2rem;
}

.commercial-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.4s ease;
}

.commercial-img-wrap:hover img {
  transform: scale(1.03);
}

.commercial-img-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(26, 25, 21, 0.72), transparent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.commercial-img-cap .work-type {
  margin-bottom: 0;
}

.commercial-img-cap span:last-child {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.7);
  letter-spacing: 0.03em;
}

.commercial-capabilities {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.commercial-cap-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cap-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.commercial-cap-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--charcoal-mid);
}

/* Client logo bar */
.commercial-logos {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.commercial-logos-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-grey-light);
  white-space: nowrap;
}

.commercial-logos-row {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}

.commercial-client-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.3s;
  border-radius: 3px;
}

.commercial-client-logo:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .commercial-inner {
    grid-template-columns: 1fr;
  }
}

/* === SERVICES === */
.services {
  padding: var(--section-gap) 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

.service-card {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
  transition: background 0.4s var(--easing);
}

.service-card:nth-child(even) {
  border-right: none;
}

.service-number {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 4px;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.service-body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--charcoal-mid);
  margin-bottom: 1.5rem;
  max-width: 45ch;
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-detail-list li {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--warm-grey);
  padding-left: 14px;
  position: relative;
}

.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1px;
  background: var(--accent);
}

.service-card:hover {
  background: rgba(196, 162, 106, 0.04);
}

/* === WORK / GALLERY === */
.work {
  padding: var(--section-gap) 0;
  background: var(--charcoal);
}

.work .section-header h2 {
  color: var(--bone);
}

.work .eyebrow {
  color: rgba(247, 245, 240, 0.45);
}

.work .eyebrow::before {
  background: var(--accent);
}

/* Gallery grid — 3 columns, uniform 4/3 ratio */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: clamp(32px, 4vw, 56px);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 21, 0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(26, 25, 21, 0.35);
}

.gallery-item-overlay svg {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.3s;
  color: var(--bone);
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Pagination */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

.gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 245, 240, 0.2);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(196, 162, 106, 0.1);
}

.gallery-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.gallery-pages {
  display: flex;
  gap: 6px;
}

.gallery-page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(247, 245, 240, 0.15);
  background: transparent;
  color: rgba(247, 245, 240, 0.5);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.gallery-page-btn:hover {
  color: var(--bone);
  border-color: rgba(247, 245, 240, 0.4);
}

.gallery-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--charcoal);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.95);
  cursor: zoom-out;
}

.lightbox-img-wrap {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: none;
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid rgba(247, 245, 240, 0.15);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.lightbox-close:hover {
  background: rgba(247, 245, 240, 0.15);
  border-color: rgba(247, 245, 240, 0.3);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid rgba(247, 245, 240, 0.15);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.lightbox-arrow:hover {
  background: rgba(247, 245, 240, 0.15);
  border-color: rgba(247, 245, 240, 0.3);
}

.lightbox-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.lightbox-prev {
  left: clamp(12px, 3vw, 28px);
}

.lightbox-next {
  right: clamp(12px, 3vw, 28px);
}

.lightbox-counter {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(247, 245, 240, 0.45);
}

/* === PROCESS === */
.process {
  padding: var(--section-gap) 0;
  background: var(--bone-mid);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.process-step {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 36px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-step-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.process-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.process-step-line {
  width: 32px;
  height: 1px;
  background: var(--border-strong);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
}

/* === CLIENTS === */
.clients {
  padding: var(--section-gap) 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}

.clients-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.clients-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.clients-left p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
  max-width: 40ch;
}

.client-logos {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.client-logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.client-logo {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s;
}

.client-logo:last-child {
  border-right: none;
}

.client-logo:hover {
  background: rgba(196, 162, 106, 0.05);
}

.client-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--charcoal);
  line-height: 1.2;
}

.client-scope {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--warm-grey);
  line-height: 1.5;
}

/* === TESTIMONIAL === */
.testimonial {
  padding: var(--section-gap) 0;
  background: var(--charcoal-soft);
}

.testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 24px;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.6;
  color: rgba(196, 162, 106, 0.25);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-inner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--bone);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.testimonial-inner cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.cite-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bone);
}

.cite-role {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 240, 0.45);
  text-transform: uppercase;
}

/* === OWNERS === */
.owners {
  padding: var(--section-gap) 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}

.owners-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.owners-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.owners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}

.owner-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.owner-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bone-mid);
}

.owner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease-out), opacity 0.4s ease;
  display: block;
}

.owner-card:hover .owner-img-wrap img {
  transform: scale(1.03);
}

.owner-info {
  padding: 0 4px;
}

.owner-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.owner-role {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.owner-info p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
  max-width: 44ch;
}

@media (max-width: 768px) {
  .owners-grid {
    grid-template-columns: 1fr;
    gap: clamp(48px, 8vw, 72px);
  }

  .owner-img-wrap {
    aspect-ratio: 4/5;
  }
}

/* === CONTACT === */
.contact {
  padding: var(--section-gap) 0;
  background: var(--bone);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.contact-left > p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.contact-detail a,
.contact-detail span {
  font-size: 0.9375rem;
  color: var(--charcoal);
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--accent-dark);
}

/* === FORM === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-grey-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--charcoal);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--charcoal-mid);
  pointer-events: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 11px;
  color: #c0392b;
  letter-spacing: 0.03em;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(196, 162, 106, 0.1);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.form-success.visible {
  display: block;
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid rgba(247, 245, 240, 0.1);
  margin-bottom: 32px;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(247, 245, 240, 0.45);
  max-width: 30ch;
}

.footer-nav-col h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.4);
  margin-bottom: 1.5rem;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col a,
.footer-nav-col li {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.6);
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--bone);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.3);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.3);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(247, 245, 240, 0.7);
}

/* === FOOTER AREAS === */
.footer-areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
}

.footer-areas span {
  font-size: 11px;
  color: rgba(247, 245, 240, 0.28);
  letter-spacing: 0.04em;
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--easing),
    transform 0.7s var(--easing);
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
  }

  .service-card:nth-child(even) {
    border-right: none;
  }

  .positioning-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .positioning-left {
    display: none;
  }

  .clients-inner {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo-img {
    height: 24px;
  }

  /* Hero */
  .hero-content {
    padding-bottom: clamp(40px, 7vw, 80px);
  }

  .hero-headline {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  .hero-sub {
    font-size: 0.9375rem;
    max-width: 100%;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(247, 245, 240, 0.12);
    padding: 18px clamp(24px, 5vw, 40px);
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Testimonial — fix the fixed 120px quote mark */
  .testimonial-quote-mark {
    font-size: clamp(3rem, 18vw, 6rem);
  }

  .testimonial-inner blockquote {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .process-step {
    border-left: 1px solid var(--border);
  }

  /* Owners */
  .owners-grid {
    grid-template-columns: 1fr;
  }

  .owner-img-wrap {
    aspect-ratio: 4/5;
    max-height: 480px;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Clients */
  .client-logo-row {
    grid-template-columns: 1fr;
  }

  .client-logo {
    border-right: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo-img {
    height: 20px;
  }

  /* Section headers */
  .section-header h2 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }

  /* Positioning body text */
  .positioning-statement {
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  }

  /* Gallery: 1 column on small mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }
}

/* === SKELETON LOADING === */

/* Page fade-in on load */
body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.page-loading {
  opacity: 0;
}

/* Shimmer keyframes */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Skeleton base — applied to image wrappers while loading */
.skeleton-img {
  background: var(--bone-mid);
  background-image: linear-gradient(
    90deg,
    var(--bone-mid) 0%,
    #e8e3d8 40%,
    var(--bone-mid) 80%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* Apply shimmer to image containers before load completes */
.page-loading .owner-img-wrap,
.page-loading .commercial-img-wrap,
.page-loading .gallery-item {
  background: var(--bone-mid);
  background-image: linear-gradient(
    90deg,
    var(--bone-mid) 0%,
    #e8e3d8 40%,
    var(--bone-mid) 80%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* Hide images inside skeleton wrappers until page load completes */
.page-loading .owner-img-wrap img,
.page-loading .commercial-img-wrap img,
.page-loading .gallery-item img {
  opacity: 0;
}

/* Hero skeleton — subtle dark shimmer over video bg */
.page-loading .hero-content {
  opacity: 0;
}

.hero-content {
  transition: opacity 0.6s ease 0.2s;
}

/* ================================================================
   QUOTE PROMO SECTION
   ================================================================ */
.quote-promo {
  background: var(--charcoal);
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
}

.qp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

/* Left: copy */
.eyebrow-inv {
  color: var(--accent);
}
.eyebrow-inv::before {
  background: var(--accent);
}

.qp-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--bone);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.qp-heading em {
  color: var(--accent);
  font-style: italic;
}

.qp-body {
  font-size: 16px;
  color: rgba(247, 245, 240, 0.6);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2rem;
}

.qp-list {
  list-style: none;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.qp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(247, 245, 240, 0.7);
  line-height: 1.55;
}
.qp-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%231A1915' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

.qp-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}

.qp-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--charcoal);
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--easing), border-color 0.3s, color 0.3s, transform 0.15s;
}
.qp-btn-main:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.qp-footnote {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.28);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* Right: animated demo card */
.qp-demo {
  position: relative;
}

.qp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Card header bar */
.qp-card-top {
  background: var(--charcoal-soft);
  padding: 16px 22px 0;
}
.qp-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.qp-card-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.qp-card-step {
  font-size: 11px;
  color: rgba(247, 245, 240, 0.35);
  letter-spacing: 0.06em;
}

/* Progress track in header */
.qp-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 -22px;
  overflow: hidden;
}
.qp-track-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  border-radius: 0;
}

/* Card body */
.qp-card-body {
  padding: 22px 22px 18px;
}
.qp-card-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warm-grey);
  font-weight: 500;
  margin-bottom: 18px;
}

/* Room rows */
.qp-rooms {
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
}
.qp-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
}
.qp-room-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qp-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.qp-room-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--charcoal);
}
.qp-room-price {
  font-size: 13px;
  color: var(--charcoal-mid);
  font-weight: 500;
}

/* Total panel */
.qp-total {
  background: var(--charcoal);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
}
.qp-total-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.qp-total-range {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 5px;
}
.qp-total-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}

/* CTA link in card */
.qp-card-cta {
  text-align: center;
  padding-top: 4px;
  opacity: 0;
}
.qp-card-cta a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: transparent;
  letter-spacing: 0.02em;
  transition: text-decoration-color 0.2s;
}
.qp-card-cta a:hover {
  text-decoration-color: var(--accent-dark);
}

/* Floating badge */
.qp-badge {
  position: absolute;
  top: -14px;
  right: -10px;
  background: var(--accent);
  color: var(--charcoal);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.04em;
}

/* ── Animation keyframes ── */
@keyframes qpBarFill {
  from { width: 0; }
  to   { width: 75%; }
}
@keyframes qpItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qpFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Triggered by .animated class added via JS IntersectionObserver */
.qp-card.animated .qp-track-fill {
  animation: qpBarFill 3.5s var(--easing) forwards;
}
.qp-card.animated .qp-room {
  animation: qpItemIn 0.45s ease forwards;
  animation-delay: calc(var(--ri) * 0.72s + 0.35s);
}
.qp-card.animated .qp-total {
  animation: qpFadeUp 0.55s ease forwards 3.2s;
}
.qp-card.animated .qp-card-cta {
  animation: qpFadeIn 0.4s ease forwards 3.9s;
}

/* Reduced motion — show completed state instantly */
@media (prefers-reduced-motion: reduce) {
  .qp-room { opacity: 1; transform: none; }
  .qp-total { opacity: 1; transform: none; }
  .qp-card-cta { opacity: 1; }
  .qp-track-fill { width: 75%; }
  .qp-card.animated .qp-room,
  .qp-card.animated .qp-total,
  .qp-card.animated .qp-card-cta { animation: none; }
  .qp-card.animated .qp-track-fill { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .qp-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .qp-body { max-width: 100%; }
}
@media (max-width: 600px) {
  .qp-badge { right: 10px; }
}
