/* =========================================================================
   PIMPMYCAR, Dark Luxury Automotive
   Warm, premium, a little flirty. Black & charcoal surfaces, gold glow,
   condensed display type + an elegant italic serif for the sexy bits.
   ========================================================================= */

:root {
  --void:    #08070a;
  --deep:    #0d0c10;
  --surface: #141318;
  --panel:   #1b1920;
  --line:    #262329;
  --line2:   #322e36;
  --ink:     #f5f1ea;
  --ink-2:   #ddd6cc;
  --muted:   #9b9691;
  --dim:     #615c58;

  --gold:    #d8a838;
  --gold2:   #b8862a;
  --amber:   #f3bb45;
  --warm:    #ffd37a;
  --rose:    #e08a4c;

  --panel-soft: rgba(20,19,24,.6);
  --logo-box:   #0d0c10;
  --chip-bg:    rgba(20,19,24,.85);
  --card-beam:      rgba(216,168,56,.9);
  --card-beam-core: #f3bb45;

  --hero-overlay:
    linear-gradient(180deg, rgba(8,7,10,.62) 0%, rgba(8,7,10,.66) 45%, rgba(8,7,10,.97) 100%),
    linear-gradient(90deg,  rgba(8,7,10,.6) 0%, rgba(8,7,10,.28) 55%, rgba(8,7,10,0) 100%);
  --hero-stroke: rgba(245,241,234,.42);

  --shadow-glow:    0 0 24px rgba(216,168,56,.35), 0 0 4px rgba(243,187,69,.6);
  --shadow-glow-lg: 0 0 44px rgba(243,187,69,.4), 0 0 12px rgba(216,168,56,.5);
  --shadow-card:    0 22px 60px -22px rgba(0,0,0,.75);
}

/* =========================== LIGHT THEME =============================== */
:root[data-theme="light"] {
  --void:    #f4f1ea;
  --deep:    #ebe7dd;
  --surface: #ffffff;
  --panel:   #ffffff;
  --line:    #e3ddce;
  --line2:   #d4ccba;
  --ink:     #1c1a16;
  --ink-2:   #423d34;
  --muted:   #6c665c;
  --dim:     #9a9388;
  --gold:    #9c6c0d;
  --gold2:   #835a0c;
  --amber:   #b07d15;
  --warm:    #8a5e0c;
  --rose:    #b5491a;
  --panel-soft: rgba(20,18,14,.05);
  --chip-bg:    rgba(255,255,255,.72);
  --card-beam:      rgba(40,36,28,.85);
  --card-beam-core: #201d18;
  --shadow-card: 0 22px 60px -22px rgba(80,70,40,.28);
  /* --hero-overlay / --hero-stroke intentionally NOT overridden:
     the hero is a photo zone and stays dark with white text in both themes. */
}

/* Smooth fade when switching themes (colours only, never transforms).
   Scoped behind .theme-anim, which the toggle JS adds for ~half a second:
   a permanent `body *` transition forced style/transition tracking on every
   element and made scrolling and reveals noticeably laggy. */
html.theme-anim body, html.theme-anim body * {
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, fill .4s ease;
}

/* Light-mode overrides for surfaces whose dark fills live in CSS classes. */
[data-theme="light"] .topbar         { background: rgba(244,241,234,.85); }
[data-theme="light"] .navbar         { background: rgba(244,241,234,.72); }
[data-theme="light"] .navbar.scrolled{ background: rgba(244,241,234,.94); border-bottom-color: rgba(156,108,13,.28); }
[data-theme="light"] .mobile-menu    { background: rgba(244,241,234,.98); }
[data-theme="light"] .panel          { background: linear-gradient(180deg, #ffffff, #f6f2e9); }
[data-theme="light"] .testimonial    { background: linear-gradient(180deg, #ffffff, #f6f2e9); }
[data-theme="light"] .step           { background: linear-gradient(180deg, #ffffff, #f2eee4); }
[data-theme="light"] .btn-ghost      { background: rgba(0,0,0,.03); }
[data-theme="light"] .menu-toggle    { background: rgba(0,0,0,.03); }
[data-theme="light"] .brand-tile     { background: #ffffff; }

/* ---- Text sitting on top of photos stays light in BOTH themes ----
   (photos carry a dark overlay for legibility, so white text always wins) */
.on-photo {
  --ink:   #f6f2ea;
  --ink-2: #e2dccf;
  --muted: #d2cbbd;
  --dim:   #b3ac9e;
  --gold:  #f3bb45;
  --amber: #f3bb45;
  --line2: #3a3640;
  --chip-bg: rgba(20,19,24,.85);
  color: var(--ink);
}
/* Service-card badges/icons sit over the card photo, so keep them dark with
   bright gold in both themes so they stay readable on the image. */
.service-card .media {
  --chip-bg: rgba(20,19,24,.85);
  --gold:    #f3bb45;
  --muted:   #d2cbbd;
}
.gallery-card .overlay {
  --ink:   #f6f2ea;
  --ink-2: #e2dccf;
  --muted: #d2cbbd;
  --gold:  #f3bb45;
  color: var(--ink);
}

/* ------------------------------- studio banner -------------------------- */
.studio-banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21/9;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--void);
}
.studio-banner-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.6) saturate(1.1);
}
.studio-banner-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,7,10,.5), rgba(8,7,10,.95));
}
.studio-banner-body {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
/* On mobile the 21:9 box is too short for the copy, so let it grow to fit. */
@media (max-width: 768px) {
  .studio-banner { aspect-ratio: auto; }
  .studio-banner-img { position: absolute; inset: 0; }
  .studio-banner-body { position: relative; padding: 52px 22px; }
}

/* ------------------------------- base ------------------------------------ */

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--gold); color: var(--void); }

/* Links never fall back to browser blue or underline. */
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { -webkit-user-drag: none; }

/* ----- typographic helpers ----- */
.font-display { font-family: 'Bebas Neue', 'Anton', Impact, sans-serif; letter-spacing: .012em; }
.font-serif   { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-script  { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; }

.text-gold  { color: var(--gold); }
.text-amber { color: var(--amber); }
.text-warm  { color: var(--warm); }

/* elegant italic-serif accent for "sexy" emphasis words inside headlines */
.accent-word {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(243,187,69,.45);
  letter-spacing: 0;
  text-transform: none;
}

.text-glow-text {
  color: var(--gold);
  text-shadow: 0 0 32px rgba(243,187,69,.5), 0 0 8px rgba(216,168,56,.4);
}
.text-glow-soft { text-shadow: 0 0 12px rgba(243,187,69,.35); }

/* ------------------------------- eyebrow / kicker ----------------------- */
/* Replaces the old mono "// CODE" labels, clean, tracked, with a gold tick. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker.center { justify-content: center; }
.kicker.center::after {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.kicker.no-line::before, .kicker.no-line::after { display: none; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* small refined label (the elegant replacement for mono meta text) */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-gold { color: var(--gold); }

/* ------------------------------- background overlays --------------------- */

.grid-bg {
  background-image:
    linear-gradient(rgba(216,168,56,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,168,56,.035) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 120px, black calc(100% - 240px), transparent);
          mask-image: linear-gradient(to bottom, transparent, black 120px, black calc(100% - 240px), transparent);
}
.grid-fine {
  background-image:
    linear-gradient(rgba(216,168,56,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,168,56,.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  /* No blur filter: these orbs span near-half the section, and blurring that
     much surface is GPU-expensive. The gradient is already soft-edged. */
  background: radial-gradient(circle, rgba(243,187,69,.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------- top bar -------------------------------- */

.topbar {
  background: rgba(13,12,16,.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: .03em;
}
.tb-msg { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); min-width: 0; }
.tb-msg .tb-text { color: var(--ink); white-space: nowrap; }
.tb-extra { display: inline-flex; align-items: center; gap: 20px; color: var(--muted); white-space: nowrap; }
.tb-extra .text-gold { font-weight: 600; }
.tb-loc { color: var(--dim); }

/* ------------------------------- navbar --------------------------------- */

.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8,7,10,.62);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.navbar.scrolled {
  background: rgba(8,7,10,.94);
  border-bottom-color: rgba(216,168,56,.22);
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  padding: .35rem 0;
  transition: color .22s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(243,187,69,.7);
  transition: width .28s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 1.7rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #1a1206;
  box-shadow: 0 0 0 1px rgba(243,187,69,.3), 0 8px 28px -8px rgba(216,168,56,.6);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--amber), 0 10px 38px -6px rgba(243,187,69,.75);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.02);
  color: var(--ink);
  border-color: var(--line2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(216,168,56,.07);
}
.btn-outline-gold {
  background: transparent; color: var(--gold);
  border-color: rgba(216,168,56,.55);
}
.btn-outline-gold:hover {
  background: var(--gold); color: #1a1206;
  box-shadow: 0 8px 28px -8px rgba(216,168,56,.6);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.15rem 2.1rem; font-size: 14px; }

/* ------------------------------- chips & tags --------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--line2);
  border-radius: 999px;
}
.chip.is-gold {
  border-color: rgba(216,168,56,.6);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(216,168,56,.22);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ------------------------------- panel ---------------------------------- */

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(27,25,32,.75), rgba(20,19,24,.9));
  border: 1px solid var(--line2);
  border-radius: 18px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.panel:hover {
  border-color: rgba(216,168,56,.55);
  box-shadow: 0 22px 60px -28px rgba(216,168,56,.4);
  transform: translateY(-3px);
}

/* ------------------------------- glass card ----------------------------- */

.tech-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: all .35s;
  display: flex; flex-direction: column;
}
.tech-card:hover {
  border-color: rgba(216,168,56,.5);
  box-shadow: 0 22px 55px -18px rgba(216,168,56,.3);
  transform: translateY(-5px);
}
.tech-card .card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--deep);
}
.tech-card .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.tech-card:hover .card-media img { transform: scale(1.07); }
.tech-card .card-body { padding: 22px; flex: 1; }

/* ------------------------------- inputs --------------------------------- */

.input-tech {
  width: 100%;
  padding: 1rem 1.15rem;
  background: var(--deep);
  border: 1px solid var(--line2);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: all .2s;
}
.input-tech::placeholder { color: var(--dim); }
.input-tech:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(216,168,56,.14);
}
.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .55rem;
}
.input-label .req { color: var(--gold); margin-left: 3px; }

select.input-tech {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* responsive form grid: 2-up on desktop, 1-up on mobile */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.form-grid .col-2 { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------- divider -------------------------------- */

.scan-divider {
  position: relative; height: 1px; overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
}
.scan-divider::after {
  content: ''; position: absolute; top: 0; left: 0; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: scan-line 6s linear infinite;
}
@keyframes scan-line { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

.rule-soft { height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); }
.accent-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  position: relative;
  width: 80px;
}
.accent-rule::before {
  content: ''; position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

/* ------------------------------- pulsing dot ---------------------------- */

.dot-pulse {
  position: relative; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.dot-pulse::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ping-ring 2.4s ease-out infinite;
}
@keyframes ping-ring {
  0% { opacity: 1; transform: scale(.8); }
  100% { opacity: 0; transform: scale(2.6); }
}

/* ------------------------------- marquee -------------------------------- */

.marquee { overflow: hidden; }
.marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------------- hero ----------------------------------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
}
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 70px;
  padding-bottom: 170px;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    var(--hero-overlay),
    url('/assets/img/photos/instagram/corvette-hidden-forest.webp') center/cover no-repeat;
  filter: saturate(.95);
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 18% 25%, rgba(243,187,69,.2), transparent 52%);
  mix-blend-mode: screen;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(243,187,69,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,187,69,.045) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 28%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, black 28%, transparent 78%);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Bebas Neue', 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: .015em;
  font-size: clamp(3.2rem, 10vw, 9rem);
}
.hero h1 .accent-word { display: inline-block; line-height: .95; }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--hero-stroke);
}

/* hero trust strip at the bottom (replaces telemetry) */
.hero-strip {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  border-top: 1px solid var(--line);
  background: rgba(8,7,10,.78);
  backdrop-filter: blur(10px);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-row > * {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.trust-row > *:first-child { border-left: 0; }
.trust-row .t-val { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; color: var(--ink); line-height: 1; letter-spacing: .02em; }
.trust-row .t-val .text-gold { color: var(--gold); }
.trust-row .t-lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------- section heading ------------------------ */

.h-display {
  font-family: 'Bebas Neue', 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .93;
}

/* ------------------------------- service card --------------------------- */

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all .35s ease;
  isolation: isolate;
}
.service-card:hover {
  border-color: rgba(216,168,56,.5);
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -24px rgba(216,168,56,.4);
}
.service-card .media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
/* direct child only: the icon-circle PNG inside .icon must not inherit this */
.service-card .media > img, .service-card .media > video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.service-card:hover .media > img, .service-card:hover .media > video { transform: scale(1.08); }
.service-card .media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8,7,10,.88));
}
.service-card .media .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.service-card .media .icon {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(216,168,56,.6);
  color: var(--gold);
  background: rgba(8,7,10,.6);
  backdrop-filter: blur(8px);
}
.service-card .body { padding: 24px 24px 26px; }
.service-card .body .num { font-size: 12px; letter-spacing: .14em; color: var(--gold); display: block; margin-bottom: 10px; font-weight: 600; }
.service-card .body h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
  font-size: 30px; line-height: 1; margin: 0 0 12px;
}
.service-card .body p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.service-card .body .arrow-row {
  margin-top: 20px; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.service-card:hover .body .arrow-row { color: var(--gold); }

/* ------------------------------- gallery card --------------------------- */

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--deep);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  transition: all .35s ease;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease, filter .8s ease;
  filter: saturate(.9) contrast(1.04);
}
.gallery-card:hover img { transform: scale(1.07); filter: saturate(1.05) contrast(1.08); }
.gallery-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8,7,10,.92));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.gallery-card .meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; font-weight: 600;
}
.gallery-card .meta-row .id { color: var(--gold); }
.gallery-card h4 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400; text-transform: uppercase;
  font-size: 27px; line-height: 1; margin: 10px 0 0; letter-spacing: .015em;
}
.gallery-card:hover { border-color: rgba(216,168,56,.5); box-shadow: 0 0 34px rgba(216,168,56,.22); }

/* ------------------------------- brand bar ------------------------------ */

.brand-tile {
  position: relative;
  background: #f6f3ea;
  border-radius: 14px;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
  transition: all .3s;
  filter: grayscale(1);
  opacity: .8;
}
.brand-tile:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); box-shadow: 0 0 28px rgba(216,168,56,.35); }
.brand-logo { max-width: 100%; max-height: clamp(30px, 4.4vw, 50px); width: auto; height: auto; object-fit: contain; display: block; }

/* ------------------------------- stat grid ------------------------------ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.stat-grid > .stat {
  background: var(--deep);
  padding: 30px 24px;
  position: relative;
}
.stat .value {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 26px rgba(243,187,69,.35);
}
.stat .label { margin-top: 8px; font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------- testimonial ---------------------------- */

.testimonial {
  background: linear-gradient(180deg, rgba(27,25,32,.75), rgba(20,19,24,.9));
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  height: 100%;
}
.testimonial .quote-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 70px; line-height: .6; color: rgba(216,168,56,.35);
  display: block; height: 30px;
}
.testimonial .stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; }
.testimonial blockquote {
  margin: 14px 0 20px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
}
.testimonial .who { border-top: 1px solid var(--line); padding-top: 16px; }
.testimonial .who .name { color: var(--ink); font-weight: 600; font-size: 14px; }
.testimonial .who .car  { color: var(--gold); display: block; margin-top: 3px; font-size: 13px; }

/* ------------------------------- mobile menu ---------------------------- */

.menu-toggle {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
}
.menu-toggle:hover { border-color: var(--gold); color: var(--gold); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(8,7,10,.98);
  backdrop-filter: blur(20px);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu .item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 40px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink);
  transition: all .22s;
}
.mobile-menu .item .idx { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: var(--gold); }
.mobile-menu .item:hover, .mobile-menu .item.active { color: var(--gold); background: rgba(216,168,56,.05); padding-left: 36px; }

/* ------------------------------- footer --------------------------------- */

.footer { background: var(--deep); border-top: 1px solid var(--line); }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  padding: 7px 0;
  transition: color .2s, transform .2s;
}
.footer-link:hover { color: var(--gold); transform: translateX(5px); }
.footer-wordmark {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(4.5rem, 18vw, 18rem);
  line-height: .82;
  letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(245,241,234,.07) 0%, rgba(216,168,56,.2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
  text-align: center;
  text-transform: uppercase;
}

/* ------------------------------- logo glow ------------------------------ */

/* Plain logo frame, no glow, no animation. */
.logo-glow {
  position: relative;
  border-radius: 12px;
}

/* ------------------------------- process steps -------------------------- */

.step {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,19,24,.7), rgba(8,7,10,.96));
  height: 100%;
  transition: border-color .3s, transform .3s;
}
.step:hover { border-color: rgba(216,168,56,.45); transform: translateY(-4px); }

/* ------------------------------- animated card glow border -------------- */
/* A soft gold beam that travels around every card. Subtle at rest,
   brighter on hover. Custom property lets us animate the conic angle. */
@property --card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.service-card, .gallery-card, .panel, .testimonial, .step, .tech-card { position: relative; }
.service-card::before,
.gallery-card::before,
.panel::before,
.testimonial::before,
.step::before,
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--card-angle),
      transparent 0deg,
      transparent 58deg,
      var(--card-beam) 82deg,
      var(--card-beam-core) 94deg,
      var(--card-beam) 106deg,
      transparent 132deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .4;
  z-index: 3;
  pointer-events: none;
  /* Paused at rest: dozens of always-spinning masked gradients were repainting
     every frame and janking scroll. The beam only spins while hovered. */
  animation: cardSpin 7s linear infinite;
  animation-play-state: paused;
}
@keyframes cardSpin { to { --card-angle: 360deg; } }
.service-card:hover::before,
.gallery-card:hover::before,
.panel:hover::before,
.testimonial:hover::before,
.step:hover::before,
.tech-card:hover::before { opacity: .9; animation-play-state: running; }
.step .step-no {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 60px; line-height: .8; color: var(--gold);
  display: block; text-shadow: 0 0 28px rgba(243,187,69,.4);
}
.step h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 28px; text-transform: uppercase; margin: 16px 0 10px; line-height: 1; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ------------------------------- scroll reveal -------------------------- */

[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-right"].aos-visible { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(28px); }
[data-aos="fade-left"].aos-visible { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(.94); }
[data-aos="zoom-in"].aos-visible { transform: scale(1); }

/* ------------------------------- container ------------------------------ */

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 96px);
  padding-right: clamp(20px, 5vw, 96px);
}

/* ------------------------------- accordion ------------------------------ */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.acc-item summary {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 24px; text-transform: uppercase; letter-spacing: .015em;
  list-style: none; color: var(--ink);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: '+'; color: var(--gold); font-size: 26px; transition: transform .25s; font-weight: 300;
}
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item .acc-body { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.acc-item:hover summary { color: var(--gold); }

/* FAQ flavour of the accordion: readable, sentence-case questions */
.acc.is-faq summary {
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
}
@media (max-width: 640px) { .acc.is-faq summary { font-size: 15px; } }
.acc-body { overflow-wrap: break-word; }
.acc-body p { margin: 0 0 10px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body a { color: var(--gold); font-weight: 600; }
.acc-body ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 7px; }
.acc-body li { color: var(--muted); }
.acc-body strong { color: var(--ink); font-weight: 600; }
.faq-cols { display: grid; gap: 22px; margin-top: 4px; }
@media (min-width: 560px) { .faq-cols { grid-template-columns: 1fr 1fr; } }
.faq-col-h { color: var(--ink); font-weight: 700; margin: 0 0 6px; }
.faq-ticks { list-style: none; padding-left: 0 !important; }
.faq-ticks li { position: relative; padding-left: 26px; color: var(--ink); }
.faq-ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ------------------------------- inline text link ----------------------- */
/* gold, NO underline, replaces the old border-bottom "underline" links */
.tlink { color: var(--gold); font-weight: 600; transition: color .2s; }
.tlink:hover { color: var(--amber); }

/* ------------------------------- helpers -------------------------------- */

.no-scroll { overflow: hidden; height: 100vh; }
.divider-soft {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.divider-soft::before, .divider-soft::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
}

/* form status message */
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-top: 4px; }
.form-status.show { display: block; }
.form-status.ok  { background: rgba(216,168,56,.1); border: 1px solid rgba(216,168,56,.5); color: var(--warm); }
.form-status.err { background: rgba(224,138,76,.1); border: 1px solid rgba(224,138,76,.5); color: var(--rose); }

/* ------------------------------- 404 ------------------------------------ */

.error-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(7rem, 26vw, 20rem);
  line-height: .8;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(216,168,56,.6);
  text-shadow: 0 0 60px rgba(243,187,69,.2);
}

/* ------------------------------- floating WhatsApp ---------------------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transition: transform .2s ease;
  animation: waPulse 2.8s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-label {
  position: absolute;
  right: 72px;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line2);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.wa-float:hover .wa-label { opacity: 1; transform: translateX(0); }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 640px) {
  .wa-float { width: 54px; height: 54px; font-size: 28px; right: 16px; bottom: 16px; }
  .wa-label { display: none; }
}

/* ------------------------------- theme toggle --------------------------- */

.theme-toggle {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease, background-color .4s ease, color .4s ease;
}
.theme-toggle:hover { transform: scale(1.08); border-color: var(--gold); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark  { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: inline; }
@media (max-width: 640px) {
  .theme-toggle { width: 48px; height: 48px; font-size: 18px; left: 16px; bottom: 16px; }
}

/* ------------------------------- prefers-reduced-motion ----------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------- responsive ----------------------------- */

@media (max-width: 1024px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row > *:nth-child(3) { border-left: 0; }
  .trust-row > *:nth-child(odd) { border-left: 0; }
  .trust-row > * { border-top: 1px solid var(--line); }
  .trust-row > *:nth-child(1), .trust-row > *:nth-child(2) { border-top: 0; }

  /* Hero flows as a normal block so the trust strip stacks below the
     buttons instead of overlapping (was hiding the CTAs on mobile). */
  .hero { display: block; min-height: auto; }
  .hero-inner { justify-content: flex-start; padding-top: 44px; padding-bottom: 40px; }
  .hero-strip { position: static; }
}

@media (max-width: 640px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .btn { padding: .9rem 1.4rem; font-size: 12px; }
  .topbar-inner { justify-content: center; }
  .tb-extra { display: none; }
  .tb-msg .tb-text { font-size: 11px; letter-spacing: .02em; }
}

/* ----------------------------- instagram feed --------------------------- */

.ig-feed { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--deep); }
.ig-feed-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.ig-handle {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1;
  color: var(--ink); transition: color .2s;
}
.ig-handle:hover { color: var(--gold); }
.ig-handle i { color: var(--gold); font-size: .9em; }

.ig-arrows { display: none; gap: 10px; }
.ig-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line2); background: var(--panel-soft);
  color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center; transition: all .2s;
}
.ig-arrow:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.ig-arrow:disabled { opacity: .35; cursor: default; transform: none; }

.ig-strip {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px clamp(20px, 5vw, 96px) 16px;
  scroll-padding-left: clamp(20px, 5vw, 96px);
}
.ig-strip::-webkit-scrollbar { display: none; }

.ig-card {
  position: relative; flex: 0 0 auto;
  width: clamp(150px, 17vw, 210px); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; display: block;
  background: var(--deep); border: 1px solid var(--line2);
  scroll-snap-align: start; transition: border-color .25s, transform .25s;
}
.ig-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.ig-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  color: #fff; font-size: 13px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.65));
}
.ig-veil {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  color: #fff; font-size: 32px; opacity: 0; background: rgba(0,0,0,0);
  transition: opacity .3s, background .3s;
}
.ig-card:hover .ig-veil { opacity: 1; background: rgba(0,0,0,.34); }

.ig-card-more {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, rgba(216,168,56,.16), rgba(216,168,56,.04));
}
.ig-card-more span {
  font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ink); line-height: 1.7;
}
.ig-card-more i { font-size: 30px; color: var(--gold); }

@media (min-width: 760px) { .ig-arrows { display: flex; } }
@media (max-width: 640px) {
  .ig-feed { padding-top: 48px; }
  .ig-card { width: 44vw; max-width: 200px; border-radius: 14px; }
}

/* ----------------------------- nav dropdown ----------------------------- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-caret { font-size: 9px; margin-left: 5px; opacity: .65; transition: transform .25s; }
.nav-dd:hover .nav-dd-caret, .nav-dd:focus-within .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(14px);
  min-width: 264px; padding: 10px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: 0 26px 60px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 300;
}
/* invisible bridge so the menu survives the cursor crossing the gap */
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}
.nav-dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; white-space: nowrap;
  font-size: 14px; color: var(--ink-2); transition: background .18s, color .18s;
}
.nav-dd-item i { color: var(--gold); width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-dd-item:hover { background: var(--panel-soft); color: var(--ink); }

/* mobile services sub-nav */
.m-subnav {
  display: flex; flex-direction: column; gap: 2px;
  margin: 4px 28px 16px; padding-left: 14px;
  border-left: 2px solid rgba(216,168,56,.4);   /* visual cue: grouped sub-items */
}
.m-sublink {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; color: var(--ink-2); transition: background .18s, color .18s;
}
.m-sublink i { color: var(--gold); width: 18px; text-align: center; font-size: 13px; flex-shrink: 0; }
.m-sublink:hover { background: var(--panel-soft); color: var(--ink); }

/* ----------------------------- performance ------------------------------ */

/* Don't paint heavy media cards until they're near the viewport. These all
   have their box size fixed by grid + aspect-ratio, so skipping their
   contents never shifts layout. */
.gallery-card, .ig-card, .brand-tile { content-visibility: auto; }

/* The footer is heavy (columns + wordmark) and always below the fold. */
footer.footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .wa-float { animation: none; }
  .service-card::before, .gallery-card::before, .panel::before,
  .testimonial::before, .step::before, .tech-card::before { animation: none; }
}

/* Floating stat badge: overhangs the image card on desktop; on mobile it
   flows below the card so it never covers the caption text. */
.stat-float { position: absolute; bottom: -28px; left: -24px; }
@media (max-width: 979px) {
  .stat-float { position: static; display: inline-block; margin-top: 14px; }
}

/* screen-reader-only text (a11y + descriptive anchors without visual change) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------- service icons ---------------------------- */

/* Custom gold PNG icons (assets/img/icons). Sized for the card icon circle
   and the nav dropdown rows; FA icons remain the fallback. */
.svc-ico { width: 26px; height: 26px; object-fit: contain; display: block; }
.nav-ico { width: 18px; height: 18px; object-fit: contain; display: block; flex-shrink: 0; }

/* ------------------------------- lightbox ------------------------------- */

/* photo-count badge on multi-shot build cards */
.lb-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(8,7,10,.72); color: #f6f2ea;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(4px); pointer-events: none;
}
.lb-count i { font-size: 11px; color: var(--amber); }
[data-theme="light"] .lb-count { background: rgba(8,7,10,.72); color: #f6f2ea; }

/* overlay: always dark, white text, in both themes */
.lb-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(5,4,7,.94);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  padding: 24px;
}
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: min(1180px, 94vw); }
.lb-img {
  max-width: 100%; max-height: min(76vh, 900px);
  border-radius: 14px; display: block;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  background: #0d0c10;
}
.lb-cap { text-align: center; margin-top: 18px; color: #f6f2ea; }
.lb-cap .lb-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.lb-cap .lb-sub { color: #b9b2a8; font-size: 13.5px; margin-top: 6px; letter-spacing: .04em; }
.lb-cap .lb-counter { color: var(--amber); font-size: 12px; letter-spacing: .18em; margin-top: 8px; font-weight: 600; }

.lb-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(246,242,234,.25); background: rgba(20,19,24,.7);
  color: #f6f2ea; font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s, background .2s, transform .2s;
  backdrop-filter: blur(6px);
}
.lb-btn:hover { border-color: var(--amber); color: var(--amber); transform: scale(1.06); }
.lb-close { top: 18px; right: 18px; position: fixed; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-overlay.lb-single .lb-prev, .lb-overlay.lb-single .lb-next, .lb-overlay.lb-single .lb-counter { display: none; }

@media (max-width: 640px) {
  .lb-overlay { padding: 14px; }
  .lb-img { max-height: 64vh; border-radius: 10px; }
  .lb-btn { width: 42px; height: 42px; font-size: 16px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-cap .lb-title { font-size: 21px; }
}
