:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0A0A0A;
  --surface-2: #111111;
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8B5CF6;

  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w: 1440px;
  --section-pad: clamp(96px, 14vw, 200px);
  --radius-media: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

/* Text selection and keyboard focus rings */
::selection {
  background-color: var(--accent);
  color: var(--text);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
  background-color: var(--bg);
}

/* Section Label & 6px purple dot */
.section-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Page Transition Curtain */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg);
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.page-curtain.is-active {
  transform: translateY(0%);
  pointer-events: all;
}

.page-curtain.is-exiting {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .page-curtain {
    display: none;
  }
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease-out, border-color 250ms ease-out;
}

.site-header.is-scrolled {
  background-color: var(--bg);
  border-bottom-color: var(--line);
}

.nav-inner {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-wordmark strong {
  font-weight: 700;
}

.brand-wordmark span {
  font-weight: 300;
}

.nav-center-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brand-logo-img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--text-dim);
  transition: color 200ms ease-out;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--text);
}
.nav-link.is-active,
.mobile-nav-link.is-active {
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
}

/* Glassy Book a Call Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition:
    transform 220ms ease-out,
    border-color 220ms ease-out,
    background 220ms ease-out,
    box-shadow 220ms ease-out;
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.07) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    0 12px 32px rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 110;
}

.menu-toggle-bar {
  width: 24px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 250ms ease-out;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  padding-block: clamp(80px, 12vh, 100px) 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.25rem);
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out, color 200ms ease-out;
}

.mobile-menu.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav-list li:nth-child(1) .mobile-nav-link { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(2) .mobile-nav-link { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(3) .mobile-nav-link { transition-delay: 180ms; }
.mobile-menu.is-open .mobile-nav-list li:nth-child(4) .mobile-nav-link { transition-delay: 240ms; }

.mobile-nav-cta {
  align-self: flex-start;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out 300ms, transform 400ms ease-out 300ms;
}

.mobile-menu.is-open .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-link,
  .mobile-nav-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* HERO */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-color: var(--bg);
  display: block;
  overflow: visible;
  isolation: auto;
}

.hero-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 600ms ease-out;
}

.hero-loader.is-done {
  opacity: 0;
}

.hero-loader-line {
  width: min(240px, 60vw);
  height: 1px;
  background-color: var(--line);
  position: relative;
  overflow: hidden;
}

.hero-loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--text);
  transform: scaleX(var(--load-progress, 0.15));
  transform-origin: left center;
  transition: transform 250ms ease-out;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms ease-out;
}

.hero-canvas.is-ready {
  opacity: 1;
}

/* CSS 3D Rotating Fallback Wordmark */
.hero-fallback {
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms ease-out;
}

.hero-fallback.is-ready {
  opacity: 1;
}

.hero-fallback-spinner {
  position: relative;
  transform-style: preserve-3d;
  animation: heroSpin 14s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-fallback-spinner {
    animation: none;
    transform: rotateY(-28deg) rotateX(8deg);
  }
}

.hero-fallback-face {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 10vw, 8.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
  backface-visibility: hidden;
  user-select: none;
}

.hero-fallback-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  color: var(--text-dim);
}

@keyframes heroSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Zero-origin floating title container (top: 0, height: 0 so translateY = exact document/viewport Y) */
.hero-bottom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: exclusion;
  will-change: transform;
}

.hero-exclusion-title {
  position: relative;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 17vw, 17.5rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: #FFFFFF;
  white-space: nowrap;
  user-select: none;
}

.title-layer {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  will-change: transform, opacity;
}

.title-layer-work,
.title-layer-hidden {
  opacity: 0;
  transform: translateY(35%);
}

.hero-title-bold {
  font-weight: 700;
  color: #FFFFFF;
}

.hero-title-light {
  font-weight: 300;
  color: #FFFFFF;
}

/* Matches "OUR SERVICES INCLUDE:" (JetBrains Mono, uppercase, 0.08em tracking, 0.75rem visual size) */
.title-layer-mono-label {
  font-family: var(--font-mono) !important;
  font-size: 3rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  line-height: 1.5 !important;
}

.mono-label-text {
  font-family: var(--font-mono) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.purple-dot,
.purple-colon {
  color: #5e17eb !important;
  font-weight: 700;
  display: inline-block;
  margin-left: 0.04em;
}

/* PORTFOLIO SECTION: 4-VIDEO 16:9 CURVED DISTORTION CAROUSEL */
.portfolio-section {
  overflow: clip;
  padding-bottom: clamp(28px, 4vw, 56px);
}

.portfolio-anchor-ref {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.work-carousel-outer {
  position: relative;
  width: 100%;
  margin-top: clamp(24px, 3vw, 44px);
}

.work-carousel-stage {
  position: relative;
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.work-carousel-stage.is-dragging {
  cursor: grabbing;
}

.work-carousel-canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Center overlay text ("The Singularity / Blackhole Coll. 01") with exclusion blend */
.work-carousel-overlay {
  display: none !important;
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  mix-blend-mode: exclusion;
  padding-inline: 20px;
  will-change: transform;
}

.work-carousel-overlay-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 5.2vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: clamp(4px, 0.6vw, 10px);
  transition: text-shadow 120ms linear;
}

.work-carousel-overlay-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.65vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.9);
}

.work-carousel-quick-ctrls {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(18px, 2.5vw, 32px);
  z-index: 6;
  display: flex;
  gap: 8px;
}

/* Carousel Switcher Controls (Prev / 4 Video Buttons / Next) */
.work-carousel-controls {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 20px);
  margin-top: clamp(-88px, -6.5vw, -36px);
  margin-top: -125px; /* <-- Match the number here */
  flex-wrap: wrap;
}

.carousel-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition:
    transform 220ms ease-out,
    border-color 220ms ease-out,
    background 220ms ease-out,
    box-shadow 220ms ease-out;
  flex-shrink: 0;
}

.carousel-arrow-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(94, 23, 235, 0.25) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    0 10px 24px rgba(94, 23, 235, 0.28);
}

.carousel-arrow-btn:active {
  transform: scale(0.95);
}

.carousel-arrow-btn svg {
  width: 17px;
  height: 17px;
}

.work-carousel-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition:
    color 220ms ease-out,
    background 220ms ease-out,
    border-color 220ms ease-out,
    box-shadow 220ms ease-out,
    transform 220ms ease-out;
}

.carousel-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.carousel-tab-btn.is-active {
  color: #FFFFFF;
  background: linear-gradient(
    135deg,
    rgba(94, 23, 235, 0.36) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(94, 23, 235, 0.3);
}

.carousel-tab-num {
  color: #8B5CF6;
  font-weight: 700;
}

.carousel-tab-btn.is-active .carousel-tab-num {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .work-carousel-controls {
    margin-top: 18px !important;
    gap: 8px;
  }
  .carousel-tab-label {
    display: none;
  }
  .carousel-tab-btn {
    padding: 8px 12px;
  }
  .carousel-arrow-btn {
    width: 38px;
    height: 38px;
  }
  .nav-inner {
    height: 64px;
  }
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 44px 1fr;
  }
  .service-num {
    font-size: 0.75rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}



.video-placeholder {
  position: absolute;
  inset: 0;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.video-placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface-2);
}

.video-ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}

.video-ctrl-btn:hover {
  background-color: var(--surface-2);
  border-color: var(--text);
}

.video-ctrl-btn svg {
  width: 16px;
  height: 16px;
}

/* See extensive portfolio button — centered below carousel controls */
.portfolio-cta-anchor {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 6;
}

.portfolio-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition: transform 200ms ease-out;
}

.portfolio-cta:active {
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0) scale(0.97);
}

/* Animated outer ring around "See extensive portfolio" button */
.portfolio-cta-ring {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  padding: 2px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.portfolio-cta-ring::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260%;
  aspect-ratio: 1 / 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 220deg,
    rgba(255, 255, 255, 0.85) 295deg,
    var(--accent) 345deg,
    transparent 360deg
  );
  transform: translate(-50%, -50%);
  animation: ctaRingSpin 4.5s linear infinite;
}

@keyframes ctaRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.portfolio-cta-surface {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  background-color: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.portfolio-cta-text-mask {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.35em;
  line-height: 1.35em;
}

.portfolio-cta-text-primary,
.portfolio-cta-text-clone {
  display: block;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-cta-text-clone {
  position: absolute;
  top: 100%;
  left: 0;
}

.portfolio-cta:hover .portfolio-cta-text-primary,
.portfolio-cta:hover .portfolio-cta-text-clone {
  transform: translateY(-100%);
}

.portfolio-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  animation: arrowIdleNudge 3.6s ease-in-out infinite;
  transition: transform 250ms ease-out;
}

.portfolio-cta:hover .portfolio-cta-arrow {
  animation: none;
  transform: translateX(6px);
}

@keyframes arrowIdleNudge {
  0%, 78%, 100% { transform: translateX(0); }
  88% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-cta-ring::before,
  .portfolio-cta-arrow {
    animation: none;
  }
  .portfolio-cta:hover .portfolio-cta-text-primary,
  .portfolio-cta:hover .portfolio-cta-text-clone {
    transform: none;
  }
}

/* WHAT WE DO */
.what-we-do-section {
  padding-top: clamp(36px, 5vw, 68px);
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: clamp(64px, 9vw, 128px);
}

.statement-text strong {
  font-weight: 800;
}

.statement-word {
  color: var(--text);
  opacity: 0.25;
  transition: opacity 120ms linear;
}

.statement-word.is-filled {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .statement-word {
    opacity: 1;
  }
}

.services-sublabel {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding-block: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: opacity 300ms ease-out, transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.service-name-mask {
  display: block;
  overflow: hidden;
}

.service-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  transform: translateY(105%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.services-list.is-visible .service-row:nth-child(1) .service-name { transform: translateY(0); transition-delay: 0ms; }
.services-list.is-visible .service-row:nth-child(2) .service-name { transform: translateY(0); transition-delay: 90ms; }
.services-list.is-visible .service-row:nth-child(3) .service-name { transform: translateY(0); transition-delay: 180ms; }
.services-list.is-visible .service-row:nth-child(4) .service-name { transform: translateY(0); transition-delay: 270ms; }

@media (hover: hover) and (min-width: 900px) {
  .services-list:hover .service-row {
    opacity: 0.4;
  }
  .services-list .service-row:hover {
    opacity: 1;
    transform: translateX(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-name {
    transform: none;
    transition: none;
  }
}

/* TESTIMONIALS */
.testimonials-section {
  border-top: 1px solid var(--line);
  background-color: var(--bg);
}

.testimonials-scroll-track {
  position: relative;
  height: calc((var(--testimonial-count, 3) + 1) * 100vh);
}

.testimonials-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(88px, 10vh, 128px) clamp(32px, 5vh, 56px);
}

.testimonials-stage-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials-top-spacer {
  height: 24px;
  width: 100%;
  flex-shrink: 0;
}

.quote-stage-center {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 16px;
}

.quote-mark-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(160px, 24vw, 320px);
  height: auto;
  transform: translate(-50%, -58%);
  color: var(--text);
  opacity: 0.08;
  pointer-events: none;
}

.quote-slides {
  position: relative;
  width: 100%;
  max-width: 1080px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(36px);
  filter: blur(0px);
  transition: opacity 550ms ease-out, transform 550ms ease-out, filter 550ms ease-out;
}

.quote-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0px);
}

.quote-slide.is-past {
  opacity: 0;
  transform: translateY(-36px);
  filter: blur(6px);
}

.quote-metric {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 20px;
}

.quote-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
}

.quote-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
}

.quote-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.quote-slide.is-active .quote-word-inner {
  transform: translateY(0%);
  transition-delay: var(--word-delay, 0ms);
}

.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* filter: grayscale(100%); */
  flex-shrink: 0;
}

.quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-initials {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}

.quote-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-author-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
}

.quote-author-role {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.quote-stage-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.quote-nav-btns {
  display: flex;
  gap: 8px;
}

.quote-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 200ms ease-out, background-color 200ms ease-out;
}

.quote-nav-btn:hover {
  border-color: var(--text);
  background-color: var(--surface-2);
}

.quote-nav-btn svg {
  width: 16px;
  height: 16px;
}

.quote-progress-track {
  width: 100%;
  height: 1px;
  background-color: var(--line);
  position: relative;
  overflow: hidden;
}

.quote-progress-fill {
  height: 100%;
  width: 100%;
  background-color: var(--text);
  transform: scaleX(var(--quote-progress, 0.333));
  transform-origin: left center;
  transition: transform 250ms ease-out;
}

/* Single testimonial fallback */
.testimonials-section.is-single .testimonials-scroll-track {
  height: auto;
}

.testimonials-section.is-single .testimonials-stage {
  position: relative;
  height: auto;
  min-height: 75svh;
  padding-block: var(--section-pad);
}

/* Mobile (<768px): no pinning, horizontal swipe carousel with scroll-snap */
@media (max-width: 767px) {
  .testimonials-scroll-track {
    height: auto !important;
  }
  .testimonials-stage {
    position: relative;
    height: auto;
    padding-block: var(--section-pad);
  }
  .testimonials-stage-inner {
    min-width: 0;
    max-width: 100%;
  }
  .quote-stage-center {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .quote-text {
    font-size: clamp(1.25rem, 5vw, 2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
  }
  .quote-slides {
    position: relative;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    min-height: 0;
    padding-block: 24px;
    scrollbar-width: none;
  }
  .quote-slides::-webkit-scrollbar {
    display: none;
  }
  .quote-slide {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    scroll-snap-align: center;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
  }
  .quote-word-inner {
    transform: translateY(0%) !important;
  }
}

/* Reduced motion: vertical list of all testimonials */
@media (prefers-reduced-motion: reduce) {
  .testimonials-scroll-track {
    height: auto !important;
  }
  .testimonials-stage {
    position: relative;
    height: auto;
    padding-block: var(--section-pad);
  }
  .quote-slides {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-height: 0;
  }
  .quote-slide {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
  }
  .quote-slide:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .quote-word-inner {
    transform: none !important;
    transition: none !important;
  }
  .quote-stage-footer {
    display: none;
  }
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-left {
  grid-column: 1 / 6;
}

.contact-right {
  grid-column: 6 / 13;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.scheduler-box {
  width: 100%;
  min-width: 0;
  width: 100%;
  height: 700px;
  border-radius: var(--radius-media);
  border: 1px solid var(--line);
  background-color: var(--surface);
  overflow: hidden;
  position: relative;
}

.calendly-inline-widget {
  width: 100%;
  height: 700px;
}

.scheduler-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background-color: var(--surface);
}

.scheduler-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface-2);
}

.scheduler-fallback-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.scheduler-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 200ms ease-out;
}

.scheduler-ext-link:hover {
  color: var(--text);
}

.scheduler-ext-link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 960px) {
  .contact-left,
  .contact-right {
    grid-column: 1 / -1;
  }
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition:
    transform 220ms ease-out,
    color 220ms ease-out,
    border-color 220ms ease-out,
    background 220ms ease-out,
    box-shadow 220ms ease-out;
}

.footer-social-link:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(94, 23, 235, 0.2) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(94, 23, 235, 0.25);
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
}

/* PORTFOLIO PAGE */
.portfolio-page-main {
  padding-top: 80px;
}

.portfolio-page-section {
  border-top: none;
  padding-top: clamp(48px, 7vw, 96px);
}

.portfolio-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 200ms ease-out;
}

.back-home-link:hover {
  color: var(--text);
}

.back-home-link svg {
  width: 15px;
  height: 15px;
}


.portfolio-page-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.portfolio-page-desc {
  max-width: 640px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dim);
  margin-top: -4px;
}

.portfolio-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-card-play,
.portfolio-card:focus-visible .portfolio-card-play {
  opacity: 1;
}

.portfolio-card-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: scale(0.92);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:hover .portfolio-card-play-icon {
  transform: scale(1.04);
}

.portfolio-cta-banner {
  position: relative;
  grid-column: span 12;
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: center;
}

.portfolio-cta-banner-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 260px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.portfolio-cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.portfolio-cta-banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 640px;
}

.portfolio-cta-banner-sub {
  max-width: 540px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--text-dim);
}

.portfolio-banner-cta {
  margin-top: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  gap: 8px;
}

.portfolio-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.portfolio-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card.is-portrait {
  grid-column: span 3;
}

@media (hover: hover) {
  .portfolio-card:hover {
    transform: translateY(-6px);
  }
}

.portfolio-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-media);
  border: 1px solid var(--line);
  background-color: var(--surface);
  overflow: hidden;
}

.portfolio-card.is-portrait .portfolio-card-media {
  aspect-ratio: 9 / 16;
}

.portfolio-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg);
}

.portfolio-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  letter-spacing: -0.03em;
  color: var(--text);
}

.portfolio-card-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .portfolio-card {
    grid-column: span 12;
  }
  .portfolio-card.is-portrait {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .portfolio-card {
    grid-column: span 12;
  }
  .portfolio-card.is-portrait {
    grid-column: span 6;
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lightbox-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}

.lightbox-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  overflow: hidden;
}

.lightbox-video-wrap.is-portrait {
  max-width: 420px;
  aspect-ratio: 9 / 16;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--bg);
}

.lightbox-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 200ms ease-out, background-color 200ms ease-out;
}

.lightbox-btn:hover {
  border-color: var(--text);
  background-color: var(--surface);
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 700px) {
  .lightbox-nav {
    display: none;
  }
}