/* =========================================================================
   components.css - buttons, navbar, hero, cards, accordion, CTA, footer.
   Geometry mirrors Wope (pills 999px, cards 16px, section glows).
   ========================================================================= */

/* --- Buttons ------------------------------------------------------------- */
/* Premium pills - Wope style:
   ::before = a rotating conic-gradient masked to a thin ring (the "comet"
              tracing the perimeter), softened by a drop-shadow glow.
   --rv-angle is animated via @property so the bright arc travels the border. */
@property --rv-angle {
  syntax: "<angle>"; initial-value: 0deg; inherits: false;
}
@keyframes rv-border-spin { to { --rv-angle: 360deg; } }

.btn {
  --btn-bg: transparent;
  --ring-width: 1.5px;
  --ring-base: rgba(255, 255, 255, 0.16);   /* faint full-perimeter line */
  --ring-hot:  rgba(255, 255, 255, 0.9);     /* comet body */
  --ring-core: #ffffff;                      /* comet head */
  --ring-glow: rgba(255, 255, 255, 0.55);    /* comet halo */
  --ring-speed: 4s;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small);
  letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  padding: 0.75rem 1.5rem; border-radius: var(--r-pill);
  border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--text-strong);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
/* the traveling gradient border */
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--ring-width);
  background: conic-gradient(from var(--rv-angle),
    var(--ring-base) 0deg, var(--ring-base) 215deg,
    var(--ring-hot) 275deg, var(--ring-core) 300deg, var(--ring-hot) 325deg,
    var(--ring-base) 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;
  filter: drop-shadow(0 0 3px var(--ring-glow));
  animation: rv-border-spin var(--ring-speed) linear infinite;
  pointer-events: none; z-index: 1;
}
.btn > * { position: relative; z-index: 2; }
.btn .rv-icon { width: 1.05em; height: 1.05em; position: relative; z-index: 2; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { --ring-speed: 2.4s; }
.btn:active { transform: translateY(0); }

.btn-primary {
  --ring-width: 2px;
  --ring-base: rgba(74, 48, 8, 0.5);         /* dark metallic rim - comet pops */
  --ring-hot:  #ffffff;
  --ring-core: #ffffff;
  --ring-glow: rgba(255, 245, 218, 0.95);
  --ring-speed: 3.2s;
  background: linear-gradient(165deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  box-shadow: 0 8px 30px -12px rgba(195, 163, 104, 0.7);
}
.btn-primary:hover {
  background: linear-gradient(165deg, #e6cf94, var(--gold-bright));
  box-shadow: 0 14px 40px -12px rgba(217, 190, 131, 0.85);
}

.btn-ghost {
  --ring-base: rgba(255, 255, 255, 0.14);
  --ring-hot:  rgba(216, 190, 131, 0.95);    /* gold comet body */
  --ring-core: #ffffff;
  --ring-glow: rgba(216, 190, 131, 0.7);
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px -14px rgba(0, 0, 0, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 12px 34px -14px rgba(0, 0, 0, 0.7),
              0 0 24px -6px rgba(195, 163, 104, 0.35);
}

.btn-lg { padding: 0.9rem 1.85rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .btn::before { animation: none; --rv-angle: 300deg; }
}

/* tiny twinkle starfield on secondary (ghost) buttons - gold points that
   fade in then out at random spots/intervals (no drift). Dots are spawned
   by main.js into .btn-stars; the layer is clipped to the pill. */
.btn-ghost .btn-stars {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.btn-ghost .btn-stars i {
  position: absolute; width: var(--s, 1.5px); height: var(--s, 1.5px);
  border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 4px rgba(216, 190, 131, 0.7);
  animation: btnTwinkle 1.3s ease-in-out forwards;
}
@keyframes btnTwinkle {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}
@media (prefers-reduced-motion: reduce) { .btn-ghost .btn-stars { display: none; } }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-block: 1.1rem;
  background: rgba(7, 11, 20, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand .brand-mark { height: 38px; width: auto; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.04em; color: var(--text-strong); line-height: 1;
  text-transform: uppercase;
}
.wordmark b { color: var(--gold); font-weight: 700; }
.wordmark small { display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 0.52rem; letter-spacing: 0.32em; color: var(--text-muted); margin-top: 3px; }
@media (max-width: 480px) { .wordmark small { display: none; } }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: var(--r-pill); font-size: 0.95rem;
  color: var(--text); transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-strong); background: rgba(255,255,255,0.05); }
.nav-links a.is-active { color: var(--text-strong); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* mobile slide-down panel is hidden on desktop; enabled in responsive.css ≤768 */
.mobile-nav { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-strong);
  position: relative; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Cursor light source -------------------------------------------------
   Replaces the old static per-section gold glow. A soft gold radial that
   follows the pointer like a light, illuminating the dark backdrop. Lives in
   the #site-bg layer (z-index -1) and is kept low-intensity so it never
   competes with content. Position is driven by main.js; disabled on
   touch / coarse pointers and calmed under reduced motion. */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle,
      rgba(195,163,104,0.15) 0%, rgba(195,163,104,0.07) 34%, transparent 68%);
  transform: translate3d(-1000px, -1000px, 0);
  transition: opacity 0.6s var(--ease); will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

.section > .container, .section > .container-md, .section > .container-sm { position: relative; z-index: 1; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 4rem); text-align: center; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-inline: auto; max-width: 16ch; }
.hero .lead { max-width: 42ch; margin: 1.5rem auto 0; color: #fff; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-figure {
  margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--r-card);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
}
.hero-figure img { width: 100%; height: auto; display: block; }
.hero-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,22,0.12) 0%, rgba(8,12,22,0) 35%, rgba(8,12,22,0.45) 100%);
  box-shadow: inset 0 0 90px rgba(8,12,22,0.55);
}

/* pill badge used above hero headline */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill);
  background: var(--gold-soft); border: 1px solid rgba(195,163,104,0.3);
  color: var(--gold-bright); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* --- Page hero (interior pages, compact) --------------------------------- */
.page-hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); text-align: center; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-h2); max-width: 18ch; margin-inline: auto; }
.page-hero .lead { max-width: 52ch; margin: 1.25rem auto 0; }
.breadcrumb { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--gold); }

/* --- Trust / clients strip ---------------------------------------------- */
.clients { text-align: center; }
.clients p { font-size: var(--fs-small); color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.75rem; }
.clients-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem); opacity: 0.85;
}
.clients-row span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text-muted); letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.clients-row span:hover { color: var(--text); }
.client-logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.4rem); align-items: stretch;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(64px, 8vw, 84px);
  padding: clamp(0.85rem, 1.8vw, 1.2rem) clamp(1rem, 2vw, 1.45rem);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(232, 238, 248, 0.86));
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 30px rgba(3, 8, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.client-logo:hover {
  transform: translateY(-4px);
  background: linear-gradient(155deg, #ffffff, #f1f5fc);
  box-shadow: 0 18px 44px rgba(3, 8, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.client-logo img {
  width: 100%; height: auto; max-height: clamp(30px, 3.6vw, 42px);
  object-fit: contain; display: block;
  transition: transform 0.35s var(--ease);
}
.client-logo:hover img { transform: scale(1.06); }

/* --- Capability / equipment grid ---------------------------------------- */
.cap-item {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.05rem 1.2rem; border: 1px solid var(--border);
  border-radius: var(--r-card); background: var(--card);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cap-item:hover {
  border-color: var(--border-strong); background: var(--card-2); transform: translateY(-3px);
  box-shadow: 0 16px 36px -24px rgba(0,0,0,0.85), 0 0 22px -10px rgba(195,163,104,0.3);
}
.cap-item .rv-icon { width: 1.3rem; height: 1.3rem; color: var(--gold); flex-shrink: 0; }
/* retrofit cards carry two-line labels - top-align the tick */
.retro-grid .cap-item { align-items: flex-start; }
.retro-grid .cap-item .rv-icon { margin-top: 0.15rem; }
.retro-grid .cap-item span { line-height: 1.5; }
.cap-item span { font-weight: 600; color: var(--text-strong); }
.cap-cta { text-align: center; margin-top: clamp(2rem, 4vw, 2.75rem); }

/* --- Feature cards ------------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature h3 { margin-bottom: 1rem; }
.feature .lead { margin-bottom: 1.5rem; }
.feature-list { display: grid; gap: 0.7rem; }
.feature-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text); }
.feature-list .rv-icon { width: 1.15rem; height: 1.15rem; color: var(--gold); flex-shrink: 0; margin-top: 0.2rem; }
.feature-media {
  border-radius: var(--r-card); border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), #0a1020);
  box-shadow: var(--shadow-card); padding: 1.25rem; position: relative; overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-media:hover {
  transform: translateY(-4px); border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 0 36px -12px rgba(195,163,104,0.4);
}
.feature-photo { position: relative; border-radius: 10px; overflow: hidden; }
.feature-photo img {
  width: 100%; height: auto; display: block; aspect-ratio: 1040 / 720; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.feature-media:hover .feature-photo img { transform: scale(1.06); filter: saturate(1.06) brightness(1.04); }
.feature-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,16,32,0) 55%, rgba(8,13,24,0.55));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* --- Generic card (services grid, value cards) -------------------------- */
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-2);
  box-shadow: 0 22px 50px -28px rgba(0,0,0,0.85), 0 0 28px -10px rgba(195,163,104,0.32);
}
/* highlight the current service in the "other services" grid */
.card--current { border-color: rgba(195,163,104,0.45); background: var(--gold-soft); }
.card--current .card-link { color: var(--gold-bright); }

/* wope-style cursor-tracking border highlight: a gold radial centered on the
   pointer, masked to the 1px border ring so only the edge nearest the cursor
   lights up. Position (--mx/--my) is fed per-card by main.js. */
.card::after, .cap-item::after, .feature-media::after, .form-card::after, .contact-item::after, .glance-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
      rgba(216,190,131,0.85), rgba(216,190,131,0) 62%);
  -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: 0; transition: opacity 0.35s var(--ease); pointer-events: none; z-index: 3;
}
.card:hover::after, .cap-item:hover::after, .feature-media:hover::after,
.form-card:hover::after, .contact-item:hover::after, .glance-card:hover::after { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid rgba(195,163,104,0.25); color: var(--gold);
}
.card-icon .rv-icon { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--text-muted); line-height: var(--lh-body); }
.card .card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gold); font-weight: 600; font-size: 0.9rem;
}
.card .card-link .rv-icon { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.card:hover .card-link .rv-icon { transform: translateX(3px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Services carousel (scroll-snap, used wherever the full line-up shows) --- */
.svc-carousel { position: relative; }
.svc-carousel-viewport {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* room for the card hover-lift, glow, and focus ring without clipping (and
     so the edge mask, clipped to the border-box, doesn't trim the hover glow) */
  padding: 12px 6px 30px;
  margin: -12px -6px -30px;
  scroll-padding-inline: 6px;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* old Edge */
  /* fade cards into the ambient background at the left/right edges instead of
     hard-chopping them. A horizontal alpha mask dissolves the edge slides. */
  --svc-fade: clamp(28px, 6%, 96px);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0, #000 var(--svc-fade), #000 calc(100% - var(--svc-fade)), transparent 100%);
          mask-image: linear-gradient(to right,
      transparent 0, #000 var(--svc-fade), #000 calc(100% - var(--svc-fade)), transparent 100%);
}
/* nothing to scroll -> no edge cards to dissolve, so drop the fade */
.svc-carousel.is-static .svc-carousel-viewport { -webkit-mask-image: none; mask-image: none; }
.svc-carousel-viewport::-webkit-scrollbar { display: none; }
.svc-carousel-viewport:focus-visible { outline: none; }
/* show ~4 cards on wide screens, fewer as the container narrows; the rest
   scroll into view, so a fifth card is never orphaned on its own row */
.svc-slide {
  flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
  min-width: 264px;
  scroll-snap-align: start;
}

.svc-carousel-controls {
  display: flex; justify-content: flex-end; gap: 0.6rem;
  margin-top: 1.4rem;
}
.svc-carousel.is-static .svc-carousel-controls { display: none; }
.svc-carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--text-strong); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.svc-carousel-btn:hover { background: var(--gold-soft); border-color: rgba(195,163,104,0.45); color: var(--gold-bright); }
.svc-carousel-btn:disabled { opacity: 0.35; cursor: default; }
.svc-carousel-btn:disabled:hover { background: var(--card-2); border-color: var(--border); color: var(--text-strong); }
.svc-carousel-btn .rv-icon { width: 1.1rem; height: 1.1rem; }
.svc-carousel-prev .rv-icon { transform: rotate(180deg); }

/* --- Stats band ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 700; color: var(--text-strong);
  font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.02em;
}
.stat .stat-num span { color: var(--gold); }
.stat .stat-label { color: var(--text-muted); font-size: var(--fs-small); margin-top: 0.6rem; }

/* --- FAQ accordion ------------------------------------------------------- */
.accordion { max-width: var(--container-sm); margin-inline: auto; display: grid; gap: 0.75rem; }
.acc-item { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.acc-item[open] { border-color: var(--border-strong); background: var(--card-2); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 1.5rem; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; color: var(--text-strong);
  font-size: var(--fs-faq);
}
.acc-trigger .acc-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border-strong);
  color: var(--gold); transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--gold-soft); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.acc-panel[data-open="true"] { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 1.5rem 1.5rem; color: var(--text-muted); max-width: 70ch; }

/* --- CTA band ------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; z-index: 1; text-align: center;
  border: 1px solid var(--border); border-radius: calc(var(--r-card) + 8px);
  background: linear-gradient(160deg, rgba(43,58,102,0.35), rgba(7,11,20,0.6));
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: 700px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(195,163,104,0.25), transparent 65%); filter: blur(10px);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { max-width: 18ch; margin-inline: auto; }
.cta-inner .lead { max-width: 46ch; margin: 1.25rem auto 2rem; }
.cta-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 480px; margin-inline: auto; }
.cta-form input {
  flex: 1 1 240px; min-width: 0; padding: 0.85rem 1.25rem; border-radius: var(--r-pill);
  background: rgba(7,11,20,0.6); border: 1px solid var(--border-strong); color: var(--text-strong);
}
.cta-form input::placeholder { color: var(--text-muted); }
.cta-form input:focus-visible { border-color: var(--gold); outline: none; }

/* --- Service detail layout ---------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* --- "At a glance" premium metric panel (about page) --------------------- */
.glance-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: calc(var(--r-card) + 6px);
  background:
    linear-gradient(168deg, rgba(43,58,102,0.24), rgba(14,21,38,0.55)),
    var(--surface);
  box-shadow: 0 32px 72px -36px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
}
.glance-card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); opacity: 0.7;
}
.glance-card > .eyebrow { margin-bottom: 1.35rem; }
.glance-grid { display: grid; grid-template-columns: 1fr 1fr; }
.glance-grid .gstat { padding: 1.5rem 1.25rem; }
.glance-grid .gstat:nth-child(odd)   { border-right: 1px solid var(--border); padding-left: 0; }
.glance-grid .gstat:nth-child(even)  { padding-right: 0; }
.glance-grid .gstat:nth-child(-n+2)  { border-bottom: 1px solid var(--border); padding-top: 0.25rem; }
.glance-grid .gstat:nth-child(n+3)   { padding-bottom: 0.25rem; }
.gstat-num {
  font-family: var(--font-display); font-weight: 700; color: var(--text-strong);
  font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -0.02em;
}
.gstat-num .suf { color: var(--gold); }
.gstat-label { color: var(--text-muted); font-size: var(--fs-small); margin-top: 0.6rem; }
.glance-foot {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5;
}
.glance-foot .rv-icon { width: 1.1rem; height: 1.1rem; color: var(--gold); flex-shrink: 0; }
.detail-grid h2 { font-size: var(--fs-h3); margin-bottom: 1.4rem; }

/* Generous vertical rhythm for the prose columns (about / service detail) so
   the eyebrow, heading, lead, and body breathe instead of stacking tight. */
.detail-grid .eyebrow { margin-bottom: 1.15rem; }
.detail-grid .lead { line-height: var(--lh-lead); }
.detail-grid p { line-height: var(--lh-body); }
.detail-grid .scope-list { margin-top: 1.9rem; gap: 1.05rem; }
.detail-grid .scope-list li { line-height: 1.55; }
.scope-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.scope-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.scope-list .rv-icon { width: 1.25rem; height: 1.25rem; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }
.side-card {
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--card); padding: 1.75rem; position: sticky; top: 6rem;
}
.side-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.side-card .other-services { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.side-card .other-services a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.5rem;
  border-radius: var(--r-sm); color: var(--text); font-size: 0.92rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.side-card .other-services a:hover { background: rgba(255,255,255,0.05); color: var(--text-strong); }
.side-card .other-services a .rv-icon { width: 1.05rem; height: 1.05rem; color: var(--gold); }
.side-card .other-services a.is-current { color: var(--gold); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; color: var(--gold);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .card-icon { flex-shrink: 0; }
.contact-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { color: var(--text-muted); }
.contact-item a:hover { color: var(--gold); }

.form-field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.form-field label { font-size: var(--fs-small); color: var(--text-muted); font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.8rem 1rem; border-radius: var(--r-sm);
  background: rgba(7,11,20,0.5); border: 1px solid var(--border-strong); color: var(--text-strong);
}
.form-field input:focus-visible, .form-field textarea:focus-visible, .form-field select:focus-visible {
  border-color: var(--gold); outline: none;
}
/* =========================================================================
   Contact page - single premium two-column section that sits high on the
   page (form is in view on load). Rich form card + interactive info cards.
   ========================================================================= */
.section--contact { padding-block: clamp(2rem, 4vw, 3.25rem) var(--section-y); }
/* desktop: intro (top-left) + details (below it) share the left column;
   the form spans the right column across both rows. */
.contact-grid {
  grid-template-columns: 0.92fr 1.08fr; align-items: start;
  column-gap: clamp(2rem, 5vw, 4rem); row-gap: 0;
}
.contact-grid > .contact-intro { grid-column: 1; grid-row: 1; }
.contact-grid > .contact-info  { grid-column: 1; grid-row: 2; }
.contact-grid > .form-card     { grid-column: 2; grid-row: 1 / span 2; }

.contact-intro .breadcrumb { margin-bottom: 1.25rem; }
.contact-intro h1 { font-size: var(--fs-h2); max-width: 13ch; }
.contact-intro .lead { margin: 1.25rem 0 2.25rem; max-width: 44ch; }

.contact-info { display: grid; gap: 0.85rem; }
.contact-item {
  position: relative; isolation: isolate;
  gap: 1rem; align-items: center;
  padding: 1.05rem 1.25rem; border: 1px solid var(--border);
  border-radius: var(--r-card); background: var(--card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-item:hover {
  transform: translateY(-3px); border-color: var(--border-strong); background: var(--card-2);
  box-shadow: 0 16px 36px -24px rgba(0,0,0,0.85), 0 0 22px -12px rgba(195,163,104,0.3);
}
.contact-item h3 { color: var(--text-strong); }

/* premium form card */
.form-card {
  position: relative; isolation: isolate;
  border: 1px solid var(--border-strong); border-radius: calc(var(--r-card) + 6px);
  background:
    linear-gradient(168deg, rgba(43,58,102,0.22), rgba(14,21,38,0.55)),
    var(--surface);
  box-shadow: 0 32px 72px -36px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: clamp(1.75rem, 3vw, 2.75rem); overflow: hidden;
}
/* gold accent line across the top */
.form-card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.7; z-index: 2;
}
.form-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.form-head h2 { font-size: var(--fs-h3); line-height: 1.1; }
.form-head p { font-size: var(--fs-small); margin-top: 0.2rem; }

/* richer focus ring on the contact form fields */
.form-card .form-field input,
.form-card .form-field textarea,
.form-card .form-field select {
  padding: 0.85rem 1.1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.form-card .form-field input:focus-visible,
.form-card .form-field textarea:focus-visible,
.form-card .form-field select:focus-visible {
  box-shadow: 0 0 0 3px rgba(195,163,104,0.18);
  background: rgba(7,11,20,0.7);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative; border-top: 0; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  /* fades up out of the page instead of a hard seam */
  background: linear-gradient(180deg, transparent 0%, rgba(10,16,32,0.88) 22%, rgba(8,12,22,0.98) 100%);
}
/* gold hairline accent across the very top of the footer */
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195,163,104,0.55), transparent);
}
/* faint gold bloom anchored bottom-centre for a premium glow */
.site-footer::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(900px, 80%); height: 200px; pointer-events: none;
  background: radial-gradient(ellipse at center bottom, rgba(195,163,104,0.10), transparent 70%);
}
.site-footer > .container { position: relative; z-index: 1; }

.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem); }
.footer-brand .brand-mark { height: 44px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; margin-bottom: 1.75rem; line-height: var(--lh-body); }

.footer-col h4 {
  font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-strong); font-weight: 600;
  position: relative; padding-bottom: 0.85rem; margin-bottom: 1.25rem;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.footer-col ul { display: grid; gap: 0.72rem; }
.footer-col a {
  color: var(--text-muted); font-size: 0.95rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

/* contact column: icon rows */
.footer-contact ul { gap: 0.9rem; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.5;
}
.footer-contact li .rv-icon { width: 1.05rem; height: 1.05rem; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 3.75rem); padding-top: 1.75rem;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-small);
}
.footer-powered { letter-spacing: 0.02em; }
.footer-powered a {
  color: var(--gold); font-weight: 600;
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.footer-powered a:hover { color: var(--gold-bright); text-shadow: 0 0 14px rgba(195,163,104,0.55); }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--gold); }

/* =========================================================================
   Legal / policy pages (terms, cookies) - content + sticky table of contents.
   ========================================================================= */
.legal-updated { color: var(--text-muted); font-size: var(--fs-small); margin-top: 1rem; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.legal-content > section { margin-bottom: clamp(2rem, 4vw, 2.75rem); scroll-margin-top: 6rem; }
.legal-content > section:last-child { margin-bottom: 0; }
.legal-content h2 { font-size: var(--fs-h3); margin-bottom: 1.1rem; }
.legal-content h2 .num { color: var(--gold); margin-right: 0.5rem; font-variant-numeric: tabular-nums; }
.legal-content p { color: var(--text-muted); line-height: var(--lh-body); margin-bottom: 1rem; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--gold); }
.legal-content a:hover { color: var(--gold-bright); }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content ul { display: grid; gap: 0.55rem; margin: 0.25rem 0 1.1rem; padding-left: 1.15rem; }
.legal-content ul li { position: relative; color: var(--text-muted); line-height: var(--lh-body); }
.legal-content ul li::before {
  content: ""; position: absolute; left: -1.15rem; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

.legal-toc { position: sticky; top: 6rem; }
.legal-toc h4 {
  font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted); font-weight: 600; margin-bottom: 1rem;
}
.legal-toc nav { display: grid; }
.legal-toc a {
  display: block; padding: 0.5rem 0 0.5rem 0.9rem; border-left: 2px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.4;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.legal-toc a:hover { color: var(--gold); border-left-color: var(--gold); }

/* =========================================================================
   Cookie consent banner - premium glass card pinned to the bottom centre,
   with a gold cookie badge, layered glow, and animated top hairline.
   ========================================================================= */
.cookie-consent {
  position: fixed; left: 50%; bottom: clamp(1rem, 3vw, 2rem);
  transform: translate(-50%, 165%) scale(0.98); opacity: 0;
  width: min(720px, calc(100% - 2rem)); z-index: 300; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 20px;
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(195,163,104,0.13), transparent 46%),
    linear-gradient(168deg, rgba(43,58,102,0.42), rgba(10,16,32,0.94)),
    var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
          backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    0 40px 90px -34px rgba(0,0,0,0.95),
    0 0 40px -18px rgba(195,163,104,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
/* animated gold hairline across the top */
.cookie-consent::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,190,131,0.85), transparent);
  background-size: 220% 100%;
  animation: ccShimmer 6s linear infinite;
}
@keyframes ccShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cookie-consent.is-visible { transform: translate(-50%, 0) scale(1); opacity: 1; }

.cookie-consent-inner {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: clamp(1.25rem, 2.4vw, 1.65rem) clamp(1.25rem, 2.4vw, 1.75rem);
}
/* gold cookie badge */
.cookie-badge {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; color: var(--gold-bright);
  background: radial-gradient(circle at 32% 26%, rgba(216,190,131,0.32), rgba(195,163,104,0.08));
  border: 1px solid rgba(195,163,104,0.42);
  box-shadow: 0 10px 26px -10px rgba(195,163,104,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.cookie-badge svg { width: 28px; height: 28px; }

.cookie-consent-text { flex: 1 1 280px; min-width: 0; }
.cookie-consent-text h3 { font-size: 1.12rem; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.cookie-consent-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 54ch; }
.cookie-consent-text a { color: var(--gold); font-weight: 600; }
.cookie-consent-text a:hover { color: var(--gold-bright); }

.cookie-consent-actions { display: flex; gap: 0.65rem; flex-shrink: 0; }
@media (min-width: 640px) { .cookie-consent-actions { margin-left: auto; } }
@media (max-width: 639px) {
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent { transition: opacity 0.3s var(--ease); transform: translate(-50%, 0) scale(1); }
  .cookie-consent::before { animation: none; }
}

/* =========================================================================
   Hero animated backdrop - perspective grid + converging lines + stars.
   Recreated from Wope's hero in navy/gold. Decorative, GPU-cheap, and
   fully disabled under prefers-reduced-motion.
   ========================================================================= */
.hero-bg {
  /* inset:0 makes the backdrop fill the hero exactly, so its bottom fade always
     completes precisely at the hero's edge regardless of headline length -
     no fixed-height clip, no seam into the next section. */
  position: absolute; inset: 0;
  overflow: hidden; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 6%, rgba(43,58,102,0.30), transparent 58%),
    radial-gradient(90% 70% at 50% 98%, rgba(43,58,102,0.16), transparent 78%);
  /* dissolve the whole backdrop into the next section over the lower half */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
.hero-bg-stars { position: absolute; inset: 0; }
.hero-bg-stars canvas { width: 100%; height: 100%; display: block; }

/* perspective planes (floor + mirrored ceiling) */
.hero-grid {
  position: absolute; left: 50%; width: 240%; height: 50vh; max-height: 540px;
  transform-origin: center bottom; will-change: background-position;
  background-image:
    linear-gradient(90deg, rgba(224,196,138,0.6) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(210,184,130,0.45) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* Rounded radial masks make each plane fade in a soft oval, so the grid
   reads as a 3D projection merging seamlessly into the dark foreground. */
.hero-grid--floor {
  bottom: -2px; height: 46vh; max-height: 500px;
  transform: translateX(-50%) perspective(560px) rotateX(72deg);
  -webkit-mask-image: radial-gradient(ellipse 76% 82% at 50% 96%, #000 28%, rgba(0,0,0,0.45) 58%, transparent 82%);
          mask-image: radial-gradient(ellipse 76% 82% at 50% 96%, #000 28%, rgba(0,0,0,0.45) 58%, transparent 82%);
  animation: rvGridFloor 26s linear infinite;
}
.hero-grid--top {
  top: -2px; height: 40vh; max-height: 440px; opacity: 0.8; transform-origin: center top;
  transform: translateX(-50%) perspective(560px) rotateX(-72deg);
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 50% 4%, #000 26%, rgba(0,0,0,0.4) 55%, transparent 82%);
          mask-image: radial-gradient(ellipse 80% 82% at 50% 4%, #000 26%, rgba(0,0,0,0.4) 55%, transparent 82%);
  animation: rvGridTop 40s linear infinite;
}
/* Slow diagonal drift - movement on both axes (depth + lateral). One full
   cell (60px) per loop keeps the tiling seamless. */
@keyframes rvGridFloor { from { background-position: 0 0; }   to { background-position: 60px 60px; } }
@keyframes rvGridTop   { from { background-position: 0 0; }   to { background-position: -60px -60px; } }

/* horizon glow where the floor recedes */
.hero-bg-horizon {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: min(920px, 82vw); height: 380px;
  /* low-intensity gold halo; soft enough to bleed into the next section
     rather than ending in a hard contrast edge */
  background: radial-gradient(ellipse 56% 100% at 50% 100%,
      rgba(236,214,168,0.38) 0%,
      rgba(212,182,126,0.24) 16%,
      rgba(184,154,104,0.13) 36%,
      rgba(90,92,128,0.06) 60%,
      transparent 80%);
  filter: blur(28px); opacity: 0.85;
  animation: rvHorizon 12s ease-in-out infinite;
}
@keyframes rvHorizon { 0%,100% { opacity: 0.6; } 50% { opacity: 0.8; } }

/* edge vignette so the backdrop fades into the page */
.hero-bg-vignette {
  position: absolute; inset: 0;
  /* no dark band at the bottom - the hero now fades cleanly into the
     global field / next section instead of cutting off */
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 100%),
    radial-gradient(140% 95% at 50% 40%, transparent 74%, rgba(7,11,20,0.2) 100%);
}

/* compact variant for interior page heroes: lighter, no floor scroll emphasis */
.hero-bg--compact { background: radial-gradient(120% 90% at 50% 0%, rgba(43,58,102,0.3), transparent 62%); }
.hero-bg--compact .hero-grid--floor { max-height: 360px; opacity: 0.7; }
.hero-bg--compact .hero-grid--top   { display: none; }
.hero-bg--compact .hero-bg-horizon  { height: 240px; opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid--floor, .hero-grid--top, .hero-bg-horizon { animation: none; }
}

/* =========================================================================
   Home hero animation (Wope-style image-masked grid + travelling light
   lines + sweeping ray + bloom). Ported from the POC and scoped under
   .hero-bg--full, so interior pages (.hero-bg--compact) are unaffected.
   The composition is a fixed 1248px layout centered as a decorative backdrop
   behind the hero text; the hero's overflow:hidden clips it on narrow screens.
   ========================================================================= */
.hero-bg--full {
  /* dark base + purple bloom matching the source; override the default
     hero-bg mask so the floor grid survives and only the very bottom edge
     dissolves into the next section. */
  background:
    radial-gradient(38.5% 24.5% at 50% 32%, rgba(195,163,104,.10) 0%, rgba(195,163,104,0) 100%),
    var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}
.hero-anim {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1248px;
  pointer-events: none;
}
.hero-anim-top,
.hero-anim-bottom {
  position: relative;
  width: 100%;
  background-repeat: no-repeat;
  background-size: contain;
}

/* TOP (ceiling grid) */
.hero-anim-top {
  background-image: url(../hero/hero-background-top.png);
  height: 202px;
  margin-bottom: 85px;
  /* nudged down so the ceiling grid sits lower, clear of the navbar */
  top: 64px;
}
.hero-anim-top-animation {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9;
  -webkit-mask-image: url(../hero/hero-background-top-mask.png);
          mask-image: url(../hero/hero-background-top-mask.png);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: cover;       mask-size: cover;
}
.hero-anim-top-animation div {
  position: relative; top: 0;
  width: 100%; height: 200px;
  background: linear-gradient(180deg, rgba(217,190,131,0) 0%, var(--gold-bright) 100%);
  animation: rvHeroTop 6s infinite cubic-bezier(.62,.62,.28,.67);
}

/* BOTTOM (floor grid + travelling light lines) */
/* pushed down so the floor grid clears the hero text instead of overlapping it */
.hero-anim-bottom { height: 530px; top: 140px; }
.hero-anim-bottom-background {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 12;
  mix-blend-mode: overlay;
}
.hero-anim-bottom-background img { width: 100%; height: 100%; display: block; }

.hero-anim-bottom-line-animation,
.hero-anim-bottom-ray-animation {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 179px;
  z-index: 9;
  overflow: hidden;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;     mask-size: contain;
}
.hero-anim-bottom-line-animation div {
  width: 100%; height: 150px;
  transform: translateY(-530px);
  background: linear-gradient(180deg, rgba(211,182,126,0) 0%, rgba(211,182,126,.5) 100%);
  animation: rvHeroLine 4s infinite cubic-bezier(.62,.62,.14,1);
}
.hero-anim-bottom-line-animation.line-1 { -webkit-mask-image: url(../hero/hero-background-bottom-line-1.png); mask-image: url(../hero/hero-background-bottom-line-1.png); }
.hero-anim-bottom-line-animation.line-2 { -webkit-mask-image: url(../hero/hero-background-bottom-line-2.png); mask-image: url(../hero/hero-background-bottom-line-2.png); }
.hero-anim-bottom-line-animation.line-3 { -webkit-mask-image: url(../hero/hero-background-bottom-line-3.png); mask-image: url(../hero/hero-background-bottom-line-3.png); }
.hero-anim-bottom-line-animation.line-4 { -webkit-mask-image: url(../hero/hero-background-bottom-line-4.png); mask-image: url(../hero/hero-background-bottom-line-4.png); }
.hero-anim-bottom-line-animation.line-1 div { animation-delay: 0s; }
.hero-anim-bottom-line-animation.line-2 div { animation-delay: 2s; }
.hero-anim-bottom-line-animation.line-3 div { animation-delay: 3s; }
.hero-anim-bottom-line-animation.line-4 div { animation-delay: 1s; }

.hero-anim-bottom-ray-animation {
  -webkit-mask-image: url(../hero/hero-background-bottom-ray.png);
          mask-image: url(../hero/hero-background-bottom-ray.png);
}
.hero-anim-bottom-ray-animation div {
  width: 100%; height: 530px;
  background-image: linear-gradient(180deg, rgba(255,255,255,0) 10.42%, rgba(255,255,255,.1) 26.56%, rgba(255,255,255,0) 37.5%);
  animation: rvHeroRay 10.2s infinite cubic-bezier(.62,.62,0,1);
}

/* brand bloom: the source bloom PNG is purple, so we use it only as an alpha
   mask (its glow shape) and fill it with our gold instead. */
.hero-anim-lights {
  position: absolute;
  top: 230px; left: 50%;
  transform: translateX(-50%);
  width: 1680px; height: 725px;
  background: radial-gradient(40% 52% at 50% 44%,
      var(--gold-bright) 0%,
      var(--gold) 42%,
      rgba(195,163,104,0) 100%);
  -webkit-mask: url(../hero/hero-background-lights.png) no-repeat center / contain;
          mask: url(../hero/hero-background-lights.png) no-repeat center / contain;
  opacity: .8;
}

@keyframes rvHeroTop {
  0%        { transform: translateY(-202px); }
  33%, 100% { transform: translateY(202px); }
}
@keyframes rvHeroLine {
  0%, 100% { transform: translateY(-530px); }
  99%      { transform: translateY(400px); }
}
@keyframes rvHeroRay {
  0%, 49.01%     { transform: translateY(-530px); }
  68.61%, 88.21% { transform: translateY(0); }
  99%            { transform: translateY(530px); }
  100%           { transform: translateY(-530px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim-top-animation div,
  .hero-anim-bottom-line-animation div,
  .hero-anim-bottom-ray-animation div { animation: none; }
}

/* =========================================================================
   Global ambient backdrop (#site-bg) - one fixed, full-viewport field behind
   ALL content. Drifting navy/gold blooms + starfield + vignette so every
   section blends into a single continuous, "electric" space. Decorative,
   GPU-cheap, fully calmed under prefers-reduced-motion.
   ========================================================================= */
#site-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  /* subtle vertical hue shift down the page keeps the field from reading flat */
  background: linear-gradient(180deg, #070b14 0%, #090e1b 36%, #070b14 68%, #060912 100%);
}
.site-bg-stars { position: absolute; inset: 0; }
.site-bg-stars canvas { width: 100%; height: 100%; display: block; }

/* slow-drifting bloom blobs - the glow that bleeds seamlessly across sections */
.site-bg-bloom {
  position: absolute; border-radius: 50%; filter: blur(64px);
  opacity: 0.55; will-change: transform;
}
.site-bg-bloom--1 {
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; top: -14%; left: -10%;
  background: radial-gradient(circle, rgba(43,58,102,0.55), transparent 66%);
  animation: rvBloom1 36s ease-in-out infinite;
}
.site-bg-bloom--2 {
  width: 50vw; height: 50vw; max-width: 720px; max-height: 720px; top: 34%; right: -14%;
  background: radial-gradient(circle, rgba(195,163,104,0.20), transparent 66%);
  animation: rvBloom2 46s ease-in-out infinite;
}
.site-bg-bloom--3 {
  width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; bottom: -16%; left: 20%;
  background: radial-gradient(circle, rgba(43,58,102,0.40), transparent 66%);
  animation: rvBloom3 54s ease-in-out infinite;
}
@keyframes rvBloom1 { 0%,100% { transform: translate3d(0,0,0); }   50% { transform: translate3d(8%,6%,0); } }
@keyframes rvBloom2 { 0%,100% { transform: translate3d(0,0,0); }   50% { transform: translate3d(-7%,-5%,0); } }
@keyframes rvBloom3 { 0%,100% { transform: translate3d(0,0,0); }   50% { transform: translate3d(5%,-7%,0); } }

/* frame the viewport edges so content floats over the field */
.site-bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 100% at 50% 0%,   transparent 55%, rgba(4,7,14,0.55) 100%),
    radial-gradient(120% 120% at 50% 100%, transparent 60%, rgba(4,7,14,0.55) 100%);
}
@media (prefers-reduced-motion: reduce) { .site-bg-bloom { animation: none; } }

/* =========================================================================
   Seamless sections - transparent over #site-bg, with "surface" sections
   rendered as a soft raised wash that fades out top & bottom. No solid fills,
   no hard borders between sections.
   ========================================================================= */
.section--surface { background: transparent; }
.section--surface::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%, rgba(16,21,38,0.6) 16%, rgba(16,21,38,0.6) 84%, transparent 100%);
}

/* --- Scroll reveal (only hidden when JS is available to reveal it) -------
   Simple, calm fade + rise, staggered across grouped siblings via --reveal-d.
   (A richer "electric" section entrance can be layered on later.) */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--reveal-d, 0ms); will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
/* directional variants for added life */
.js .reveal-left  { transform: translateX(-28px); }
.js .reveal-right { transform: translateX(28px); }
.js .reveal-scale { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Electric heading reveal (neon power-on) ----------------------------
   Every main heading powers on like a neon sign: it flickers a few times -
   dim, cut out, brighter, cut out - then snaps to full with a gold glow that
   flares and settles. --elec/--elec-hot are the glow tints (retinted for light
   theme in theme.css). JS adds .electric + .is-lit when the heading scrolls
   into view; without JS or under reduced motion, headings are plain text. */
.js .electric { --elec: 217,190,131; --elec-hot: 255,246,214; opacity: 0; }
.js .electric.is-lit { animation: rv-neon-text 1.2s var(--ease) both; }
@keyframes rv-neon-text {
  0%   { opacity: 0;    text-shadow: none; }
  14%  { opacity: 0.5;  text-shadow: 0 0 6px rgba(var(--elec),0.6); }
  20%  { opacity: 0.08; text-shadow: none; }
  34%  { opacity: 0.85; text-shadow: 0 0 12px rgba(var(--elec-hot),0.75), 0 0 22px rgba(var(--elec),0.5); }
  42%  { opacity: 0.2;  text-shadow: none; }
  54%  { opacity: 1;    text-shadow: 0 0 16px rgba(var(--elec-hot),0.8), 0 0 30px rgba(var(--elec),0.55); }
  62%  { opacity: 0.65; text-shadow: none; }
  76%  { opacity: 1;    text-shadow: 0 0 10px rgba(var(--elec),0.6); }
  100% { opacity: 1;    text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .electric { opacity: 1; animation: none; }
}

/* =========================================================================
   Gallery grid + lightbox
   ========================================================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.gallery-item {
  display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--border);
  border-radius: var(--r-card); background: var(--card); overflow: hidden;
  cursor: pointer; position: relative; aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* lightbox overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: min(90vw, 900px); max-height: 86vh; margin: 0; }
.lightbox-figure img {
  max-width: 100%; max-height: 86vh; width: auto; height: auto;
  border-radius: var(--r-sm); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-strong);
  color: #fff; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold-soft); border-color: rgba(195,163,104,0.5); color: var(--gold-bright); }
.lightbox-close { top: clamp(0.75rem, 3vw, 1.75rem); right: clamp(0.75rem, 3vw, 1.75rem); font-size: 1.75rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav .rv-icon { width: 1.25rem; height: 1.25rem; }
.lightbox-prev { left: clamp(0.5rem, 3vw, 1.75rem); }
.lightbox-prev .rv-icon { transform: rotate(180deg); }
.lightbox-next { right: clamp(0.5rem, 3vw, 1.75rem); }
