/* ============================================================
   APEX AUTOMATIONS — Premium 3D Scrolling Site
   Gold / Obsidian design system
   ============================================================ */

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

:root {
  --bg: #050505;
  --bg2: #0a0a0a;
  --bg3: #0e0e0e;
  --card: #101010;
  --card2: #151515;
  --gold: #d4a843;
  --gold-l: #e8c86a;
  --gold-d: #8b7335;
  --gold-label: #9d8240; /* gold-d is only 4.47:1 as text; this clears AA (≥4.5:1) for micro-labels */
  --gold-glow: rgba(212, 168, 67, 0.14);
  --gold-bg: rgba(212, 168, 67, 0.05);
  --white: #f5f5f3;
  --gray: #a3a09a;
  --dark: #8a867c; /* muted text — kept ≥4.5:1 contrast on the near-black backgrounds */
  --border: rgba(212, 168, 67, 0.12);
  --border-soft: rgba(255, 255, 255, 0.05);
  --wa-green: #25d366;   /* WhatsApp brand green */
  --wa-green-d: #1faa52;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

html { overflow-x: clip; } /* never let an off-screen reveal/transform widen the page (mobile zoom-out bug); clip is position:sticky-safe */
html:not(.js) { scroll-behavior: smooth; } /* native smooth only without JS — the JS path uses Lenis/scrollIntoView, so this avoids double-smoothing stutter */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) keeps the body from becoming a scroll container that jitters the sticky hero in Safari/Firefox */
  line-height: 1.6;
}

::selection { background: rgba(212, 168, 67, 0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060606; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-d); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Film grain overlay ── */
.noise {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 97;
  opacity: 0.035;
  contain: strict;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* static grain — the infinite translate animation repainted a 4x-viewport
     layer over the whole page forever; static reads identically at 3.5% opacity */
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ── Loader ── */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: #040404;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 110px; height: 110px;
  filter: drop-shadow(0 0 35px rgba(212, 168, 67, 0.35));
  animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
.loader-name {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 8px; color: var(--gold);
  text-transform: uppercase;
}
.loader-bar {
  width: 180px; height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative; overflow: hidden;
}
.loader-bar i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.loader-count { font-size: 11px; letter-spacing: 4px; color: var(--dark); }

/* ── Custom cursor (fine pointers only) ── */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-dot, .cursor-ring {
    display: block;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 999;
    border-radius: 50%;
    transform: translate(-200px, -200px); /* parked off-screen until first pointermove */
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--gold-l);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(212, 168, 67, 0.45);
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  }
  .cursor-ring.is-hover {
    width: 58px; height: 58px;
    border-color: rgba(232, 200, 106, 0.9);
    background: rgba(212, 168, 67, 0.07);
  }
}

/* ── WebGL canvas ── */
#webgl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Gold ambience orbs ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-gold {
  background: radial-gradient(circle, rgba(212, 168, 67, 0.16), transparent 65%);
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s; /* don't transition backdrop-filter — Safari re-blurs every frame of the 0.4s */
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px); /* 10px reads like 18px but blur cost is super-linear in radius */
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  width: 46px; height: 46px;
  filter: drop-shadow(0 0 12px rgba(212, 168, 67, 0.3));
  transition: transform 0.4s var(--ease-out);
}
.nav-logo:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-logo b {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 3px; color: var(--gold);
  font-weight: 700; white-space: nowrap;
}
.nav-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 8px; letter-spacing: 3.5px; color: var(--dark);
  font-weight: 500; margin-top: 1px;
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-link {
  font-size: 13px; letter-spacing: 1.5px;
  color: var(--gray); text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.4);
  padding: 11px 24px; border-radius: 30px;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold); color: #0a0a0a;
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.35);
}

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  position: relative; z-index: 102;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  margin: 5px auto;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; /* below .nav so the burger stays clickable */
  background: rgba(4, 4, 4, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 30px; color: var(--white);
  padding: 10px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.3s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mm-contact {
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 2px; color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 30px; padding: 13px 30px;
}

/* ── Buttons ── */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 17px 36px; border-radius: 40px;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, color 0.35s, background 0.35s, border-color 0.35s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-l), var(--gold) 50%, var(--gold-d));
  color: #0a0a0a;
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.25);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(212, 168, 67, 0.4);
}
.btn-gold::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn-ghost {
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.03);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  transform: translateY(-3px);
}

/* ── Generic section bits ── */
section { position: relative; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-d), transparent); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600; line-height: 1.15;
  margin-bottom: 18px;
}
.section-head h2 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-l), var(--gold) 60%, var(--gold-d));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.section-head .lead { font-size: 16px; color: var(--gray); line-height: 1.8; }

/* ============ HERO ============ */
/* The stage gives the scroll-scrubbed eagle room to fly: the inner .hero
   stays pinned (sticky) while the user scrolls through the stage height.
   Without JS (or with reduced motion) it collapses to a normal hero. */
.hero-stage { position: relative; }
html.js .hero-stage { height: 300vh; }
@media (max-width: 768px) {
  html.js .hero-stage { height: 140vh; } /* shorter flight on phones — less scroll-jacking */
}
html.js .hero-stage .hero {
  position: sticky; top: 0;
  height: 100svh; min-height: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero-stage { height: auto; }
  html.js .hero-stage .hero { position: relative; height: auto; min-height: 100svh; }
}
.hero-film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  mix-blend-mode: screen; /* pure-black footage pixels vanish into the page */
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  /* feather every footage edge into the page — the blend is invisible
     even if a frame's corners aren't perfectly black */
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 97%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 97%);
}
/* corner scrims: darken only where a title card lives — the eagle's
   center stage stays bright and unobstructed */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.5), transparent 14%),
    radial-gradient(ellipse 44% 38% at 20% 74%, rgba(4, 4, 4, 0.6), transparent 72%),
    radial-gradient(ellipse 40% 32% at 82% 32%, rgba(4, 4, 4, 0.5), transparent 72%),
    linear-gradient(0deg, rgba(4, 4, 4, 0.45), transparent 22%);
}
.hero-title { text-shadow: 0 2px 36px rgba(0, 0, 0, 0.85); }
.hero-sub { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.9); }
/* reduced-motion users see a single static eagle frame (drawn once by JS) */

/* anchor/hash jumps land below the fixed nav on every path (Lenis or native) */
section[id] { scroll-margin-top: calc(var(--nav-h) + 10px); }

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
  position: relative;
  z-index: 1;
  perspective: 1000px;
}
/* the hero is a film frame now: text arrives as positioned title-card
   beats (sequenced by eagle-scroll.js), never as one centered block */
.hero-inner { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-beat { position: absolute; will-change: transform, opacity; pointer-events: auto; }
html.js .hb-2, html.js .hb-3 { opacity: 0; } /* pre-hidden until their beat */

.hb-1 {
  left: clamp(24px, 7vw, 120px);
  bottom: 22%;
  text-align: left;
}
.hb-1 .hero-eyebrow { margin-bottom: 24px; }
.hb-1 .hero-title { font-size: clamp(40px, 6.2vw, 86px); margin-bottom: 0; }

.hb-2 {
  right: clamp(24px, 7vw, 120px);
  top: 26%;
  max-width: 480px;
  text-align: right;
}
.hb-2 .hero-sub { margin: 0; max-width: none; }

.hb-3 {
  left: 0; right: 0;
  bottom: 13%;
  display: flex; flex-direction: column; align-items: center;
}
.hb-3 .hero-ctas { margin-bottom: 44px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.72); /* solid — blur here re-samples the moving eagle behind it every scrub frame */
  padding: 10px 22px; border-radius: 30px;
  margin-bottom: 34px;
}
.hero-eyebrow .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-l);
  box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.6);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(212, 168, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.hero-title .gold-grad {
  background: linear-gradient(115deg, #f3dc8e 0%, var(--gold) 45%, #9a7d39 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  font-style: italic;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--gray);
  max-width: 640px; margin: 0 auto 44px;
  line-height: 1.85;
}
.hero-sub b { color: var(--gold-l); font-weight: 500; }
.hero-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 74px; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 84px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700; color: var(--gold);
  line-height: 1;
}
.stat-num sup { font-size: 0.55em; margin-left: 2px; }
.stat-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--dark); margin-top: 10px;
}
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.scroll-cue span { font-size: 9px; letter-spacing: 4px; color: var(--dark); }
.scroll-cue .cue-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cueDrop 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ============ MARQUEE ============ */
.marquee-band {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(8, 8, 8, 0.92); /* solid instead of live backdrop-blur — the blur behind moving marquee text isn't perceptible but re-samples every frame */
  overflow: hidden;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 70px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: 1px;
  color: var(--dark);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--gold); }
.marquee-item i {
  width: 5px; height: 5px;
  background: var(--gold-d);
  border-radius: 50%;
  transform: rotate(45deg);
}

/* ============ EDGE (Why Apex) ============ */
.edge { padding: 150px 0 130px; overflow: hidden; }
.edge-watermark {
  position: absolute; right: -8%; top: 6%;
  width: clamp(360px, 44vw, 700px);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  /* no runtime grayscale filter — it re-filtered this 700px image on every parallax frame; at 5% opacity it's invisible anyway */
}
.edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.edge-card {
  background: linear-gradient(160deg, var(--card), #0b0b0b);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 42px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.edge-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.edge-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 168, 67, 0.06);
}
.edge-card:hover::before { opacity: 1; }
.edge-num {
  font-family: var(--font-display);
  font-size: 60px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 168, 67, 0.3);
  line-height: 1; margin-bottom: 26px;
}
.edge-card h3 {
  font-family: var(--font-display);
  font-size: 21px; margin-bottom: 14px;
}
.edge-card p { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ============ SERVICES ============ */
.services { padding: 130px 0 120px; background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 67, 0.04), transparent); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
  perspective: 1400px;
}
.svc-card3d {
  background: linear-gradient(165deg, var(--card) 0%, #0a0a0a 100%);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 38px 32px 34px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.svc-card3d:hover {
  border-color: rgba(212, 168, 67, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 168, 67, 0.07);
}
.svc-glare {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(212, 168, 67, 0.13), transparent 65%);
}
.svc-card3d:hover .svc-glare { opacity: 1; }
.svc-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(212, 168, 67, 0.14), rgba(212, 168, 67, 0.03));
  border: 1px solid var(--border);
  margin-bottom: 26px;
  transform: translateZ(34px);
}
.svc-icon svg { width: 26px; height: 26px; stroke: var(--gold-l); fill: none; stroke-width: 1.6; }
.svc-cat {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-label); margin-bottom: 10px;
}
.svc-card3d h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin-bottom: 13px; line-height: 1.3;
}
.svc-card3d > p { font-size: 14px; color: var(--gray); line-height: 1.75; margin-bottom: 24px; }
.svc-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  font-size: 11.5px; letter-spacing: 1px; color: var(--dark);
}
.svc-meta .svc-go {
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  transition: gap 0.3s var(--ease-out);
  padding: 14px 10px; margin: -14px -10px; /* invisible 44px-class touch target */
}
.svc-card3d:hover .svc-go { gap: 12px; }
.services-cta { text-align: center; margin-top: 60px; }

/* ============ PROCESS ============ */
.process { padding: 140px 0; }
.process-track { position: relative; max-width: 860px; margin: 0 auto; }
.process-rail {
  position: absolute; left: 31px; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.process-line {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--gold-l), var(--gold-d));
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.5);
}
.step {
  display: flex; gap: 38px;
  padding: 34px 0;
  position: relative;
}
.step-num {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--gold);
  position: relative; z-index: 2;
  transition: box-shadow 0.4s, border-color 0.4s, background 0.4s;
}
.step:hover .step-num {
  border-color: var(--gold);
  box-shadow: 0 0 34px rgba(212, 168, 67, 0.25);
  background: #121008;
}
.step-body { padding-top: 6px; }
.step-tag { font-size: 10px; letter-spacing: 3px; color: var(--gold-label); text-transform: uppercase; }
.step-body h3 {
  font-family: var(--font-display);
  font-size: 25px; margin: 8px 0 10px;
}
.step-body p { font-size: 14.5px; color: var(--gray); max-width: 560px; line-height: 1.75; }

/* ============ ROI CALCULATOR ============ */
.calc { padding: 120px 0 140px; }
.calc-box {
  max-width: 1020px; margin: 0 auto;
  background: linear-gradient(150deg, #11100b, #0a0a0a 60%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(34px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(34px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}
.calc-box::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.12), transparent 70%);
  pointer-events: none;
}
.calc-fields { display: flex; flex-direction: column; gap: 32px; }
.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; letter-spacing: 1px; color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.calc-field label output {
  font-family: var(--font-display);
  font-size: 22px; color: var(--gold-l); letter-spacing: 0;
  text-transform: none;
  white-space: nowrap; flex-shrink: 0; margin-left: 14px;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 50%), rgba(255, 255, 255, 0.09) var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e3a4, var(--gold) 55%, var(--gold-d));
  border: 2px solid #060606;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.55);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid #060606;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.55);
  cursor: grab;
}
input[type="range"]:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 8px;
  border-radius: 4px;
}
.calc-cur {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  align-self: flex-start;
}
.calc-cur button {
  background: none; border: none;
  color: var(--dark);
  font-size: 13px; font-weight: 600;
  padding: 14px 22px; /* ≥44px touch height */
  transition: background 0.3s, color 0.3s;
}
.calc-cur button.on { background: var(--gold); color: #0a0a0a; }
.calc-result {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  border-left: 1px solid var(--border-soft);
  padding-left: clamp(30px, 4vw, 60px);
}
.calc-result .cr-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--dark); margin-bottom: 16px;
}
.calc-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  background: linear-gradient(120deg, #f3dc8e, var(--gold) 55%, var(--gold-d));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  line-height: 1.1;
  word-break: break-word;
}
.calc-result .cr-sub { font-size: 13px; color: var(--gray); margin-top: 14px; line-height: 1.7; }
.calc-result .btn-gold { margin-top: 34px; }

/* ============ PACKAGES ============ */
.packages { padding: 120px 0 140px; background: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(212, 168, 67, 0.045), transparent); }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.pkg {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 46px 36px 40px;
  text-align: center;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.pkg:hover {
  transform: translateY(-10px);
  border-color: var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.pkg.featured {
  border-color: rgba(212, 168, 67, 0.45);
  background:
    linear-gradient(170deg, rgba(212, 168, 67, 0.07), rgba(212, 168, 67, 0.01) 50%),
    var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 168, 67, 0.08);
}
.pkg.featured:hover { box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 168, 67, 0.14); }
.pkg-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--gold-l), var(--gold));
  color: #0a0a0a;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  padding: 8px 22px; border-radius: 30px;
  box-shadow: 0 6px 22px rgba(212, 168, 67, 0.4);
  white-space: nowrap;
}
.pkg h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.pkg .pkg-desc { font-size: 13px; color: var(--dark); margin-bottom: 30px; }
.pkg ul { list-style: none; text-align: left; margin-bottom: 36px; flex: 1; }
.pkg li {
  font-size: 13.5px; color: var(--gray);
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}
.pkg li:last-child { border-bottom: none; }
.pkg li::before {
  content: '';
  position: absolute; left: 2px; top: 17px;
  width: 10px; height: 6px;
  border-left: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: rotate(-45deg);
}
.pkg-btn {
  display: block;
  padding: 15px 20px;
  border-radius: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.pkg-btn-outline { border: 1px solid rgba(212, 168, 67, 0.4); color: var(--gold); }
.pkg-btn-outline:hover { background: rgba(212, 168, 67, 0.1); transform: translateY(-2px); }
.pkg-btn-gold {
  background: linear-gradient(120deg, var(--gold-l), var(--gold) 60%, var(--gold-d));
  color: #0a0a0a;
  box-shadow: 0 8px 26px rgba(212, 168, 67, 0.3);
}
.pkg-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(212, 168, 67, 0.45); }
.pkg-note { text-align: center; font-size: 12.5px; color: var(--dark); margin-top: 38px; letter-spacing: 0.5px; }

/* ============ PORTFOLIO (placeholder) ============ */
.portfolio { padding: 130px 0; }
.folio-empty {
  max-width: 860px; margin: 0 auto;
  border: 1px dashed rgba(212, 168, 67, 0.25);
  border-radius: 28px;
  padding: clamp(60px, 9vw, 110px) 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(212, 168, 67, 0.015);
}
.folio-empty img {
  width: 92px; margin: 0 auto 30px;
  opacity: 0.9;
  filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.25));
  animation: folioFloat 5s ease-in-out infinite;
}
@keyframes folioFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.folio-empty h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}
.folio-empty p { color: var(--gray); font-size: 15px; max-width: 460px; margin: 0 auto 30px; line-height: 1.8; }

/* ============ FAQ ============ */
.faq { padding: 110px 0 130px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-q {
  width: 100%;
  background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left;
  padding: 28px 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold-l); }
.faq-q .faq-x {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}
.faq-q .faq-x::before, .faq-q .faq-x::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.faq-q .faq-x::before { width: 12px; height: 1.5px; }
.faq-q .faq-x::after { width: 1.5px; height: 12px; transition: opacity 0.3s; }
.faq-item.open .faq-x { transform: rotate(135deg); background: rgba(212, 168, 67, 0.12); border-color: var(--gold); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-a p {
  padding: 0 6px 30px;
  color: var(--gray);
  font-size: 14.5px; line-height: 1.85;
  max-width: 720px;
}

/* ============ CONTACT ============ */
.contact {
  padding: 130px 0 130px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 168, 67, 0.05), transparent),
    linear-gradient(180deg, transparent, #070707);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.15;
  margin-bottom: 22px;
}
.contact-info > p { color: var(--gray); font-size: 15.5px; line-height: 1.85; margin-bottom: 44px; }
.c-card {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: border-color 0.35s, transform 0.35s, background 0.35s;
}
.c-card:hover {
  border-color: var(--border);
  background: rgba(212, 168, 67, 0.04);
  transform: translateX(6px);
}
.c-card .ci {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 13px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.c-card .ci svg { width: 20px; height: 20px; stroke: var(--gold-l); fill: none; stroke-width: 1.7; }
.c-card b { display: block; font-size: 14.5px; font-weight: 600; }
.c-card span { font-size: 12px; color: var(--dark); letter-spacing: 0.5px; }

.form-shell {
  background: linear-gradient(165deg, var(--card), #0b0b0b);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: clamp(30px, 4vw, 48px);
}
.form-shell h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }
.form-shell .fs-sub { font-size: 13px; color: var(--dark); margin-bottom: 32px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { margin-bottom: 20px; }
.f-field label {
  display: block;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 9px;
}
.f-field input, .f-field select, .f-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  padding: 15px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.f-field textarea { resize: vertical; min-height: 110px; }
.f-field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d4a843' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.f-field select option { background: #111; color: var(--white); }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  border-color: rgba(212, 168, 67, 0.5);
  background: rgba(212, 168, 67, 0.035);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.08);
}
.form-send { width: 100%; justify-content: center; border: none; font-size: 13px; }
.form-alt {
  text-align: center; margin-top: 20px;
  font-size: 12.5px; color: var(--dark);
}
.form-alt a { color: var(--gold); border-bottom: 1px solid rgba(212, 168, 67, 0.3); transition: border-color 0.3s; }
.form-alt a:hover { border-color: var(--gold); }
.form-note { display: none; text-align: center; margin-top: 16px; font-size: 13px; color: var(--gold-l); }
.form-note.show { display: block; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border-soft);
  background: #040404;
  padding: 80px 0 36px;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand img { width: 64px; margin-bottom: 20px; filter: drop-shadow(0 0 16px rgba(212, 168, 67, 0.25)); }
.footer-brand b {
  font-family: var(--font-display);
  font-size: 19px; letter-spacing: 3px; color: var(--gold);
  display: block; margin-bottom: 12px;
}
.footer-brand p { font-size: 13.5px; color: var(--dark); max-width: 300px; line-height: 1.8; }
.footer h4 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--dark); margin-bottom: 22px; font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  font-size: 14px; color: var(--gray);
  transition: color 0.3s, padding-left 0.3s;
}
.footer ul a:hover { color: var(--gold); padding-left: 6px; }
.footer-legal {
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--dark);
}
.footer-legal a { color: var(--gray); transition: color 0.3s; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal .fl-dot { color: var(--gold-d); }
.footer-bottom {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: var(--dark);
}
.footer-bottom b { color: var(--gold); font-weight: 600; }

/* ── Chapter scenes (full-screen story interstitials) ── */
.chapter-scene { position: relative; height: 170vh; z-index: 2; }
.cs-pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cs-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(220px, 36vw, 540px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 168, 67, 0.14);
  user-select: none;
  z-index: 0;
}
.cs-body { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.cs-kicker {
  font-size: 12px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7.5vw, 100px);
  font-weight: 700;
  line-height: 1.05;
}
.cs-title em {
  font-style: italic;
  background: linear-gradient(115deg, #f3dc8e, var(--gold) 55%, var(--gold-d));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.cs-tag {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--gray);
  margin-top: 20px;
  letter-spacing: 0.4px;
}
.cs-rule {
  width: 110px; height: 1px;
  margin: 36px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
}
@media (max-width: 768px) {
  .chapter-scene { height: 115vh; }
  .cs-num { font-size: 62vw; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-scene { height: auto; }
  .cs-pin { position: relative; height: auto; padding: 130px 0; }
}

/* ── Chapter ambience (the page atmosphere travels with the story) ── */
.ambience { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambience i {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.ambience .a1 { background: radial-gradient(ellipse 65% 45% at 50% 12%, rgba(212, 168, 67, 0.07), transparent 70%); }
.ambience .a2 { background: radial-gradient(ellipse 55% 60% at 8% 45%, rgba(212, 168, 67, 0.065), transparent 70%); }
.ambience .a3 { background: radial-gradient(ellipse 55% 60% at 92% 55%, rgba(232, 200, 106, 0.06), transparent 70%); }
.ambience .a4 { background: radial-gradient(ellipse 70% 50% at 50% 95%, rgba(212, 168, 67, 0.075), transparent 70%); }
.ambience.amb-1 .a1, .ambience.amb-2 .a2, .ambience.amb-3 .a3, .ambience.amb-4 .a4 { opacity: 1; }

/* ── Golden story path (scroll-drawn serpentine) ── */
.story-path {
  position: absolute; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1; /* over section backgrounds, under .wrap content (z-2) */
  display: none; /* JS measures the page, sizes it, then shows it */
}
.story-path svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sp-line {
  stroke: url(#spGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  /* no filter:drop-shadow — re-rasterizing this full-page path's blurred
     shadow on every scrub frame was a heavy per-frame SVG repaint */
}
.sp-comet {
  position: absolute; top: 0; left: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7da, var(--gold-l) 45%, rgba(212, 168, 67, 0));
  box-shadow: 0 0 18px 4px rgba(232, 200, 106, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}
@media (max-width: 768px) {
  .sp-line { stroke-width: 1.2; }
  .sp-comet { display: none; }
}

/* ── Non-uniform chapter alignment ── */
.section-head.head-left { text-align: left; margin-left: 0; }
.section-head.head-right { text-align: right; margin-right: 0; }
.section-head.head-left .eyebrow::before { display: none; }
.section-head.head-right .eyebrow::after { display: none; }
@media (max-width: 768px) {
  /* phones read straight down the middle */
  .section-head.head-left, .section-head.head-right {
    text-align: center; margin-left: auto; margin-right: auto;
  }
  .section-head.head-left .eyebrow::before,
  .section-head.head-right .eyebrow::after { display: inline-block; }
}

/* ── Story progress nav (desktop) ── */
.story-nav {
  position: fixed; right: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; gap: 16px;
}
.story-nav a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 2px 0;
}
.story-nav i {
  width: 9px; height: 9px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-d);
  background: transparent;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.story-nav span {
  font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--dark);
  opacity: 0; transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
  white-space: nowrap;
}
.story-nav a:hover i { background: rgba(212, 168, 67, 0.4); }
.story-nav a.active i {
  background: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.7);
}
.story-nav a:hover span, .story-nav a.active span {
  opacity: 1; transform: translateX(0); color: var(--gold);
}
@media (max-width: 1024px), (max-height: 560px) {
  .story-nav { display: none; } /* height guard: short windows collide with .to-top */
}

/* ── Kinetic headline words ── */
.kwm {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  /* breathing room inside the clip so Playfair descenders & italic
     overhangs aren't shaved at line-height 1.15 */
  padding: 0 0.08em 0.14em;
  margin: 0 -0.08em -0.14em;
}
.kw { display: inline-block; } /* no permanent will-change — these words animate once on reveal */
/* transformed children can't inherit a parent's clipped gradient —
   each gold word carries its own */
.section-head h2 em .kw {
  background: linear-gradient(120deg, var(--gold-l), var(--gold) 60%, var(--gold-d));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

/* ── Floating buttons ── */
.wa-float {
  position: fixed; right: 26px; bottom: 26px;
  z-index: 95;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-d));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPing 2.2s ease-out infinite;
}
@keyframes waPing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.65); opacity: 0; }
}
.to-top {
  position: fixed; right: 30px; bottom: 100px;
  z-index: 95;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 17px;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s, visibility 0.35s, background 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(212, 168, 67, 0.15); }

/* ============ PLAYFUL ICONS — v2 ============ */
/* entrance: each icon springs in like a minted coin when its card appears */
.svc-icon { position: relative; }
html.js .svc-card3d:not(.pop) .svc-icon svg { opacity: 0; transform: scale(0.2) rotate(-30deg); }
.svc-card3d.pop .svc-icon svg { animation: iconSpring 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.svc-grid > article:nth-child(3n+2).pop .svc-icon svg { animation-delay: 0.12s; }
.svc-grid > article:nth-child(3n).pop .svc-icon svg { animation-delay: 0.24s; }
@keyframes iconSpring {
  0% { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  60% { opacity: 1; transform: scale(1.15) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* idle: a soft STATIC gold glow. The old infinite box-shadow "breathing"
   animation repainted all 12 icons every frame for the whole session
   (box-shadow is a paint property — not compositable) = constant cost. */
.svc-icon { box-shadow: 0 0 18px rgba(212, 168, 67, 0.14); }

/* hover: the icon coin-flips, a gold ring ripples out, a spark pops */
.svc-card3d:hover .svc-icon {
  animation: iconFlip 0.9s cubic-bezier(0.3, 0.8, 0.3, 1.05);
  background: linear-gradient(140deg, rgba(212, 168, 67, 0.26), rgba(212, 168, 67, 0.08));
  border-color: rgba(212, 168, 67, 0.5);
}
.svc-card3d:hover .svc-icon svg { stroke: #f3dc8e; }
@keyframes iconFlip {
  0% { transform: translateZ(34px) perspective(320px) rotateY(0deg); }
  55% { transform: translateZ(34px) perspective(320px) rotateY(200deg) scale(1.08); }
  100% { transform: translateZ(34px) perspective(320px) rotateY(360deg) scale(1); }
}
/* the glow stagger's animation-delay must not leak into the hover flip */
.svc-grid > article.svc-card3d:hover .svc-icon { animation-delay: 0s; }
.svc-icon::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
}
.svc-card3d:hover .svc-icon::before { animation: iconRipple 0.8s ease-out; }
@keyframes iconRipple {
  0% { opacity: 1; transform: scale(1); border-color: rgba(232, 200, 106, 0.8); }
  100% { opacity: 0; transform: scale(2); border-color: transparent; }
}
.svc-icon::after {
  content: '✦';
  position: absolute; top: -8px; right: -8px;
  font-size: 15px;
  color: #f3dc8e;
  text-shadow: 0 0 10px rgba(212, 168, 67, 0.9);
  opacity: 0;
  pointer-events: none;
}
.svc-card3d:hover .svc-icon::after { animation: sparkPop 0.7s ease 0.18s; }
@keyframes sparkPop {
  0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.3) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(100deg) translate(8px, -10px); }
}

/* shared keyframes still used by contact cards and process steps */
@keyframes icoWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-13deg); }
  55% { transform: rotate(11deg); }
  80% { transform: rotate(-4deg); }
}
@keyframes icoPop {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* edge-card numbers pop and fill with gold on hover */
.edge-card:hover .edge-num {
  animation: numPop 0.55s ease;
  -webkit-text-stroke: 1px var(--gold);
  color: rgba(212, 168, 67, 0.18);
}
@keyframes numPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-3deg); }
  100% { transform: scale(1); }
}

/* contact card icons wiggle hello */
.c-card:hover .ci { animation: icoWiggle 0.7s ease; background: rgba(212, 168, 67, 0.2); }

/* process step numbers get a heartbeat on hover */
.step:hover .step-num { animation: icoPop 0.6s ease; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-box { grid-template-columns: 1fr; }
  .calc-result { border-left: none; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 38px; }
  .pkg-grid { grid-template-columns: 1fr; max-width: 460px; }
  .pkg.featured { order: -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 66px; }
  .hero { padding-bottom: 70px; }
  .hero-ctas { margin-bottom: 56px; }
  /* phone framing: the contained eagle sits top-anchored (~12–38% tall),
     so the title-card beats cluster directly beneath it instead of leaving
     a gap, and the CTA beat fills the lower third */
  .hb-1 { left: 22px; right: 22px; top: 44%; bottom: auto; }
  .hb-2 { left: 22px; right: 22px; top: 44%; bottom: auto; max-width: none; text-align: left; }
  .hb-3 { bottom: 13%; }
  .hb-3 .hero-ctas { margin-bottom: 34px; }
  .hero-ctas .btn-gold, .hero-ctas .btn-ghost { padding: 15px 28px; font-size: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .edge, .services, .process, .calc, .packages, .portfolio, .faq, .contact { padding-top: 90px; padding-bottom: 90px; }
  .section-head { margin-bottom: 50px; }
  .step { gap: 22px; }
  .step-num { width: 52px; height: 52px; font-size: 17px; }
  .process-rail { left: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  /* roomier tap targets for footer/legal links on touch screens */
  .footer ul li { margin-bottom: 4px; }
  .footer ul a { display: inline-block; padding: 8px 0; }
  .footer-legal { gap: 10px 12px; }
  .footer-legal a { padding: 6px 0; }
  .footer-bottom { justify-content: center; text-align: center; }
  .wa-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .to-top { right: 21px; bottom: 88px; }
  .scroll-cue { display: none; }
  .footer { padding-bottom: 100px; } /* keep footer text clear of the WhatsApp float */
}
@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .hero-stats { gap: 24px; }
  .svc-grid { grid-template-columns: 1fr; }
}

/* ============ MOBILE PERFORMANCE ============ */
/* This page is GPU/compositor-bound on phones. Drop the heaviest paint
   layers — the animated full-screen fractal-noise grain and the
   backdrop-filter blurs that recompute on every scroll frame — and swap
   them for solid fills so scrolling stays smooth. */
@media (max-width: 768px) {
  .noise { display: none; }
  .nav.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .marquee-band {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .hero-eyebrow { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-menu {
    background: rgba(4, 4, 4, 0.985);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .to-top {
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ============ KEYBOARD FOCUS ============ */
/* a guaranteed, on-brand focus ring for keyboard users — the default UA
   outline is unreliable against the near-black palette. Form fields keep
   their own box-shadow ring; range inputs keep their bespoke offset. */
a:focus-visible,
button:focus-visible,
.faq-q:focus-visible,
.burger:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 3px;
  border-radius: 4px;
}

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