/* ============================================================
   FACES BY LAYLA — Liquid Metal Design System
   ============================================================ */

@font-face {
  font-family: 'Gothic Hand';
  src: url('../assets/fonts/gothic-hand.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pau the First';
  src: url('../assets/fonts/PauThe1StRegular-K6vo.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Colours — Black Opal palette */
  --bg-deep:          #0A0910;
  --bg-dark:          #0F0D18;
  --bg-card:          rgba(22, 18, 31, 0.55);
  --bg-card-hover:    rgba(30, 24, 48, 0.65);

  /* Opal fire colours */
  --opal-red:         #F52205;
  --opal-crimson:     #FB0B30;
  --opal-orange:      #D96400;
  --opal-green:       #69F115;
  --opal-emerald:     #3DE47B;
  --opal-cyan:        #27FCC6;
  --opal-blue:        #1578F0;
  --opal-cobalt:      #3850D6;
  --opal-purple:      #B67EEB;
  --opal-magenta:     #CF49A0;
  --opal-dark:        #252647;

  /* Semantic aliases (used throughout) */
  --teal:             #27FCC6;
  --teal-dark:        #1AC9A0;
  --gold:             #D96400;
  --cream:            #F0EAE0;
  --navy:             #252647;

  --text-primary:     #F0EAE0;
  --text-secondary:   #C8C0D8;
  --text-muted:       #6A6080;

  /* Gradients — opal fire sweep */
  --grad-opal: linear-gradient(135deg,
    #252647, #3850D6, #1578F0, #7733EE, #CC0033, #F52205, #CF49A0,
    #B67EEB, #252647);
  --grad-metal: var(--grad-opal);

  /* Borders */
  --border:           1px solid rgba(39,252,198,.10);
  --border-teal:      1px solid rgba(39,252,198,.12);

  /* Shadows */
  --shadow:           0 8px 40px rgba(0,0,0,.45);
  --shadow-glow:      0 0 40px rgba(124,209,207,.08);

  /* Typography */
  --font-display:     'Cinzel Decorative', serif;
  --font-gothic:      'Pau the First', 'Gothic Hand', serif;
  --font-heading:     'Cormorant Garamond', serif;
  --font-body:        'Jost', sans-serif;          /* body — clean, readable */

  /* Layout */
  --max-w:            1200px;
  --pad-x:            clamp(20px, 5vw, 40px);
  --section-y:        clamp(72px, 10vw, 120px);

  /* Motion */
  --ease:             cubic-bezier(.4, 0, .2, 1);
  --dur:              .3s;
  --dur-slow:         .6s;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Z-index layer system ───────────────────────────────── */
/* page-chrome video: z-index 0 (fixed, above body bg)         */
/* Sections: z-index 1 (scroll over the chrome)                */
/* Hero: NO z-index — removing it prevents a stacking context  */
/* that would block the fixed video from compositing through.  */
.nav,
.services,
.portfolio,
.about,
.testimonials,
.contact,
.footer {
  position: relative;
  z-index: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Hero content and bg sit above the video */
.hero__bg { position: relative; z-index: 1; }

/* Semi-transparent section backgrounds — let chrome bleed through */
.services   { background: rgba(10,  9, 16, 0.78); }
.portfolio  { background: rgba(15, 12, 22, 0.80); }
.about      { background: rgba(10,  9, 16, 0.78); }
.testimonials { background: rgba(15, 12, 22, 0.80); }
.contact    { background: rgba(10,  9, 16, 0.76); }
.footer     { background: rgba(15, 12, 22, 0.90); border-top: var(--border); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ─── Fixed full-page chrome backdrop ────────────────────── */
/* Sits at z-index 0 above the body bg. Sections (z-index 1) scroll over   */
/* it with semi-transparent backgrounds — chrome bleeds through everywhere. */
.page-chrome-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;   /* fallback */
  height: 100lvh;  /* stable against Android nav bar show/hide */
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-chrome-inner {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.page-chrome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}


/* Grain noise texture layered over everything — gives metal its "texture" */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--opal-purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dark); }

/* ─── Chrome metallic text effect ───────────────────────── */
/* Silver-blue stroke traces the letter edges (like the reference image).   */
/* drop-shadow chain: opal-cyan inner glow → cobalt outer → hard drop shadow */
.nav__logo,
.footer__logo,
.section-title,
.service-card__title,
.about__stat-number,
.contact__card h3 {
  -webkit-text-stroke: 1px rgba(160, 215, 255, 0.40);
  filter:
    drop-shadow(0 0 3px  rgba(39, 252, 198, 0.45))
    drop-shadow(0 0 8px  rgba(56,  80, 214, 0.28))
    drop-shadow(0 3px 8px rgba(0,   0,   0, 0.95));
}

/* ─── Utilities ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-gothic);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 300;
  will-change: background-position;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(
    105deg,
    #252647 0%,
    #3850D6 12%,
    #7733EE 24%,
    #CC0033 48%,
    #F52205 56%,
    #CF49A0 68%,
    #B67EEB 80%,
    #3850D6 90%,
    #252647 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 30s linear infinite;
}

.section-subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-position var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-metal);
  background-size: 250% 250%;
  background-position: 0% 50%;
  color: var(--bg-deep);
  font-weight: 500;
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,209,207,.22);
}

.btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(220,213,192,.25);
}
.btn--ghost:hover,
.btn--ghost-active {
  color: var(--teal);
  border-color: rgba(124,209,207,.4);
  background: rgba(8, 6, 14, 0.62);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--teal);
  border: 1px solid rgba(124,209,207,.28);
}
.btn--outline:hover {
  background: rgba(124,209,207,.07);
  transform: translateY(-2px);
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 22px 0;
  background: rgba(10, 9, 16, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.nav.scrolled {
  background: rgba(10, 9, 16, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 14px 0;
  border-bottom: var(--border);
}

.nav__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .06em;
  background: linear-gradient(
    105deg,
    #252647 0%, #3850D6 16%, #7733EE 30%,
    #CC0033 56%, #F52205 66%,
    #CF49A0 78%, #B67EEB 90%, #252647 100%
  );
  background-size: 350% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 21s linear infinite;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.active { color: var(--cream); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__link--cta {
  color: var(--teal) !important;
  border: 1px solid rgba(124,209,207,.28);
  padding: 8px 18px;
  border-radius: 2px;
}
.nav__link--cta:hover { background: rgba(124,209,207,.07); }
.nav__link--cta::after { display: none; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  z-index: 201;
  background: rgba(8, 6, 14, 0.55);
  border: 1px solid rgba(240,234,224,.15);
  border-radius: 3px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #0A0910;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: clamp(90px, 12vh, 140px) var(--pad-x) 0;
}

/* Dedicated hero video — absolutely positioned inside hero__bg */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  z-index: 0;
}

/* Vignette — sits above the hero video, darkens edges for readability */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10,9,16,.50) 0%, transparent 70%),
    radial-gradient(ellipse 110% 95% at 50% 50%, transparent 30%, rgba(10,9,16,.82) 100%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .3s forwards;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 1),
    0 2px 8px  rgba(0, 0, 0, 1),
    0 4px 24px rgba(0, 0, 0, 0.95);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .5s forwards;
}

.hero__title-line {
  font-family: var(--font-gothic);
  font-size: clamp(4rem, 9vw, 11rem);
  font-weight: 700;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.80);
  paint-order: stroke fill;
  transform: scaleX(1.25) translateZ(0);
  display: inline-block;
  line-height: .90;
  letter-spacing: .06em;
  margin-bottom: 3rem;
  will-change: background-position;
  /* Dark opal sweep — deep indigo › violet › crimson › burnt orange › magenta */
  background: linear-gradient(
    105deg,
    #7880C0 0%,
    #5068C8 10%,
    #5880C8 18%,
    #6840C8 28%,
    #C04070 50%,
    #C06040 60%,
    #C04060 66%,
    #A050A0 75%,
    #7840C8 85%,
    #5068C8 93%,
    #7880C0 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 24s linear infinite;
  filter:
    drop-shadow(0 0 6px  rgba(39, 252, 198, 0.83))
    drop-shadow(0 0 21px rgba(56,  80, 214, 0.68))
    drop-shadow(0 6px 27px rgba(0, 0, 0, 1))
    drop-shadow(0 12px 42px rgba(0, 0, 0, 1));
}

.hero__title-accent {
  font-family: var(--font-gothic);
  font-style: italic;
  font-size: clamp(3rem, 6.5vw, 8rem);
  margin-top: 0;
  font-weight: 700;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.80);
  paint-order: stroke fill;
  transform: scaleX(1.25) translateZ(0);
  display: inline-block;
  will-change: background-position;
  /* Offset dark phase — steel blue › violet › crimson › burnt › magenta › indigo */
  background: linear-gradient(
    105deg,
    #5880C8 0%,
    #6840C8 10%,
    #C04070 38%,
    #C06040 48%,
    #C04060 58%,
    #A050A0 68%,
    #7840C8 78%,
    #5068C8 88%,
    #5880C8 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 24s linear infinite;
  animation-delay: -3s;
  filter:
    drop-shadow(0 0 6px  rgba(39, 252, 198, 0.83))
    drop-shadow(0 0 21px rgba(56,  80, 214, 0.68))
    drop-shadow(0 6px 27px rgba(0, 0, 0, 1))
    drop-shadow(0 12px 42px rgba(0, 0, 0, 1));
}

.hero__tagline {
  font-size: clamp(.8rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .7s forwards;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 1),
    0 2px 8px  rgba(0, 0, 0, 1),
    0 4px 24px rgba(0, 0, 0, 0.95);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.3s forwards;
}

.hero__scroll span {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ─── Section iridescent glows ────────────────────────────── */
/* Each section gets a coloured radial glow in a corner — subtle, GPU-only */
.services, .portfolio, .about, .testimonials, .contact { position: relative; overflow: hidden; }

.services::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(39,252,198,.08) 0%, transparent 65%);
  top: -220px; right: -180px;
  pointer-events: none; z-index: 0;
  filter: blur(20px);
}

.portfolio::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,34,5,.14) 0%, transparent 60%);
  bottom: -180px; left: -160px;
  pointer-events: none; z-index: 0;
  filter: blur(20px);
}

.about::after {
  content: '';
  position: absolute;
  width: 650px; height: 650px; border-radius: 50%;
  background: radial-gradient(circle, rgba(105,241,21,.07) 0%, transparent 60%);
  top: -200px; right: -200px;
  pointer-events: none; z-index: 0;
  filter: blur(20px);
}

.testimonials::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,126,235,.10) 0%, transparent 60%);
  top: -100px; right: -100px;
  pointer-events: none; z-index: 0;
  filter: blur(20px);
}

.contact::before {
  content: '';
  position: absolute;
  width: 800px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56,80,214,.22) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  filter: blur(30px);
}

/* Keep all section content above the glow layers */
.services .container,
.portfolio .container,
.about .container,
.testimonials .container,
.contact .container { position: relative; z-index: 1; }

/* ─── Section divider ─────────────────────────────────────── */
/* Image is 1400×153px. Line sits at 66% from top (101px).
   margin-top: -7.2%  = -(101/1400) of container width → pulls image up so line lands on seam.
   margin-bottom: -3.7% = -(52/1400)  → stops next section from being pushed down. */
.section-divider {
  position: relative;
  z-index: 100;
  margin: -7.2% auto -3.7%;
  max-width: 1400px;
  pointer-events: none;
  transform: translateX(30px);
}

.section-divider img {
  width: 100%;
  display: block;
}

/* ─── Services tabs (mobile only) ────────────────────────── */
.services__tabs {
  display: none; /* shown only in mobile media query */
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.services__tab {
  flex: 1;
  min-width: 0;
  padding: 11px 8px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  background: rgba(255,255,255,.03);
  transition: all var(--dur) var(--ease);
}

.services__tab--active,
.services__tab:active {
  color: var(--teal);
  border-color: rgba(124,209,207,.35);
  background: rgba(124,209,207,.08);
}

/* ─── Services ────────────────────────────────────────────── */
.services { padding: var(--section-y) 0; overflow: hidden; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: var(--border-teal);
  border-radius: 3px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  opacity: 0;
  transform: translateY(28px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s var(--ease), transform .6s var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-metal);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,209,207,.22);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(124,209,207,.07);
  border: 1px solid rgba(124,209,207,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1rem;
  margin-bottom: 22px;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service-card:hover .service-card__icon {
  background: rgba(124,209,207,.14);
  box-shadow: 0 0 20px rgba(124,209,207,.14);
}

.service-card__title {
  font-family: var(--font-gothic);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 12px;
  background: linear-gradient(105deg,
    #3850D6 0%, #7733EE 18%, #CC0033 46%, #F52205 58%, #CF49A0 72%, #B67EEB 86%, #3850D6 100%
  );
  background-size: 350% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 33s linear infinite;
}

.service-card__desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-card__list { margin-bottom: 28px; }

.service-card__list li {
  font-size: .78rem;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__list li::before {
  content: '—';
  color: var(--teal);
  font-size: .7rem;
  flex-shrink: 0;
}

.service-card__link {
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--dur) var(--ease);
}

.service-card__link:hover { gap: 14px; }

/* ─── Portfolio ────────────────────────────────────────────── */
.portfolio { padding: var(--section-y) 0; overflow: hidden; }

.portfolio__filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

.filter-btn:hover,
.filter-btn--active {
  color: var(--teal);
  border-color: rgba(124,209,207,.2);
  background: rgba(124,209,207,.05);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 10px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--bg-card);
  border: var(--border-teal);
}

.portfolio-item--tall { grid-row: span 2; }

.portfolio-item__img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* When real images are added: .portfolio-item__img img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; } */
/* .portfolio-item:hover .portfolio-item__img img { transform: scale(1.05); } */

.portfolio-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  color: rgba(148,125,146,.2);
  font-size: 2.2rem;
  transition: background var(--dur) var(--ease);
}

.portfolio-item:hover .portfolio-item__placeholder {
  background: linear-gradient(135deg, var(--bg-card-hover), #241929);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,11,20,.92) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__overlay span {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
}

.portfolio__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  text-align: center;
}

.portfolio__cta p {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* ─── About ────────────────────────────────────────────────── */
.about { padding: var(--section-y) 0; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.about__image-wrap { position: relative; }

.about__content {
  background: rgba(18, 14, 28, 0.52);
  border: 1px solid rgba(124, 209, 207, 0.08);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.about__placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: var(--border-teal);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: .82rem;
  letter-spacing: .06em;
}

.about__placeholder i {
  font-size: 3rem;
  color: rgba(148,125,146,.18);
}

.about__image-accent {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 55%;
  height: 55%;
  border: 1px solid rgba(124,209,207,.12);
  border-radius: 3px;
  z-index: -1;
}

.about__bio {
  color: var(--text-secondary);
  font-size: .97rem;
  line-height: 1.82;
  margin-bottom: 20px;
}

.about__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin: 36px 0;
  padding: 28px 0;
  border-top: var(--border);
  border-bottom: var(--border);
}

.about__stat { display: flex; flex-direction: column; gap: 4px; }

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 300;
  background: linear-gradient(105deg,
    #7733EE 0%, #CC0033 34%,
    #F52205 48%, #CF49A0 62%, #B67EEB 76%, #3850D6 90%, #27FCC6 100%
  );
  background-size: 350% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 27s linear infinite;
  line-height: 1.1;
}

.about__stat-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Testimonials ────────────────────────────────────────── */
.testimonials { padding: var(--section-y) 0; overflow: hidden; }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: var(--border-teal);
  border-radius: 3px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px);
  position: relative;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 7rem;
  color: rgba(124,209,207,.05);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: rgba(124,209,207,.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial-card__text {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: var(--border);
}

.testimonial-card__name {
  font-size: .85rem;
  font-weight: 400;
  color: var(--cream);
}

.testimonial-card__service {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ─── Contact ─────────────────────────────────────────────── */
.contact {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

.contact__card {
  background: var(--bg-card);
  border: var(--border-teal);
  border-radius: 3px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.contact__card:hover {
  border-color: rgba(124,209,207,.22);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact__card--featured {
  border-color: rgba(124,209,207,.2);
  background: linear-gradient(145deg, var(--bg-card), rgba(78,27,68,.28));
}

.contact__card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(124,209,207,.07);
  border: 1px solid rgba(124,209,207,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--teal);
}

.contact__card h3 {
  font-family: var(--font-gothic);
  font-size: 1.9rem;
  font-weight: 300;
  background: linear-gradient(105deg,
    #B67EEB 0%, #3850D6 18%, #7733EE 32%,
    #CC0033 60%, #F52205 74%, #CF49A0 88%, #B67EEB 100%
  );
  background-size: 350% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 33s linear infinite;
  animation-delay: -5s;
}

.contact__card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.contact__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border: var(--border);
  border-radius: 3px;
  background: rgba(124,209,207,.02);
  max-width: 500px;
  margin: 0 auto;
}

.contact__note i { color: var(--teal); font-size: .9rem; flex-shrink: 0; }

.contact__note p {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  padding: clamp(60px,8vw,90px) 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  margin-bottom: 56px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: linear-gradient(
    105deg,
    #252647 0%, #3850D6 16%, #7733EE 30%,
    #CC0033 56%, #F52205 66%,
    #CF49A0 78%, #B67EEB 90%, #252647 100%
  );
  background-size: 350% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 21s linear infinite;
  animation-delay: -2s;
  display: block;
  margin-bottom: 14px;
}

.footer__brand p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 22px;
}

.footer__socials { display: flex; gap: 12px; }

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .88rem;
  transition: all var(--dur) var(--ease);
}

.footer__socials a:hover {
  color: var(--teal);
  border-color: rgba(124,209,207,.3);
  background: rgba(124,209,207,.05);
}

.footer__nav h4 {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.footer__nav ul { display: flex; flex-direction: column; gap: 11px; }

.footer__nav ul li a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer__nav ul li a:hover { color: var(--cream); }

.footer__bottom {
  padding-top: 28px;
  border-top: var(--border);
  text-align: center;
}

.footer__bottom p {
  font-size: .74rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* ─── Animations ──────────────────────────────────────────── */

/* Metallic light sweep — moves a highlight across text left→right */
@keyframes metalSweep {
  0%   { background-position: 180% center; }
  100% { background-position: -180% center; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image-wrap { max-width: 400px; margin: 0 auto; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Fix section dividers overextending right on mobile */
  .section-divider { transform: translateX(0); }

  .hero__content { padding-top: 80px; }
  /* scaleX on the wrapper so background-clip:text on the child spans renders correctly.
     Stroke uses paint-order:stroke fill so it sits behind the gradient fill,
     keeping inner glyph detail fully visible. */
  /* Large font-size so glyphs render at full resolution with all inner detail.
     Modest scaleX on the wrapper adds horizontal stretch without distorting letterforms. */
  .hero__title {
    margin-top: 6rem;
    margin-bottom: 0;
    transform: scaleX(1.4) translateZ(0);
    width: 100%;
    align-items: center;
  }
  .hero__title-line {
    font-size: clamp(4.5rem, 21vw, 8rem);
    transform: translateZ(0);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.80);
    paint-order: stroke fill;
    letter-spacing: .12em;
    margin-bottom: 2.5rem;
  }
  .hero__title-accent {
    font-size: clamp(3rem, 14vw, 6rem);
    transform: translateZ(0);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.80);
    paint-order: stroke fill;
    letter-spacing: .12em;
    line-height: 1.7;
    margin-top: 0;
  }

  /* Gradient fallback while hero video buffers */
  .hero {
    background: linear-gradient(135deg,
      #1A0A3E 0%, #3850D6 30%, #7733EE 55%, #CC0033 75%, #1A0A3E 100%);
  }

  /* ── Mobile nav panel ── */
  .nav__links li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    background: rgba(8, 6, 14, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(124,209,207,.16);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.7);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav__link {
    font-size: .82rem;
    letter-spacing: .1em;
    color: var(--text-secondary);
    padding: 13px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.05);
    border-radius: 0;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .nav__link::after { display: none; }
  .nav__link:hover,
  .nav__link:active,
  .nav__link.active {
    color: var(--cream);
    background: rgba(124,209,207,.07);
  }

  .nav__link--cta {
    color: var(--teal) !important;
    background: rgba(124,209,207,.05);
    border: none;
    border-radius: 0 0 6px 6px;
    padding: 13px 20px;
    margin-top: 0;
  }
  .nav__link--cta:hover,
  .nav__link--cta:active {
    background: rgba(124,209,207,.11);
  }

  .nav__hamburger { display: flex; }

  /* Services: show tab strip, one card at a time */
  .services__tabs { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { display: none; }
  .service-card.tab-active { display: block; }

  .contact__grid { grid-template-columns: 1fr; }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .portfolio-item--tall { grid-row: span 1; }

  body {
    background: linear-gradient(145deg,
      #0A0910 0%, #1A0A3E 25%, #0F0D18 50%, #1A0A28 75%, #0A0910 100%);
    background-size: 300% 300%;
    animation: mobileBg 18s ease infinite;
  }
}

@keyframes mobileBg {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@media (max-width: 540px) {
  .testimonials__grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 4px 20px;
    scrollbar-width: none;
  }
  .testimonials__grid::-webkit-scrollbar { display: none; }
  .testimonials__grid .testimonial-card {
    flex: 0 0 82vw;
    scroll-snap-align: center;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__actions { flex-direction: column; }
  .hero__tagline { margin-bottom: 20px; }
  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}
