/* ============================================================
   AULTIMATE MEDIA — styles.css
   Design System: Black / Gold / White | Gilroy + Hanson Bold
   ============================================================ */

/* ── 00 FONTS ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Hanson';
  src: url('../fonts/Hanson-Bold.woff2') format('woff2'),
       url('../fonts/Hanson-Bold.otf')   format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-RegularItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-HeavyItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ── 01 RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── EASY RESIZE CONTROLS ──────────────────────────────────
     loader-scale : zoom level of the preloader animation (1 = native video size, 2.5 = fills screen)
     nav-logo-size: width of the navbar logo image in px
  ─────────────────────────────────────────────────────────── */
  --loader-scale:   1.25;
  --nav-logo-size:  48px;

  /* Colors */
  --black:       #000000;
  --surface:     #0d0d0d;
  --card:        #141414;
  --card-raised: #1c1c1c;
  --border:      rgba(255,191,0,0.12);
  --gold:        #ffbf00;
  --gold-dim:    #b49121;
  --gold-glow:   rgba(255,191,0,0.25);
  --white:       #ffffff;
  --muted:       rgba(255,255,255,0.45);

  /* Typography */
  --font-display: 'Gilroy', sans-serif;
  --font-body:    'Gilroy', sans-serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-gold-sm:  0 0 0 1px rgba(255,191,0,0.1), 0 4px 16px rgba(0,0,0,0.6);
  --shadow-gold-md:  0 0 0 1px rgba(255,191,0,0.15), 0 8px 32px rgba(0,0,0,0.7), 0 0 60px rgba(255,191,0,0.08);
  --shadow-gold-lg:  0 0 0 1px rgba(255,191,0,0.2), 0 16px 64px rgba(0,0,0,0.8), 0 0 120px rgba(255,191,0,0.12);
}

html { font-size: 16px; } /* scroll-behavior removed — Lenis controls scrolling */

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── 02 TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1rem; letter-spacing: 0.12em; font-weight: 500; }

p { font-family: var(--font-body); font-size: 1rem; line-height: 1.75; color: var(--muted); }

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── 03 SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── 04 SELECTION ──────────────────────────────────────────── */
::selection { background: var(--gold); color: var(--black); }

/* ── 05 PRELOADER ──────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.preloader-logo--hidden {
  display: none;
}

/* ── 06 NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), padding 0.4s var(--ease-out);
  /* needed so the absolutely-positioned logo centers relative to the bar */
  isolation: isolate;
}

#navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-8);
}

#navbar.hidden { transform: translateY(-100%); }

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-4);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.logo-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
  transition: transform 0.35s var(--ease-spring);
}

.nav-logo img {
  width: var(--nav-logo-size);
  height: auto;
  display: block;
}

.nav-logo:hover .logo-wrap { transform: scale(1.1); }
.nav-logo:not(:hover) .logo-wrap { animation: logo-bounce-out 0.4s var(--ease-spring) forwards; }

@keyframes logo-bounce-out {
  0%   { transform: scale(1.1); }
  40%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  position: relative;
  padding-bottom: var(--sp-1);
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── PILL NAV (fixed, independent of navbar hide/show) ─────── */
.nav-pill-wrap {
  position: fixed;
  top: 0;
  left: var(--sp-8);
  z-index: 1001;
  height: 80px; /* matches navbar normal height */
  display: flex;
  align-items: center;
}

#nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  /* X position is set via transform in JS — avoids Chrome repaint bug
     when mixing `left` with translateY(-50%) */
  transform: translate(0, -50%);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2rem;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.22s var(--ease-out), opacity 0.22s var(--ease-out);
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

#nav-pill-hover {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  opacity: 0;
  transition: transform 0.18s var(--ease-out), width 0.18s var(--ease-out), height 0.18s var(--ease-out), opacity 0.15s var(--ease-out);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.nav-pill-items {
  display: flex;
  align-items: center;
  border-radius: 2rem;
  position: relative;
  z-index: 1;
  padding: 2px;
}

.nav-pill-item {
  padding: 0.38rem calc(1.05rem - 0.12em) 0.52rem calc(1.05rem + 0.12em);
  border-radius: 2rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.3s var(--ease-out);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.nav-pill-item.active { color: var(--white); }
.nav-pill-item:not(.active):hover { color: rgba(255, 255, 255, 0.82); }

/* Invisible spacer on the navbar left — mirrors .nav-right width to keep logo centered */
.nav-left-spacer {
  visibility: hidden;
  pointer-events: none;
  flex: 1;
}

/* ── SOCIAL ICONS (desktop right) ──────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition: color 0.25s var(--ease-out), transform 0.3s var(--ease-spring), filter 0.25s var(--ease-out);
}

.nav-social svg { width: 18px; height: 18px; display: block; }

.nav-social:hover { transform: translateY(-2px) scale(1.2); }
.nav-social--ig:hover { color: #e1306c; }
.nav-social--tt:hover { color: #ffffff; filter: drop-shadow(0 0 5px rgba(105, 201, 208, 0.55)); }
.nav-social--yt:hover { color: #ff2d2d; filter: drop-shadow(0 0 5px rgba(255, 45, 45, 0.45)); }
.nav-social:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* Hamburger */
.icon-menu {
  --gap: 5px;
  --height-bar: 2.5px;
  --pos-y-bar-one: 0;
  --pos-y-bar-three: 0;
  --scale-bar: 1;
  --rotate-bar-one: 0;
  --rotate-bar-three: 0;
  display: none;
  width: 25px;
  flex-direction: column;
  gap: var(--gap);
  cursor: pointer;
  position: relative;
  padding: var(--sp-2);
  box-sizing: content-box;
}

.bar {
  position: relative;
  height: var(--height-bar);
  width: 100%;
  border-radius: 0.5rem;
  background-color: var(--white);
}

.bar--1 {
  top: var(--pos-y-bar-one);
  transform: rotate(var(--rotate-bar-one));
  transition: top 200ms 100ms, transform 100ms;
}

.bar--2 {
  transform: scaleX(var(--scale-bar));
  transition: transform 150ms 100ms;
}

.bar--3 {
  bottom: var(--pos-y-bar-three);
  transform: rotate(var(--rotate-bar-three));
  transition: bottom 200ms 100ms, transform 100ms;
}

.check-icon:checked + .icon-menu > .bar--1 {
  transition: top 200ms, transform 200ms 100ms;
}

.check-icon:checked + .icon-menu > .bar--3 {
  transition: bottom 200ms, transform 200ms 100ms;
}

.check-icon:checked + .icon-menu {
  --pos-y-bar-one: calc(var(--gap) + var(--height-bar));
  --pos-y-bar-three: calc(var(--gap) + var(--height-bar));
  --scale-bar: 0;
  --rotate-bar-one: 45deg;
  --rotate-bar-three: -45deg;
}

/* Mobile nav drawer */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.nav-mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.25s, transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.nav-mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
.nav-mobile-menu a:nth-child(2) { transition-delay: 0.10s; }
.nav-mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
.nav-mobile-menu a:nth-child(4) { transition-delay: 0.20s; }
.nav-mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
.nav-mobile-menu a:nth-child(6) { transition-delay: 0.30s; }
.nav-mobile-menu a:nth-child(7) { transition-delay: 0.35s; }
.nav-mobile-menu a:nth-child(8) { transition-delay: 0.40s; }

.nav-mobile-menu a:hover { color: var(--gold); }

/* ── 07 BUTTONS ────────────────────────────────────────────── */
/* ── ANIMATED BUTTON ───────────────────────────────────────── */
.animated-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 32px;
  border: 4px solid transparent;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background-color: transparent;
  border-radius: 100px;
  color: var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1), color 0.35s cubic-bezier(0.23, 1, 0.32, 1), border-radius 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.animated-button svg {
  position: absolute;
  width: 20px;
  fill: var(--white);
  z-index: 9;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), fill 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 { right: 16px; transform: translateX(0); }
.animated-button .arr-2 { left: 16px; transform: translateX(-300%); }

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: var(--black);
  border-radius: 12px;
}

.animated-button:hover .arr-1 { transform: translateX(300%); }
.animated-button:hover .arr-2 { transform: translateX(0); }
.animated-button:hover .text  { transform: translateX(12px); }
.animated-button:hover svg    { fill: var(--black); }
.animated-button:active       { scale: 0.95; box-shadow: 0 0 0 4px var(--gold); }

.animated-button:hover .circle {
  transform: translate(-50%, -50%) scale(11);
  opacity: 1;
}

.animated-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Small variant — navbar */
.animated-button--sm {
  padding: 9px 22px;
  font-size: 0.7rem;
}
.animated-button--sm svg    { width: 16px; }
.animated-button--sm .arr-1 { right: 12px; }
.animated-button--sm .arr-2 { left: -20%; }
.animated-button--sm:hover .arr-1 { right: -20%; }
.animated-button--sm:hover .arr-2 { left: 12px; }

/* Full-width variant — service cards */
.animated-button--full { width: 100%; }
.animated-button--full .text { transform: translateX(-8px); }
.animated-button--full:hover .text { transform: translateX(8px); }

/* Filled rectangular variant — hero CTA */
.animated-button--filled {
  background-color: var(--gold);
  border-radius: 10px;
  color: var(--black);
  box-shadow: none;
}
.animated-button--filled svg          { fill: var(--black); }
.animated-button--filled .circle      { background-color: var(--gold); }

/* Border expands outward and fades — box-shadow is used so overflow:hidden
   on the button itself doesn't clip it (box-shadow renders outside the clip region) */
@keyframes btn-border-pulse {
  0%   { box-shadow: 0 0 0 0px  rgba(255, 191, 0, 0.65); }
  100% { box-shadow: 0 0 0 16px rgba(255, 191, 0, 0);    }
}

.animated-button--filled:hover {
  border-radius: 10px;
  background-color: var(--gold);
  color: var(--black);
  box-shadow: none; /* base rule sets 0 0 0 12px transparent — clear it */
  animation: btn-border-pulse 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animated-button--filled:hover svg    { fill: var(--black); }
/* Active: scale only, no outline ring */
.animated-button--filled:active       { box-shadow: none; animation: none; }

/* ── 08 HERO SECTION ───────────────────────────────────────── */
#hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Everything after hero stacks above it; negative margin pulls it up to scroll position 0 */
#page-overlay {
  position: relative;
  z-index: 2;
  margin-top: -100dvh;
}

/* Vimeo / video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrap iframe,
.hero-video-wrap video,
#vimeo-bg iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  min-width: 100% !important;
  min-height: 100% !important;
  width: 177.78vh !important;
  height: 56.25vw !important;
  pointer-events: none !important;
}

#vimeo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 40%),
    rgba(0,0,0,0.35);
  mix-blend-mode: multiply;
}

/* Cinematic CSS fallback — fades out once Vimeo video plays */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(180,145,33,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(255,191,0,0.04) 0%, transparent 60%),
    linear-gradient(160deg, #0a0a0a 0%, #000000 50%, #060504 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.hero-fallback.active { opacity: 1; }

/* Grain texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-8);
  max-width: 1200px;
  width: 100%;
}

.hero-title {
  font-family: 'Hanson', var(--font-display);
  font-size: clamp(1.1rem, 4.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
  display: block;
  opacity: 0;
}

.hero-tagline-wrap {
  margin-top: var(--sp-6);
  height: 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
  opacity: 0;
  animation: fade-up 0.8s 1.1s var(--ease-out) forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  transition: transform 0.6s var(--ease-in-out), opacity 0.5s;
}

.hero-tagline.enter  { transform: translateY(0);    opacity: 1; }
.hero-tagline.exit   { transform: translateY(-110%); opacity: 0; }
.hero-tagline.below  { transform: translateY(110%);  opacity: 0; }

.hero-cta-row {
  margin-top: var(--sp-10, 2.5rem);
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s 1.2s var(--ease-out) forwards;
}


/* ── 09 PARALLAX INTRO + SCROLL VIDEO (seamless single section) ── */
#parallax-intro {
  position: relative;
  /* 300vh CSS parallax + 700vh canvas scrub + 200vh phone + 150vh left text + 150vh right text + 100vh hold */
  height: 1500vh;
  pointer-events: none;
}

.pi-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.pi-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.pi-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
  will-change: width;
}

.pi-sky,
.pi-house,
.sv-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pi-sky,
.pi-house {
  object-fit: cover;
}

.pi-sky   { opacity: 0; transform: translateY(20%); will-change: opacity, transform; }
.pi-house { transform: translateY(100%); will-change: transform; }
.sv-canvas { opacity: 0; will-change: opacity, transform; }

.pi-phone-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateY(105%);
  z-index: 1;
}

.pi-phone-video {
  position: absolute;
  overflow: hidden;
}

.pi-phone-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.pi-phone-mask-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  z-index: 2;
}

.pi-text-left,
.pi-text-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28%;
  z-index: 3;
  pointer-events: none;
}
.pi-text-left  { left: 4%; text-align: center; }
.pi-text-right { right: 4%; text-align: center; }

.pi-text-right .pi-text-label {
  color: rgba(0,0,0,0.6);
  text-shadow: none;
}
.pi-text-right .pi-text-heading {
  color: #000;
  text-shadow: none;
}
.pi-text-right .pi-text-heading em {
  color: rgba(0,0,0,0.65);
  text-shadow: none;
}
.pi-text-right .pi-text-body {
  color: rgba(0,0,0,0.8);
  text-shadow: none;
}

.pi-text-left.pi-visible,
.pi-text-right.pi-visible {
  pointer-events: auto;
}

.pi-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.pi-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.pi-reveal-delay-1 { transition-delay: 0.15s; }

.pi-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  /* transition-delay set inline per character */
}
.pi-char.visible {
  opacity: 1;
  transform: translateY(0);
}
.pi-char-exit {
  transition-duration: 0.2s !important;
  transition-delay: 0s !important;
}
.pi-reveal-exit {
  transition-duration: 0.2s !important;
  transition-delay: 0s !important;
}

.pi-text-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.pi-text-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}
.pi-text-heading em {
  font-style: normal;
  color: var(--gold);
  text-shadow: none;
}

.pi-text-body {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
  margin-bottom: var(--sp-8);
}

.pi-text-cta {
  pointer-events: auto;
}

/* ── 09b SECTION SHARED ─────────────────────────────────────── */
.section {
  padding: var(--sp-32) var(--sp-8);
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--sp-16);
}

.section-header.centered { text-align: center; }

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--sp-4) 0;
  border-radius: 1px;
}

.section-header.centered .section-divider { margin: var(--sp-4) auto; }

/* ── 11 SERVICES SECTION ───────────────────────────────────── */
#services {
  background-color: var(--black);
  overflow: hidden;
}
#services .section-inner {
  position: relative;
  z-index: 1;
}
.services-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-rows: 80px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.services-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to right,  var(--black), transparent 10%, transparent 90%, var(--black)),
    linear-gradient(to bottom, var(--black), transparent 15%, transparent 85%, var(--black));
}
.services-bg-tile {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-bg-tile svg {
  display: block;
  width: 80px;
  height: 80px;
}
.services-bg-tile svg g {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 2.2s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.services-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: var(--sp-4) auto 0;
  line-height: 1.7;
}

.services-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  text-align: center;
}

.services-footer-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}
.services-footer-text strong {
  font-weight: 800;
  color: var(--white);
}

.services-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: var(--sp-8) var(--sp-4);
}

.services-grid .service-card {
  width: 272px;
  flex-shrink: 0;
}

/* Featured card wrapper — positions banner above card */
.sc-featured-wrap {
  position: relative;
  width: 272px;
  flex-shrink: 0;
  will-change: transform;
}

/* Group hover — blur siblings, lift hovered card (scale handled by anime.js) */
.services-grid:hover .service-card {
  opacity: 1;
  filter: blur(2px);
  clip-path: inset(0 round 18px);
}
.services-grid:hover .service-card:hover {
  opacity: 1 !important;
  filter: blur(0) !important;
  clip-path: none !important;
  z-index: 10 !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,191,0,0.5), 0 0 80px rgba(255,191,0,0.22) !important;
}
/* Un-blur featured card whenever wrapper is hovered (includes banner area) */
.services-grid:hover .sc-featured-wrap:hover .service-card {
  filter: blur(0) !important;
  clip-path: none !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

/* ── SERVICE CARD shell ─────────────────────────────────── */
.service-card {
  position: relative;
  background: linear-gradient(160deg, #1c1c1c 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,191,0,0.14);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out),
              opacity 0.28s var(--ease-out),
              filter 0.28s var(--ease-out),
              clip-path 0.28s var(--ease-out);
  z-index: 1;
  will-change: transform, opacity, filter;
}

/* Featured card — wrapper handles banner + frame; card keeps overflow:hidden for clean corners */
.sc-featured {
  border-color: rgba(255,191,0,0.55);
  box-shadow: 0 0 0 1px rgba(255,191,0,0.18), 0 0 40px rgba(255,191,0,0.14), 0 0 80px rgba(255,191,0,0.06);
}
.sc-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,191,0,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
/* Most Popular banner — always sized for hover state, clip-path masks to card size at rest.
   clip-path transitions are GPU composited (no layout reflow). */
.sc-popular-banner {
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  bottom: -48px;
  border-radius: 18px;
  background: var(--gold);
  z-index: 0;
  transform: translateY(0);
  clip-path: inset(0 4px 48px 4px round 18px);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  will-change: transform, clip-path;
  transition: none;
}
.sc-featured-wrap:hover .sc-popular-banner {
  clip-path: inset(0 round 18px);
  transform: translateY(-44px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
              clip-path 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.sc-featured-wrap:hover .sc-featured {
  box-shadow: none;
}
.services-grid:hover .sc-featured-wrap:hover .sc-featured {
  box-shadow: none !important;
}

/* Glow orbs */
.sc-orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.12s var(--ease-out);
  z-index: 0;
}
.sc-orb-tl { top: -60px; left: -60px; background: rgba(255,191,0,0.12); }
.sc-orb-br { bottom: -60px; right: -60px; background: rgba(255,191,0,0.09); }
.service-card:hover .sc-orb { transform: scale(1.6); opacity: 0.7; }

/* Image */
.sc-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  z-index: 1;
}
.sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s var(--ease-out);
}
.service-card:hover .sc-img img { transform: scale(1.06); }


.sc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}

/* Body */
.sc-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Most Popular label (featured card only) */
.sc-popular-top {
  display: inline-block;
  align-self: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: var(--sp-4);
  transition: opacity 0.2s ease;
}
.sc-featured:hover .sc-popular-top {
  opacity: 0;
}

/* Title row */
.sc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  min-width: 0;
}
.sc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(255,191,0,0.08);
  border: 1px solid rgba(255,191,0,0.22);
  border-radius: 100px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Price */
.sc-starting {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1px;
  min-height: 1em;
}
.sc-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.sc-price-custom {
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.sc-cents {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
}
.sc-desc {
  font-size: 0.76rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.48);
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-read-more {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
  transition: color 0.2s;
}
.sc-read-more::after { content: ' ›'; }
.sc-read-more:hover { color: var(--white); }

/* Accordion */
.service-accordion { flex: 1; margin-bottom: var(--sp-4); }
.sc-services { flex: 1; margin-bottom: var(--sp-4); }

.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.07); }

.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: var(--sp-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  min-width: 0;
}
.accordion-toggle span,
.accordion-toggle > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accordion-toggle:hover { color: var(--gold); }
.accordion-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.accordion-toggle:hover .accordion-icon {
  border-color: rgba(255,191,0,0.45);
  color: var(--gold);
  background: rgba(255,191,0,0.06);
}
.accordion-item.open .accordion-icon {
  border-color: rgba(255,191,0,0.6);
  color: var(--gold);
  background: rgba(255,191,0,0.08);
}
.accordion-icon svg {
  display: block;
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
}

/* Smooth height via CSS grid trick */
.accordion-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}
.accordion-item.open .accordion-body-wrap {
  grid-template-rows: 1fr;
}

.accordion-body {
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.38);
  overflow: hidden;
  padding: 0;
}
.accordion-item.open .accordion-body {
  padding-bottom: var(--sp-3);
}

/* service card CTA — uses animated-button--full */


/* ── 12 PORTFOLIO SECTION ──────────────────────────────────── */
/* ═══════ PORTFOLIO — Vertical Infinite Scroll Columns ══════════ */
#portfolio {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0d0d0d;
  contain: layout style paint;
}

/* Full-section image grid */
.pf-grid {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 10px;
  padding: 0 10px;
}

.pf-col {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

/* Scrolling track — images duplicated inside for seamless loop */
.pf-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

@keyframes pf-scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes pf-scroll-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.pf-track--up   { animation: pf-scroll-up   linear infinite; }
.pf-track--down { animation: pf-scroll-down linear infinite; }

/* Cols 1,3,5: 1800px/50s = 36px/s. Cols 2,4: 2390px/66s ≈ 36px/s (same visual speed) */
.pf-track--s1 { animation-duration: 126s; animation-delay:    0s; }
.pf-track--s2 { animation-duration: 114s; animation-delay:  -23s; }
.pf-track--s3 { animation-duration: 126s; animation-delay:  -50s; }
.pf-track--s4 { animation-duration: 114s; animation-delay:  -69s; }
.pf-track--s5 { animation-duration: 126s; animation-delay: -100s; }

/* Pause all tracks when portfolio is off-screen (toggled by IntersectionObserver) */
#portfolio.pf-paused .pf-track { animation-play-state: paused; }

/* Image tiles — margin-bottom ensures -50% loops exactly one set */
.pf-tile {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.pf-tile img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}

/* Video tile — 2× the image height (580px) + same 10px margin-bottom */
.pf-tile--video {
  height: 580px;
}

.pf-video-ratio {
  position: relative;
  width: 100%;
  height: 100%;
}

.pf-video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Fade edges to background */
.pf-fade-top,
.pf-fade-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 32%;
  pointer-events: none;
  z-index: 2;
}
.pf-fade-top {
  top: 0;
  background: linear-gradient(to bottom, #0d0d0d 0%, transparent 100%);
}
.pf-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, #0d0d0d 0%, transparent 100%);
}

/* Center text + button overlay */
.pf-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(0,0,0,0.88) 20%,
    rgba(0,0,0,0.6) 55%,
    transparent 80%);
  pointer-events: none;
}

.pf-center .section-header { margin-bottom: 0; }
.pf-center .animated-button { pointer-events: auto; }

.pf-center h2 {
  text-shadow: 0 2px 16px rgba(0,0,0,1), 0 0 40px rgba(0,0,0,0.9);
}
.pf-center .label {
  text-shadow: 0 1px 8px rgba(0,0,0,1);
}

@media (max-width: 768px) {
  .pf-tile img { height: 200px; }
  .pf-grid { gap: 6px; padding: 0 6px; }
}

/* ── 13 ABOUT SECTION ──────────────────────────────────────── */
#about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.about-pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.about-pillar:hover {
  border-color: rgba(255,191,0,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 40px rgba(255,191,0,0.06);
  transform: translateY(-3px);
}

.about-pillar-num {
  font-family: 'Hanson', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
  line-height: 1;
}

.about-pillar-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.about-pillar p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── 14 REVIEWS SECTION ────────────────────────────────────── */
#reviews {
  position: relative;
  overflow: hidden;
  background: var(--black);
  contain: layout style paint;
  padding: var(--sp-16) var(--sp-8);
}
.rv-bg {
  position: absolute;
  inset: -20% 0;
  background-image: url('../assets/images/the amara/The_Amara_8.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  will-change: transform;
  z-index: 0;
}
.rv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}
#reviews .section-inner {
  position: relative;
  z-index: 2;
}

.card-carousel {
  --card-width: 72%;
  --card-max-width: 280px;
  --card-height: 350px;
  z-index: 1;
  position: relative;
  margin: var(--sp-8) auto var(--sp-4);
  width: 100%;
  height: var(--card-height);
  overflow: hidden;
  transition: filter 0.3s ease;
}

.card-carousel.smooth-return .card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-carousel .card {
  background: var(--card);
  width: var(--card-width);
  max-width: var(--card-max-width);
  min-width: 220px;
  height: var(--card-height);
  position: absolute;
  text-align: center;
  padding: var(--sp-6) var(--sp-6);
  color: rgba(255,255,255,0.65);
  transition: inherit;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  filter: brightness(0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  cursor: grab;
  user-select: none;
}

.card-carousel .card:active { cursor: grabbing; }

.card-carousel .card.highlight {
  filter: brightness(1);
  border-color: rgba(255,191,0,0.35);
  box-shadow:
    0 0 0 1px rgba(255,191,0,0.1),
    0 12px 48px rgba(0,0,0,0.7),
    0 0 60px rgba(255,191,0,0.08);
}

.card-image-wrap {
  width: 68px;
  height: 68px;
  position: relative;
  flex-shrink: 0;
}

.card-image-wrap::after {
  content: '';
  display: block;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(255,191,0,0.22);
  border-radius: 50%;
  position: absolute;
  top: -10%;
  left: -10%;
  pointer-events: none;
}

.card-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,191,0,0.4);
  display: block;
}

.card-stars {
  display: flex;
  gap: 4px;
}

.card-stars i { color: var(--gold); font-size: 0.85rem; }

.card-quote {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.card-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.card-role {
  font-size: 0.7rem;
  color: var(--gold);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
}

.reviews-nav {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-4);
}

.reviews-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-size: 1rem;
}

.reviews-nav button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.reviews-nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ── 14 FAQ SECTION ────────────────────────────────────────── */
#faq {
  background-color: var(--black);
  overflow: hidden;
  position: relative;
}
#faq .section-inner {
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 12px;
  padding: 0 var(--sp-8);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--sp-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: color 0.25s;
  gap: var(--sp-4);
}

.faq-question:hover { color: var(--gold); }
.faq-question:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.faq-icon svg {
  display: block;
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
}
.faq-question:hover .faq-icon {
  border-color: rgba(255,191,0,0.45);
  color: var(--gold);
  background: rgba(255,191,0,0.06);
}
.faq-item.open .faq-icon {
  border-color: rgba(255,191,0,0.6);
  color: var(--gold);
  background: rgba(255,191,0,0.08);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.35s;
  padding: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--sp-6);
}

.faq-answer p { font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* ── 15 CONTACT SECTION ────────────────────────────────────── */
#contact {
  background: var(--black);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-8);
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255,191,0,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.contact-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* clip-path: inset(0) clips GPU-composited children without the layer-bleed
     side effect of transform: translateZ(0) */
  clip-path: inset(0);
}

.contact-video-wrap {
  position: absolute;
  top: -200px;
  bottom: -200px;
  left: 0; right: 0;
  will-change: transform;
}

.contact-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover: vh-based width ensures the 16:9 video fills the full height of the tall wrap */
  width: max(100%, 178vh);
  height: 100%;
  transform: translate(-50%, -50%) scale(1.05);
  filter: blur(6px) brightness(0.65);
}

.contact-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 4;
}

.contact-inner h2 { margin-bottom: var(--sp-6); }
.contact-inner p  { margin-bottom: var(--sp-8); max-width: 480px; margin-left: auto; margin-right: auto; }

.contact-meta {
  margin-top: var(--sp-10, 2.5rem);
  display: flex;
  gap: var(--sp-8);
  justify-content: center;
  flex-wrap: wrap;
}

.contact-meta a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.contact-meta a:hover { color: var(--gold); }

.contact-social {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-8);
}

.contact-social svg { width: 22px; height: 22px; }

/* ── 16 FOOTER ─────────────────────────────────────────────── */
#footer {
  background: transparent;
  border-top: none;
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  position: relative;
  z-index: 10;
  margin-top: -80px;
  overflow: hidden;
}
#footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/carbon_fiber.png') no-repeat center center;
  background-size: 100% auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 80px);
  pointer-events: none;
  z-index: 0;
}
#footer > * { position: relative; z-index: 1; }

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.footer-logo img { width: 56px; }

.footer-wordmark {
  font-family: 'Hanson', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: var(--sp-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-copy-brand {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.footer-copy-sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── 17 BACK TO TOP ────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 800;

  /* show / hide */
  opacity: 0;
  pointer-events: none;

  /* shape — mirrors original exactly, brand colors only */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #141414;
  border: none;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(255, 191, 0, 0.2);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* SVG arrow */
.btt-icon {
  width: 12px;
  transition-duration: 0.3s;
}

.btt-icon path { fill: #ffffff; }

/* Hover: expand to pill + gold */
#back-to-top:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: #ffbf00;
  align-items: center;
}

/* Arrow slides up and out */
#back-to-top:hover .btt-icon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

/* "Back to Top" text — hidden below button, revealed on hover */
#back-to-top::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: #000000;
  font-size: 0px;
  font-family: var(--font-body);
  font-weight: 600;
  white-space: nowrap;
}

#back-to-top:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

#back-to-top:focus-visible { outline: 2px solid #ffbf00; outline-offset: 3px; }

/* ── 18 SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 19 FADE-UP KEYFRAME ───────────────────────────────────── */
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── 19 HOW IT WORKS ───────────────────────────────────────── */
#how-it-works {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.hiw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.hiw-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold-sm);
}

.hiw-card-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-2);
}

.hiw-card-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--sp-1);
}

.hiw-card p {
  font-size: 0.875rem;
  line-height: 1.78;
  color: var(--muted);
}

/* ── 20 RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid .service-card { width: 230px; }
}

@media (max-width: 900px) {
  .services-grid .service-card { width: 200px; }
  .services-grid:hover .service-card { filter: blur(2px); clip-path: inset(0 round 18px); }
}

@media (max-width: 900px) {
  .review-card { flex: 0 0 calc(50% - var(--sp-3)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-pill-wrap { display: none !important; }
  .nav-left-spacer { display: none; }
  .nav-right { display: none; }
  .icon-menu { display: flex; }

  .section { padding: var(--sp-16) var(--sp-6); }

  .services-grid {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
    gap: var(--sp-4);
  }
  .services-grid .service-card { width: auto !important; }
  .services-grid:hover .service-card,
  .services-grid:hover .service-card:hover { opacity: 1 !important; filter: blur(0) !important; }

  .review-card { flex: 0 0 calc(85vw); }

  .contact-meta { flex-direction: column; align-items: center; gap: var(--sp-4); }

  .hiw-grid { grid-template-columns: 1fr 1fr; }
  .about-pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: center; }
  .animated-button:not(.animated-button--full):not(.animated-button--sm) { width: 100%; max-width: 280px; }
  .hiw-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}

/* ── MOBILE FIXES ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Navbar: hamburger on right, logo centered */
  #navbar {
    padding: var(--sp-3) var(--sp-4);
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .icon-menu { margin-left: auto; }

  /* Hero: scale down heading */
  h1 { font-size: clamp(2rem, 10vw, 3.5rem); }

  /* Hide parallax intro on mobile — too heavy */
  #parallax-intro { display: none !important; }

  /* Services section: single column */
  .services-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Animated button: full width on mobile */
  .animated-button--full { font-size: 0.72rem; }

  /* Contact section padding */
  .contact-inner { padding: 0 var(--sp-4); }

  /* Footer nav: smaller text */
  .footer-nav a { font-size: 0.62rem; }
  .footer-wordmark { font-size: 0.9rem; }

  /* Disable contact video bg on mobile */
  .contact-video-bg { display: none; }
}

@media (max-width: 480px) {
  /* Reduce section padding */
  .section { padding: var(--sp-12) var(--sp-4); }

  /* Footer */
  .footer-copy-brand { font-size: 0.6rem; }
  .footer-copy-sub { font-size: 0.55rem; }
}

/* ── TOUCH: disable hover-dependent states on mobile ──────── */
@media (hover: none) {
  .services-grid:hover .service-card { filter: none; clip-path: none; opacity: 1; }
  .sv-card:hover { transform: none; }
  .sv-addon-card:hover { transform: none; }
  .sv-service-card:hover { transform: none; }
  .sv-featured-card:hover { transform: none; }
  .sv-why-stat:hover { transform: none; }
}
