/**
 * Casa Vogue Luxury CSS Utilities & Design Tokens
 *
 * Palette follows PRD §09 and the reference site's own token set: a warm cream
 * ground carrying dark ink type, with gold as a sparing quality signal, and a
 * handful of deliberate dark feature bands.
 */

:root {
  --cv-gold: #B08D57;
  --cv-gold-light: #C9AD7D;
  --cv-gold-dark: #856437;

  --cv-sand: #FAF8F4;
  --cv-warm: #F3EFE8;
  --cv-ink: #1C1A16;
  --cv-ink-2: #4A463F;
  --cv-muted: #706A5E;
  --cv-line: #E4DDD1;

  --cv-dark: #16140F;
  --cv-dark-2: #211E18;
  --cv-dark-line: #332F26;

  /* Channel form — what the compiled Tailwind utilities resolve against.
     The Customizer overrides these from inc/customizer.php; these values are
     the safety net, so a missing dynamic block degrades to the defaults
     rather than blanking every brand colour on the site. */
  --cv-gold-rgb: 176 141 87;
  --cv-gold-light-rgb: 201 173 125;
  --cv-gold-dark-rgb: 133 100 55;
  --cv-sand-rgb: 250 248 244;
  --cv-warm-rgb: 243 239 232;
  --cv-ink-rgb: 28 26 22;
  --cv-ink-2-rgb: 74 70 63;
  --cv-muted-rgb: 112 106 94;
  --cv-line-rgb: 228 221 209;
  --cv-dark-rgb: 22 20 15;
  --cv-dark-2-rgb: 33 30 24;
  --cv-dark-line-rgb: 51 47 38;
}

/* Gold Gradient Text — deepened so it holds contrast on the cream ground */
.gold-gradient-text {
  background: linear-gradient(135deg, #C9AD7D 0%, #B08D57 45%, #856437 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #856437; /* fallback where background-clip is unsupported */
}

/* On a dark band the gradient can run lighter */
.bg-brand-black .gold-gradient-text,
.cv-dark-band .gold-gradient-text {
  background: linear-gradient(135deg, #E0C795 0%, #C9AD7D 50%, #B08D57 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle Gold Glow */
.gold-glow {
  box-shadow: 0 18px 50px -24px rgba(40, 30, 15, .35);
}

.gold-glow-lg {
  box-shadow: 0 24px 60px -20px rgba(176, 141, 87, .30);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cv-warm);
}
::-webkit-scrollbar-thumb {
  background: #d8cfbe;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cv-gold);
}

/* Mega-Menu panel sits on the white header */
.mega-menu-panel {
  box-shadow: 0 28px 55px -20px rgba(40, 30, 15, .28);
}

/* Glass nav */
.glass-nav {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Visible keyboard focus on the light ground */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cv-gold-dark);
  outline-offset: 2px;
}

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

/* ------------------------------------------------------------------
   Editor content zone (`.casavogue-prose`)
   Styles everything produced by Gutenberg or Elementor's text widgets.
   Written as real CSS rather than Tailwind `prose`, because the Play CDN
   is loaded without the @tailwindcss/typography plugin.
   ------------------------------------------------------------------ */

.casavogue-prose {
  color: var(--cv-ink-2);
  font-size: 1rem;
  line-height: 1.8;
}

.casavogue-prose > * + * { margin-top: 1.25em; }

.casavogue-prose h1,
.casavogue-prose h2,
.casavogue-prose h3,
.casavogue-prose h4 {
  font-family: 'Cinzel', 'Fraunces', Georgia, serif;
  color: var(--cv-ink);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.casavogue-prose h1 { font-size: 2rem; }
.casavogue-prose h2 { font-size: 1.6rem; }
.casavogue-prose h3 { font-size: 1.25rem; }
.casavogue-prose h4 { font-size: 1.05rem; }

.casavogue-prose h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--cv-gold);
  margin-top: 0.6rem;
}

.casavogue-prose p { margin: 0; }
.casavogue-prose strong { color: var(--cv-ink); font-weight: 600; }
.casavogue-prose em { color: var(--cv-ink); }

.casavogue-prose a {
  color: var(--cv-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.casavogue-prose a:hover { color: var(--cv-gold); }

.casavogue-prose ul,
.casavogue-prose ol { padding-left: 1.35rem; }
.casavogue-prose ul { list-style: disc; }
.casavogue-prose ol { list-style: decimal; }
.casavogue-prose li { margin: 0.4em 0; }
.casavogue-prose li::marker { color: var(--cv-gold); }

.casavogue-prose blockquote {
  border-left: 2px solid var(--cv-gold);
  padding: 0.25rem 0 0.25rem 1.15rem;
  color: var(--cv-ink-2);
  font-style: italic;
}

.casavogue-prose img,
.casavogue-prose video,
.casavogue-prose iframe {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--cv-line);
}

.casavogue-prose img,
.entry-content img,
article img,
.wp-block-image img {
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 2px;
}

.casavogue-prose img:hover,
.entry-content img:hover,
article img:hover,
.wp-block-image img:hover {
  transform: scale(1.015);
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.22);
  border-color: var(--cv-gold);
}

.casavogue-prose figure { margin: 2em 0; }
.casavogue-prose figcaption {
  font-size: 0.75rem;
  color: var(--cv-muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* Embedded video keeps its aspect ratio */
.casavogue-prose .wp-block-embed__wrapper iframe,
.casavogue-prose iframe[src*="youtube"],
.casavogue-prose iframe[src*="vimeo"] {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.casavogue-prose code {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--cv-warm);
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
  color: var(--cv-gold-dark);
}

.casavogue-prose pre {
  background: var(--cv-warm);
  border: 1px solid var(--cv-line);
  padding: 1rem 1.2rem;
  overflow-x: auto;
}
.casavogue-prose pre code { background: none; padding: 0; }

.casavogue-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
}
.casavogue-prose th,
.casavogue-prose td {
  border-bottom: 1px solid var(--cv-line);
  padding: 0.65rem 0.8rem 0.65rem 0;
  text-align: left;
  vertical-align: top;
}
.casavogue-prose th {
  color: var(--cv-gold-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.casavogue-prose hr {
  border: 0;
  border-top: 1px solid var(--cv-line);
  margin: 2.5em 0;
}

/* WP alignment helpers inside the content zone */
.casavogue-prose .alignwide  { max-width: 1100px; margin-inline: auto; }
.casavogue-prose .alignfull  { max-width: none; }
.casavogue-prose .aligncenter { margin-inline: auto; }

/* ---------------- Pagination ---------------- */

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .6rem;
  margin: 0 .2rem;
  border: 1px solid var(--cv-line);
  color: var(--cv-ink-2);
  font-size: .78rem;
  letter-spacing: .05em;
  transition: all .2s;
}
.page-numbers:hover { border-color: var(--cv-gold); color: var(--cv-gold-dark); }
.page-numbers.current {
  background: var(--cv-gold);
  border-color: var(--cv-gold);
  color: #fff;
  font-weight: 700;
}

.cv-page-links a { color: var(--cv-gold-dark); }

/* ------------------------------------------------------------------
   Award ribbon — vertical variant (Theme Options → Logos & Award Badge)
   Pinned to the header's leading edge, reading bottom-to-top.
   ------------------------------------------------------------------ */

.cv-award-ribbon {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 45;
  width: 32px;
  height: 188px;          /* deliberately overhangs the header, ribbon-style */
  padding: 0.7rem 0 0.85rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* Deliberately darker than the gold tokens: white text needs >=4.5:1 along
     the whole gradient, and --cv-gold-light only gives 2.15:1. */
  background: linear-gradient(180deg, #8A6835 0%, #705328 55%, #5C4522 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(40, 30, 15, .45);
  transition: filter .25s var(--cv-ease, ease);
}

.cv-award-ribbon::after {
  /* the notched tail that makes it read as a ribbon rather than a bar */
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  width: 32px;
  height: 12px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 62%, 0 100%);
}

.cv-award-ribbon:hover { filter: brightness(1.06); }

.cv-award-ribbon__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cv-award-ribbon__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.cv-award-ribbon__year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--cv-font-mono, monospace);
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .85;
  padding-top: .35rem;
  border-top: 1px solid rgba(255, 255, 255, .45);
}

/* RTL: the ribbon flips to the right edge with the rest of the layout */
[dir="rtl"] .cv-award-ribbon__text,
[dir="rtl"] .cv-award-ribbon__year { transform: rotate(0deg); }

/* ------------------------------------------------------------------
   Secondary nav dropdown (Company)
   ------------------------------------------------------------------ */

.cv-dropdown:hover .cv-dropdown__panel,
.cv-dropdown:focus-within .cv-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cv-dropdown__panel { border-radius: var(--cv-radius, 2px); }

/* ------------------------------------------------------------------
   Widget areas
   ------------------------------------------------------------------ */

.cv-widget ul { list-style: none; padding: 0; margin: 0; }
.cv-widget li + li { margin-top: .5rem; }
.cv-widget li a {
  color: var(--cv-ink-2);
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s;
}
.cv-widget li a:hover { color: var(--cv-gold-dark); }

.cv-widget-area--above-footer {
  padding: var(--cv-rhythm, 4rem) 1.5rem;
  background: var(--cv-warm);
  border-top: 1px solid var(--cv-line);
}

/* Instagram reels grid */
.cv-reels { --reel-radius: var(--cv-radius, 2px); }
.cv-reel { border-radius: var(--reel-radius); }
.cv-reel .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ------------------------------------------------------------------
   Logo plate — Theme Options → General & Contact → Logos & Award Badge
   A backdrop behind the logo so it reads cleanly against the header.
   ------------------------------------------------------------------ */

.cv-logo {
  border-radius: var(--cv-logo-radius, 10px);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Padding only applies once there is a plate to pad against. */
.cv-logo--soft,
.cv-logo--solid,
.cv-logo--outline {
  padding: var(--cv-logo-padding, 10px) calc(var(--cv-logo-padding, 10px) * 1.35);
  border: 1px solid transparent;
}

.cv-logo--soft {
  /* Tinted rather than opaque, so it reads as a plate and not a button. */
  background-color: color-mix(in srgb, var(--cv-logo-bg, #fff) 72%, transparent);
  border-color: color-mix(in srgb, var(--cv-logo-border, #E4DDD1) 65%, transparent);
}

.cv-logo--solid {
  background-color: var(--cv-logo-bg, #fff);
  border-color: var(--cv-logo-border, #E4DDD1);
  box-shadow: 0 8px 22px -14px rgba(40, 30, 15, .40);
}

.cv-logo--outline {
  background-color: transparent;
  border-color: var(--cv-logo-border, #E4DDD1);
}

.cv-logo--soft:hover,
.cv-logo--solid:hover,
.cv-logo--outline:hover {
  border-color: var(--cv-gold, #B08D57);
}

/* Below 2xl the header runs tight; trim the plate rather than overflow. */
@media (max-width: 1535px) {
  .cv-logo--soft,
  .cv-logo--solid,
  .cv-logo--outline {
    padding: calc(var(--cv-logo-padding, 10px) * .6) calc(var(--cv-logo-padding, 10px) * .8);
  }
}

/* The logo already scales on hover; don't let the plate move with it. */
.cv-logo img { border-radius: calc(var(--cv-logo-radius, 10px) * .5); }

/* Browsers without color-mix() still get a usable plate. */
@supports not (background-color: color-mix(in srgb, #fff 50%, transparent)) {
  .cv-logo--soft {
    background-color: var(--cv-logo-bg, #fff);
    border-color: var(--cv-logo-border, #E4DDD1);
  }
}

/* ------------------------------------------------------------------
   Homepage widget areas + video facades
   ------------------------------------------------------------------ */

.cv-home-widgets {
  padding: var(--cv-rhythm, 4rem) 0;
  border-bottom: 1px solid var(--cv-line);
}

/* Slots whose built-in section is a dark feature band keep that treatment when
   widgets replace them, so the page rhythm survives the swap. */
.cv-home-widgets--home-hero,
.cv-home-widgets--home-presence,
.cv-home-widgets--home-video,
.cv-home-widgets--home-cta {
  background: var(--cv-dark);
  border-bottom-color: var(--cv-dark-line);
  color: #fff;
}
.cv-home-widgets--home-hero .cv-widget-title,
.cv-home-widgets--home-presence .cv-widget-title,
.cv-home-widgets--home-video .cv-widget-title,
.cv-home-widgets--home-cta .cv-widget-title {
  color: var(--cv-gold-light);
  border-bottom-color: var(--cv-dark-line);
}

/* Trust bar sits on the warm band in the default design. */
.cv-home-widgets--home-trust { background: var(--cv-warm); }

.cv-home-widgets .cv-widget { margin-bottom: 0; }
.cv-home-widgets .cv-widget + .cv-widget { margin-top: 2.5rem; }

/* Video facade */
.cv-video__trigger {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
  display: block;
}
.cv-video__trigger:focus-visible {
  outline: 2px solid var(--cv-gold);
  outline-offset: -2px;
}
.cv-video__player { display: block; }

/* Luxury Video Card & 21st.dev Border Beam */
.cv-video-card {
  position: relative;
  background: rgba(18, 16, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cv-video-card-beam {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cv-video-card:hover .cv-video-card-beam {
  opacity: 1;
}

.cv-video-card-beam::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(201, 173, 125, 0.5) 320deg,
    #FFFFFF 345deg,
    rgba(176, 141, 87, 0.9) 360deg
  );
  animation: cv-border-beam-spin 4.5s linear infinite;
}

.cv-play-radar {
  animation: cv-radar-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes cv-radar-ping {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.cv-video--reel {
  border-radius: 12px;
}

/* Video modal overlay — the facade opens the real player here, never inline,
   so one player exists at a time and closing it destroys the embed. */
.cv-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: cv-video-modal-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-video-modal[hidden] { display: none; }

.cv-video-modal__frame {
  position: relative;
  width: 100%;
  max-width: min(1100px, 92vw);
  aspect-ratio: var(--cv-video-ratio, 16 / 9);
  max-height: 84vh;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
/* Vertical reels should not stretch to the full 1100px. */
.cv-video-modal[style*="9 / 16"] .cv-video-modal__frame { max-width: min(460px, 88vw); }

.cv-video-modal__stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cv-video-modal__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.cv-video-modal__close:hover { color: var(--cv-gold); border-color: var(--cv-gold); }
.cv-video-modal__close:focus-visible { outline: 2px solid var(--cv-gold); outline-offset: 2px; }

/* On small screens there is no room above the frame for the button. */
@media (max-width: 640px) {
  .cv-video-modal__close { top: 0.5rem; right: 0.5rem; }
}

/* The page must not scroll behind the overlay. */
html.cv-video-modal-open, html.cv-video-modal-open body { overflow: hidden; }

@keyframes cv-video-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-video-modal { animation: none; }
}

@media (max-width: 640px) {
  .cv-video-grid,
  .cv-widget-project-grid { grid-template-columns: 1fr !important; }
}

/* ------------------------------------------------------------------
   Service Hero — Crisp Cinematic Photographic Luxury & 21st.dev Border Beam
   ------------------------------------------------------------------ */

.cv-hero-scrim {
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.10) 60%,
    transparent 85%
  );
}

/* Crisp Text Shadow for High-Legibility Editorial Serifs */
.cv-hero-title {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

/* 21st.dev Animated Border Beam Badge */
.cv-border-beam-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.cv-border-beam-badge::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(201, 173, 125, 0.5) 320deg,
    #FFFFFF 345deg,
    rgba(176, 141, 87, 0.9) 360deg
  );
  animation: cv-border-beam-spin 4.5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cv-border-beam-badge::before {
    animation: none;
    background: rgba(201, 173, 125, 0.4);
  }
}

@keyframes cv-border-beam-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cv-border-beam-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1.125rem;
  background: rgba(14, 12, 10, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
}

/* 21st.dev Border Beam Card */
.cv-border-beam-card {
  position: relative;
  padding: 1px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(176, 141, 87, 0.15);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-border-beam-card::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(201, 173, 125, 0.45) 320deg,
    #FFFFFF 345deg,
    rgba(176, 141, 87, 0.9) 360deg
  );
  animation: cv-border-beam-spin 6s linear infinite;
}

.cv-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background: radial-gradient(
    circle 320px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.09),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cv-tilt-container:hover .cv-card-glare {
  opacity: 1;
}

/* Kinetic Headline Rotator */
.cv-rotator-wrapper {
  vertical-align: bottom;
  min-height: 1.2em;
}

.cv-rotator-target {
  display: inline-block;
  will-change: transform, opacity, filter;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
}

.cv-rotator-target.is-animating-out {
  transform: translateY(-110%) rotateX(30deg);
  opacity: 0;
  filter: blur(6px);
}

.cv-rotator-target.is-animating-in {
  transform: translateY(110%) rotateX(-30deg);
  opacity: 0;
  filter: blur(6px);
}

/* Subtle Golden Horizon Ray */
.cv-glow-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(176, 141, 87, 0.15) 20%,
    rgba(224, 199, 149, 0.6) 50%,
    rgba(176, 141, 87, 0.15) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .cv-glow-line {
    animation: cv-beam-sweep 8s linear infinite;
  }
}

@keyframes cv-beam-sweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Glassmorphism Metric Pill */
.cv-metric-pill {
  background: rgba(18, 16, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-metric-pill:hover {
  background: rgba(24, 21, 17, 0.90);
  border-color: rgba(201, 173, 125, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

/* Primary Button Shine Sweep on Hover */
.cv-btn-luxury {
  position: relative;
  overflow: hidden;
}

.cv-btn-luxury::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  transition: none;
}

.cv-btn-luxury:hover::after {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

/* Slow drift keeps photographic hero backdrop alive */
@media (prefers-reduced-motion: no-preference) {
  .cv-service-hero .cv-hero-bg-img,
  .cv-project-hero .cv-hero-bg-img {
    animation: cv-hero-drift 26s ease-in-out infinite alternate;
  }
}
@keyframes cv-hero-drift {
  0% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(0, -1.5%, 0);
  }
}

/* ------------------------------------------------------------------
   Form confirmation
   Injected by cvShowFormSuccess() in place of a submitted form. Colours are
   inherited rather than fixed, so the same markup reads correctly in the light
   service sidebar and on the dark hero card.
   ------------------------------------------------------------------ */

.cv-form-success {
  animation: cv-success-in .35s ease-out both;
}

@keyframes cv-success-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.cv-form-success h4 { color: inherit; }

/* ------------------------------------------------------------------
   Universal Luxury Image Lightbox & Preview Modal
   ------------------------------------------------------------------ */
.cv-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 4.5rem;
  background: rgba(10, 8, 6, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: cv-lightbox-fade-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-lightbox-modal[hidden] { display: none; }

@keyframes cv-lightbox-fade-in {
  from { opacity: 0; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
  to   { opacity: 1; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}

.cv-lightbox-modal__spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(201, 173, 125, 0.2);
  border-top-color: var(--cv-gold);
  border-radius: 50%;
  animation: cv-spinner-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes cv-spinner-spin {
  to { transform: rotate(360deg); }
}

.cv-lightbox-modal__frame {
  position: relative;
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.cv-lightbox-modal__img {
  max-width: min(1400px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(201, 173, 125, 0.25);
  border-radius: 4px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-lightbox-modal__img.is-ready {
  opacity: 1;
  transform: scale(1);
}

.cv-lightbox-modal__cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
  max-width: 800px;
  padding: 0.5rem 1rem;
  background: rgba(18, 16, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cv-lightbox-modal__text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}
.cv-lightbox-modal__count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  color: var(--cv-gold);
  letter-spacing: 0.14em;
  font-weight: 600;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.cv-lightbox-modal__close,
.cv-lightbox-modal__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(18, 16, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
  z-index: 5;
}
.cv-lightbox-modal__close:hover,
.cv-lightbox-modal__nav:hover {
  color: var(--cv-gold);
  border-color: var(--cv-gold);
  background: rgba(24, 21, 17, 0.92);
  transform: scale(1.08);
}
.cv-lightbox-modal__close:focus-visible,
.cv-lightbox-modal__nav:focus-visible {
  outline: 2px solid var(--cv-gold);
  outline-offset: 2px;
}

.cv-lightbox-modal__close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.6rem;
}

.cv-lightbox-modal__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2rem;
  padding-bottom: 0.2rem;
}
.cv-lightbox-modal__nav:hover {
  transform: translateY(-50%) scale(1.08);
}
.cv-lightbox-modal__nav--prev { left: 1.5rem; }
.cv-lightbox-modal__nav--next { right: 1.5rem; }
.cv-lightbox-modal.is-solo .cv-lightbox-modal__nav { display: none; }

/* Mobile optimization */
@media (max-width: 640px) {
  .cv-lightbox-modal { padding: 3.25rem 0.5rem 5.5rem; }
  .cv-lightbox-modal__img { max-height: 66vh; }
  .cv-lightbox-modal__nav {
    top: auto;
    bottom: 1.25rem;
    transform: none;
    width: 3rem;
    height: 3rem;
    font-size: 1.6rem;
  }
  .cv-lightbox-modal__nav:hover { transform: scale(1.08); }
  .cv-lightbox-modal__nav--prev { left: calc(50% - 3.75rem); }
  .cv-lightbox-modal__nav--next { right: calc(50% - 3.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  .cv-lightbox-modal { animation: none; }
  .cv-lightbox-modal__img { transition: none; }
}
