@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=JetBrains+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Palette */
  --color-midnight: #080b12;
  --color-abyss: #05070d;
  --color-navy: #101828;
  --color-navy-soft: rgba(22, 32, 51, 0.4);
  --color-electric: #5267ff;
  --color-electric-hover: #6478ff;
  --color-electric-deep: #3a49d8;
  --color-lavender: #b9b6ff;
  --color-lavender-hover: #cfcdff;
  --color-warm: #f8f9fc;
  --color-muted: #8b93a7;
  --color-line: #1f2739;
  --color-line-light: #e3e6ef;

  /* Typography */
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion & Easings */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-midnight);
  color: var(--color-warm);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-midnight);
  color: var(--color-warm);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

section[id],
main[id] {
  scroll-margin-top: 92px;
}

::selection {
  background: var(--color-electric);
  color: #fff;
}

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

/* Branded scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0e17;
}
::-webkit-scrollbar-thumb {
  background: #232c42;
  border-radius: 99px;
  border: 3px solid #0a0e17;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4568;
}

/* ==========================================================================
   Utility Classes & Design System Tokens
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Grid & Textures */
.bg-grid {
  background-image: linear-gradient(to right, rgba(139, 147, 167, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 147, 167, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
}

.bg-grid-fine {
  background-image: linear-gradient(to right, rgba(139, 147, 167, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 147, 167, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.bg-grid-light {
  background-image: linear-gradient(to right, rgba(16, 24, 40, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 24, 40, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}

.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.mask-fade-b {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.mask-fade-x {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* Typography styles */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.688rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.stroke-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 182, 255, 0.42);
}

.stroke-text-dark {
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 24, 40, 0.28);
}

.accent-flow {
  background: linear-gradient(
    100deg,
    var(--color-lavender) 0%,
    var(--color-electric) 30%,
    #ffffff 50%,
    var(--color-electric) 70%,
    var(--color-lavender) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-flow 7s linear infinite;
}

.accent-flow-dark {
  background: linear-gradient(
    100deg,
    var(--color-electric) 0%,
    #2b37a8 30%,
    var(--color-navy) 50%,
    #2b37a8 70%,
    var(--color-electric) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-flow 7s linear infinite;
}

/* Panels */
.panel {
  background: linear-gradient(160deg, rgba(22, 30, 48, 0.92) 0%, rgba(9, 13, 22, 0.94) 100%);
  border: 1px solid rgba(139, 147, 167, 0.16);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-light {
  background: #ffffff;
  border: 1px solid var(--color-line-light);
  box-shadow: 0 24px 60px -40px rgba(16, 24, 40, 0.45);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Eyebrow badge component */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-badge--dark {
  color: var(--color-lavender);
}
.eyebrow-badge--light {
  color: var(--color-electric);
}
.eyebrow-pulse {
  position: relative;
  display: flex;
  height: 6px;
  width: 6px;
}
.eyebrow-pulse__ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  opacity: 0.7;
  animation: pulse-ring 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.eyebrow-pulse__dot {
  position: relative;
  display: inline-flex;
  height: 6px;
  width: 6px;
  border-radius: 9999px;
}
.eyebrow-badge--dark .eyebrow-pulse__ring,
.eyebrow-badge--dark .eyebrow-pulse__dot {
  background-color: var(--color-lavender);
}
.eyebrow-badge--light .eyebrow-pulse__ring,
.eyebrow-badge--light .eyebrow-pulse__dot {
  background-color: var(--color-electric);
}

/* ==========================================================================
   Buttons & CTA Component
   ========================================================================== */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 9999px;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.cta-btn:active {
  transform: scale(0.98);
}
.cta-btn__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: transform 0.9s ease-out;
}
.cta-btn:hover .cta-btn__glow {
  transform: translateX(100%);
}
.cta-btn__arrow {
  height: 16px;
  width: 16px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}
.cta-btn:hover .cta-btn__arrow {
  transform: translate(3px, -3px);
}
.cta-btn--down:hover .cta-btn__arrow {
  transform: translateY(4px);
}

/* Variants */
.cta-btn--primary {
  background-color: var(--color-electric);
  color: #ffffff;
  box-shadow: 0 14px 40px -14px rgba(82, 103, 255, 0.85);
}
.cta-btn--primary:hover {
  background-color: var(--color-electric-hover);
  box-shadow: 0 20px 55px -14px rgba(82, 103, 255, 0.95);
}

.cta-btn--ghost {
  border: 1px solid var(--color-line);
  color: rgba(248, 249, 252, 0.85);
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.cta-btn--ghost:hover {
  border-color: rgba(185, 182, 255, 0.6);
  color: var(--color-warm);
}

.cta-btn--light {
  background-color: var(--color-warm);
  color: var(--color-navy);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.6);
}
.cta-btn--light:hover {
  background-color: #ffffff;
}

.cta-btn--outline-light {
  border: 1px solid rgba(16, 24, 40, 0.2);
  color: var(--color-navy);
  background-color: rgba(255, 255, 255, 0.6);
}
.cta-btn--outline-light:hover {
  border-color: var(--color-electric);
  color: var(--color-electric);
}

/* Magnetic Wrapper */
.magnetic-wrap {
  display: inline-block;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes accent-flow {
  from { background-position: 0% 50%; }
  to { background-position: 260% 50%; }
}

@keyframes marquee-x {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.5%, -3%, 0) scale(1.06); }
}

@keyframes float-soft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.85; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes dash-run {
  to { stroke-dashoffset: -220; }
}

@keyframes scan-y {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(900%); }
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.anim-drift {
  animation: drift 22s ease-in-out infinite;
}
.anim-float {
  animation: float-soft 7s ease-in-out infinite;
}
.anim-caret {
  animation: caret 1.05s step-end infinite;
}
.anim-dash {
  stroke-dasharray: 6 8;
  animation: dash-run 9s linear infinite;
}
.anim-scan {
  animation: scan-y 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Scroll Reveals & Mask Lines */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mask-line {
  display: block;
  overflow: hidden;
  margin-bottom: -0.14em;
  padding-bottom: 0.24em;
}
.mask-line__inner {
  display: block;
  transform: translateY(145%);
  transition: transform 1.05s var(--ease);
  will-change: transform;
}
.mask-line.is-visible .mask-line__inner {
  transform: translateY(0);
}

/* ==========================================================================
   Page Loader Screen
   ========================================================================== */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-midnight);
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.82s var(--ease);
}
#site-loader.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.loader-progress {
  width: 176px;
  height: 1px;
  margin: 28px auto 0;
  overflow: hidden;
  background-color: var(--color-line);
}
.loader-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--color-electric), var(--color-lavender));
  transition: width 0.72s ease-in-out;
}

/* ==========================================================================
   Site Header & Top Nav
   ========================================================================== */
#scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: 2px;
  background: linear-gradient(to right, var(--color-electric), var(--color-lavender), var(--color-electric));
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid transparent;
  transition: all 0.7s var(--ease);
}
.site-header.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom-color: rgba(31, 39, 57, 0.8);
  background-color: rgba(8, 11, 18, 0.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Wordmark */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-wordmark__svg {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
}
.brand-wordmark__text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-warm);
}

/* Desktop Nav Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}
.nav-link {
  position: relative;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-muted);
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--color-warm);
}
.nav-link.is-active {
  color: var(--color-warm);
}
.nav-pill-bg {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  background-color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-link.is-active .nav-pill-bg {
  opacity: 1;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-cta-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background-color: var(--color-electric);
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 34px -14px rgba(82, 103, 255, 0.9);
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.header-cta-btn:hover {
  background-color: var(--color-electric-hover);
}
.header-cta-btn:active {
  transform: scale(0.97);
}
@media (min-width: 640px) {
  .header-cta-btn {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  display: inline-flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  color: var(--color-warm);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.mobile-menu-toggle:hover {
  border-color: rgba(185, 182, 255, 0.6);
  color: var(--color-lavender);
}
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer Overlay */
#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 11, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  clip-path: circle(0% at 92% 5%);
  transition: clip-path 0.62s var(--ease);
}
#mobile-drawer.is-open .drawer-backdrop {
  clip-path: circle(150% at 92% 5%);
}
.drawer-content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.drawer-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--color-warm);
  transition: color 0.3s ease;
}
.drawer-link:hover {
  color: var(--color-lavender);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-midnight);
  padding-top: 112px;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .hero-section {
    padding-top: 128px;
  }
}
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 112px;
  }
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.hero-h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
}
.hero-summary {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-muted);
}
@media (min-width: 640px) {
  .hero-summary {
    font-size: 1.12rem;
  }
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-stats {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(139, 147, 167, 0.7);
}
.hero-stats dd {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(248, 249, 252, 0.85);
}

/* Hero 3D Floating Composition */
.hero-composition-stage {
  position: relative;
  margin: 0 auto;
  height: 400px;
  width: 100%;
  max-width: 640px;
}
@media (min-width: 640px) {
  .hero-composition-stage {
    height: 470px;
  }
}
@media (min-width: 1024px) {
  .hero-composition-stage {
    height: 600px;
  }
}
.hero-composition-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-composition-scaler {
  position: relative;
  height: 600px;
  width: 620px;
  transform-origin: center;
  transform: scale(0.48);
}
@media (min-width: 640px) {
  .hero-composition-scaler {
    transform: scale(0.72);
  }
}
@media (min-width: 768px) {
  .hero-composition-scaler {
    transform: scale(0.86);
  }
}
@media (min-width: 1024px) {
  .hero-composition-scaler {
    transform: scale(0.92);
  }
}
@media (min-width: 1280px) {
  .hero-composition-scaler {
    transform: scale(1);
  }
}

.hero-parallax-back,
.hero-parallax-mid,
.hero-parallax-front {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Specimen TypeCard */
.type-card {
  width: 196px;
  border-radius: 12px;
  padding: 12px;
}
.type-card-swatches {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.type-card-swatch {
  height: 16px;
  flex: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--ease);
}
.type-card-swatch:hover {
  transform: translateY(-3px);
}

/* Browser Panel */
.browser-panel {
  width: 404px;
  border-radius: 14px;
  overflow: hidden;
}

/* Phone Panel */
.phone-panel {
  width: 168px;
  border-radius: 22px;
  overflow: hidden;
  padding: 8px;
}

/* Pill Tags */
.hero-pill-tag {
  position: absolute;
  z-index: 30;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  background-color: rgba(8, 11, 18, 0.85);
  padding: 6px 12px;
  backdrop-filter: blur(8px);
}

/* Scroll Indicator */
.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.hero-scroll-cue__track {
  position: relative;
  height: 40px;
  width: 1px;
  overflow: hidden;
  background-color: var(--color-line);
}
.hero-scroll-cue__bar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 12px;
  background-color: var(--color-lavender);
  animation: scroll-cue 2.1s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-12px); }
  100% { transform: translateY(40px); }
}

/* ==========================================================================
   Marquee Section
   ========================================================================== */
.marquee-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background-color: #0a0e18;
  padding: 28px 0;
}
@media (min-width: 640px) {
  .marquee-section {
    padding: 36px 0;
  }
}
.marquee-group {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-x 38s linear infinite;
}
.marquee-track.reverse {
  animation-direction: reverse;
}
.marquee-group:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-warm);
}
.marquee-text.stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 182, 255, 0.42);
}
.marquee-star {
  margin: 0 clamp(24px, 4vw, 32px);
  font-size: clamp(0.95rem, 2vw, 1.6rem);
  color: var(--color-electric);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-warm);
  color: var(--color-navy);
  padding: 96px 0;
}
@media (min-width: 640px) {
  .about-section {
    padding: 112px 0;
  }
}
@media (min-width: 1024px) {
  .about-section {
    padding: 144px 0;
  }
}

.discipline-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
}
@media (min-width: 640px) {
  .discipline-card {
    padding: 36px;
  }
}
.discipline-card--dark {
  background-color: #0b1020;
  color: var(--color-warm);
  box-shadow: 0 40px 90px -50px rgba(8, 11, 18, 0.9);
}
.discipline-card--light {
  border: 1px solid var(--color-line-light);
  background-color: #ffffff;
  color: var(--color-navy);
  box-shadow: 0 40px 90px -60px rgba(16, 24, 40, 0.6);
}

.rotating-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  display: none;
  height: 74px;
  width: 74px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--color-electric);
  color: #fff;
  box-shadow: 0 18px 50px -16px rgba(82, 103, 255, 0.9);
  animation: rotate-cross 9s ease-in-out infinite;
}
@keyframes rotate-cross {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -50%) rotate(90deg); }
  75% { transform: translate(-50%, -50%) rotate(90deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}
@media (min-width: 1024px) {
  .rotating-cross {
    display: flex;
  }
}

/* ==========================================================================
   Services Section & Dynamic Drawer Accordion
   ========================================================================== */
.services-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-midnight);
  padding: 96px 0;
}
@media (min-width: 640px) {
  .services-section {
    padding: 112px 0;
  }
}
@media (min-width: 1024px) {
  .services-section {
    padding: 144px 0;
  }
}

.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Service Card */
.service-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--color-line);
  background-color: rgba(10, 14, 24, 0.8);
  padding: 24px;
  transition: border-color 0.5s ease;
}
@media (min-width: 640px) {
  .service-card {
    padding: 28px;
  }
}
.service-card:hover {
  border-color: rgba(185, 182, 255, 0.3);
}
.service-card.is-expanded {
  border-color: rgba(185, 182, 255, 0.4);
}

.service-card__spotlight {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(82, 103, 255, 0.16), transparent 68%);
  transition: opacity 0.5s ease;
}
.service-card:hover .service-card__spotlight {
  opacity: 1;
}

.service-toggle-btn {
  display: inline-flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  transition: all 0.5s var(--ease);
}
.service-toggle-btn svg {
  transition: transform 0.4s var(--ease);
}
.service-card:hover .service-toggle-btn {
  border-color: rgba(255, 255, 255, 0.2);
}
.service-card.is-expanded .service-toggle-btn {
  border-color: rgba(185, 182, 255, 0.6);
  color: var(--color-lavender);
}
.service-card.is-expanded .service-toggle-btn svg {
  transform: rotate(45deg);
}

/* Expandable Drawer */
.service-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease);
}
.service-card.is-expanded .service-drawer {
  max-height: 800px;
  opacity: 1;
}

/* ==========================================================================
   Work / Projects Section
   ========================================================================== */
.work-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-warm);
  color: var(--color-navy);
  padding: 96px 0;
}
@media (min-width: 640px) {
  .work-section {
    padding: 112px 0;
  }
}
@media (min-width: 1024px) {
  .work-section {
    padding: 144px 0;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(16, 24, 40, 0.1);
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
  padding: 16px 0;
  margin-top: 48px;
}
.filter-btn {
  position: relative;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(16, 24, 40, 0.55);
  transition: color 0.4s ease;
}
.filter-btn:hover {
  color: var(--color-navy);
}
.filter-btn.is-active {
  color: #fff;
}
.filter-pill-bg {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--color-navy);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.filter-btn.is-active .filter-pill-bg {
  opacity: 1;
}

.project-rows {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (min-width: 1024px) {
  .project-rows {
    margin-top: 64px;
    gap: 112px;
  }
}

.project-row {
  display: grid;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1024px) {
  .project-row {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
  }
  .project-row.is-flipped {
    grid-template-columns: 5fr 7fr;
  }
  .project-row.is-flipped .project-media-col {
    order: 2;
  }
  .project-row.is-flipped .project-info-col {
    order: 1;
  }
}

.project-card-btn {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  background-color: var(--color-navy);
  text-align: left;
  box-shadow: 0 40px 90px -60px rgba(16, 24, 40, 0.85);
  transition: box-shadow 0.7s ease;
}
.project-card-btn:hover {
  box-shadow: 0 50px 110px -50px rgba(16, 24, 40, 0.7);
}
.project-image-box {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 640px) {
  .project-image-box {
    aspect-ratio: 16 / 9;
  }
}
.project-image-box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.4s var(--ease);
}
.project-card-btn:hover .project-image-box img {
  transform: scale(1.18);
}

/* ==========================================================================
   Case Study Modal
   ========================================================================== */
#case-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#case-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 640px) {
  #case-modal {
    padding: 24px;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-window {
  position: relative;
  margin: 16px 0;
  width: 100%;
  max-width: 1024px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--color-line);
  background-color: var(--color-midnight);
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 1);
  transform: translateY(40px) scale(0.98);
  transition: transform 0.6s var(--ease);
}
#case-modal.is-open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .modal-header-img {
    height: 300px;
  }
}
.modal-header-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Signature Parallax Interlude
   ========================================================================== */
.interlude-section {
  position: relative;
  display: flex;
  height: 76vh;
  min-height: 460px;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-abyss);
}
.interlude-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform: scale(1.1);
  will-change: transform;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
  padding: 96px 0;
}
@media (min-width: 640px) {
  .process-section {
    padding: 112px 0;
  }
}
@media (min-width: 1024px) {
  .process-section {
    padding: 144px 0;
  }
}
.step-node {
  position: relative;
  z-index: 10;
  display: flex;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: var(--color-navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  transition: all 0.55s var(--ease);
}
.step-item.is-active .step-node {
  border-color: rgba(82, 103, 255, 0.9);
  background-color: rgba(82, 103, 255, 0.95);
  color: #fff;
  transform: scale(1.06);
}
.step-item.is-done .step-node {
  border-color: rgba(185, 182, 255, 0.45);
  background-color: rgba(82, 103, 255, 0.16);
  color: #fff;
}

/* ==========================================================================
   Studio Section
   ========================================================================== */
.studio-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-midnight);
  padding: 96px 0;
}
@media (min-width: 640px) {
  .studio-section {
    padding: 112px 0;
  }
}
@media (min-width: 1024px) {
  .studio-section {
    padding: 144px 0;
  }
}

/* Stage Rail */
.stage-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
@media (min-width: 640px) {
  .stage-btn {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
.stage-node {
  position: relative;
  z-index: 10;
  display: flex;
  height: 38px;
  width: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--color-midnight);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  transition: all 0.5s var(--ease);
}
.stage-btn.is-active .stage-node {
  border-color: var(--color-electric);
  background-color: var(--color-electric);
  color: #fff;
  transform: scale(1.08);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
  padding: 96px 0;
}
@media (min-width: 640px) {
  .contact-section {
    padding: 112px 0;
  }
}
@media (min-width: 1024px) {
  .contact-section {
    padding: 144px 0;
  }
}

.input-field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--color-warm);
  transition: all 0.3s ease;
}
.input-field::placeholder {
  color: rgba(139, 147, 167, 0.55);
}
.input-field:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-electric);
  outline: none;
  box-shadow: 0 0 0 2px rgba(82, 103, 255, 0.25);
}
.input-field.has-error {
  border-color: rgba(255, 156, 138, 0.6);
}
.input-field.has-error:focus {
  border-color: #ff9c8a;
  box-shadow: 0 0 0 2px rgba(255, 156, 138, 0.25);
}

.pill-option {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: all 0.4s var(--ease);
}
.pill-option:hover {
  border-color: rgba(185, 182, 255, 0.45);
  color: var(--color-warm);
}
.pill-option.is-selected {
  border-color: var(--color-electric);
  background-color: rgba(82, 103, 255, 0.18);
  color: var(--color-warm);
  box-shadow: 0 10px 28px -16px rgba(82, 103, 255, 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  background-color: var(--color-abyss);
  padding-top: 40px;
}

/* ==========================================================================
   Reduced Motion Media Query
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track {
    animation: none !important;
    width: 100%;
    overflow-x: auto;
  }
  .accent-flow,
  .accent-flow-dark {
    background: none;
    -webkit-text-stroke: 0;
    color: var(--color-lavender);
  }
  .accent-flow-dark {
    color: var(--color-electric);
  }
}
