/* ==============================================
   0. CSS CUSTOM PROPERTY FOR BORDER BEAM
   ============================================== */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ==============================================
   1. VARIABLES
   ============================================== */

:root {
  --bg-color: #FAFAFA;
  --text-main: #111111;
  --text-muted: #666666;
  --text-light: #A3A3A3;
  --accent-cyan: #00C9E0;
  --accent-gradient: linear-gradient(135deg, #00C9E0 0%, #2B58FF 100%);
  --spacing-section: 150px;
  --easing-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==============================================
   2. TYPOGRAPHY
   ============================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin: 0;
}

.eyebrow {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.hero-title-wrapper {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5.2vw, 5.8rem);
  line-height: 1.1;
  margin: 0 0 50px;
  color: var(--text-main);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}

.hero-static-text {
  display: block;
}

.dynamic-word-wrap {
  display: inline-block;
  color: var(--accent-cyan);
  font-style: italic;
  position: relative;
  height: 1.1em;
  overflow: visible;
  vertical-align: bottom;
  padding-left: 0.15em;
  width: min(900px, 60vw);
}

.dyn-word {
  position: absolute;
  left: 0.15em;
  bottom: 0;
  opacity: 0;
  transform: translateY(100%);
  white-space: nowrap;
}

.grid-title-below {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.1;
  color: var(--text-main);
  text-align: left;
  margin: 0 0 6px 0;
}

.grid-category-below {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-light);
  margin-top: 0;
}

.case-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-main);
  margin-bottom: 15px;
}

.case-tags {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subsection-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

.subsection-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ==============================================
   3. LAYOUT
   ============================================== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Satoshi', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

* {
  box-sizing: border-box;
}

.styleeks-wrap {
  overflow: clip;
  background-color: var(--bg-color);
}

.container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5vw;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.reveal-3d {
  opacity: 0;
  transform: perspective(1200px) rotateX(15deg) translateY(100px) scale(0.95);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Protection class to overlay transparent div over backgrounds */
.image-protect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* --- NAVBAR --- */

.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(0, 201, 224, 0.08);
  /* Base transform — always centred via translateX; Y=0 in bar state */
  transform: translateX(-50%) translateY(0px);
  will-change: transform, width, border-radius;
  /* Only GPU-composited + cheap properties in transition — no top/left changes */
  transition:
    transform 0.35s var(--easing-fluid),
    width 0.35s var(--easing-fluid),
    padding 0.35s var(--easing-fluid),
    border-radius 0.35s var(--easing-fluid),
    box-shadow 0.35s var(--easing-fluid);
}

/* Floating pill state — activates after 80px scroll */
.navbar.floating {
  /* translateY(14px) instead of top: 14px — keeps it on the compositor, no layout reflow */
  transform: translateX(-50%) translateY(14px);
  width: min(860px, 90vw);
  padding: 8px 12px 8px 20px;
  border-radius: 50px;
  border-bottom-color: transparent;
  border: 1px solid rgba(0, 201, 224, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 201, 224, 0.08);
}

.navbar.floating .nav-brand img {
  height: 38px;
}

.navbar.floating .nav-links {
  gap: 22px;
}

.navbar.floating .nav-links a.nav-link-item {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.navbar.floating .magnetic-btn {
  padding: 10px 22px;
  font-size: 0.82rem;
  animation: none;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a.nav-link-item {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.nav-links a.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width 0.4s var(--easing-fluid);
}

.nav-links a.nav-link-item:hover::after {
  width: 100%;
}

/* Active section indicator — scroll-spy driven */
.nav-links a.nav-link-item.active {
  color: var(--text-main);
  font-weight: 700;
}

.nav-links a.nav-link-item.active::after {
  width: 100%;
  background: var(--accent-cyan);
}

@keyframes nav-cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0px rgba(0, 201, 224, 0), 0 0 0 0px rgba(43, 88, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(0, 201, 224, 0.20), 0 0 0 11px rgba(43, 88, 255, 0.09);
  }
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff !important;
  background: var(--text-main);
  border-radius: 50px;
  text-decoration: none;
  border: none;
  transition: box-shadow 0.4s var(--easing-fluid);
  white-space: nowrap;
  animation: nav-cta-pulse 3s ease-in-out infinite;
}

.magnetic-btn:hover {
  background: var(--accent-gradient);
  animation: none;
}

/* Button-in-Button — nested inner pip on hero + pre-footer CTAs */
.hero-actions .magnetic-btn,
.pfc-btn {
  padding: 7px 7px 7px 28px;
  gap: 14px;
  justify-content: space-between;
}

.hero-actions .magnetic-btn::after,
.pfc-btn::after {
  content: '→';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.45s var(--easing-spring), background 0.3s var(--easing-fluid);
}

.hero-actions .magnetic-btn:hover::after,
.pfc-btn:hover::after {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.24);
}

/* pfc-btn is light on dark — pip matches */
.pfc-btn {
  padding: 10px 10px 10px 32px;
  min-height: 48px;
  color: var(--text-main);
}

.pfc-btn::after {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-main);
}

.pfc-btn:hover::after {
  background: rgba(0, 0, 0, 0.12);
}

/* Pill navbar button — no pip, stays compact */
.navbar .magnetic-btn {
  padding: 18px 40px;
  justify-content: center;
  gap: 0;
}

.navbar .magnetic-btn::after {
  display: none;
}

.navbar.floating .magnetic-btn {
  padding: 10px 22px;
}

/* --- HERO SECTION --- */

.hero-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-top: 100px;
  overflow: visible;
  background-color: transparent;
  /* Full-bleed: break out of .container constraints */
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  margin-left: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(50px);
  opacity: 0.12;
  z-index: 0;
  animation: orbFloat 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
  background: linear-gradient(135deg, #2B58FF 0%, #00C9E0 100%);
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 60%;
  animation-delay: -10s;
  background: #00C9E0;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* ==============================================
   AMBIENT GLOW SYSTEM — Section transition glows
   ============================================== */

/* Base class: all section glows share these */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLL BEAM — Apple-style canvas frame sequence ───────────────────────
   Wrapper spans hero top → showreel bottom. overflow:hidden clips any
   edge artifacts from the video frames. Canvas is slightly oversized so
   the cropped edges sit outside the visible boundary.                       */
.scroll-beam-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;        /* behind hero content (5) and showreel */
  overflow: hidden;
}

.scroll-beam-canvas {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
  opacity: 0;
  /* Single mask — no mask-composite needed (much faster GPU path) */
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Remove any gap between hero and demo-reel */
#demo-reel {
  margin-top: 0;
  border-top: none;
}

/* Demo-reel section header must sit above the beam canvas */
#demo-reel .section-header {
  position: relative;
  z-index: 5;
}

/* Showreel hidden initially on desktop — revealed by JS when beam arrives */
@media (min-width: 769px) {
  .showreel-wrapper {
    position: relative;
    z-index: 2;           /* above beam canvas (1) */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .showreel-wrapper.beam-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SHOWREEL ORBIT BEAM — Conic-gradient border light ─────────────────────
   Activated by JS when scroll beam reaches the showreel frame.
   Rotates around the border like the Huly.io effect.                        */
/* Ambient glow pulse — matches the beam's cyan energy */
@keyframes orbitGlow {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(0, 201, 224, 0.30),
      0 0 80px rgba(0, 201, 224, 0.15),
      0 0 140px rgba(0, 201, 224, 0.06),
      inset 0 0 25px rgba(0, 201, 224, 0.06);
  }
  50% {
    box-shadow:
      0 0 50px rgba(0, 201, 224, 0.50),
      0 0 120px rgba(0, 201, 224, 0.25),
      0 0 200px rgba(0, 201, 224, 0.10),
      inset 0 0 40px rgba(0, 201, 224, 0.10);
  }
}

/* Entrance — beam energy materializes from blur */
@keyframes orbitFadeIn {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0px); }
}

.showreel-orbit-beam {
  position: absolute;
  inset: -5px;
  border-radius: 15px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

/* Core beam — bright comet with long cyan tail */
.showreel-orbit-beam::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2.5px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 48%,
    rgba(0, 201, 224, 0.03) 55%,
    rgba(0, 201, 224, 0.10) 63%,
    rgba(0, 201, 224, 0.30) 72%,
    rgba(0, 210, 230, 0.55) 80%,
    rgba(140, 240, 255, 0.80) 86%,
    rgba(220, 250, 255, 0.95) 90%,
    #fff 93%,
    rgba(220, 250, 255, 0.95) 95%,
    rgba(0, 210, 230, 0.50) 97%,
    rgba(0, 201, 224, 0.15) 99%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderBeamRotate 3s linear infinite;
}

/* Wide diffuse glow halo — like the beam's ambient light spilling */
.showreel-orbit-beam::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  padding: 10px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 50%,
    rgba(0, 201, 224, 0.03) 60%,
    rgba(0, 201, 224, 0.12) 72%,
    rgba(0, 220, 240, 0.30) 82%,
    rgba(140, 240, 255, 0.45) 89%,
    rgba(220, 250, 255, 0.55) 93%,
    rgba(0, 220, 240, 0.30) 96%,
    rgba(0, 201, 224, 0.08) 99%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: blur(10px);
  animation: borderBeamRotate 3s linear infinite;
}

.showreel-orbit-beam.active {
  animation: orbitFadeIn 0.5s ease-out forwards, orbitGlow 3.5s ease-in-out 0.5s infinite;
}

/* ── Capabilities section ambient ─────────────
   Side accent from top-right — brand-blue depth
   behind the capability list.                   */
.glow-cap-ambient {
  width: 650px;
  height: 500px;
  top: 0;
  right: -40px;
  background: radial-gradient(ellipse, rgba(43, 88, 255, 0.18) 0%, rgba(0, 201, 224, 0.08) 50%, transparent 70%);
  filter: blur(58px);
  mix-blend-mode: multiply;
}

/* ── Portfolio section overhead light ─────────
   Studio spotlight from above — cyan wash over
   the top of the work grid.                     */
.glow-portfolio-top {
  width: 900px;
  height: 340px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 201, 224, 0.20) 0%, rgba(43, 88, 255, 0.10) 45%, transparent 70%);
  filter: blur(64px);
  mix-blend-mode: multiply;
}

/* ── Pre-footer CTA — dark bg beacon ──────────
   Centred radial bloom on #111 — brand colors
   read strongly as a cinematic spotlight.       */
.glow-pfc-center {
  width: 800px;
  height: 560px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 201, 224, 0.40) 0%, rgba(43, 88, 255, 0.22) 45%, transparent 70%);
  filter: blur(45px);
}

/* Content elevation — ensures text/cards always
   stack above z-index:0 glow orbs              */
.capabilities-section .section-header,
.capabilities-section .cap-list {
  position: relative;
  z-index: 1;
}

.portfolio-section .portfolio-header,
.portfolio-section .portfolio-grid {
  position: relative;
  z-index: 1;
}

.pre-footer-cta .pfc-headline,
.pre-footer-cta .pfc-sub,
.pre-footer-cta .pfc-btn {
  position: relative;
  z-index: 1;
}

/* Hero text — dark on white background */
.hero-section .hero-eyebrow {
  color: var(--text-muted);
}

.hero-section .hero-title-wrapper,
.hero-section .hero-static-text {
  color: var(--text-main);
}

.hero-section .secondary-link {
  color: var(--text-main);
}

.hero-section .secondary-link::after {
  background-color: var(--accent-cyan);
}

/* Wrapper that #demo-reel needs to be position:relative for the orbit beam */
#demo-reel {
  position: relative;
  padding-top: 20px !important;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  width: 100%;
  /* Restore padding that .container normally provides */
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
}

.hero-eyebrow {
  margin-bottom: 30px;
  color: var(--text-main);
}

.hero-logo-video-wrap {
  width: clamp(200px, 25vw, 360px);
  line-height: 0;
  background: var(--bg-color);
}

.hero-logo-video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-color);
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.secondary-link {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding: 10px 0 5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.secondary-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(17, 17, 17, 0.2);
  transform-origin: right;
  transition: transform 0.6s var(--easing-fluid);
}

.secondary-link:hover::after {
  transform-origin: left;
  transform: scaleX(1);
  background-color: var(--accent-cyan);
}

/* --- CAPABILITIES SECTION --- */

.capabilities-section {
  position: relative;
  padding: var(--spacing-section) 0;
}

.section-header {
  margin-bottom: 80px;
  display: flex;
  align-items: center;
}

.section-header .eyebrow {
  display: flex;
  align-items: center;
}

.section-header .eyebrow::after {
  content: '';
  display: inline-block;
  width: 80px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-left: 20px;
}

.cap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
  column-gap: 40px;
}

.cap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  color: var(--text-main);
  text-decoration: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--easing-spring), opacity 0.6s var(--easing-fluid);
  transform: translateY(0);
}

.cap-item-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.cap-name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cap-count {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 3px 9px;
  transition: opacity 0.4s var(--easing-fluid);
  white-space: nowrap;
}

.cap-item:hover .cap-count {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.cap-desc {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

.cap-item:hover .cap-desc {
  color: rgba(255, 255, 255, 0.55);
}

.arrow-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(0, 201, 224, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.6s var(--easing-fluid), border-color 0.6s var(--easing-fluid), transform 0.6s var(--easing-spring);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.arrow-circle span {
  font-size: 1.2rem;
  color: var(--text-main);
  transition: transform 0.6s var(--easing-spring);
}

/* Video preview layer — sits below the dark overlay */
.cap-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--easing-fluid);
  z-index: 0;
  pointer-events: none;
}

.cap-item:hover .cap-preview-video {
  opacity: 1;
}

.cap-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 12, 0.72);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--easing-fluid);
  z-index: 1;
}

.cap-item:hover {
  color: #ffffff;
  transform: translateY(-8px);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.15),
    0 0 36px rgba(0, 201, 224, 0.18),
    0 0 70px rgba(43, 88, 255, 0.10);
}

.cap-item:hover::before {
  transform: scaleY(1);
}

.cap-item:hover .arrow-circle {
  background: var(--accent-gradient);
  border-color: transparent;
}

.cap-item:hover .arrow-circle span {
  color: #fff;
  transform: translateX(3px) translateY(-3px);
}

/* ── BORDER BEAM — Rotating light flows around the frame on hover ──────────
   Uses conic-gradient + mask-composite to show only a thin glowing ring.
   @property --beam-angle enables smooth CSS-only rotation animation.        */
@keyframes borderBeamRotate {
  to { --beam-angle: 360deg; }
}

.cap-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 60%,
    rgba(0, 201, 224, 0.55) 72%,
    rgba(43, 88, 255, 0.85) 78%,
    rgba(160, 220, 255, 1) 83%,
    rgba(255, 255, 255, 1) 85%,
    rgba(160, 220, 255, 1) 87%,
    rgba(43, 88, 255, 0.85) 92%,
    rgba(0, 201, 224, 0.45) 97%,
    transparent 100%
  );
  /* Mask-composite: punch out inner area → only the 2px border ring shows */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s var(--easing-fluid);
  pointer-events: none;
}

.cap-item:hover::after {
  opacity: 1;
  animation: borderBeamRotate 2.8s linear infinite;
}

/* --- CLIENT LOGO STRIP --- */

.logo-strip {
  padding: 64px 0;
  border-top: 1px solid rgba(0, 201, 224, 0.07);
  border-bottom: 1px solid rgba(0, 201, 224, 0.07);
}

.logo-strip-label {
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.35);
  font-weight: 500;
  margin-bottom: 44px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 32px; /* tighter for 6 logos */
  opacity: 0.32;
  transition: opacity 0.35s var(--easing-fluid);
  cursor: default;
}

.logo-item:hover {
  opacity: 0.72;
}

.logo-wordmark {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-main);
  white-space: nowrap;
}

.logo-industry {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
  white-space: nowrap;
}

.logo-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.10);
  flex-shrink: 0;
}

/* --- ABOUT SECTION --- */

.about-section {
  padding: var(--spacing-section) 0;
  background: #fff;
  max-width: none;
}

.about-section > .about-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5vw;
}

.about-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 80px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  background: #EFEFEF;
  position: relative;
  overflow: hidden;
}

.image-reveal-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.image-reveal-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: center;
  will-change: transform;
}

.about-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(17, 17, 17, 0.8);
  font-weight: 400;
  margin-bottom: 24px;
}

.about-content p strong {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 24px;
}

.about-content li {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.8);
}

.about-content li strong {
  color: var(--text-main);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

/* About — restructured components */

.about-pull-quote {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.55;
  margin: 28px 0 36px;
  padding-left: 20px;
  border-left: 3px solid var(--accent-cyan);
  letter-spacing: -0.01em;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 28px 0;
  margin: 0 0 36px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.about-stat:first-child {
  padding-left: 0;
}

.about-stat:last-child {
  border-right: none;
}

.about-stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
  line-height: 1.45;
}

.about-narrative {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.68);
  font-weight: 400;
}

/* --- SHOWREEL PLAY BUTTON --- */

.showreel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 4;
  pointer-events: none; /* clicks pass through to .yt-lightbox-trigger wrapper */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yt-lightbox-trigger:hover .showreel-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-circle {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.4s var(--easing-fluid), border-color 0.4s var(--easing-fluid);
}

/* Outer halo ring — breathes outward on hover */
.play-circle::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.5;
  transition: inset 0.45s var(--easing-spring), border-color 0.4s var(--easing-fluid), opacity 0.4s var(--easing-fluid);
  pointer-events: none;
}

/* Inner accent ring — tightens and brightens on hover */
.play-circle::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.4;
  transition: inset 0.45s var(--easing-spring), border-color 0.4s var(--easing-fluid), opacity 0.4s var(--easing-fluid);
  pointer-events: none;
}

.yt-lightbox-trigger:hover .play-circle {
  border-color: rgba(0, 201, 224, 0.55);
  box-shadow: 0 0 32px rgba(0, 201, 224, 0.38), 0 0 72px rgba(43, 88, 255, 0.18);
}

.yt-lightbox-trigger:hover .play-circle::before {
  inset: -18px;
  border-color: rgba(0, 201, 224, 0.25);
  opacity: 1;
}

.yt-lightbox-trigger:hover .play-circle::after {
  inset: 5px;
  border-color: rgba(0, 201, 224, 0.45);
  opacity: 0.9;
}

.play-circle svg {
  margin-left: 4px; /* optical centre for play triangle */
  position: relative;
  z-index: 1;
}

.play-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
}

/* --- CONTACT SECTION --- */

.contact-section {
  padding: var(--spacing-section) 0;
  background: #f5f5f5;
  max-width: none;
}

.contact-section > .contact-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5vw;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.contact-header h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}

.form-intro {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  cursor: pointer;
  outline: none;
  transition: border-color 0.4s var(--easing-fluid);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  border-radius: 0;
}

.form-group select:focus {
  border-bottom: 1px solid var(--accent-cyan);
  color: var(--text-main);
}

.form-group select option {
  color: var(--text-main);
  background: #fff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: text;
  outline: none;
  transition: border-color 0.4s var(--easing-fluid);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom: 1px solid var(--accent-cyan);
}

.submit-btn {
  align-self: flex-start;
  margin-top: 20px;
}

/* --- LIGHTBOX (VIDEO) --- */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--easing-fluid), visibility 0.4s var(--easing-fluid);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

#yt-player-container,
.lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Transparent shield sits above the iframe so the parent document keeps
   mouse-tracking (custom cursor stays visible). pointer-events: none means
   clicks pass through to the iframe for normal video interaction.
   JS removes pointer-events briefly on mousedown so controls remain usable. */
.iframe-cursor-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 12px;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 10px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s var(--easing-fluid), opacity 0.25s var(--easing-fluid);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* --- ASSET LIGHTBOX (IMAGES & PDFS) --- */

.asset-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--easing-fluid), visibility 0.4s var(--easing-fluid);
}

.asset-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.asset-lightbox-content {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.asset-lightbox-overlay.active .asset-lightbox-content {
  transform: scale(1);
}

.asset-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  color: #fff;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 12px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.25s var(--easing-fluid), transform 0.25s var(--easing-fluid);
  z-index: 10001;
}

.asset-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* --- DUAL-CAROUSEL (lightbox + preview grid) --- */
.dual-carousel-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.dual-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.dual-carousel-slide.dual-carousel-active {
  opacity: 1;
}

.dual-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.dual-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s ease;
}

.dual-carousel-dot.dual-carousel-dot-active {
  background: #fff;
}

/* Preview-card carousel (inside .grid-item-card) */
.preview-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.preview-carousel img.preview-carousel-active {
  opacity: 1;
}

/* Multi-Lightbox Scrolling Container */
.multi-lightbox-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.multi-lightbox-scroll::-webkit-scrollbar {
  width: 8px;
}

.multi-lightbox-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.multi-lightbox-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.multi-lightbox-scroll img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* --- CASE STUDIES SECTION --- */

.case-studies-section {
  padding: var(--spacing-section) 0;
  background: var(--bg-color);
}

.case-study-card {
  display: block;
  width: 100%;
  margin-bottom: 48px;
  text-decoration: none;
  cursor: none;
  position: relative;
}

.case-study-card:last-child {
  margin-bottom: 0;
}

.case-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 32/9;
  overflow: hidden;
  border-radius: 16px;
  background: #EFEFEF;
  margin-bottom: 24px;
  transition: transform 0.7s var(--easing-fluid), box-shadow 0.7s var(--easing-fluid);
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--easing-fluid);
  will-change: transform;
}

.case-study-card:hover .case-image-wrap {
  transform: translateY(-6px);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.03);
}

.case-study-card:hover .case-image-wrap img {
  transform: scale(1.05);
}

/* Active (expanded) case study — brand glow signals which case is open */
.case-study-card.active-case .case-image-wrap {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0, 201, 224, 0.22),
    0 0 40px rgba(0, 201, 224, 0.14),
    0 0 80px rgba(43, 88, 255, 0.09);
  transition: box-shadow 0.6s var(--easing-fluid);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.case-btn {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  background: transparent;
  border: 1px solid rgba(0, 201, 224, 0.10);
  padding: 12px 30px;
  border-radius: 50px;
  transition: transform 0.4s var(--easing-spring), box-shadow 0.4s var(--easing-fluid);
}

.case-study-card:hover .case-btn {
  background: var(--text-main);
  color: #fff;
}

/* Hidden Expansion Container */
.case-study-content {
  display: block;
  overflow: hidden;
  height: 0;
  opacity: 0;
  width: 100%;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0);
}

.case-content-inner {
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

/* 2-Column Text & Stats Overview */
.cc-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.cc-text h4 {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cc-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--text-main);
}

.cc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cc-stat-block span {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

.cc-stat-block p {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Close Button internal */
.cc-close-wrap {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  margin-bottom: 20px;
}

.cc-close-btn {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-main);
  padding: 5px 0;
  cursor: none;
  transition: opacity 0.4s var(--easing-fluid);
}

.cc-close-btn:hover {
  opacity: 0.5;
}

/* Sticky floating close button — visible only when case study is expanded */
.cc-sticky-close {
  position: fixed;
  top: 90px;
  right: 32px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 8px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 201, 224, 0.08);
  border-radius: 50px;
  padding: 10px 20px 10px 16px;
  cursor: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--easing-fluid), transform 0.35s var(--easing-spring);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cc-sticky-close.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cc-sticky-close:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.cc-sticky-close svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-main);
  stroke-width: 2;
  flex-shrink: 0;
}

/* Case Study Hero Card */
.cs-hero-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.6s var(--easing-fluid), box-shadow 0.6s var(--easing-fluid);
}

.cs-hero-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 40px 90px rgba(0, 0, 0, 0.07);
}

.cs-subsection .cc-full-bleed {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.6s var(--easing-fluid), box-shadow 0.6s var(--easing-fluid);
  will-change: transform;
}

.cs-subsection .cc-full-bleed:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.07);
}

/* Card Flipper (Visiting Cards) */
.cs-card-flipper {
  width: 100%;
  aspect-ratio: 21/9;
  perspective: 1000px;
  position: relative;
  cursor: none;
}

.flipper-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.cs-card-flipper:hover .flipper-inner {
  transform: rotateY(180deg);
}

.flipper-front,
.flipper-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.flipper-back {
  transform: rotateY(180deg);
}

.flipper-hint {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Split Grid (Stationery) */
.cs-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cs-split-item {
  position: relative;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--easing-spring);
}

.cs-split-item:hover {
  transform: translateY(-10px);
}

.cs-split-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.cs-split-item h5 {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 30px;
  margin: 0;
  color: #111;
}


/* Storyboard Carousel */
.sb-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
  cursor: none;
}

.sb-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.sb-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.sb-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.sb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.sb-carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.sb-carousel-btn.prev {
  left: 12px;
}

.sb-carousel-btn.next {
  right: 12px;
}

.sb-carousel-btn svg {
  width: 16px;
  height: 16px;
  stroke: #111;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 6px;
}

.sb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.3s, transform 0.3s;
  cursor: none;
}

.sb-dot.active {
  background: #111;
  transform: scale(1.4);
}

.sb-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #555;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 10;
}

.sb-open-grid-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: none;
  transition: color 0.2s;
}

.sb-open-grid-btn:hover {
  color: var(--text-main);
}

/* Storyboard Grid Lightbox */
.sb-grid-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.97);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--easing-fluid);
  overflow-y: auto;
}

.sb-grid-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.sb-grid-inner {
  width: 100%;
  max-width: 1400px;
  padding: 80px 40px 60px;
  box-sizing: border-box;
}

.sb-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.sb-grid-header h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sb-grid-close {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: none;
  transition: all 0.3s;
}

.sb-grid-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sb-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sb-image-grid-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.sb-image-grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--easing-spring);
}

.sb-image-grid-item:hover img {
  transform: scale(1.03);
}

.sb-image-grid-item .sb-seq {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 7px;
  border-radius: 10px;
}

/* --- PRE-FOOTER CTA BAND --- */

.pre-footer-cta {
  position: relative;
  overflow: hidden;
  background: var(--text-main);
  color: #fff;
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.pre-footer-cta .pfc-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 900px;
  margin: 0;
}

.pre-footer-cta .pfc-headline em {
  font-style: italic;
  opacity: 0.72;
}

.pre-footer-cta .pfc-sub {
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin: 0;
}

.pre-footer-cta .pfc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main) !important;
  background: #fff;
  border-radius: 50px;
  padding: 18px 44px;
  text-decoration: none;
  transition: transform 0.35s var(--easing-spring);
  cursor: none;
  margin-top: 8px;
}

.pre-footer-cta .pfc-btn:hover {
  background: var(--accent-gradient);
  color: #fff !important;
  transform: translateY(-3px);
}

/* --- FOOTER --- */

.footer-section {
  padding: 100px 4vw 60px;
  background: #ffffff;
  color: var(--text-main);
  border-top: 1px solid rgba(0, 201, 224, 0.07);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 100px;
}

.footer-brand h3 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-brand h3 span {
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  display: inline-block;
  border-radius: 50%;
  margin-right: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 250px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 80px;
}

.footer-col h4 {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  cursor: none;
  font-weight: 400;
}

.footer-col p {
  cursor: auto;
  color: var(--text-muted);
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-cyan);
  transition: opacity 0.4s var(--easing-fluid);
  opacity: 0;
}

.footer-col a:hover::after {
  opacity: 1;
}

/* SVG Social Icons */
.social-icons-wrap {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 201, 224, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.4s var(--easing-spring), box-shadow 0.4s var(--easing-fluid);
  cursor: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
  transform: translateY(-4px);
}

.footer-col a.social-icon::after {
  display: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 201, 224, 0.07);
  padding-top: 30px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  cursor: none;
}

.footer-legal a:hover {
  color: var(--text-main);
}

/* --- CINEMATIC FILM GRAIN --- */

.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  animation: film-grain-anim 0.2s steps(4) infinite;
}

@keyframes film-grain-anim {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -5%);
  }

  20% {
    transform: translate(-10%, 5%);
  }

  30% {
    transform: translate(5%, -10%);
  }

  40% {
    transform: translate(-5%, 15%);
  }

  50% {
    transform: translate(-10%, 5%);
  }

  60% {
    transform: translate(15%, 0);
  }

  70% {
    transform: translate(0, 10%);
  }

  80% {
    transform: translate(-15%, 0);
  }

  90% {
    transform: translate(10%, 5%);
  }
}

/* ==============================================
   4. GRID (Portfolio & Case Study Masonry)
   ============================================== */

/* --- Portfolio Grid --- */

.portfolio-section {
  position: relative;
  padding: var(--spacing-section) 0;
  max-width: 100%;
  padding-left: 4vw;
  padding-right: 4vw;
  overflow: clip;
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 32px;
}

.portfolio-header h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 0;
}

.filter-bar {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 48px;
  /* Sticky within portfolio section */
  position: sticky;
  top: 80px;
  z-index: 10;
  transition: background 0.35s var(--easing-fluid),
              box-shadow 0.35s var(--easing-fluid),
              backdrop-filter 0.35s var(--easing-fluid);
}

/* Glassmorphism treatment when stuck */
.filter-bar.stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 201, 224, 0.08);
}

.filter-btn {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  cursor: none;
  transition: transform 0.4s var(--easing-spring), box-shadow 0.4s var(--easing-fluid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn .count {
  font-size: 0.7rem;
  color: var(--text-light);
  transform: translateY(-2px);
}

.filter-btn:hover {
  color: #000;
}

.filter-btn.active {
  background: var(--text-main);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 201, 224, 0.35),
    0 0 14px rgba(0, 201, 224, 0.18),
    0 0 28px rgba(43, 88, 255, 0.10);
}

.filter-btn.active .count {
  color: rgba(255, 255, 255, 0.7);
}

/* ==============================================
   LAYER 3 — MOUSE-FOLLOW SPOTLIGHT
   Radial gradient tracks cursor over the grid.
   Driven by --mx / --my set from JS on
   mousemove. pointer-events: none keeps all
   card interactions fully intact.
   ============================================== */

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
  isolation: isolate;
  position: relative;
}

.masonry-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.6s var(--easing-fluid);
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 201, 224, 0.08) 0%,
    rgba(43, 88, 255, 0.04) 50%,
    transparent 70%
  );
}

.masonry-grid.spotlight-on::before {
  opacity: 1;
}

/* Luminous connector beams between related cards */
.grid-connectors-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* LANDSCAPE cards - default, 3 per row (span 2 of 6) */
.grid-item {
  position: relative;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  grid-column: span 2;
  border-radius: 10px;
}

/* PORTRAIT cards - narrower (span 1 of 6) */
.grid-item.portrait {
  grid-column: span 1;
}

/* FULL-ROW card - wide feature band (span 4 of 6) */
.grid-item.full-row {
  grid-column: span 4;
}

/* EDITORIAL UTILITY CLASSES — break the grid for visual rhythm */
/* Push card down to create negative space above */
.grid-item.push-down-sm { margin-top: 30px; }
.grid-item.push-down-md { margin-top: 60px; }
.grid-item.push-down-lg { margin-top: 100px; }

/* Offset card horizontally within its grid cell */
.grid-item.offset-left { transform: translateX(-12px); }
.grid-item.offset-right { transform: translateX(12px); }

/* Narrow card with breathing room (doesn't fill full column width) */
.grid-item.breathe {
  padding-left: 8%;
  padding-right: 8%;
}

/* Span 2 of 6 — standard supporting card width */
.grid-item.wide {
  grid-column: span 2;
}

/* FLAGSHIP — half-row hero cards, 2 per row */
.grid-item.flagship {
  grid-column: span 3;
}

.grid-item.flagship .grid-item-card {
  aspect-ratio: 16 / 9;
}

/* Flagship internal overlay — badge always visible, title slides in on hover */
.flagship-overlay {
  grid-area: 1 / 1;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  pointer-events: none;
}

.fo-badge {
  align-self: flex-start;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 12px;
}

.fo-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--easing-fluid), transform 0.45s var(--easing-fluid);
}

.grid-item.flagship:hover .fo-content {
  opacity: 1;
  transform: translateY(0);
}

.fo-label {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 8px;
}

.fo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 14px;
}

.fo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}

/* Start at a specific column to leave intentional gaps */
.grid-item.col-start-2 { grid-column-start: 2; }
.grid-item.col-start-3 { grid-column-start: 3; }

/* Reduce card scale slightly for visual hierarchy contrast */
.grid-item.recede {
  transform: scale(0.94);
  transform-origin: center center;
}

/* Cards settle fully visible once revealed */
.grid-item.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Inner card - aspect-ratio creates responsive height container */
.grid-item-card {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Inner light rim — creates double-bezel depth illusion */
.grid-item-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 10;
  pointer-events: none;
}

.grid-item.portrait .grid-item-card {
  aspect-ratio: 9 / 16;
}

.grid-item.full-row .grid-item-card {
  aspect-ratio: 32 / 9;
}

.grid-item.tall .grid-item-card {
  aspect-ratio: 3 / 4;
}

/* Taller landscape for branding/stationery mockups — restore full half-row width */
.grid-item.landscape-lg {
  grid-column: span 3;
}

.grid-item.landscape-lg .grid-item-card {
  aspect-ratio: 4 / 3;
}

/* Extra-wide feature card — ~83% of row (span 5 of 6) */
.grid-item.extra-wide {
  grid-column: span 5;
}

/* Bento anchor — dominant editorial card, 4-col with square aspect */
.grid-item.bento-anchor {
  grid-column: span 4;
}

.grid-item.bento-anchor .grid-item-card {
  aspect-ratio: 4 / 3;
}

/* Bento compact — shallow wide card for visual contrast */
.grid-item.bento-compact .grid-item-card {
  aspect-ratio: 21 / 9;
}

/* Metadata text below each card */
.grid-meta-below {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 4px 10px 4px;
  box-sizing: border-box;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

/* Images/videos fill their card container via grid stacking */
.grid-item-video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--easing-fluid), filter 0.6s var(--easing-fluid);
  z-index: 1;
  pointer-events: none;
}

.view-case-btn {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.8);
  z-index: 3;
  margin-top: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--easing-fluid);
  transition-delay: 0.05s;
  pointer-events: none;
}

.grid-item:hover .grid-item-video {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* Override for cards that need contain fit (letterhead, brochure with white bg) */
.grid-item-card img.grid-item-video[style*="contain"] {
  object-fit: contain;
}

.grid-item:hover .grid-title {
  transform: translateY(0px);
  opacity: 1;
}

.grid-item:hover .view-case-btn {
  transform: translateY(0px);
}

/* DUAL-ACTION OVERLAY (Lexipcare-style cards) */
.dual-action-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.6s var(--easing-fluid);
  z-index: 5;
}

.grid-item--dual-action:hover .dual-action-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.grid-item--dual-action:hover .view-case-btn {
  opacity: 0;
}

/* ==============================================
   LAYER 2 — CARD HOVER GLOW
   Brand cyan → blue box-shadow bloom on hover.
   Flagship cards get a stronger, wider glow to
   reinforce their editorial hierarchy.
   ============================================== */

.grid-item-card {
  transition: box-shadow 0.45s var(--easing-fluid);
}

/* Supporting cards — outer brand glow + inner rim brightens */
.grid-item:hover .grid-item-card {
  box-shadow:
    0 0 0 1px rgba(0, 201, 224, 0.14),
    0 0 22px  rgba(0, 201, 224, 0.20),
    0 0 52px  rgba(43, 88, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.07),
    inset 0 0 0 1px rgba(0, 201, 224, 0.10);
}

/* Flagship cards — wider glow + inner rim */
.grid-item.flagship:hover .grid-item-card {
  box-shadow:
    0 0 0 1px rgba(0, 201, 224, 0.22),
    0 0 32px  rgba(0, 201, 224, 0.28),
    0 0 72px  rgba(43, 88, 255, 0.18),
    0 18px 45px rgba(0, 0, 0, 0.10),
    inset 0 0 0 1px rgba(0, 201, 224, 0.15);
}

/* ── FLAGSHIP BORDER BEAM — Rotating light on hover ──────────────────────
   Premium conic-gradient beam that flows around flagship card borders.
   Uses ::before on .grid-item-card (::after is the light rim).             */
.grid-item.flagship .grid-item-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 58%,
    rgba(0, 201, 224, 0.45) 70%,
    rgba(43, 88, 255, 0.7) 77%,
    rgba(160, 220, 255, 0.9) 82%,
    rgba(255, 255, 255, 1) 85%,
    rgba(160, 220, 255, 0.9) 88%,
    rgba(43, 88, 255, 0.7) 93%,
    rgba(0, 201, 224, 0.35) 98%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.5s var(--easing-fluid);
  pointer-events: none;
}

.grid-item.flagship:hover .grid-item-card::before {
  opacity: 1;
  animation: borderBeamRotate 3.5s linear infinite;
}

/* ── SUPPORTING CARD BORDER BEAM — Subtler version for non-flagship cards ── */
.grid-item:not(.flagship) .grid-item-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 65%,
    rgba(0, 201, 224, 0.3) 76%,
    rgba(43, 88, 255, 0.5) 82%,
    rgba(160, 220, 255, 0.7) 85%,
    rgba(43, 88, 255, 0.5) 88%,
    rgba(0, 201, 224, 0.25) 94%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.5s var(--easing-fluid);
  pointer-events: none;
}

.grid-item:not(.flagship):hover .grid-item-card::before {
  opacity: 1;
  animation: borderBeamRotate 4s linear infinite;
}

.dual-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: none;
  text-decoration: none;
  transition: border-color 0.3s var(--easing-fluid);
}

.dual-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Case Study Masonry Grids --- */

.cs-masonry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 80px;
  margin-bottom: 60px;
}

/* 3-col variant for Accuray-style layouts */
.cs-masonry-grid--3col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Grid Spans */
.cs-span-full {
  grid-column: 1 / -1;
}

.cs-span-half {
  grid-column: span 1;
}

.cs-span-third {
  grid-column: span 1;
}

.cs-subsection {
  width: 100%;
}

/* ==============================================
   5. CURSOR
   ============================================== */

a,
button,
.cap-item,
.grid-item {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  pointer-events: none;
  z-index: 100000; /* above all lightbox overlays (10000) and iframes */
  mix-blend-mode: difference;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: width, height, transform, background-color;
  font-family: 'Satoshi', sans-serif;
  font-size: 0px;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: width 0.3s var(--easing-fluid), height 0.3s var(--easing-fluid);
}

.custom-cursor.inverse {
  mix-blend-mode: normal;
  background-color: #fff;
}

.custom-cursor.hover-link {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 201, 224, 0.3);
  mix-blend-mode: normal;
  border: 1px solid var(--accent-cyan);
}

.custom-cursor.hover-video {
  width: 80px;
  height: 80px;
  background-color: #fff;
  mix-blend-mode: normal;
}

.custom-cursor.hover-video::after {
  content: '\25B6';
  font-size: 1.2rem;
  color: var(--text-main);
  transform: translateX(1px);
}

.custom-cursor.hover-drag {
  width: 80px;
  height: 80px;
  background-color: #fff;
  mix-blend-mode: normal;
}

.custom-cursor.hover-drag::after {
  content: 'View';
  font-size: 0.75rem;
}

.custom-cursor.hover-scroll {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 1px solid var(--text-main);
  mix-blend-mode: normal;
}

.custom-cursor.hover-scroll::after {
  content: '\2193';
  font-size: 1.2rem;
  color: var(--text-main);
}

.custom-cursor.hover-full-video {
  width: 90px;
  height: 90px;
  background-color: var(--accent-cyan);
  mix-blend-mode: normal;
  border: none;
}

.custom-cursor.hover-full-video::after {
  content: 'VIEW FULL VIDEO';
  font-size: 0.65rem;
  font-weight: 600;
  color: #111;
  text-align: center;
  line-height: 1.2;
}

/* ==============================================
   HAMBURGER + MOBILE DRAWER (base — hidden on desktop)
   ============================================== */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  z-index: 101;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.35s var(--easing-fluid), opacity 0.3s;
}

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

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

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

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 36px 60px;
  gap: 28px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--easing-fluid), transform 0.35s var(--easing-fluid), visibility 0.35s;
  pointer-events: none;
}

.nav-mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
  padding: 10px 16px;
  display: block;
  border-radius: 12px;
  position: relative;
  transform: translateX(0);
  transition: transform 0.35s var(--easing-fluid),
              color 0.25s ease,
              background-color 0.25s ease;
  /* Staggered entrance via CSS — each link appears sequentially */
  opacity: 0;
  transform: translateX(-20px);
}

.nav-mobile-drawer.open .nav-mobile-link {
  opacity: 1;
  transform: translateX(0);
}

.nav-mobile-drawer.open .nav-mobile-link:nth-child(1) { transition-delay: 0.06s; }
.nav-mobile-drawer.open .nav-mobile-link:nth-child(2) { transition-delay: 0.10s; }
.nav-mobile-drawer.open .nav-mobile-link:nth-child(3) { transition-delay: 0.14s; }
.nav-mobile-drawer.open .nav-mobile-link:nth-child(4) { transition-delay: 0.18s; }
.nav-mobile-drawer.open .nav-mobile-link:nth-child(5) { transition-delay: 0.22s; }

/* Active section indicator for mobile drawer */
.nav-mobile-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 201, 224, 0.05);
}

.nav-mobile-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 2px;
  background: var(--accent-cyan);
}

/* Touch feedback — slide right + highlight bg */
.nav-mobile-link:active {
  color: var(--accent-cyan);
  background: rgba(0, 201, 224, 0.06);
  transform: translateX(8px);
  transition-duration: 0.1s;
}

.nav-mobile-cta {
  margin-top: 20px;
  cursor: pointer;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--accent-gradient);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.35s var(--easing-fluid),
              opacity 0.35s ease,
              box-shadow 0.25s ease;
}

.nav-mobile-drawer.open .nav-mobile-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.nav-mobile-cta:active {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(0, 201, 224, 0.3);
  transition-duration: 0.1s;
}

/* ==============================================
   6. RESPONSIVE
   ============================================== */

/* --- TABLET (<=1024px) --- */
@media (max-width: 1024px) {

  .container {
    padding-inline: 40px;
  }

  /* Nav */
  .nav-links {
    gap: 32px;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
  }

  /* Portfolio grid -> 3 columns on tablet, same row height */
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 26vw;
    gap: 12px;
  }

  .grid-item {
    grid-column: span 1;
  }

  .grid-item.full-row {
    grid-column: span 3;
  }

  .grid-item.wide {
    grid-column: span 2;
  }

  .grid-item.extra-wide {
    grid-column: span 3;
  }

  /* Reset editorial offsets on tablet */
  .grid-item.push-down-lg { margin-top: 40px; }
  .grid-item.offset-left,
  .grid-item.offset-right { transform: none; }
  .grid-item.col-start-2,
  .grid-item.col-start-3 { grid-column-start: auto; }
  .grid-item.flagship { grid-column: span 2; }

  .portfolio-section {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  /* Hide connectors on tablet */
  .grid-connectors-svg { display: none; }

  /* Case study image */
  .case-image-wrap {
    aspect-ratio: 21/9;
  }

  /* Case study masonry grids */
  .cs-masonry-grid {
    gap: 24px;
    margin-top: 60px;
  }

  .cs-masonry-grid--3col {
    grid-template-columns: 1fr 1fr;
  }

  .cs-span-third {
    grid-column: span 1;
  }

  .cc-overview {
    gap: 40px;
  }

  .sb-dot {
    width: 5px;
    height: 5px;
  }

  /* Logo strip */
  .logo-item { padding: 0 28px; }
  .logo-strip { padding: 48px 0; }

  /* About & contact */
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cap-list {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 40px;
  }

  .dynamic-word-wrap {
    width: 100%;
  }
}

/* --- MOBILE (<=768px) --- */
@media (max-width: 768px) {
  :root {
    --spacing-section: 80px;
  }

  /* Restore normal cursor on touch devices */
  body, body * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }

  .container {
    padding-inline: 24px;
  }

  /* Nav - hide links, show hamburger; disable floating pill on mobile */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-drawer {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    transform: none !important;
    padding: 16px 24px;
    border: none;
    border-bottom: 1px solid rgba(0, 201, 224, 0.07);
    box-shadow: none;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 101;
  }

  .navbar.floating {
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    transform: none;
    padding: 16px 24px;
    border: none;
    border-bottom: 1px solid rgba(0, 201, 224, 0.07);
    box-shadow: none;
  }

  .navbar .nav-brand img,
  .navbar.floating .nav-brand img {
    height: 36px;
  }

  /* Disable scroll-reveal on mobile — !important overrides GSAP inline styles */
  .reveal-up,
  .reveal-3d,
  .grid-item {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .hero-title-wrapper {
    display: block;
  }

  .hero-dynamic-text {
    display: block;
    margin-left: 0;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Portfolio grid - 2 columns on mobile, auto-sized rows for card + meta */
  .masonry-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 14px 10px;
  }

  .grid-item {
    grid-column: span 2;
    height: auto;
  }

  /* Card uses aspect-ratio for height; meta text sits below naturally */
  .grid-item-card {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background: #E8E8E8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  }

  .grid-item.portrait {
    grid-column: span 1;
  }

  .grid-item.portrait .grid-item-card {
    aspect-ratio: 3 / 4 !important;
  }

  .grid-item.full-row {
    grid-column: span 2;
  }

  /* Reset editorial offsets on mobile */
  .grid-item.push-down-sm,
  .grid-item.push-down-md,
  .grid-item.push-down-lg { margin-top: 0; }
  .grid-item.offset-left,
  .grid-item.offset-right { transform: none; }
  .grid-item.breathe { padding-left: 0; padding-right: 0; }
  .grid-item.wide { grid-column: span 2; }
  .grid-item.extra-wide { grid-column: span 2; }
  .grid-item.flagship { grid-column: span 2; }
  .grid-item.col-start-2,
  .grid-item.col-start-3 { grid-column-start: auto; }
  .grid-item.recede { transform: none; }

  /* Meta text below each card — ensure visible and properly sized */
  .grid-meta-below {
    padding: 8px 2px 4px;
  }

  .grid-title-below {
    font-size: 1rem;
    line-height: 1.2;
    white-space: normal;
  }

  .grid-category-below {
    font-size: 0.65rem;
  }

  .portfolio-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .filter-bar {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 8px;
    gap: 6px;
    top: 70px;
    margin-bottom: 24px;
  }

  .filter-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    min-height: 44px;
  }

  /* Case study card */
  .case-title {
    font-size: 2rem;
  }

  .case-image-wrap {
    aspect-ratio: 4/3;
  }

  .case-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .case-btn {
    width: 100%;
    text-align: center;
  }

  /* Case study expanded content */
  .case-content-inner {
    padding-top: 40px;
    gap: 40px;
  }

  .cc-overview {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cc-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cc-text p {
    font-size: 1rem;
  }

  /* Subsection masonry grids - all single column */
  .cs-masonry-grid,
  .cs-masonry-grid--3col {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  .cs-span-full,
  .cs-span-half,
  .cs-span-third {
    grid-column: 1 / -1;
  }

  /* Storyboard carousel */
  #sb-carousel {
    max-height: 220px !important;
  }

  .sb-carousel-dots {
    gap: 4px;
  }

  .sb-dot {
    width: 4px;
    height: 4px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    aspect-ratio: 3/2;
  }

  .about-content h2 {
    font-size: 2.2rem;
  }

  /* Logo strip mobile */
  .logo-row { gap: 16px 0; }
  .logo-item { padding: 12px 20px; }
  .logo-divider { display: none; }
  .logo-wordmark { font-size: 0.75rem; }

  /* About stats mobile */
  .about-stats { grid-template-columns: 1fr 1fr 1fr; }
  .about-stat { padding: 0 12px; }
  .about-stat-number { font-size: 1.75rem; }

  /* Contact */
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-header h2 {
    font-size: 2.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 24px;
  }

  /* Hero dynamic word wrap */
  .dynamic-word-wrap {
    width: 100%;
    max-width: 100%;
  }

  .dyn-word {
    white-space: normal;
    word-break: break-word;
  }

  /* Hero actions */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Always show flagship overlay content on mobile (no hover) */
  .fo-content {
    opacity: 1;
    transform: translateY(0);
  }

  .dual-action-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
  }

  /* Remove hover scale on mobile (causes layout jitter) */
  .grid-item:hover .grid-item-video {
    transform: none;
  }

  .cs-hero-card:hover,
  .cs-subsection .cc-full-bleed:hover {
    transform: none;
  }

  /* Footer logo size — override inline style */
  .footer-brand img {
    height: 80px !important;
    margin-bottom: 20px !important;
  }

  /* Storyboard grid lightbox padding */
  .sb-grid-inner {
    padding: 60px 16px 40px;
  }

  .sb-grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sb-image-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Disable heavy effects on mobile for perf */
  .custom-cursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

  /* Disable border beam animations on mobile — no hover + saves GPU */
  .cap-item::after,
  .grid-item-card::before,
  .scroll-beam-wrap,
  .showreel-orbit-beam {
    display: none !important;
  }
}

/* --- SMALL MOBILE (<=480px) --- */
@media (max-width: 480px) {
  :root {
    --spacing-section: 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

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

  .contact-header h2 {
    font-size: 2.2rem;
  }

  .case-title {
    font-size: 1.8rem;
  }

  .cc-stats {
    grid-template-columns: 1fr;
  }

  /* About stats — 2 cols on very small screens */
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-stat:last-child {
    grid-column: 1 / -1;
    border-right: none;
    align-items: center;
    text-align: center;
  }

  .nav-cta {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
}

/* ==============================================
   REDUCED MOTION — respect accessibility prefs
   ============================================== */
@media (prefers-reduced-motion: reduce) {
  .cap-item::after,
  .grid-item-card::before,
  .scroll-beam-wrap,
  .showreel-orbit-beam {
    display: none !important;
  }
}

/* ==============================================
   PAGE PRELOADER
   ============================================== */

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.page-preloader.is-hiding {
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
}

.preloader-bar-track {
  width: 120px;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  margin-top: 32px;
  overflow: hidden;
  opacity: 0;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: width 0.3s var(--easing-fluid);
}

/* ==============================================
   FLIP TRANSITION PHANTOM
   ============================================== */

.flip-phantom {
  position: fixed;
  z-index: 9999;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.flip-phantom video,
.flip-phantom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox backdrop during FLIP */
.lightbox-overlay.flip-entering,
.asset-lightbox-overlay.flip-entering {
  opacity: 0 !important;
  visibility: visible !important;
}

.lightbox-overlay.flip-entering .lightbox-content,
.asset-lightbox-overlay.flip-entering .asset-lightbox-content {
  opacity: 0;
}
