/* ============================================================
   VALLEY AUTO GLASS & UPHOLSTERY
   Editorial premium theme — warm ivory + charcoal + brass amber
   ============================================================ */

:root {
  /* palette */
  --ivory: #f7f3ec;
  --ivory-2: #efe9de;
  --paper: #ffffff;
  --ink: #16181c;
  --ink-2: #2a2d34;
  --ink-mute: #5b6070;
  --line: #e4dfd3;
  --line-2: #d8d1c1;

  --brass: #b8842d;
  --brass-2: #d19d3f;
  --brass-soft: rgba(184, 132, 45, 0.10);

  --dark: #0f1218;
  --dark-2: #171b23;

  /* radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(20, 24, 30, 0.06), 0 4px 12px rgba(20, 24, 30, 0.04);
  --shadow: 0 4px 16px rgba(20, 24, 30, 0.08), 0 20px 40px rgba(20, 24, 30, 0.06);
  --shadow-lg: 0 30px 80px rgba(20, 24, 30, 0.15);

  --container: 1240px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  color: var(--brass);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-tag.light {
  color: var(--brass-2);
}

.section-head {
  margin-bottom: 64px;
}

.section-head.center {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.section-head:not(.center) h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.section-head.center h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.section-sub {
  color: var(--ink-mute);
  font-size: 17px;
  max-width: 460px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .25s ease, box-shadow .3s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--brass);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 132, 45, 0.3);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-light-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--ivory);
  font-size: 12.5px;
  padding: 10px 0;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(247, 243, 236, 0.75);
}

.tb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-right {
  display: flex;
  gap: 28px;
}

.tb-phone {
  color: var(--brass-2);
  font-weight: 600;
}

.tb-phone:hover {
  color: #fff;
}

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--brass);
  background: var(--brass-soft);
  border-radius: 12px;
  border: 1px solid rgba(184, 132, 45, 0.2);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 34px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
  transition: color .2s;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(60px, 8vw, 100px) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}

.eyebrow .line {
  width: 32px;
  height: 1.5px;
  background: var(--brass);
}

.hero-copy h1 {
  font-size: clamp(46px, 6.5vw, 88px);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.lead {
  font-size: 18px;
  color: var(--ink-mute);
  max-width: 500px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.trust-item .t-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-item .t-lbl {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.trust-divider {
  width: 1px;
  height: 44px;
  background: var(--line);
}

/* hero visual */
.hero-visual {
  position: relative;
  height: 620px;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 500px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-img-sub {
  position: absolute;
  bottom: -80px;
  left: 0;
  width: 55%;
  height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--ivory);
}

.hero-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  right: 32px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 16px 22px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  max-width: 260px;
}

.hb-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--brass);
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}

.hb-icon svg {
  width: 20px;
  height: 20px;
}

.hb-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.hb-sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.hero-tag {
  position: absolute;
  top: 24px;
  left: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 3;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--brass-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(209, 157, 63, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 157, 63, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(209, 157, 63, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(209, 157, 63, 0);
  }
}

/* brand strip */
.brand-strip {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory-2);
}

.brand-strip .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.bs-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.bs-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-2);
  align-items: center;
}

.bs-items span:nth-child(even) {
  color: var(--brass);
}

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.services {
  background: var(--ivory);
}

.services .section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}

.head-left h2 {
  margin: 0;
}

/* ---------- CARD STACK (heavily-overlapped fan) ---------- */
.services {
  background: #0a0d13;
  color: #fff;
}

.services .section-tag {
  color: var(--brass-2);
}

.services h2,
.services .head-left h2 {
  color: #fff;
}

.services h2 em {
  color: var(--brass-2);
}

.services .section-sub {
  color: rgba(255, 255, 255, 0.55);
}

.card-stack {
  margin: 0 auto 72px;
  max-width: 1300px;
  outline: none;
  position: relative;
}

.cs-stage {
  position: relative;
  height: 500px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 78%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.cs-card {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -320px;
  margin-top: -190px;
  width: 640px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 50px 100px rgba(0, 0, 0, 0.5);
  background: #12161d;
  color: #fff;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    box-shadow 0.5s ease;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}

.cs-card.is-active {
  cursor: default;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 80px 140px rgba(0, 0, 0, 0.6);
}

.cs-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

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

.cs-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 7, 11, 0.9) 100%);
}

.cs-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 34px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.2s, transform 0.5s ease 0.2s;
}

.cs-card.is-active .cs-body {
  opacity: 1;
  transform: translateY(0);
}

.cs-tag {
  display: inline-block;
  padding: 5px 11px;
  background: var(--brass);
  color: #0a0d13;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cs-body h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.15;
}

.cs-body p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
  max-width: 480px;
}

/* controls */
.cs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.cs-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-arrow:hover {
  background: var(--brass);
  color: #0a0d13;
  border-color: var(--brass);
  transform: translateY(-2px);
}

.cs-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  border: none;
}

.cs-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.cs-dot.is-active {
  background: var(--brass);
  width: 24px;
  border-radius: 3px;
}

/* dark "more services" strip on dark section */
.services .more-services {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.services .ms-title h4 {
  color: #fff;
}

.services .ms-item {
  color: rgba(255, 255, 255, 0.75);
}

.services .ms-item svg {
  color: var(--brass-2);
}

/* more services (secondary row) */
.more-services {
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}

.ms-title h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.ms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
}

.ms-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.ms-item svg {
  width: 20px;
  height: 20px;
  color: var(--brass);
  flex-shrink: 0;
}

/* ============================================================
   CRAFTSMANSHIP
   ============================================================ */
.craft {
  background: var(--ivory-2);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.craft-visual {
  position: relative;
  height: 620px;
}

.cv-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 76%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.cv-sub {
  position: absolute;
  /* bottom: 0; */
  right: 0;
  width: 52%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 6px solid var(--ivory-2);
}

.cv-stat {
  position: absolute;
  top: 32px;
  right: 24px;
  background: var(--ink);
  color: var(--ivory);
  padding: 24px 28px;
  border-radius: var(--r);
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 2;
}

.cvs-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  color: var(--brass-2);
  line-height: 1;
  margin-bottom: 4px;
}

.cvs-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: 0.85;
}

.craft-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 24px;
}

.lead-sm {
  color: var(--ink-mute);
  font-size: 16.5px;
  margin: 0 0 40px;
}

.craft-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--paper);
  border-radius: var(--r);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}

.cf-item:hover {
  transform: translateX(4px);
  border-color: var(--brass);
}

.cf-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brass-soft);
  color: var(--brass);
  border-radius: 10px;
  flex-shrink: 0;
}

.cf-icon svg {
  width: 22px;
  height: 22px;
}

.cf-item strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.cf-item p {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--ivory);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--brass);
  background: #fff;
}

.step-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--brass);
  font-style: italic;
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--ink-mute);
  font-size: 14.5px;
  margin: 0;
}

/* ============================================================
   IMMERSIVE 3D GALLERY
   ============================================================ */
.immersive {
  position: relative;
  height: 100vh;
  min-height: 720px;
  background: #0b0e14;
  overflow: hidden;
  isolation: isolate;
}

.immersive-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.immersive-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.immersive-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  mix-blend-mode: exclusion;
  color: #fff;
}

.immersive-overlay .section-tag.light {
  color: var(--brass-2);
  margin-bottom: 20px;
}

.immersive-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 12ch;
}

.immersive-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-2);
}

.immersive-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0;
}

.immersive-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-family: 'Inter', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  mix-blend-mode: exclusion;
  pointer-events: none;
}

.immersive-hint span {
  display: block;
}

.immersive-hint .hint-mute {
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* fallback for no-webgl */
.immersive-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.immersive-canvas.no-webgl~.immersive-fallback {
  display: flex;
}

.immersive-canvas.no-webgl {
  background: linear-gradient(135deg, #12161e, #0b0e14);
}

/* subtle vignette overlay for depth */
.immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.6) 0%, transparent 15%, transparent 85%, rgba(11, 14, 20, 0.7) 100%);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.reviews {
  background: var(--ivory);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi {
  margin: 0;
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.testi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testi-highlight {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.testi-quote {
  color: var(--brass);
  margin-bottom: 20px;
  opacity: 0.6;
}

.testi-highlight .testi-quote {
  color: var(--brass-2);
  opacity: 1;
}

.testi blockquote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

.testi-highlight blockquote {
  color: #fff;
}

.stars {
  color: var(--brass);
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testi-highlight .stars {
  color: var(--brass-2);
}

.testi figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.testi-highlight figcaption {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.avatar-init {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brass);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.testi-highlight .name {
  color: #fff;
}

.role {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.testi-highlight .role {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   VISIT / LOCATIONS
   ============================================================ */
.visit {
  background: var(--ivory-2);
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.loc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.loc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.loc-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.loc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.loc-card:hover .loc-img img {
  transform: scale(1.05);
}

.loc-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  z-index: 2;
}

.loc-badge.alt {
  background: var(--brass);
  color: var(--ink);
}

.loc-body {
  padding: 36px;
}

.loc-body h3 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 500;
}

.loc-addr {
  color: var(--ink-mute);
  margin: 0 0 28px;
  font-size: 15px;
}

.loc-meta {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loc-meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: 13.5px;
}

.loc-meta span {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.loc-meta em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.loc-meta a {
  color: var(--brass);
  font-weight: 600;
}

/* ============================================================
   BIG CTA
   ============================================================ */
.big-cta {
  position: relative;
  padding: clamp(100px, 12vw, 160px) 0;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(135deg, rgba(15, 18, 24, 0.88) 0%, rgba(15, 18, 24, 0.62) 14%), url(images/vintage-car.png);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
}

.bc-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.bc-inner h2 {
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  margin-bottom: 20px;
}

.bc-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin: 0 0 40px;
}

.bc-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(247, 243, 236, 0.7);
  padding-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
}

.foot-brand .brand-text strong {
  color: var(--ivory);
}

.foot-brand .brand-text em {
  color: rgba(247, 243, 236, 0.5);
}

.foot-brand .brand-mark {
  background: rgba(184, 132, 45, 0.15);
  border-color: rgba(184, 132, 45, 0.3);
}

.foot-brand p {
  font-size: 14px;
  margin: 24px 0 0;
  max-width: 340px;
  line-height: 1.65;
}

.foot-col h4 {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}

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

.foot-col a,
.foot-col li {
  color: rgba(247, 243, 236, 0.65);
  font-size: 14px;
  transition: color .2s;
}

.foot-col a:hover {
  color: var(--brass-2);
}

.foot-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}

.foot-bar .container {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.4);
}

/* ============================================================
   ANIMATIONS — scroll reveal, tilt, nav shrink
   ============================================================ */

/* base reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0ms),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* directional variants (assigned via CSS selectors, no JS needed) */
.hero-visual.reveal {
  transform: translate3d(40px, 20px, 0) scale(0.96);
}

.hero-visual.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.craft-visual.reveal {
  transform: translate3d(-40px, 20px, 0) scale(0.96);
}

.craft-visual.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.bento-tile.reveal {
  transform: translate3d(0, 40px, 0) scale(0.94);
}

.bento-tile.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.g-item.reveal {
  transform: translate3d(0, 30px, 0) scale(0.92);
}

.g-item.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.step.reveal {
  transform: translate3d(0, 40px, 0);
}

.testi.reveal {
  transform: translate3d(0, 24px, 0);
}

.testi-highlight.reveal {
  transform: translate3d(0, 40px, 0) scale(0.96);
}

.testi-highlight.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.loc-card.reveal {
  transform: translate3d(0, 40px, 0) scale(0.97);
}

.loc-card.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* left/right slide-in for split copy */
.hero-copy>*.reveal {
  transform: translate3d(-24px, 0, 0);
}

.hero-copy>*.is-visible {
  transform: translate3d(0, 0, 0);
}

.craft-copy>*.reveal {
  transform: translate3d(24px, 0, 0);
}

.craft-copy>*.is-visible {
  transform: translate3d(0, 0, 0);
}

/* ============================================================
   3D TILT — cards get perspective-safe children + glow
   ============================================================ */
.bento-tile,
.loc-card,
.step,
.cf-item,
.g-item {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  position: relative;
}

/* hover glare — a soft light that follows the cursor */
.bento-tile::before,
.loc-card::before,
.g-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.18) 0%,
      transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

.bento-tile:hover::before,
.loc-card:hover::before,
.g-item:hover::before {
  opacity: 1;
}

/* raise inner content on tilt for depth */
.bento-tile .tile-body,
.g-item figcaption {
  transform: translateZ(30px);
}

.hero-badge,
.cv-stat,
.hero-tag {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* remove tilt on touch devices */
@media (hover: none) {

  .bento-tile,
  .loc-card,
  .step,
  .cf-item,
  .g-item,
  .hero-card {
    transform: none !important;
  }

  .bento-tile::before,
  .loc-card::before,
  .g-item::before {
    display: none;
  }
}

/* ============================================================
   NAV shrink on scroll
   ============================================================ */
.nav-wrap {
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav-wrap.scrolled {
  background: rgba(247, 243, 236, 0.95);
  box-shadow: 0 6px 24px rgba(20, 24, 30, 0.06);
}

.nav-wrap.scrolled .nav {
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-wrap.scrolled .brand-mark {
  width: 38px;
  height: 38px;
}

.nav-wrap.scrolled .brand-mark svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   FLOAT — subtle idle motion on hero badges
   ============================================================ */
@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-badge {
  animation: floaty 5s ease-in-out infinite;
}

.cv-stat {
  animation: floaty 6s ease-in-out infinite 0.5s;
}

/* reduce for motion-sensitive users */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-badge,
  .cv-stat {
    animation: none;
  }

  .bento-tile,
  .loc-card,
  .step,
  .cf-item,
  .g-item {
    transform: none !important;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    height: 480px;
    max-width: 640px;
    margin: 0 auto;
  }

  .services .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs-stage {
    height: 440px;
  }

  .cs-card {
    width: 500px;
    height: 300px;
    margin-left: -250px;
    margin-top: -150px;
  }

  .more-services {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .craft-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .craft-visual {
    height: 500px;
    max-width: 640px;
    margin: 0 auto;
  }

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

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

  .g1,
  .g4 {
    grid-column: span 2;
  }

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

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

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

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .nav {
    padding: 16px 20px;
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .3s ease;
    margin: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
  }

  .nav-cta .btn {
    padding: 10px 14px;
    font-size: 12.5px;
  }

  .hamburger {
    display: flex;
    margin-left: 6px;
  }

  body.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  body.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-copy h1 {
    font-size: clamp(38px, 9vw, 60px);
  }

  .hero-visual {
    height: 400px;
  }

  .hero-img-main {
    height: 320px;
    width: 82%;
  }

  .hero-img-sub {
    height: 180px;
    width: 60%;
  }

  .hero-badge {
    max-width: 220px;
    padding: 12px 16px;
    bottom: 24px;
    right: 16px;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 20px;
  }

  .trust-divider {
    display: none;
  }

  .cs-stage {
    height: 380px;
  }

  .cs-card {
    width: 320px;
    height: 220px;
    margin-left: -160px;
    margin-top: -110px;
  }

  .cs-body {
    padding: 20px 22px;
  }

  .cs-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
  }

  .cs-body h3 {
    font-size: 18px;
  }

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

  .craft-visual {
    height: 420px;
  }

  .cv-main {
    height: 340px;
  }

  .cv-sub {
    height: 180px;
  }

  .cv-stat {
    padding: 16px 20px;
    top: 20px;
    right: 12px;
  }

  .cvs-num {
    font-size: 32px;
  }

  .cf-item {
    padding: 16px;
  }

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

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
  }

  .g1,
  .g4 {
    grid-column: span 1;
  }

  .section-head.between {
    flex-direction: column;
    align-items: flex-start;
  }

  .loc-body {
    padding: 28px 24px;
  }

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

  .foot-bar .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .brand-strip .container {
    justify-content: center;
    text-align: center;
  }

  .bs-items {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 14px;
  }

  .tile-body {
    padding: 22px;
  }

  .step {
    padding: 32px 24px;
  }

  .testi {
    padding: 32px 24px;
  }

  .loc-img {
    height: 200px;
  }

  .bc-inner p {
    font-size: 16px;
  }
}