/* ============================================================================
   SHAMRON BUILDERS — STYLESHEET v2
   Editorial luxury · cinematic motion · 2026
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Jost:wght@200;300;400;500;600;700&display=swap');

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

:root {
  /* Palette */
  --tan: #C4A96A;
  --tan-lt: #D9C08E;
  --tan-dk: #A8904F;
  --tan-pale: #F0E6CC;
  --navy: #1A2D52;
  --navy-dk: #0F1C38;
  --navy-md: #243760;
  --cream: #FAF6EE;
  --white: #FFFFFF;
  --muted: #7A6E58;
  --border: rgba(26, 45, 82, 0.12);

  /* Motion tokens */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxury: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-elegant: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-quick: 0.3s;
  --dur-base: 0.6s;
  --dur-slow: 1s;
  --dur-epic: 1.6s;

  /* Spacing rhythm */
  --gutter: 72px;
  --gutter-tight: 24px;

  /* Image grading — sharper, no sepia */
  --img-grade: brightness(0.92) contrast(1.05) saturate(0.95);
  --img-grade-dark: brightness(0.55) contrast(1.1) saturate(0.95);

  /* Grain texture */
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--tan);
  color: var(--navy);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none; /* custom cursor takes over */
}
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; } /* mobile reverts */
  .cursor, .cursor-trail { display: none !important; }
}

/* ============================================================================
   PAGE TRANSITION CURTAIN
   ============================================================================ */
.curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  pointer-events: none;
  display: flex;
}
.curtain span {
  display: block;
  flex: 1;
  height: 100%;
  min-height: 100%;
  background: var(--navy-dk);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s var(--ease-luxury);
  will-change: transform;
}
.curtain.in span { transform: scaleY(1); }
.curtain.in span:nth-child(1) { transition-delay: 0s; }
.curtain.in span:nth-child(2) { transition-delay: 0.05s; }
.curtain.in span:nth-child(3) { transition-delay: 0.1s; }
.curtain.in span:nth-child(4) { transition-delay: 0.15s; }
.curtain.in span:nth-child(5) { transition-delay: 0.2s; }
.curtain.in span:nth-child(6) { transition-delay: 0.25s; }
.curtain.out span { transform-origin: bottom; }
.curtain.out span:nth-child(6) { transition-delay: 0s; }
.curtain.out span:nth-child(5) { transition-delay: 0.05s; }
.curtain.out span:nth-child(4) { transition-delay: 0.1s; }
.curtain.out span:nth-child(3) { transition-delay: 0.15s; }
.curtain.out span:nth-child(2) { transition-delay: 0.2s; }
.curtain.out span:nth-child(1) { transition-delay: 0.25s; }

/* Curtain monogram - shows briefly during transition */
.curtain-mark {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--tan-lt);
  opacity: 0;
  z-index: 9001;
  pointer-events: none;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}
.curtain.in ~ .curtain-mark { opacity: 0.9; transition-delay: 1.0s; }

/* ============================================================================
   CUSTOM CURSOR
   ============================================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--navy);
  border-radius: 50%;
  pointer-events: none;
  z-index: 8000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              background 0.3s ease,
              transform 0.08s linear;
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 56px; height: 56px;
  background: var(--tan-lt);
  mix-blend-mode: normal;
}
.cursor.view {
  width: 80px; height: 80px;
  background: var(--navy);
}
.cursor.view::after {
  content: 'View';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tan-lt);
}

/* ============================================================================
   SCROLL PROGRESS
   ============================================================================ */
.scroll-prog {
  position: fixed;
  top: 0; left: 0;
  height: 1.5px;
  width: 0%;
  background: var(--tan-dk);
  z-index: 700;
  transition: width 0.05s linear;
}

/* ============================================================================
   SPLASH (faster, more cinematic — gold background)
   ============================================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(150deg, #E8B547 0%, #D9A03C 50%, #C99632 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s var(--ease-luxury),
              visibility 0.9s var(--ease-luxury);
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; }
.splash-gif {
  width: min(320px, 65vw);
  opacity: 0;
  animation: splashFadeIn 0.8s var(--ease-out-expo) 0.1s forwards;
}
.splash-line {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, var(--navy), transparent);
  animation: lineGrow 1s var(--ease-luxury) 0.7s forwards;
}
.splash-words {
  overflow: hidden;
  height: 0;
  animation: wordsReveal 0.5s ease 1.5s forwards;
}
.splash-words span {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--navy-dk);
  font-weight: 600;
  opacity: 1;
  transform: translateY(16px);
  animation: wordsUp 0.5s ease 1.65s forwards;
}
@keyframes splashFadeIn { to { opacity: 1; } }
@keyframes lineGrow { to { height: 56px; } }
@keyframes wordsReveal { to { height: 32px; } }
@keyframes wordsUp { to { transform: translateY(0); } }

/* Mobile splash text — prevent clipping and fix centering */
@media (max-width: 600px) {
  .splash-words {
    animation: wordsRevealMobile 0.5s ease 1.5s forwards;
  }
  .splash-words span {
    font-size: 11px;
    letter-spacing: 5px;
    text-indent: 5px; /* offsets the trailing letter-spacing to re-center */
    text-align: center;
    padding-bottom: 4px;
  }
  @keyframes wordsRevealMobile { to { height: 28px; } }
}

/* ============================================================================
   PAGE WRAPPER + GRAIN
   ============================================================================ */
.sb {
  position: relative;
  background: var(--tan);
  color: var(--navy);
}
.sb::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-image: var(--grain);
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ============================================================================
   ANNOUNCE BAR
   ============================================================================ */
.ann {
  position: relative;
  z-index: 100;
  background: var(--navy);
  color: var(--tan-lt);
  text-align: center;
  padding: 9px 48px;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
}
.ann-x {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--tan-lt);
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ann-x:hover { opacity: 1; }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: all 0.5s var(--ease-luxury);
  background: var(--tan);
  border-bottom: 1px solid rgba(26, 45, 82, 0.08);
}
.nav.up {
  background: rgba(196, 169, 106, 0.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(26, 45, 82, 0.08), 0 8px 32px rgba(26, 45, 82, 0.06);
  padding: 12px var(--gutter);
}
.nav-logo {
  height: 110px;
  object-fit: contain;
  transition: height 0.4s var(--ease-elegant);
}
.nav.up .nav-logo { height: 68px; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--navy);
  transition: width 0.5s var(--ease-luxury);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { opacity: 0.7; }

.nav-btn {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--navy);
  color: var(--tan-lt);
  border: none;
  padding: 11px 28px;
  cursor: pointer;
  transition: all 0.35s var(--ease-elegant);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-btn:hover {
  background: var(--navy-dk);
  transform: translateY(-1px);
}

.nav-mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s;
}

.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 510;
  background: rgba(10, 18, 36, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 120px 32px 40px;
  flex-direction: column;
  gap: 28px;
}
.mob-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--tan-lt);
  text-decoration: none;
  opacity: 0.9;
}
/* Close X for mobile menu */
.mob-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--tan-lt);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  z-index: 1;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-primary {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--navy);
  color: var(--tan-lt);
  border: none;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  will-change: transform;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-md);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-luxury);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span,
.btn-primary-label { position: relative; z-index: 1; }
.btn-primary.magnetic { transition: transform 0.4s var(--ease-out-expo); }

.btn-ghost {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(26, 45, 82, 0.35);
  padding: 13px 28px;
  cursor: pointer;
  transition: all 0.35s var(--ease-elegant);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(26, 45, 82, 0.05);
}
.btn-ghost.light {
  color: var(--tan-lt);
  border-color: rgba(196, 169, 106, 0.35);
}
.btn-ghost.light:hover {
  border-color: var(--tan-lt);
  background: rgba(196, 169, 106, 0.05);
}

/* ============================================================================
   HERO (new immersive layout)
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 64px 80px var(--gutter);
  background: var(--tan);
}
.hero-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--navy), transparent);
  opacity: 0.2;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 0.9s var(--ease-out-expo) 0.5s forwards;
}
.hero-eyebrow-rule {
  width: 40px;
  height: 1px;
  background: var(--tan-dk);
}
.hero-eyebrow span {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy-md);
  font-weight: 600;
  opacity: 0.7;
}

/* Hero headline: each word reveals on its own */
.hero-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--navy);
}
.hero-h em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan-dk);
}
.hero-h .word {
  display: block;        /* block so each sits on its own line cleanly */
  overflow: hidden;      /* THIS is the clipping mask — without it there's no reveal */
  line-height: 1.1;
  padding-bottom: 0.05em; /* stops descenders getting clipped */
}
.hero-h .word > span {
  display: block;
  transform: translateY(110%);
  animation: wordUp 1.1s var(--ease-out-expo) forwards;
  animation-fill-mode: both;
  will-change: transform;
}
/* stagger each line — delays start after splash (2.2s) + fade out (0.9s) */
.hero-h .word:nth-child(1) > span { animation-delay: 3.0s; }
.hero-h .word:nth-child(2) > span { animation-delay: 3.2s; }
.hero-h .word:nth-child(3) > span { animation-delay: 3.4s; }
.hero-h .word:nth-child(4) > span { animation-delay: 3.6s; }
.hero-h .word:nth-child(5) > span { animation-delay: 3.8s; }
@keyframes wordUp { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 32px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 400px;
  font-weight: 300;
  opacity: 0;
  animation: riseIn 1s var(--ease-out-expo) 4.6s forwards;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1s var(--ease-out-expo) 4.9s forwards;
}
.hero-num {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  font-family: 'EB Garamond', serif;
  font-size: 120px;
  font-weight: 400;
  color: rgba(26, 45, 82, 0.06);
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.6s forwards;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--navy-dk);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade);
  transform: scale(1.08);
  animation: heroReveal 1.8s var(--ease-out-expo) 0.2s forwards;
  will-change: transform;
}
@keyframes heroReveal { to { transform: scale(1); } }

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--tan) 0%, transparent 30%),
    linear-gradient(to top, rgba(26, 45, 82, 0.4) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero-tag {
  position: absolute;
  bottom: 40px;
  right: 40px;
  text-align: right;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.hero-tag p {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.7);
  font-weight: 500;
}
.hero-vert-label {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  z-index: 2;
  font-size: 8px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.4);
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 1s ease 1.7s forwards;
}

/* Parallax via JS — we just set the var */
.hero-img.parallax {
  transform: translateY(var(--parallax-y, 0)) scale(1);
  transition: transform 0.1s linear;
  animation: none;
}

/* Hero video (YouTube embed scaled to cover) */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy-dk);
}
.hero-video-wrap .hero-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.8s ease;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  /* Oversize so a 16:9 video fills a portrait-ish container like object-fit:cover */
  width: 177.78vh;   /* 16/9 * 100vh */
  min-width: 100%;
  height: 56.25vw;   /* 9/16 * 100vw */
  min-height: 100%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
  pointer-events: none;
  filter: var(--img-grade);
}
.hero-video.parallax {
  transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
}

/* ============================================================================
   STATS STRIP (count-up animated)
   ============================================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--tan-pale);
  border-bottom: 1px solid rgba(26, 45, 82, 0.08);
}
.stat {
  padding: 52px 28px;
  text-align: center;
  border-right: 1px solid rgba(26, 45, 82, 0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-elegant);
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(196, 169, 106, 0.2); }
.stat-ghost {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 110px;
  font-weight: 900;
  color: rgba(26, 45, 82, 0.04);
  pointer-events: none;
  white-space: nowrap;
  transition: color 0.5s;
}
.stat:hover .stat-ghost { color: rgba(26, 45, 82, 0.08); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  position: relative;
}
.stat-num sup {
  font-size: 24px;
  font-weight: 400;
  vertical-align: top;
  margin-left: 2px;
}
.stat-label {
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.sec {
  padding: 120px var(--gutter);
}
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sec-eyebrow.center {
  justify-content: center;
}
.sec-eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--tan-dk);
}
.sec-eyebrow span {
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  opacity: 0.55;
}
.sec-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.2vw, 66px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--navy);
}
.sec-h em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan-dk);
}
.sec-h.light { color: var(--tan-lt); }
.sec-h.light em { color: var(--tan); }

/* ============================================================================
   SERVICE CARDS
   ============================================================================ */
.svc-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.svc-card {
  background: var(--cream);
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s var(--ease-luxury),
              box-shadow 0.6s var(--ease-luxury),
              background 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--tan-dk);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-luxury);
}
.svc-card:hover {
  background: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(26, 45, 82, 0.1);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: 'Playfair Display', serif;
  font-size: 92px;
  font-weight: 900;
  color: rgba(26, 45, 82, 0.04);
  line-height: 1;
  position: absolute;
  top: 8px;
  right: 24px;
  pointer-events: none;
  transition: color 0.4s ease;
}
.svc-card:hover .svc-num { color: rgba(196, 169, 106, 0.18); }
.svc-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(26, 45, 82, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: all 0.4s var(--ease-elegant);
}
.svc-card:hover .svc-icon {
  border-color: var(--navy);
  background: var(--navy);
}
.svc-card:hover .svc-icon svg { stroke: var(--tan-lt); }
.svc-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
}
.svc-desc {
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}
.svc-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
}
.svc-cta svg {
  transition: transform 0.4s var(--ease-out-expo);
}
.svc-card:hover .svc-cta svg { transform: translateX(6px); }

/* ============================================================================
   PORTFOLIO TILES
   ============================================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 420px 280px;
  gap: 3px;
}
.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-dk);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-grade-dark);
  transition: transform 0.9s var(--ease-luxury),
              filter 0.6s var(--ease-elegant);
  will-change: transform;
}
.tile:hover img {
  transform: scale(1.07);
  filter: brightness(0.6) contrast(1.1) saturate(1);
}
.tile-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 32px 28px;
  background: linear-gradient(to top, rgba(10, 18, 36, 0.92) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out-expo);
}
.tile:hover .tile-meta { transform: translateY(0); }
.tile-cat {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tan-lt);
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.85;
}
.tile-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--cream);
  font-weight: 500;
}

/* ============================================================================
   PROCESS STEPS (horizontal flow with progress line)
   ============================================================================ */
.process {
  position: relative;
}
.process-line {
  position: absolute;
  top: 31px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(26, 45, 82, 0.25) 8%,
    rgba(26, 45, 82, 0.25) 92%,
    transparent 100%);
}
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.step-num {
  width: 62px;
  height: 62px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tan-pale);
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0.75;
}
.step-num span {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.4s;
}
.step:hover .step-num,
.step-num:hover {
  background: var(--navy);
  opacity: 1;
  transform: scale(1.1) rotate(-5deg);
}
.step:hover .step-num span,
.step-num:hover span { color: var(--tan-lt); }
.step-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}
.step-desc {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
}

/* ============================================================================
   TESTIMONIAL
   ============================================================================ */
.testi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--navy-dk);
  position: relative;
  overflow: hidden;
}
.testi-img {
  position: relative;
  overflow: hidden;
}
.testi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.05);
}
.testi-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, var(--navy-dk));
}
.testi-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 56px;
  position: relative;
}
.testi-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 160px;
  font-weight: 900;
  line-height: 0.5;
  color: var(--tan);
  opacity: 0.2;
  margin-bottom: 28px;
  user-select: none;
}
.testi-quote {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 40px;
  font-weight: 400;
  min-height: 8em;
  transition: opacity 0.4s ease;
}
.testi-who {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.testi-dash {
  width: 24px;
  height: 1.5px;
  background: var(--navy-dk);
  flex-shrink: 0;
  margin-top: 9px;
}
.testi-name {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tan-lt);
  margin-bottom: 4px;
}
.testi-loc {
  font-size: 11px;
  color: rgba(196, 169, 106, 0.5);
  font-weight: 300;
  font-family: 'EB Garamond', serif;
  font-style: italic;
}
.testi-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}
.testi-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(196, 169, 106, 0.2);
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  border: none;
  padding: 0;
}
.testi-dot.on {
  width: 28px;
  background: var(--navy-dk);
}

/* ============================================================================
   MARQUEE
   ============================================================================ */
.marquee-wrap {
  background: var(--navy);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(196, 169, 106, 0.15);
  border-bottom: 1px solid rgba(196, 169, 106, 0.15);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--tan-lt);
  padding: 0 32px;
  opacity: 0.8;
}
.marquee-track span.dot {
  font-style: normal;
  color: var(--tan-dk);
  opacity: 0.5;
  padding: 0 8px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================================
   CTA BAND
   ============================================================================ */
.cta-band {
  position: relative;
  padding: 140px var(--gutter);
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(196, 169, 106, 0.08) 0%, transparent 60%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1800&q=80') center/cover;
  filter: brightness(0.12) contrast(1.1);
  transform: scale(1.05);
  transition: transform 8s linear;
}
.cta-band:hover .cta-bg { transform: scale(1.12); }
.cta-z { position: relative; z-index: 1; }
.cta-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.cta-overline-rule {
  width: 60px;
  height: 1px;
  background: var(--navy-dk);
  opacity: 0.5;
}
.cta-overline span {
  font-size: 8px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--tan-lt);
  font-weight: 600;
  opacity: 0.7;
}
.cta-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 24px;
}
.cta-h em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan-lt);
}
.cta-sub {
  font-size: 13px;
  color: rgba(250, 246, 238, 0.55);
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.9;
  font-weight: 300;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: #08111F;
  padding: 80px var(--gutter) 36px;
  border-top: 2px solid var(--tan);
  position: relative;
}
.foot-logo {
  height: 88px;
  object-fit: contain;
  /* Lifts the dark logo so it reads on the dark footer without going stark white */
  filter: brightness(0) invert(0.75) sepia(0.3) saturate(1.5) hue-rotate(5deg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
/* Footer brand text (replaces logo) */
.foot-brand {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--tan-lt);
  margin-bottom: 4px;
}
.foot-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan);
}

.foot-tagline {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(196, 169, 106, 0.55);
  font-weight: 300;
  max-width: 260px;
  margin: 16px 0 28px;
}
.foot-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.soc {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(196, 169, 106, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(196, 169, 106, 0.45);
  font-size: 9px;
  font-weight: 700;
  transition: all 0.4s var(--ease-elegant);
}
.soc:hover {
  border-color: var(--tan);
  color: var(--tan);
  background: rgba(196, 169, 106, 0.07);
  transform: translateY(-2px);
}
.foot-col h4 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 700;
  margin-bottom: 18px;
  opacity: 0.85;
}
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-col ul li a {
  font-size: 14px;
  color: rgba(196, 169, 106, 0.6);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}
.foot-col ul li a:hover { color: var(--tan-lt); }
.foot-btm {
  border-top: 1px solid rgba(196, 169, 106, 0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.foot-copy {
  font-size: 9px;
  color: rgba(196, 169, 106, 0.3);
  letter-spacing: 1.5px;
}
.nvbia-badge {
  height: 80px;
  object-fit: contain;
  opacity: 1;
  filter: brightness(1.3) contrast(1.1);
}

/* Big footer brand word (editorial) */
.foot-mark {
  position: absolute;
  bottom: -30px;
  right: var(--gutter);
  font-family: 'Playfair Display', serif;
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 900;
  font-style: italic;
  color: rgba(196, 169, 106, 0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.02em;
}

/* Sticky quote button */
.sticky-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 600;
  opacity: 0;
  animation: riseIn 0.6s ease 2.4s forwards;
}
.sticky {
  font-family: 'Jost', sans-serif;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--navy);
  color: var(--tan-lt);
  border: none;
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(26, 45, 82, 0.28);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out-expo);
  display: block;
}
.sticky:hover {
  background: var(--navy-md);
  box-shadow: 0 12px 40px rgba(26, 45, 82, 0.35);
}

/* ============================================================================
   PAGE HEADER (sub-pages)
   ============================================================================ */
.page-header {
  background: var(--navy-dk);
  padding: 140px var(--gutter) 100px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.4;
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  opacity: 0;
  animation: riseIn 0.8s ease 0.3s forwards;
}
.page-header-eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--navy-dk);
  opacity: 0.5;
}
.page-header-eyebrow span {
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--tan-lt);
  font-weight: 600;
  opacity: 0.6;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 5.5vw, 86px);
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  opacity: 0;
  animation: riseIn 1s ease 0.5s forwards;
}
.page-header h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan-lt);
}
.page-header-sub {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(250, 246, 238, 0.55);
  max-width: 540px;
  font-weight: 300;
  opacity: 0;
  animation: riseIn 1s ease 0.7s forwards;
}
.ph-bg-num {
  position: absolute;
  bottom: -24px;
  right: var(--gutter);
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 14vw, 200px);
  font-style: italic;
  font-weight: 900;
  color: rgba(196, 169, 106, 0.07);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ============================================================================
   ANIMATIONS — reveal on scroll
   ============================================================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}
.reveal.on {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.34s; }
.d4 { transition-delay: 0.46s; }
.d5 { transition-delay: 0.58s; }

/* Reveal: stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}
.reveal-stagger.on > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.on > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.on > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.on > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.on > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.on > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav, .nav.up { padding: 14px 20px; }
  .nav-logo { height: 60px; }
  .nav.up .nav-logo { height: 44px; }
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 60px 24px; min-height: 70vh; }
  .hero-right { min-height: 50vh; }
  .hero-video {
    width: 100%;
    height: 100%;
    min-width: 177.78vh;
    min-height: 56.25vw;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid rgba(26, 45, 82, 0.08); }
  .sec { padding: 72px 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-line { display: none; }
  .testi { grid-template-columns: 1fr; }
  .testi-img { display: none; }
  .testi-body { padding: 56px 24px; }
  .cta-band { padding: 80px 24px; }
  .footer { padding: 60px 24px 36px; }
  .ph-bg-num { display: none; }
}

/* Featured builds project cards */
.proj-card {
  transition: transform 0.5s var(--ease-luxury);
}
.proj-card:hover {
  transform: translateY(-6px);
}
.proj-card h3 {
  transition: color 0.3s ease;
}
.proj-card:hover h3 {
  color: var(--tan-dk);
}

/* Hero project card (Penrose) */
.proj-hero {
  display: block;
  position: relative;
}
.proj-hero:hover .proj-hero-img img {
  transform: scale(1.05);
}
.proj-hero-cta {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}
.proj-hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tan);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-luxury);
  z-index: -1;
}
.proj-hero:hover .proj-hero-cta {
  color: var(--navy);
  border-color: var(--tan);
}
.proj-hero:hover .proj-hero-cta::before {
  transform: translateX(0);
}

/* Breathing glow on Coming Soon badges — signals active pipeline */
.soon-badge {
  animation: soonPulse 2.6s ease-in-out infinite;
}
@keyframes soonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 169, 106, 0.0); }
  50% { box-shadow: 0 0 0 4px rgba(196, 169, 106, 0.18); }
}

/* Designed "Coming Soon" tile — no placeholder photo, fully crafted */
.soon-tile {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(196, 169, 106, 0.08) 0%, transparent 55%),
    linear-gradient(155deg, var(--navy-md) 0%, var(--navy-dk) 55%, #07101e 100%);
  border: 1px solid rgba(196, 169, 106, 0.1);
}
.soon-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-family: 'Playfair Display', serif;
  font-size: 150px;
  font-style: italic;
  font-weight: 900;
  color: rgba(196, 169, 106, 0.08);
  line-height: 1;
  pointer-events: none;
  transition: color 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}
.proj-card:hover .soon-ghost {
  color: rgba(196, 169, 106, 0.14);
  transform: translate(-50%, -54%) scale(1.06);
}
/* Subtle architectural blueprint lines */
.soon-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 169, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 169, 106, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============================================================================
   MOBILE SAFETY NET — overrides inline styles on inner pages
   Inline grid/padding can't be caught by class selectors, so we target
   the structural patterns directly with !important at mobile widths.
   ============================================================================ */
@media (max-width: 768px) {
  /* Portfolio category cards (Featured/Commercial/Renovation) — one per row */
  .cat-grid.cat-grid {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
  [style*="height:480px"] {
    height: 280px !important;
  }
  /* Hover overlay is useless on touch — hide it so labels do the work */
  .cat-grid .po {
    display: none !important;
  }

  /* Featured builds hero card — taller ratio on mobile so text fits */
  .proj-hero-img {
    aspect-ratio: 4/3 !important;
  }
  .proj-hero-img h3 {
    font-size: 32px !important;
  }
  .proj-hero-img > div:last-child {
    padding: 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .proj-hero-cta {
    margin-top: 4px;
  }

  /* Any inline 2-col or multi-col grid collapses to single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Fixed-height grid rows must become auto on mobile */
  [style*="grid-template-rows:420px"],
  [style*="grid-template-rows: 420px"] {
    grid-template-rows: auto !important;
  }

  /* Grid row/column spans reset so tiles stack cleanly */
  [style*="grid-row:1/3"],
  [style*="grid-row: 1/3"],
  [style*="grid-column:1/3"],
  [style*="grid-column: 1/3"] {
    grid-row: auto !important;
    grid-column: auto !important;
  }
  /* Portfolio tiles need a min-height when stacked (no aspect ratio) */
  .portfolio-grid .tile { min-height: 260px; }

  /* Gallery grids stay 2-col on mobile (declared AFTER collapse so it wins).
     :not(.cat-grid) so portfolio category cards stay single column. */
  [style*="repeat(3,1fr);gap:3px"]:not(.cat-grid),
  [style*="repeat(3, 1fr);gap:3px"]:not(.cat-grid) {
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
  }

  /* Wide section padding shrinks */
  section[style*="padding:80px 72px"],
  section[style*="padding: 80px 72px"] {
    padding: 56px 24px !important;
  }
  section[style*="padding:112px 72px"] {
    padding: 64px 24px !important;
  }
  div[style*="padding:80px 72px"] {
    padding: 48px 24px !important;
  }

  /* Big inline gaps tighten */
  [style*="gap:80px"], [style*="gap: 80px"] {
    gap: 40px !important;
  }
  [style*="gap:56px"], [style*="gap: 56px"] {
    gap: 32px !important;
  }

  /* Page header padding */
  .page-header { padding: 100px 24px 60px !important; }
  .page-header h1 { font-size: clamp(40px, 11vw, 64px) !important; }

  /* Section headings scale down */
  .sec-h { font-size: clamp(32px, 8vw, 48px); }
  .cta-h { font-size: clamp(36px, 10vw, 56px); }

  /* Marquee text smaller */
  .marquee-track span { font-size: 14px; padding: 0 20px; }

  /* Divider quote scales */
  [style*="font-size:30px"][style*="italic"] { font-size: 20px !important; }
  [style*="font-size:28px"][style*="italic"] { font-size: 19px !important; }

  /* Specs panel padding tighten */
  div[style*="background:var(--navy)"][style*="padding:40px"] {
    padding: 28px 24px !important;
  }

  /* Video section label doesn't overlap */
  #video-wrap [style*="bottom:24px"][style*="left:32px"] {
    left: 20px !important;
    bottom: 16px !important;
  }
}

/* Tablet — 2 columns where desktop has 3-4 */
@media (min-width: 769px) and (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3,1fr)"]:not([style*="gap:3px"]),
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Very small phones */
@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .page-header h1 { font-size: 38px !important; }
  .hero-h { font-size: 44px; }
  .stat-num { font-size: 44px; }
  .nav-logo { height: 50px; }
  .marquee-track span { font-size: 13px; }
}