/* ==========================================================================
   XPYRO STUDIO — Cyber Samurai / Crimson Cyberpunk Design Tokens
   ========================================================================== */
:root {
  /* Colour — Deep Onyx & Carbon Black base (#08080A, #111116) */
  --bg: #08080A;
  --bg-alt: #0D0D12;
  --bg-raise: #14141C;
  --surface: #111116;
  --surface-raised: #181822;
  --white: #FFFFFF;
  --grey: #D1D5DB;
  --grey-dim: #9CA3AF;
  
  /* Glassmorphism & Borders: Translucent dark surfaces with subtle micro-borders */
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-blur: blur(14px);
  --line: rgba(255, 13, 37, 0.15);
  --line-strong: rgba(255, 43, 64, 0.32);

  /* Primary Accent: Intense Crimson Red (#FF0D25) with luminous neon glow */
  --accent: #FF0D25;
  --accent-strong: #FF2B40;
  --accent-deep: #D40018;
  --playhead: #FF0D25;
  --accent-soft: rgba(255, 13, 37, 0.15);
  --accent-ghost: rgba(255, 13, 37, 0.08);
  --glow-grad: linear-gradient(135deg, #FF2B40, #FF0D25);
  --glow-soft: radial-gradient(circle at top, rgba(255, 13, 37, 0.25), transparent 72%);

  /* Typography — Bold High-Contrast Serif + Clean Modern Sans + Monospace HUD */
  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-display: "Cinzel", "Playfair Display", "Plus Jakarta Sans", serif;
  --font-body: "Plus Jakarta Sans", "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Space Mono", monospace;

  /* Layout */
  --max-width: 1240px;
  --section-pad-y: clamp(80px, 8vw, 120px);
  --section-pad-x: clamp(24px, 4vw, 36px);
  --section-pad: var(--section-pad-y);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Elevation & Glow Shadows */
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 0 30px rgba(255, 13, 37, 0.45);
  --shadow-neon: 0 0 25px rgba(255, 13, 37, 0.55), 0 0 50px rgba(255, 13, 37, 0.25);

  /* Navbar */
  --nav-margin: clamp(12px, 1.5vw, 20px);
  --nav-padding-y: clamp(8px, 0.8vw, 12px);
  --nav-padding-x: var(--nav-padding-y);
  --nav-gap: clamp(6px, 0.8vw, 12px);
  --nav-link-gap: clamp(4px, 0.5vw, 10px);
  --nav-logo-height: clamp(28px, 2.8vw, 38px);
  --nav-radius: 9999px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(88px, 9vw, 112px);
  font-size: 16px;
}

/* Safari 26 samples the page canvas behind its translucent browser controls. */
@media (max-width: 900px) {
  html.ios-safari-mobile {
    background-color: var(--bg);
    background-image:
      radial-gradient(ellipse 95% 70% at 50% 0%,
        rgba(255, 13, 37, 0.18) 0%,
        rgba(180, 0, 25, 0.08) 38%,
        transparent 75%),
      radial-gradient(circle at 8% 50%,
        rgba(210, 10, 30, 0.08) 0%,
        transparent 55%),
      radial-gradient(circle at 92% 80%,
        rgba(255, 13, 37, 0.07) 0%,
        transparent 55%);
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

section[id] {
  scroll-margin-top: clamp(88px, 9vw, 112px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility — visually hidden but readable by screen readers & search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 95% 70% at 50% 0%,
      rgba(255, 13, 37, 0.18) 0%,
      rgba(180, 0, 25, 0.08) 38%,
      transparent 75%),
    radial-gradient(circle at 8% 50%,
      rgba(210, 10, 30, 0.08) 0%,
      transparent 55%),
    radial-gradient(circle at 92% 80%,
      rgba(255, 13, 37, 0.07) 0%,
      transparent 55%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-default, auto);
}

main {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  isolation: isolate;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #FF0D25;
  color: #ffffff;
  text-shadow: none;
}

::-moz-selection {
  background: #FF0D25;
  color: #ffffff;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}

.hide-mobile {
  display: inline;
}

.clients {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.portfolio-section {
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* ==========================================================================
   Background Canvas (Premium Particle System)
   ========================================================================== */
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  /* Use 100% instead of 100vw to avoid the scrollbar-gutter seam on mobile
     that makes the right edge of the canvas slightly wider than the viewport */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  /* Promote to its own GPU layer so per-frame canvas repaints
     don't block the main thread's composite step */
  will-change: transform;
  transform: translateZ(0);
}

/* ==========================================================================
   Ambient Gradient Orbs — Pure CSS, GPU-Only Animation
   Technique: mix-blend-mode: screen blends warm amber orbs with the dark
   canvas. screen(orange, near-black) = vivid amber glow — same visual
   language as the reference images but adapted to the orange palette.
   Animation uses transform: translate3d() only = runs on compositor thread,
   zero main-thread work, zero JS involvement.
   ========================================================================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Same stacking level as canvas */
  pointer-events: none;
  /* overflow: hidden removed — it caused a visible rectangular seam at the
     container boundary when combined with mix-blend-mode: screen.
     Radial gradients already fade to transparent so no clipping is needed. */
  mix-blend-mode: screen;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  /* Reduced blur for performance — compositor thread only (transform only keyframes) */
  filter: blur(70px);
  will-change: transform;
  /* Contain painting so GPU only composites the orb, not the whole page */
  contain: paint;
  backface-visibility: hidden;
}

/* ── Orb 1 — Top-left hero beacon (largest, most visible) ─────────────── */
.bg-orb--1 {
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 13, 37, 0.22) 0%,
      rgba(255, 13, 37, 0.07) 40%,
      rgba(255, 13, 37, 0.02) 65%,
      transparent 80%);
  top: -18vmax;
  left: -14vmax;
  animation: bgOrb1 60s ease-in-out infinite alternate;
}

/* ── Orb 2 — Bottom-right counter-glow ───────────────────────────────── */
.bg-orb--2 {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 50, 75, 0.14) 0%,
      rgba(255, 13, 37, 0.05) 45%,
      transparent 70%);
  bottom: -12vmax;
  right: -12vmax;
  animation: bgOrb2 78s ease-in-out infinite alternate;
}

/* ── Orb 3 — Mid-page depth layer (very faint, large scale) ──────────── */
.bg-orb--3 {
  width: 44vmax;
  height: 44vmax;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 13, 37, 0.08) 0%,
      rgba(255, 13, 37, 0.02) 55%,
      transparent 72%);
  top: 28%;
  left: 22%;
  animation: bgOrb3 96s ease-in-out infinite alternate;
}

/* Drift keyframes — translate3d only, minimal movement, very slow */
@keyframes bgOrb1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(9vw, 6vh, 0) scale(1.14);
  }
}

@keyframes bgOrb2 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-7vw, -9vh, 0) scale(0.90);
  }
}

@keyframes bgOrb3 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(5vw, -6vh, 0) scale(1.09);
  }
}

/* Freeze for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .bg-orb {
    animation: none !important;
  }
}

/* ==========================================================================
   Atmosphere: grain + cursor glow
   ========================================================================== */
:root {
  --cursor-default: url("../assets/cursor/cursor.webp") 3 3, auto;
  --cursor-hover: url("../assets/cursor/hand.webp") 6 2, pointer;
}

/* Default desktop cursor using folder cursor image */
body {
  cursor: var(--cursor-default, auto);
}

a,
button,
.btn,
.btn-glow,
.nav-cta,
.nav-link,
.faq-trigger,
.contact-link,
[role="button"] {
  cursor: var(--cursor-hover, pointer);
}

/* Hide default cursor on ALL elements and pseudo-elements when the interactive custom cursor is actively mounted */
@media (hover: hover) and (pointer: fine) {

  html.has-custom-cursor,
  html.has-custom-cursor *,
  html.has-custom-cursor *::before,
  html.has-custom-cursor *::after {
    cursor: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {

  body,
  a,
  button,
  .client-card,
  .faq-trigger,
  .contact-link,
  .footer-socials a,
  [role="button"],
  [tabindex]:not([tabindex="-1"]),
  input,
  textarea,
  select {
    cursor: auto;
  }
}

.click-particle {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 250;
  background: radial-gradient(circle, rgba(255, 180, 190, 0.95) 0%, rgba(255, 13, 37, 0.9) 35%, rgba(255, 13, 37, 0.08) 70%, transparent 100%);
  box-shadow: 0 0 16px rgba(255, 13, 37, 0.28);
  will-change: transform, opacity;
}

/* ==========================================================================


/* ==========================================================================
   Desktop Navbar — Premium Liquid Glass (Compact Width)
   ========================================================================== */
.desktop-navbar {
  position: fixed;
  top: var(--nav-margin);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: fit-content;
  max-width: 90vw;
  border-radius: 9999px !important;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.1s ease, background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* Navbar entrance: starts hidden above screen, JS removes this class to trigger slide-in */
.desktop-navbar.nav-pre-animate {
  transform: translateX(-50%) translateY(calc(-100% - var(--nav-margin) - 30px));
  opacity: 0;
  pointer-events: none;
}

/* Shared navbar geometry. Secondary pages use the same shell while keeping
   their intentionally minimal logo + back action content. */
.site-navbar {
  position: fixed;
  top: var(--nav-margin);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: fit-content;
  max-width: 90vw;
  min-height: 0;
  border-radius: var(--nav-radius) !important;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.1s ease, background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.site-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--nav-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.site-navbar-container {
  margin: 0 auto;
  padding: var(--nav-padding-y) var(--nav-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nav-gap);
  position: relative;
  z-index: 1;
  min-height: clamp(44px, 5.5vh, 56px);
}

.site-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.site-navbar-logo:hover {
  transform: scale(1.02);
}

.site-navbar-logo-image {
  width: var(--nav-logo-height);
  height: var(--nav-logo-height);
  max-height: var(--nav-logo-height);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.site-navbar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px clamp(12px, 1vw, 18px);
  border: 1px solid rgba(255, 13, 37, 0.2);
  border-radius: 100px;
  background: rgba(255, 13, 37, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.site-navbar-action:hover {
  border-color: rgba(255, 13, 37, 0.3);
  background: rgba(255, 13, 37, 0.06);
  color: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(255, 13, 37, 0.05);
  transform: translateY(-2px) scale(1.01);
}

.site-navbar-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Edge-aligned variant for the minimalist secondary-page navbars. */
.site-navbar--edge {
  width: 519px;
  max-width: 90vw;
}

.site-navbar--edge .site-navbar-container {
  width: auto;
}

.site-navbar--edge .site-navbar-logo-image {
  transform: translateX(4px);
}

@media (min-width: 901px) {
  .site-navbar--edge .site-navbar-container {
    width: 100%;
    justify-content: space-between !important;
    gap: var(--nav-gap) !important;
  }
}

@media (max-width: 1024px) {
  .site-navbar.nav-hidden {
    transform: translate(-50%, -160%) !important;
  }
}

@media (max-width: 900px) {
  .site-navbar {
    top: 10px;
    width: calc(100% - 24px);
    max-width: 420px;
  }

  .site-navbar--edge {
    width: calc(100% - 24px);
    max-width: none;
  }

  .site-navbar--edge .site-navbar-container {
    width: 100%;
    box-sizing: border-box;
  }

  .site-navbar-container {
    padding: 6px;
    min-height: 48px;
  }

  .site-navbar-logo-image {
    width: 28px;
    height: 28px;
    max-height: 28px;
  }

  .site-navbar-action {
    min-height: 28px;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .site-navbar {
    top: 8px;
    width: calc(100% - 20px);
  }

  .site-navbar--edge {
    width: calc(100% - 20px);
  }

  .site-navbar-container {
    min-height: 44px;
  }

  .site-navbar-logo-image {
    width: 24px;
    height: 24px;
    max-height: 24px;
  }

  .site-navbar-action {
    min-height: 24px;
    padding: 4px 10px;
    font-size: 12px;
  }
}

.desktop-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px !important;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.desktop-navbar.scrolled {
  background: rgba(8, 8, 8, 0.5);
  border-color: rgba(255, 13, 37, 0.04);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-container {
  margin: 0 auto;
  padding: var(--nav-padding-y) var(--nav-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nav-gap);
  position: relative;
  z-index: 1;
  min-height: clamp(44px, 5.5vh, 56px);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo-image {
  height: var(--nav-logo-height);
  width: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.nav-links {
  display: flex;
  gap: var(--nav-link-gap);
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px clamp(8px, 0.8vw, 12px);
  border-radius: 100px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 13, 37, 0.1);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 6px clamp(12px, 1vw, 18px);
  border: 1px solid rgba(255, 13, 37, 0.2);
  border-radius: 100px;
  white-space: nowrap;
  background: rgba(255, 13, 37, 0.06);
  color: var(--white);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}

.nav-cta:hover {
  border-color: rgba(255, 13, 37, 0.3);
  background: rgba(255, 13, 37, 0.06);
  color: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(255, 13, 37, 0.05);
  transform: translateY(-2px) scale(1.01);
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   Mobile Navbar — Dedicated Mobile UI
   ========================================================================== */
.mobile-navbar {
  display: none;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 420px;
  border-radius: 9999px;
  transition: transform 1.44s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.1s ease, background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* Mobile navbar entrance animation state */
.mobile-navbar.nav-pre-animate {
  transform: translateX(-50%) translateY(-160%);
  opacity: 0;
  pointer-events: none;
}

.mobile-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mobile-navbar.scrolled {
  background: rgba(8, 8, 8, 0.55);
  border-color: rgba(255, 13, 37, 0.04);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* Auto-hide navbars when scrolling down — Mobile & Tablet ONLY */
@media (max-width: 1024px) {

  .desktop-navbar.nav-hidden,
  .mobile-navbar.nav-hidden {
    transform: translate(-50%, -160%) !important;
  }

  /* A fast initial movement that eases gently into its final position. */
  .mobile-navbar {
    transition-timing-function: cubic-bezier(0.12, 0.9, 0.25, 1), var(--ease), var(--ease), var(--ease), var(--ease);
  }
}

.mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  min-height: 56px;
  gap: 8px;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.mobile-nav-logo-image {
  height: 32px;
  width: 32px;
  max-height: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  /* Match the visible logo inset to the vertical inset of the navigation bar. */
  transform: translateX(4px);
}

.mobile-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
}

.mobile-hamburger span {
  display: block;
  height: 2px;
  width: calc(100% - 8px);
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.mobile-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: calc(100% - 32px);
  max-width: 400px;
  max-height: 90vh;
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  padding: 24px 20px 20px;
  overflow-y: auto;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0;
}

.mobile-menu-overlay.open .mobile-menu-panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
}

.mobile-menu-logo-image {
  height: 32px;
  width: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.mobile-menu-close span {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.mobile-menu-close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  padding: 12px 16px;
  border-radius: 12px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  text-decoration: none;
  display: block;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.mobile-menu-link.active {
  color: var(--white);
  background: rgba(255, 13, 37, 0.06);
}

.mobile-menu-cta {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 20px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 13, 37, 0.25);
  background: linear-gradient(135deg, rgba(255, 13, 37, 0.15), rgba(255, 13, 37, 0.05));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  text-align: center;
  text-decoration: none;
  display: block;
}

.mobile-menu-cta:hover,
.mobile-menu-cta:active {
  background: rgba(255, 13, 37, 0.2);
  border-color: rgba(255, 13, 37, 0.4);
  transform: scale(1.02);
}

/* ==========================================================================
   Buttons — Clean Premium Style
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 30px rgba(255, 13, 37, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn--primary:hover {
  background: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 45px rgba(255, 13, 37, 0.75), 0 12px 32px rgba(0, 0, 0, 0.55);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn--ghost:hover {
  border-color: rgba(255, 13, 37, 0.6);
  background: rgba(255, 13, 37, 0.12);
  box-shadow: 0 0 25px rgba(255, 13, 37, 0.35);
  color: #ffffff;
}

.btn--large {
  padding: 19px 44px;
  font-size: 1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-margin, 20px) + 64px + clamp(18px, 2.8vh, 38px)) var(--section-pad-x) clamp(56px, 7vh, 90px);
  box-sizing: border-box;
  /* Clip only horizontal overflow (keeps layout intact) but let the
     showreel bottom drop-shadow bleed naturally into the next section
     instead of being sliced by a hard edge. */
  overflow-x: clip;
  overflow-y: visible;
}

@supports (min-height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

.hero-bg-image {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url("../assets/images/homebg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.14;
  z-index: 0;
  transform: translateY(0);
  will-change: transform;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.hero-glow--blue {
  background: var(--accent);
  top: -180px;
  left: -120px;
}

.hero-glow--purple {
  background: rgba(255, 13, 37, 0.18);
  bottom: -220px;
  right: -140px;
}

.hero-shape {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: drift 14s ease-in-out infinite;
}

.hero-shape--1 {
  width: 340px;
  height: 340px;
  top: 14%;
  right: 8%;
  animation-delay: 0s;
}

.hero-shape--2 {
  width: 180px;
  height: 180px;
  bottom: 18%;
  left: 6%;
  animation-delay: -4s;
}

.hero-shape--3 {
  width: 90px;
  height: 90px;
  top: 60%;
  right: 20%;
  border-radius: 20px;
  animation-delay: -8s;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 13, 37, 0.22), transparent);
  animation: scan 8s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2vw, 24px);
  margin: auto 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  width: 100%;
  gap: clamp(8px, 1.2vw, 14px);
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
  width: 100%;
}

.hero-text-logo {
  max-width: clamp(380px, 46vw, 680px);
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  pointer-events: none;
  -webkit-touch-callout: none;
  margin: 0 auto;
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, 0.7));
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.2vw, 1.78rem);
  font-weight: 590;
  line-height: 1.3;
  letter-spacing: -0.025em;
  word-spacing: -0.02em;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  margin: 0 auto;
  padding: 2px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.16em;
}

.hero-heading-accent,
.hero-accent {
  color: var(--accent);
  font-weight: 650;
}

.hero-desc {
  display: none !important;
}

/* Hero Entrance Animations — Cascading sequence after navbar slides in */
/* Nav slides in:    0ms  →  650ms  */
/* Brand blurs in:  400ms → 1700ms  */
/* Heading fades:   800ms → 1650ms  */
/* Buttons appear: 1150ms → 2000ms  */
/* Showreel scales:1600ms → 2850ms  */
.hero-animate-brand {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(22px) scale(0.96);
  animation: heroBrandBlurIn 1150ms cubic-bezier(0.22, 1, 0.36, 1) 400ms forwards;
  will-change: transform, opacity, filter;
}

@keyframes heroBrandBlurIn {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(22px) scale(0.96);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }
}

.hero-animate-heading {
  opacity: 0;
  transform: translateY(20px);
  animation: heroHeadingIn 850ms cubic-bezier(0.16, 1, 0.3, 1) 850ms forwards;
}

.hero-animate-showreel {
  opacity: 0;
  transform: scale(0.86);
  filter: blur(12px);
  animation: heroShowreelSmoothScale 1250ms cubic-bezier(0.16, 1, 0.25, 1) 1600ms forwards;
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

@keyframes heroHeadingIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroShowreelSmoothScale {
  0% {
    opacity: 0;
    transform: scale(0.86);
    filter: blur(12px);
  }

  50% {
    opacity: 0.85;
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Hero buttons entrance — appear after heading with slight stagger */
.hero-buttons.hero-animate-buttons {
  opacity: 0;
  transform: translateY(18px);
  animation: heroHeadingIn 800ms cubic-bezier(0.16, 1, 0.3, 1) 1150ms forwards;
}

/* Hero text word reveal styles */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) blur(2px);
  animation: wordReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-index, 0) * 35ms + 100ms);
}

.hero-word-space {
  display: inline-block;
  width: 0.3em;
}

.hero-word-br {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-word {
    opacity: 1;
    transform: none !important;
    animation: none !important;
  }
}

@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) blur(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) blur(0px);
  }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

/* ==========================================================================
   Showreel — Prominent Large Player Below Text
   ========================================================================== */
.hero-showreel {
  position: relative;
  width: 100%;
  max-width: min(100%, clamp(540px, 50vw, 820px));
  margin: 0 auto;
  border-radius: clamp(18px, 2vw, 24px);
  background: transparent;
}

.hero-showreel .showreel-wrapper {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.58), 0 0 44px rgba(255, 13, 37, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: transparent;
}

.showreel-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* A non-interactive layer keeps every showreel control above the video
   without creating a full-size click target over the player. */
.showreel-controls {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.showreel-controls>button,
.showreel-controls>.showreel-timeline {
  pointer-events: auto;
}

/* Play Button - visible while paused so the showreel always reads as playable. */
.showreel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(255, 13, 37, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 3;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.showreel-play-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.showreel-play-btn:hover {
  background: rgba(255, 13, 37, 0.12);
  border-color: rgba(255, 13, 37, 0.3);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 13, 37, 0.06);
}

.showreel-play-btn .play-icon {
  width: 28px;
  height: 28px;
  display: block;
  filter: brightness(0) invert(1);
  transition: transform 0.3s var(--ease);
  pointer-events: none;
}

.showreel-play-btn:hover .play-icon {
  transform: scale(1.05);
}

/* Mute Button */
.showreel-mute-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(255, 13, 37, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 1;
  z-index: 2;
  cursor: pointer;
}

.showreel-mute-btn:hover {
  background: rgba(255, 13, 37, 0.12);
  border-color: rgba(255, 13, 37, 0.25);
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 0 20px rgba(255, 13, 37, 0.06);
}

.showreel-mute-btn .mute-icon {
  line-height: 1;
}

/* Showreel Timeline - Inside Video at bottom */
.showreel-timeline {
  position: absolute;
  bottom: 8px;
  left: clamp(22px, 6.5vw, 32px);
  right: clamp(22px, 6.5vw, 32px);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  cursor: var(--cursor-hover, pointer) !important;
  z-index: 5;
  pointer-events: none;
  touch-action: none;
}

.showreel-timeline *,
.timeline-track,
.timeline-thumb,
.timeline-progress {
  cursor: var(--cursor-hover, pointer) !important;
}

.showreel-wrapper.has-played:hover .showreel-timeline,
.showreel-timeline.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Playing video keeps the image unobstructed; desktop hover still reveals the
   existing controls and leaves click-to-play behavior unchanged. */
.showreel-wrapper.is-playing .showreel-controls {
  opacity: 0;
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .showreel-wrapper.is-playing:hover .showreel-controls {
    opacity: 1;
    visibility: visible;
  }
}

.showreel-timeline:hover,
.showreel-timeline.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.timeline-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  cursor: pointer;
  touch-action: none;
  transition: height 0.2s var(--ease), background 0.2s var(--ease);
  pointer-events: auto;
}

.showreel-timeline:hover .timeline-track,
.showreel-timeline.is-active .timeline-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-strong);
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
  transition: width 0.05s linear;
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 13, 37, 0.5);
  left: 0%;
  transition: left 0.05s linear, width 0.2s var(--ease), height 0.2s var(--ease);
}

.timeline-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.showreel-timeline:hover .timeline-thumb,
.showreel-timeline.is-active .timeline-thumb {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 16px rgba(255, 13, 37, 0.8), 0 0 0 3px rgba(255, 13, 37, 0.25);
}

/* ==========================================================================
   Section heading shared
   ========================================================================== */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: "▹";
  font-size: 0.9rem;
  line-height: 1;
  color: var(--accent-strong);
}

.section-eyebrow--center {
  text-align: center;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading--center {
  max-width: 100%;
  text-align: center;
  margin: 0 auto 36px;
}

.text-glow {
  background: var(--glow-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Achievements
   ========================================================================== */
.achievements {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  /* Reduced gap since cards now have visible borders and backgrounds */
}

.achievement-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.achievement-card:hover {
  border-color: rgba(255, 13, 37, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 13, 37, 0.08), 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 13, 37, 0.1);
}

.achievement-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}

.achievement-label {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--grey-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients {
  background: transparent;
  overflow: hidden;
}

/* Desktop card hover glow needs to extend beyond the clients section.
   Horizontal overflow remains contained by the document and marquee mask. */
@media (min-width: 901px) {
  .clients {
    overflow: visible;
  }
}

.clients .section-inner {
  padding-top: var(--section-pad-y);
  padding-bottom: 0;
}

.clients .portfolio-header {
  margin-bottom: 0;
}

.clients .portfolio-main-heading {
  margin-bottom: 0;
}

.clients .section-heading--center {
  margin-bottom: 0;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
  padding: clamp(42px, 4vw, 58px) 0 var(--section-pad-y) 0;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
  -webkit-mask-origin: border-box;
  mask-origin: border-box;
  -webkit-mask-clip: border-box;
  mask-clip: border-box;
  isolation: isolate;
  /* Keep the edge fade on a stable viewport layer; pointer states never alter it. */
  will-change: auto;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
}

.clients-marquee.is-pointer-dragging .marquee-track,
.marquee-track-mobile.is-pointer-dragging {
  cursor: grabbing;
}

.marquee-group {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.client-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(320px, 28vw);
  padding: 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.24);
  --client-tilt-x: 0deg;
  --client-tilt-y: 0deg;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.clients-marquee .client-card {
  color: inherit;
  text-decoration: none;
}

.clients-marquee .client-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.client-card::before {
  display: none;
}

.client-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 13, 37, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 13, 37, 0.08), 0 24px 48px rgba(0, 0, 0, 0.28), 0 0 28px rgba(255, 13, 37, 0.14);
}

/* Keep the first passive cursor pass calm; the normal hover effects return
   after the cursor leaves and deliberately re-enters the marquee. */
.clients-marquee:not(.marquee-interactions-ready) .client-card:hover {
  transform: none !important;
  border-color: var(--card-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.24) !important;
}

.clients-marquee:not(.marquee-interactions-ready) .client-card:hover .client-mark {
  transform: none !important;
}

.client-mark {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  border: 1px solid rgba(255, 13, 37, 0.3);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 13, 37, 0.28), rgba(255, 13, 37, 0.06) 70%, transparent 72%),
    var(--bg-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 22px rgba(0, 0, 0, 0.24);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.client-mark-ring {
  position: absolute;
  z-index: 2;
  inset: -5px;
  border: 1px solid rgba(255, 50, 75, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 13, 37, 0.08), 0 0 18px rgba(255, 13, 37, 0.32);
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition:
    opacity 260ms ease-out,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.client-mark-ring.is-visible {
  opacity: 1;
  transform: scale(1);
}

.client-mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.client-mark[data-initials]::after {
  content: attr(data-initials);
}

.client-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.client-name-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-name-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.client-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 220ms ease, text-shadow 320ms ease, font-weight 220ms ease;
}

.client-card:hover .client-name,
.client-name-link:focus-visible .client-name {
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 13, 37, 0.45), 0 0 22px rgba(255, 13, 37, 0.32);
}

.client-card:hover .client-name-link,
.client-name-link:focus-visible {
  transform: translateX(3px) scale(1.045);
}

.client-name-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .clients-marquee.marquee-interactions-ready .client-card:hover {
    transform: translateY(-5px) rotateX(1deg) rotateY(-1deg);
  }
}

.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.client-subscribers {
  font-size: 0.84rem;
  color: var(--grey-dim);
}

/* ── Mobile/Tablet Client Marquee (CSS loop with profile-name actions) ── */
.clients-marquee--desktop {
  display: block;
  isolation: isolate;
}

.clients-marquee--mobile {
  display: none;
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  padding: clamp(26px, 3.2vw, 36px) 0 var(--section-pad-y) 0;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.marquee-track-mobile {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: max-content;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  -webkit-animation: marquee-scroll-mobile 30s linear infinite;
  animation: marquee-scroll-mobile 30s linear infinite;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.marquee-group-mobile {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 16px;
  padding-right: 16px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

@-webkit-keyframes marquee-scroll-mobile {
  0% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes marquee-scroll-mobile {
  0% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* Mobile cards: completely stripped of hover animations, scale, and glow */
.client-card--mobile {
  pointer-events: auto !important;
  cursor: default;
  user-select: none !important;
  -webkit-user-select: none !important;
  transform: none !important;
  transition: none !important;
}

.client-card--mobile:hover,
.client-card--mobile:active,
.client-card--mobile:focus {
  transform: none !important;
}

/* ==========================================================================
   Portfolio Section — Unified Long-Form carousel + Short-Form grid
   ========================================================================== */
.portfolio-section .section-heading {
  margin-bottom: 48px;
}

/* Header row: eyebrow + "see all" link */
.portfolio-header {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.portfolio-title-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-main-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  background: linear-gradient(75deg,
      var(--white) 0%,
      var(--white) 25%,
      #FF2B40 50%,
      var(--white) 75%,
      var(--white) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-position: 200% center;
  animation: portfolio-title-shimmer 12s ease-in-out infinite;
  animation-delay: 0.2s;
}

.portfolio-see-all {
  position: relative;
  z-index: 10;
  padding: 10px 24px !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.portfolio-see-all span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-arrow {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -2px;
  stroke: #ffffff;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  animation: arrow-nudge 3s ease-in-out infinite;
  animation-delay: 2s;
}

.btn:hover .portfolio-arrow,
.portfolio-see-all:hover .portfolio-arrow {
  transform: translateX(4px);
}

.portfolio-see-all:hover {
  color: #ffffff !important;
  background: #FF2B40 !important;
  box-shadow: 0 4px 32px rgba(212, 10, 30, 0.45), 0 16px 34px rgba(0, 0, 0, 0.3) !important;
  /* Keep this non-important so the desktop magnetic inline transform can
     follow the pointer while the button is hovered. */
  transform: translate3d(0, -2px, 0) scale(1.015);
}

.portfolio-see-all:active {
  transform: translate3d(0, 0, 0) scale(0.99) !important;
}

/* Sub-headings (| Long-Form, | Short-Form) */
.portfolio-sub-heading {
  font-family: var(--font-display);

  /* Responsive portfolio heading */
  @media (max-width: 768px) {
    .portfolio-main-heading {
      font-size: 2.5rem;
      margin-bottom: 20px;
    }

    .portfolio-see-all {
      padding: 8px 20px !important;
      font-size: 0.95rem !important;
    }

    .portfolio-arrow {
      width: 12px;
      height: 12px;
      margin-left: 3px;
    }
  }

  @media (max-width: 480px) {
    .portfolio-main-heading {
      font-size: 2rem;
      margin-bottom: 16px;
    }

    .portfolio-header {
      margin-bottom: 32px;
    }
  }

  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-strong);
}

/* ── Long-Form Carousel ─────────────────────────────────── */
.portfolio-longform {
  margin-bottom: clamp(36px, 4vw, 56px);
  overflow: visible;
}

.portfolio-longform .carousel-container {
  overflow: visible;
}

/* Allow overflow-y so card tilt + glow is fully visible without clipping.
   Vertical padding gives the glow room, compensated with negative margin
   so the layout height stays unchanged.
   32px horizontal negative margins and track padding provide full glow clearance
   while 32px gap ensures 0px overlap of the next card. */
.portfolio-longform .carousel-viewport {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: -40px;
  margin-bottom: -40px;
  margin-left: -32px;
  margin-right: -32px;
  width: calc(100% + 64px);
}

.portfolio-longform .carousel-track {
  gap: 32px;
  padding-left: 32px;
  padding-right: 32px;
}

.portfolio-longform .longform-card {
  flex: 0 0 calc(50% - 16px);
}

@media (max-width: 768px) {
  .portfolio-longform .carousel-viewport {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .portfolio-longform .carousel-track {
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .portfolio-longform .longform-card {
    flex: 0 0 100%;
  }
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  /* gap removed so arrows don't push the viewport */
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 20px;
}

.longform-card {
  position: relative;
  flex: 0 0 calc(50% - 16px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 13, 37, 0.18);
  background: var(--bg-alt);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.longform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 13, 37, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 13, 37, 0.08), 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 13, 37, 0.1);
}

.longform-card .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: pointer;
}

.longform-card .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.vlb-trigger,
.mute-btn,
.showreel-mute-btn {
  position: absolute;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 13, 37, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.vlb-trigger {
  right: 10px;
}

.mute-btn,
.showreel-mute-btn {
  right: 48px;
}

.vlb-trigger svg,
.mute-btn svg,
.showreel-mute-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.video-wrapper .vlb-trigger,
.video-wrapper .mute-btn,
.showreel-wrapper .vlb-trigger,
.showreel-wrapper .showreel-mute-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.video-wrapper:hover .vlb-trigger,
.video-wrapper:hover .mute-btn,
.showreel-wrapper.has-played:hover .vlb-trigger,
.showreel-wrapper.has-played:hover .showreel-mute-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Before first play, lock all showreel controls completely hidden */
.showreel-wrapper:not(.has-played) .vlb-trigger,
.showreel-wrapper:not(.has-played) .showreel-mute-btn,
.showreel-wrapper:not(.has-played) .showreel-timeline {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.vlb-trigger:hover,
.mute-btn:hover,
.showreel-mute-btn:hover {
  background: rgba(255, 13, 37, 0.22);
  border-color: rgba(255, 13, 37, 0.55);
  transform: scale(1.1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.longform-genre {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
  letter-spacing: 0.04em;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px) saturate(180%) brightness(0.65);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 -4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.longform-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 13, 37, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.longform-card.is-playing .longform-genre {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.longform-card.is-playing .longform-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.3s var(--ease), transform 0.2s var(--ease);
  z-index: 5;
}

.carousel-arrow--left {
  left: -22px;
  /* Pull it slightly outside to not obscure video, but still inside section-inner */
}

.carousel-arrow--right {
  right: -22px;
}

.carousel-arrow:hover {
  background: rgba(255, 13, 37, 0.25);
  border-color: rgba(255, 13, 37, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Short-Form Grid ─────────────────────────────────────── */
.shortform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shortform-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 13, 37, 0.18);
  background: var(--bg-alt);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.shortform-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 13, 37, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 13, 37, 0.08), 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 13, 37, 0.1);
}

.shortform-card .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.shortform-card .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.shortform-card .mute-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.4);
  border: 1px solid rgba(255, 13, 37, 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.2;
  z-index: 2;
  cursor: pointer;
}

.shortform-card .mute-btn:hover {
  background: rgba(255, 13, 37, 0.15);
  border-color: rgba(255, 13, 37, 0.2);
  transform: scale(1.05);
  opacity: 1;
}

/* Play button + icon — shared with showreel */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(10px) brightness(0.6);
  -webkit-backdrop-filter: blur(10px) brightness(0.6);
  border: 1px solid rgba(255, 13, 37, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  cursor: pointer;
}

.video-play-btn:hover {
  background: rgba(255, 13, 37, 0.2);
  border-color: rgba(255, 13, 37, 0.8);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 24px rgba(255, 13, 37, 0.28), inset 0 0 10px rgba(0, 0, 0, 0.25);
}

.video-play-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  display: block;
}

.video-play-btn:hover img {
  transform: scale(1.05);
}

/* ── Entrance Animations ─────────────────────────────────── */
.portfolio-animate-heading {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-animate-heading.in-view {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-animate-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--card-index, 1) * 80ms);
}

.portfolio-animate-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Keep view-more-btn for portfolio.html link usage elsewhere */
.view-more-btn {
  font-size: 0.9rem;
  padding: 14px 36px;
}

/* ==========================================================================
   Thumbnail Showcase (Homepage)
   ========================================================================== */
.thumbnail-showcase {
  background: transparent;
  border-top: none;
  /* Ensure the section itself never clips the tilt + glow from cards */
  overflow: visible;
}

.thumbnail-showcase .section-inner {
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
  overflow: visible;
}

.thumbnail-desc {
  color: var(--grey);
  max-width: 600px;
  margin-bottom: 32px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 28px;
  margin-bottom: 36px;
}

.thumbnail-showcase .carousel-container {
  margin-top: 16px;
  /* Allow tilt glow to bleed outside the container */
  overflow: visible;
}

/* Thumbnail carousel: allow overflow-y so 3D tilt + glow is fully visible.
   Vertical padding gives the glow room, and compensate with negative margin
   so the layout height stays unchanged.
   32px horizontal negative margins and track padding provide full glow clearance
   while 32px gap ensures 0px overlap of the next card. */
.thumbnail-showcase .carousel-viewport {
  overflow-x: auto;
  /* override the global overflow-y:hidden so tilt + glow aren't clipped vertically */
  overflow-y: visible;
  padding-top: 50px;
  padding-bottom: 50px;
  margin-top: -50px;
  margin-bottom: -50px;
  margin-left: -32px;
  margin-right: -32px;
  width: calc(100% + 64px);
}

.thumbnail-showcase .carousel-track {
  gap: 32px;
  padding-left: 32px;
  padding-right: 32px;
}

.thumbnail-showcase .carousel-track .thumbnail-item {
  flex: 0 0 calc(50% - 16px);
  min-width: 0;
}

@media (max-width: 768px) {
  .thumbnail-showcase .carousel-viewport {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .thumbnail-showcase .carousel-track {
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .thumbnail-showcase .carousel-track .thumbnail-item {
    flex: 0 0 100%;
  }
}

@media (max-width: 640px) {
  .carousel-track .thumbnail-item {
    flex: 0 0 100%;
  }
}

.thumbnail-item {
  position: relative;
  border-radius: var(--radius-md);
  /* overflow is set to visible by JS during 3D tilt; .tilt-inner-clip handles clipping */
  overflow: hidden;
  border: 1px solid rgba(255, 13, 37, 0.08);
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}

/* Inner clip wrapper injected by JS for 3D tilt — handles image clipping
   without causing the card outer shell to crop during perspective rotation */
.tilt-inner-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  display: flex;
  align-items: stretch;
}

.tilt-inner-clip img,
.tilt-inner-clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.thumbnail-item:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: rgba(255, 13, 37, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.thumbnail-item:hover img {
  transform: scale(1.03);
}

.thumbnail-footer {
  text-align: center;
}

/* ==========================================================================
   Client Reviews — Improved readability, compactness, and visible borders
   ========================================================================== */
.reviews {
  background: transparent;
  border-top: none;
}

.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.review-card {
  /* CSS var driven by JS parallax — keeps :hover transform intact */
  --parallax-y: 0px;
  flex: 0 1 calc(33.333% - 19px);
  min-width: 310px;
  max-width: 380px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(var(--parallax-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.review-card:hover {
  border-color: rgba(255, 13, 37, 0.3);
  /* calc() combines the hover lift with the running parallax offset */
  transform: scale(1.02) translateY(calc(-2px + var(--parallax-y)));
  box-shadow: 0 0 0 1px rgba(255, 13, 37, 0.08), 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 13, 37, 0.1);
}

/* Quote icon in top-right corner */
.review-quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  color: rgba(255, 13, 37, 0.25);
  pointer-events: none;
}

.review-quote-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 13, 37, 0.08);
  border: 2px solid rgba(255, 13, 37, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.review-avatar img.client-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.review-avatar .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  position: relative;
  z-index: 0;
}

.review-avatar img.client-logo:not([style*="display:none"])+.initials {
  display: none;
}

.review-client-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.review-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.review-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--grey-dim);
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* Star rating */
.review-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.review-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.review-body p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(209, 213, 219, 0.92);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Entrance animation for review cards */
.review-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

.review-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Thumbnail Full Page (thumbnail.html)
   ========================================================================== */
.thumbnail-main .thumbnail-grid-full {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 960px;
  margin: 30px auto 60px;
}

.thumbnail-full-item {
  position: relative;
  border-radius: var(--radius-md);
  /* overflow is set to visible by JS during 3D tilt; .tilt-inner-clip handles clipping */
  overflow: hidden;
  border: 1px solid rgba(255, 13, 37, 0.06);
  background: #000;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}

.thumbnail-full-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.thumbnail-full-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 13, 37, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.thumbnail-full-item:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   FAQ — Premium Motion
   ========================================================================== */
.faq {
  background: transparent;
  border-top: none;
}

.faq-eyebrow-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Entrance Animation */
.faq-animate-heading {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-animate-heading.in-view {
  opacity: 1;
  transform: translateY(0);
}

.faq-animate-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger, 1) * 60ms);
}

.faq-animate-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Item Base */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.25s var(--ease);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 13, 37, 0.2);
}

.faq-item.is-open {
  border-color: rgba(255, 13, 37, 0.32);
  box-shadow: var(--shadow-accent);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), padding 0.35s var(--ease);
  position: relative;
}

.faq-item.is-open .faq-trigger {
  padding-bottom: 12px;
}

.faq-trigger:hover {
  transform: translateX(3px);
  color: var(--accent-strong);
}

.faq-trigger:active {
  transform: scale(0.99);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 13, 37, 0.24);
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease);
  flex-shrink: 0;
}

.faq-trigger:hover .faq-icon {
  border-color: rgba(255, 13, 37, 0.4);
  background: rgba(255, 13, 37, 0.06);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  border-color: rgba(255, 13, 37, 0.46);
  color: var(--white);
  background: rgba(255, 13, 37, 0.08);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s var(--ease);
  padding: 0 24px;
  opacity: 0;
}

.faq-item.is-open .faq-panel {
  opacity: 1;
}

.faq-panel p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 760px;
  padding-bottom: 22px;
  margin: 0;
  transform: translateY(4px);
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-panel p {
  transform: translateY(0);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-top: none;
}

.contact-shell {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid rgba(255, 13, 37, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 13, 37, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 13, 37, 0.14), rgba(255, 13, 37, 0.06) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.contact .section-inner {
  position: relative;
  z-index: 1;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
}

.contact-sub {
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 32px;
  border: 1px solid rgba(255, 13, 37, 0.18);
  border-radius: 16px;
  min-width: 200px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.contact-link:hover {
  border-color: rgba(255, 13, 37, 0.42);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-accent);
  background: rgba(255, 13, 37, 0.05);
}

.contact-link:active {
  transform: translateY(0) scale(0.99);
}

.contact-link-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  user-select: none;
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  /* Keep the footer content clear of the home indicator on notched iPhones. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer-inner {
  padding-top: clamp(40px, 4vw, 56px);
  padding-bottom: clamp(40px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: start;
  transition: transform 0.3s var(--ease);
}

.footer-logo:hover {
  transform: scale(1.04);
}

.footer-logo-image {
  height: 28px;
  width: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.footer-socials {
  display: flex;
  gap: 18px;
  justify-self: center;
}

.footer-socials a {
  color: var(--grey);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-socials a:hover {
  color: var(--accent-strong);
  transform: translateY(-2px) scale(1.04);
}

.footer-socials a:active {
  transform: translateY(0) scale(0.97);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--grey-dim);
  justify-self: end;
}

/* Global Cursor Glow removed for lightweight 120 FPS performance */


/* ==========================================================================
   Video Lightbox / Modal  (.vlb, .video-modal)
   --------------------------------------------------------------------------
   Dedicated overlay for the zoom-in video feature.
   Uses a separate <video> element so the lightbox panel is always
   crisp — no inherited filters, no stacking-context bleed.
   ========================================================================== */

/* ── Root overlay ────────────────────────────────────────────────────────── */
.vlb,
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vlb.is-open,
.video-modal.is-open {
  pointer-events: auto;
}

/* Keep every hidden lightbox child from intercepting clicks in the page. */
.vlb:not(.is-open) .vlb__panel,
.vlb:not(.is-open) .vlb__panel *,
.video-modal:not(.is-open) .vlb__panel,
.video-modal:not(.is-open) .vlb__panel * {
  pointer-events: none !important;
}

/* ── Backdrop ────────────────────────────────────────────────────────────── */
.vlb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 2, 0.82);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  cursor: pointer;
}

.vlb.is-open .vlb__backdrop,
.video-modal.is-open .vlb__backdrop {
  opacity: 1;
}

/* ── Panel ───────────────────────────────────────────────────────────────── */
.vlb__panel {
  position: relative;
  z-index: 1;
  /* Size: comfortable half-fullscreen ~62% viewport */
  width: clamp(480px, 62vw, 1080px);
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 13, 37, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 80px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(255, 13, 37, 0.06);
  overflow: hidden;
  /* Panel starts invisible/tiny — JS drives the open animation */
  opacity: 0;
  transform: scale(0.88) translateY(18px);
  transition: opacity 0.38s var(--ease),
    transform 0.38s var(--ease);
  will-change: transform, opacity;
}

.vlb.is-open .vlb__panel,
.video-modal.is-open .vlb__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Short-Form Vertical Modal (9:16 aspect ratio) ────────────────────────── */
.vlb.is-shortform .vlb__panel,
.video-modal.is-shortform .vlb__panel {
  width: auto;
  height: min(85vh, 750px);
  aspect-ratio: 9 / 16;
  max-width: 90vw;
}

/* Desktop portrait videos use the available vertical space without affecting
   landscape modals or the mobile short-form layout below. */
@media (min-width: 769px) {

  .vlb.is-shortform .vlb__panel,
  .video-modal.is-shortform .vlb__panel {
    width: auto;
    height: 85vh;
    max-height: 85vh;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 600px) {

  .vlb.is-shortform .vlb__panel,
  .video-modal.is-shortform .vlb__panel {
    height: min(82vh, 620px);
    max-width: 88vw;
  }
}

/* ── Video inside panel ──────────────────────────────────────────────────── */
.vlb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  background: #0a0a0a;
}

/* Reparented showreel videos must receive clicks while open so the panel can
   distinguish video play/pause clicks from clicks on the surrounding padding. */
.vlb.is-open .vlb__panel .vlb__video {
  pointer-events: auto !important;
}

/* ── Lightbox Timeline / Scrubber ────────────────────────────────────────── */
.vlb__timeline {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  /* z-index: 20 ABOVE center-play (z-index: 15) so scrubbing never triggers play button */
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  padding: 14px 0;
  /* expand clickable area vertically without visual change */
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vlb__panel:hover .vlb__timeline,
.vlb.is-open .vlb__timeline.is-active,
.vlb.is-open .vlb__panel:hover .vlb__timeline,
.video-modal.is-open .vlb__timeline.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Controls bar (Mute + Close) ─────────────────────────────────────────── */
.vlb__controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vlb__panel:hover .vlb__controls,
.vlb.is-open .vlb__controls,
.video-modal.is-open .vlb__controls {
  opacity: 1;
}

.vlb__play {
  display: none !important;
}

.vlb__mute,
.vlb__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), opacity 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vlb__play svg,
.vlb__mute svg,
.vlb__close svg {
  width: 16px;
  height: 16px;
}

.vlb__play:hover,
.vlb__mute:hover {
  background: rgba(255, 13, 37, 0.2);
  border-color: rgba(255, 13, 37, 0.45);
  transform: scale(1.08);
}

.vlb__close:hover {
  background: rgba(220, 40, 40, 0.22);
  border-color: rgba(220, 40, 40, 0.45);
  transform: scale(1.08);
}

/* ── Center play/pause button (desktop hover hit area) ───────────────────── */
.vlb__center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  touch-action: manipulation;
  transition: opacity 0.25s ease;
}

.vlb__center-play:hover {
  opacity: 1;
}

/* When paused, always show on desktop */
.vlb__panel.is-paused .vlb__center-play,
.vlb__center-play.is-paused {
  opacity: 1;
}

/* Desktop only: keep the play/pause control in sync with the hover-only scrubber. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .vlb__panel:not(:hover) .vlb__center-play {
    opacity: 0;
    pointer-events: none;
  }

  .vlb__panel:hover .vlb__center-play {
    opacity: 1;
    pointer-events: auto;
  }
}

/* The visual circle */
.vlb__center-play-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.58);
  backdrop-filter: blur(14px) brightness(0.55);
  -webkit-backdrop-filter: blur(14px) brightness(0.55);
  border: 1px solid rgba(255, 13, 37, 0.45);
  box-shadow: 0 0 24px rgba(255, 13, 37, 0.15), inset 0 0 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  pointer-events: none;
}

.vlb__center-play:hover .vlb__center-play-icon {
  transform: scale(1.08);
  background: rgba(255, 13, 37, 0.18);
  border-color: rgba(255, 13, 37, 0.8);
  box-shadow: 0 0 36px rgba(255, 13, 37, 0.3), inset 0 0 12px rgba(0, 0, 0, 0.3);
}

.vlb__center-play .vlb__icon-play,
.vlb__center-play .vlb__icon-pause {
  width: 26px;
  height: 26px;
  color: #ffffff;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.vlb__center-play .vlb__icon-play {
  display: none;
  margin-left: 3px;
  /* optical centering */
}

.vlb__center-play .vlb__icon-pause {
  display: block;
}

.vlb__center-play.is-paused .vlb__icon-play {
  display: block;
}

.vlb__center-play.is-paused .vlb__icon-pause {
  display: none;
}

/* Play / Pause toggle icon states */
.vlb__play .vlb__icon-play {
  display: none;
}

.vlb__play .vlb__icon-pause {
  display: block;
}

.vlb__play.is-paused .vlb__icon-play {
  display: block;
}

.vlb__play.is-paused .vlb__icon-pause {
  display: none;
}

/* Muted state */
.vlb__mute .mute-cross,
.mute-btn .mute-cross,
.showreel-mute-btn .mute-cross {
  display: none;
}

.vlb__mute.is-muted .vlb__mute-wave,
.vlb__mute.is-muted .mute-wave,
.mute-btn.is-muted .mute-wave,
.showreel-mute-btn.is-muted .mute-wave {
  display: none;
}

.vlb__mute.is-muted .mute-cross,
.mute-btn.is-muted .mute-cross,
.showreel-mute-btn.is-muted .mute-cross {
  display: block;
}

/* ── Genre badge (top-left corner) ───────────────────────────────────────── */
.vlb__genre-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.65);
  border: 1px solid rgba(255, 13, 37, 0.28);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vlb__panel:hover .vlb__genre-badge,
.vlb.is-open .vlb__genre-badge:not(:empty),
.video-modal.is-open .vlb__genre-badge:not(:empty) {
  opacity: 1;
}

/* ── Escape key hint (bottom-center) ────────────────────────────────────── */
.vlb__esc-hint {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vlb.is-open .vlb__esc-hint,
.video-modal.is-open .vlb__esc-hint {
  opacity: 1;
}

/* ==========================================================================
   Interactive Controls State (.controls-hidden) & Touch Optimization
   ========================================================================== */

/* Touch Optimization: manipulation eliminates double-tap zoom delay */
.vlb button,
.vlb__center-play,
.vlb__mute,
.vlb__close,
.vlb__play,
.vlb__timeline,
.vlb-trigger,
.video-modal button,
.video-modal .ui-control-element {
  touch-action: manipulation;
}

/* Base UI control element state (when modal is open and controls visible) */
.video-modal .ui-control-element,
.vlb .ui-control-element {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

/* Control Visibility Class (.controls-hidden, .hide-mobile-ui) */
.video-modal.controls-hidden .ui-control-element,
.video-modal.hide-mobile-ui .ui-control-element,
.vlb.controls-hidden .ui-control-element,
.vlb.hide-mobile-ui .ui-control-element,
.vlb.controls-hidden .vlb__controls,
.vlb.hide-mobile-ui .vlb__controls,
.vlb.controls-hidden .vlb__timeline,
.vlb.hide-mobile-ui .vlb__timeline,
.vlb.controls-hidden .vlb__center-play,
.vlb.hide-mobile-ui .vlb__center-play,
.vlb.controls-hidden .vlb__genre-badge,
.vlb.hide-mobile-ui .vlb__genre-badge,
.vlb.controls-hidden .vlb__esc-hint,
.vlb.hide-mobile-ui .vlb__esc-hint,
.vlb.controls-hidden .vlb__mute,
.vlb.hide-mobile-ui .vlb__mute,
.vlb.controls-hidden .vlb__close,
.vlb.hide-mobile-ui .vlb__close,
.vlb.controls-hidden .video-viewer-title,
.vlb.hide-mobile-ui .video-viewer-title,
.vlb.controls-hidden .video-viewer-meta,
.vlb.hide-mobile-ui .video-viewer-meta,
.vlb__panel.controls-hidden .ui-control-element,
.vlb__panel.hide-mobile-ui .ui-control-element,
.vlb__panel.controls-hidden .vlb__controls,
.vlb__panel.hide-mobile-ui .vlb__controls,
.vlb__panel.controls-hidden .vlb__timeline,
.vlb__panel.hide-mobile-ui .vlb__timeline,
.vlb__panel.controls-hidden .vlb__center-play,
.vlb__panel.hide-mobile-ui .vlb__center-play,
.vlb__panel.controls-hidden .vlb__genre-badge,
.vlb__panel.hide-mobile-ui .vlb__genre-badge,
.vlb__panel.controls-hidden .vlb__esc-hint,
.vlb__panel.hide-mobile-ui .vlb__esc-hint,
.vlb__panel.controls-hidden .vlb__mute,
.vlb__panel.hide-mobile-ui .vlb__mute,
.vlb__panel.controls-hidden .vlb__close,
.vlb__panel.hide-mobile-ui .vlb__close,
.vlb__panel.controls-hidden .video-viewer-title,
.vlb__panel.hide-mobile-ui .video-viewer-title,
.vlb__panel.controls-hidden .video-viewer-meta,
.vlb__panel.hide-mobile-ui .video-viewer-meta,
.vlb.vlb--ui-hidden .vlb__controls,
.vlb.vlb--ui-hidden .vlb__timeline,
.vlb.vlb--ui-hidden .vlb__center-play,
.vlb.vlb--ui-hidden .vlb__genre-badge,
.vlb.vlb--ui-hidden .vlb__esc-hint,
.vlb__panel.vlb--ui-hidden .vlb__controls,
.vlb__panel.vlb--ui-hidden .vlb__timeline,
.vlb__panel.vlb--ui-hidden .vlb__center-play,
.vlb__panel.vlb--ui-hidden .vlb__genre-badge,
.vlb__panel.vlb--ui-hidden .vlb__esc-hint {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Touch & Mobile Specific Hitboxes and Layering */
@media (hover: none) and (pointer: coarse),
(max-width: 900px) {

  /* Controls visible by default when modal is open (unless .controls-hidden or .hide-mobile-ui is present) */
  .vlb.is-open:not(.controls-hidden):not(.vlb--ui-hidden):not(.hide-mobile-ui) .vlb__controls,
  .vlb.is-open:not(.controls-hidden):not(.vlb--ui-hidden):not(.hide-mobile-ui) .vlb__timeline,
  .vlb.is-open:not(.controls-hidden):not(.vlb--ui-hidden):not(.hide-mobile-ui) .vlb__center-play,
  .vlb.is-open:not(.controls-hidden):not(.vlb--ui-hidden):not(.hide-mobile-ui) .vlb__genre-badge,
  .vlb.is-open:not(.controls-hidden):not(.vlb--ui-hidden):not(.hide-mobile-ui) .vlb__esc-hint,
  .vlb.is-open:not(.controls-hidden):not(.vlb--ui-hidden):not(.hide-mobile-ui) .ui-control-element,
  .video-modal.is-open:not(.controls-hidden):not(.hide-mobile-ui) .ui-control-element {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s ease;
  }

  /* Play/Pause Button: Constrain width, height, and touch target strictly to visible 50px circle boundaries */
  .vlb__center-play,
  .video-modal .vlb__center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    margin: auto;
    padding: 0;
    z-index: 15;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .vlb__center-play-icon,
  .video-modal .vlb__center-play-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0;
    pointer-events: none;
  }

  .vlb__center-play .vlb__icon-play,
  .vlb__center-play .vlb__icon-pause,
  .video-modal .vlb__center-play .vlb__icon-play,
  .video-modal .vlb__center-play .vlb__icon-pause {
    width: 20px;
    height: 20px;
  }

  /* Scrubber z-index & positioning: isolated above background and unaffected by play button */
  .vlb__timeline,
  .video-modal .vlb__timeline {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    z-index: 20;
  }

  /* Panel sizing on mobile */
  .vlb__panel,
  .video-modal .vlb__panel {
    width: calc(100vw - 24px);
    max-width: 100%;
  }
}

/* Holds card geometry while its existing video node is temporarily mounted
   in the lightbox. No replacement media element is created. */
.video-reparent-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  pointer-events: none;
}

/* ==========================================================================
   Unselectable & Protection for Logos, Thumbnails, Videos & Hero Showreel
   ========================================================================== */
img,
video,
.showreel-video,
.showreel-wrapper,
.hero-showreel,
.vlb__video,
.video-modal video,
.client-logo,
.client-mark-img,
.client-mark,
.thumbnail-item img,
.thumbnail-card img,
.thumbnail-full-item img,
.hero-feature-card img,
.hero-feature-card video,
.project-card img,
.project-card video,
.video-wrapper img,
.video-wrapper video,
.review-avatar img,
.nav-logo-image,
.mobile-nav-logo-image,
.mobile-menu-logo-image,
.hero-text-logo,
.footer-logo-image,
.portfolio-logo-image {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

.showreel-video,
.project-card video,
.video-wrapper video,
.client-logo,
.client-mark-img,
.thumbnail-item img,
.thumbnail-card img,
.thumbnail-full-item img,
.hero-feature-card img,
.project-card img,
.review-avatar img,
.nav-logo-image,
.mobile-nav-logo-image,
.mobile-menu-logo-image,
.footer-logo-image,
.portfolio-logo-image {
  pointer-events: none !important;
}

/* ==========================================================================
   WebKit / iOS In-App Browser (Twitter/X) Video Inline Fixes
   ========================================================================== */

/* Completely hide WebKit native media controls and overlay play buttons
   so they can never show or conflict with custom player controls */
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ensure video elements inside cards and players are strictly bounded
   preventing visual zooming, resizing, or overflow when returning from playback */
.video-wrapper video,
.showreel-wrapper video,
.vlb__panel video,
.project-card video {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
}

/* ==========================================================================
   SEO Content Sections — Services & About
   Adds crawlable, keyword-rich HTML copy that reuses the existing design
   tokens so the look stays consistent with the rest of the page.
   ========================================================================== */
.services-section,
.about-section {
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(255, 13, 37, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 13, 37, 0.1);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-card-text {
  color: var(--grey);
  font-size: 0.95rem;
}

.about-copy {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--grey);
  font-size: 1rem;
}

.about-copy p:last-of-type {
  color: var(--white);
}

.about-cta {
  align-self: center;
  margin-top: 8px;
}

/* ==========================================================================
   CYBER SAMURAI / CRIMSON CYBERPUNK THEME ADDITIONS
   ========================================================================== */

/* Headings: Bold striking high-contrast serif */
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  padding: 8px 16px 12px;
}

.hero-heading-serif {
  font-family: var(--font-serif);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
}

.cyber-glow-text,
.hero-heading-accent {
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--accent) !important;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(255, 13, 37, 0.85),
    0 0 45px rgba(255, 13, 37, 0.55),
    0 0 80px rgba(255, 13, 37, 0.25) !important;
  position: relative;
  display: inline-block;
}

.portfolio-main-heading {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-heading {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Cyber Samurai Hero Description */
.hero-cyber-desc {
  max-width: 640px;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  color: var(--grey-dim);
  line-height: 1.75;
  margin: 4px auto 16px;
  text-align: center;
  letter-spacing: -0.005em;
}

/* Cyber HUD Status Badge */
.cyber-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 13, 37, 0.32);
  box-shadow: 0 0 20px rgba(255, 13, 37, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 6px;
  user-select: none;
}

.hud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF0D25;
  box-shadow: 0 0 12px #FF0D25;
  animation: hudPulse 2s infinite ease-in-out;
}

@keyframes hudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hud-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.hud-kanji {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hero Action Row & Circular Glass Social Buttons */
.hero-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cyber-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyber-social-btn,
.footer-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.cyber-social-btn:hover,
.footer-socials a:hover {
  background: rgba(255, 13, 37, 0.22);
  border-color: rgba(255, 13, 37, 0.75);
  box-shadow: 0 0 24px rgba(255, 13, 37, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px) scale(1.06);
  color: #FFFFFF;
}

/* Showreel Card HUD Overlays */
.showreel-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
}

.hud-pill-tag {
  position: absolute;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(8, 8, 10, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hud-pill-tag--top {
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-pill-tag--bottom {
  bottom: 20px;
  left: 20px;
  z-index: 6;
}

.hud-kanji-vert {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 16px rgba(255, 13, 37, 0.75), 0 0 32px rgba(255, 13, 37, 0.45);
  user-select: none;
  z-index: 4;
}

.hud-reticle-circle {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.hud-crosshair {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 13, 37, 0.55);
  pointer-events: none;
}

.hud-crosshair--tl {
  top: 8px;
  left: 8px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}
.hud-crosshair--tr {
  top: 8px;
  right: 8px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}
.hud-crosshair--bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
}
.hud-crosshair--br {
  bottom: 8px;
  right: 8px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

/* Wordmark logo & home background crimson filter */
.hero-text-logo {
  filter: hue-rotate(330deg) saturate(1.4) drop-shadow(0 14px 44px rgba(0, 0, 0, 0.8)) !important;
}

.hero-bg-image {
  filter: hue-rotate(330deg) saturate(1.3) !important;
  opacity: 0.12 !important;
}

/* Glassmorphic Cards Styling */
.achievement-card,
.portfolio-card,
.review-card,
.faq-card,
.contact-shell {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.achievement-card:hover,
.portfolio-card:hover,
.review-card:hover {
  border-color: rgba(255, 13, 37, 0.45) !important;
  box-shadow: 0 0 30px rgba(255, 13, 37, 0.22), 0 20px 48px rgba(0, 0, 0, 0.55) !important;
}

.achievement-number {
  font-family: var(--font-serif) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  text-shadow: 0 0 20px rgba(255, 13, 37, 0.5) !important;
}

.section-eyebrow {
  font-family: var(--font-mono) !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: var(--accent-strong) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

/* XPYRO STUDIOS Hero Brand Wordmark */
.xpyro-brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin: 0 auto;
  line-height: 0.95;
  text-decoration: none;
}

.xpyro-brand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  filter: drop-shadow(0 0 25px rgba(255, 13, 37, 0.45)) drop-shadow(0 14px 40px rgba(0, 0, 0, 0.9));
}

.xpyro-brand-letters {
  background: linear-gradient(180deg, #FFFFFF 0%, #E5E7EB 55%, rgba(255, 13, 37, 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  vertical-align: middle;
}

.xpyro-lens-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 0.96em;
  height: 0.96em;
  margin-left: 0.02em;
  vertical-align: middle;
  transform: translateY(0.04em);
  -webkit-text-fill-color: initial;
}

.xpyro-lens-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(255, 13, 37, 0.6));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.xpyro-brand-wordmark:hover .xpyro-lens-svg {
  transform: scale(1.08) rotate(-6deg);
  filter: drop-shadow(0 0 24px rgba(255, 13, 37, 0.85));
}

.xpyro-brand-badge {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-shadow: 0 0 16px rgba(255, 13, 37, 0.85), 0 0 30px rgba(255, 13, 37, 0.45);
  margin-top: 10px;
}
